/* ============================================================
   99creatix 30-Day Launch
   Page-specific layer. The shared design system (.c99) already
   loads site-wide, so this carries only what is unique to this
   page: the timeline spine, the five-clause terms list and the
   dotted continuation rail.
   Selectors are doubled (.c99.c99-launch) so they outrank the
   homepage's .c99 rules, which print later in the site custom CSS.

   --rail is the x position of the spine. Every node, grid column
   and rail offset is derived from it, so the line cannot drift
   out of alignment with the day labels at any breakpoint.
   ============================================================ */

.c99.c99-launch { --rail: 96px; }

/* ---- values that differ from the homepage build ---- */
.c99.c99-launch .display { font-size: clamp(2.3rem, 7vw, 5.4rem); line-height: 0.9; }
.c99.c99-launch .h2 { font-size: clamp(1.7rem, 4.2vw, 3rem); }
.c99.c99-launch .opening .hero { padding-block: clamp(2.75rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); }
.c99.c99-launch .hero__eyebrow { padding-bottom: 1.5rem; }
.c99.c99-launch .hero h1 { margin-bottom: 1.5rem; }
.c99.c99-launch .hero h1 em { font-style: normal; color: var(--blue-l); }
.c99.c99-launch .hero__sub { max-width: 54ch; margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); line-height: 1.5; }
/* this page is the current page in its own nav */
.c99.c99-launch .opening .nav__links a[aria-current] { color: var(--panel-ink); }

/* ============ the terms, continuing the dark stage ============
   Deliberately not a new band: the guarantee and its terms belong
   together before the page turns to paper. */
.c99.c99-launch .terms { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(3.5rem, 7vw, 5.5rem); }
.c99.c99-launch .terms__head { margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.c99.c99-launch .terms__head .tag { display: block; margin-bottom: 1rem; }
.c99.c99-launch .terms__head p { color: var(--panel-mute); max-width: 54ch; margin: 1.1rem 0 0; }
.c99.c99-launch .clauses {
  border: 1px solid var(--panel-rule); background: rgba(20,22,26,0.6);
  max-width: 880px; margin: 0; padding: 0;
}
.c99.c99-launch .clauses li {
  list-style: none; display: grid; grid-template-columns: 54px 1fr;
  gap: 1rem; padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--panel-rule);
}
.c99.c99-launch .clauses li:last-child { border-bottom: 0; }
.c99.c99-launch .clauses .n {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--blue-l); padding-top: 0.2rem;
}
.c99.c99-launch .clauses p { margin: 0; color: var(--panel-ink); font-size: 0.98rem; line-height: 1.6; }
.c99.c99-launch .terms__note {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em;
  color: var(--panel-mute); margin: 1.2rem 0 0;
}

/* ============ the spine ============ */
.c99.c99-launch .days { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3rem, 6vw, 4.5rem); }
.c99.c99-launch .days__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 62ch; }
.c99.c99-launch .days__head .tag { display: block; margin-bottom: 1.1rem; }
.c99.c99-launch .days__head p { color: var(--ink-mute); margin: 1.25rem 0 0; font-size: clamp(0.98rem, 1.5vw, 1.1rem); }

.c99.c99-launch .spine { position: relative; }
/* one rule for the whole run, so the line cannot break between phases */
.c99.c99-launch .spine__rail {
  position: absolute; left: var(--rail); top: 6px; bottom: 0;
  width: 1px; background: var(--rule);
}
/* height is driven by scroll position in launch.js */
.c99.c99-launch .spine__fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--blue);
}

/* phase rows are unboxed: the eye should follow the line, not jump between cards */
.c99.c99-launch .ph {
  position: relative; display: grid;
  grid-template-columns: calc(var(--rail) - 22px) 1fr;
  gap: clamp(1.5rem, 4vw, 3.2rem);
  padding: 0 0 clamp(2.4rem, 5vw, 3.6rem) 0;
}
.c99.c99-launch .ph:last-child { padding-bottom: 0; }
.c99.c99-launch .ph::before {
  content: ""; position: absolute; left: var(--rail); top: 2px;
  width: 13px; height: 13px; margin-left: -6px;
  background: var(--paper); border: 2px solid var(--blue);
  border-radius: 50%; z-index: 2;
}
.c99.c99-launch .ph__days {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem); letter-spacing: -0.02em;
  color: var(--blue); font-variant-numeric: tabular-nums;
  text-align: right; display: block; line-height: 1.3;
}
.c99.c99-launch .ph__days small {
  display: block; font-size: 0.58rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-soft); margin-top: 0.35rem;
}
.c99.c99-launch .ph h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem); letter-spacing: -0.03em;
  text-transform: uppercase; margin-bottom: 0.6rem; font-weight: 700;
}
.c99.c99-launch .ph p {
  margin: 0; color: var(--ink-mute);
  font-size: clamp(0.95rem, 1.4vw, 1.03rem); line-height: 1.6; max-width: 56ch;
}
.c99.c99-launch .ph__out { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.9rem; }
.c99.c99-launch .ph__out span {
  font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.06em; color: var(--ink-soft);
}
.c99.c99-launch .ph__out span::before { content: "\00B7 "; color: var(--blue); }

/* review gates: filled node, and the only bordered box on a phase row */
.c99.c99-launch .ph--gate::before {
  background: var(--blue); border-color: var(--blue);
  width: 15px; height: 15px; margin-left: -7px; top: 1px;
}
.c99.c99-launch .gate {
  border: 1px solid var(--ink); background: var(--paper-2);
  padding: 1.05rem 1.3rem; max-width: 56ch;
}
.c99.c99-launch .gate b {
  display: block; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.4rem;
}
.c99.c99-launch .gate p { color: var(--ink); font-size: 0.95rem; }

/* terminal row: a square, not a circle, so the line reads as ended */
.c99.c99-launch .ph--end::before {
  background: var(--ink); border-color: var(--ink); border-radius: 0;
  width: 17px; height: 17px; margin-left: -8px; top: 1px;
}
.c99.c99-launch .ph--end h3 { color: var(--ink); }
.c99.c99-launch .launch {
  border: 1px solid var(--ink); background: var(--ink);
  color: var(--paper); padding: 1.3rem 1.5rem; max-width: 56ch;
}
.c99.c99-launch .launch p { color: rgba(239,239,236,0.72); }
.c99.c99-launch .launch b {
  display: block; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.45rem;
}

/* slip outcomes, hanging off the end of the spine in the same label column */
.c99.c99-launch .slip {
  position: relative; margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid;
  grid-template-columns: calc(var(--rail) - 22px) 1fr;
  gap: clamp(1.5rem, 4vw, 3.2rem);
}
.c99.c99-launch .slip__k {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-soft);
  text-align: right; padding-top: 0.25rem;
}
.c99.c99-launch .slip__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
}
.c99.c99-launch .slip__grid > div { background: var(--paper); padding: 1.3rem 1.4rem 1.45rem; }
.c99.c99-launch .slip__grid b { display: block; font-size: 1rem; letter-spacing: -0.02em; margin-bottom: 0.45rem; font-weight: 700; }
.c99.c99-launch .slip__grid p { margin: 0; font-size: 0.9rem; color: var(--ink-mute); line-height: 1.6; }
@media (max-width: 700px) { .c99.c99-launch .slip__grid { grid-template-columns: 1fr; } }

/* mobile: rail moves to the far left, day label sits above the heading,
   content indents, and the line stays continuous */
@media (max-width: 720px) {
  .c99.c99-launch { --rail: 9px; }
  .c99.c99-launch .spine__rail { left: 9px; }
  .c99.c99-launch .ph,
  .c99.c99-launch .slip { grid-template-columns: 1fr; gap: 0; padding-left: 34px; }
  .c99.c99-launch .ph::before,
  .c99.c99-launch .ph--gate::before,
  .c99.c99-launch .ph--end::before { left: 9px; }
  .c99.c99-launch .ph__days,
  .c99.c99-launch .slip__k { text-align: left; margin-bottom: 0.6rem; }
  .c99.c99-launch .ph__days small { display: inline; margin-left: 0.6rem; }
}

/* ============ why ============ */
.c99.c99-launch .why { padding-block: 0 clamp(3.5rem, 7vw, 5.5rem); }
.c99.c99-launch .why__in { max-width: 720px; border-top: 1px solid var(--ink); padding-top: clamp(2rem, 4vw, 3rem); }
.c99.c99-launch .why h2 { margin-bottom: 1.2rem; }
.c99.c99-launch .why p {
  color: var(--ink-mute); font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  line-height: 1.7; margin: 0 0 1rem;
}
.c99.c99-launch .why p:last-child { margin-bottom: 0; }
.c99.c99-launch .why strong { color: var(--ink); font-weight: 700; }

/* ============ continuation to 99 ============
   The spine returns as a dotted rule, so the page reads as part of a
   longer story rather than a dead end. */
.c99.c99-launch .next { padding-block: 0 clamp(3.5rem, 8vw, 6rem); }
.c99.c99-launch .next__in {
  position: relative; display: grid;
  grid-template-columns: calc(var(--rail) - 22px) 1fr;
  gap: clamp(1.5rem, 4vw, 3.2rem);
}
.c99.c99-launch .next__rail {
  position: absolute; left: var(--rail); top: -40px; bottom: 8px; width: 1px;
  background: repeating-linear-gradient(to bottom, var(--rule) 0 4px, transparent 4px 10px);
}
.c99.c99-launch .next__marks {
  text-align: right; font-family: var(--mono); font-size: 0.95rem;
  color: var(--ink-soft); font-variant-numeric: tabular-nums; line-height: 2.6;
}
.c99.c99-launch .next__marks b { display: block; color: var(--blue); font-weight: 500; }
.c99.c99-launch .next h2 { margin-bottom: 1rem; }
.c99.c99-launch .next p {
  color: var(--ink-mute); max-width: 58ch; margin: 0 0 1.4rem;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem); line-height: 1.65;
}
.c99.c99-launch .next .more {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue); text-decoration: none;
  border-bottom: 1px solid var(--blue); padding-bottom: 2px;
}
.c99.c99-launch .next .more:hover { color: var(--ink); border-color: var(--ink); }
.c99.c99-launch .next__k { display: block; margin-bottom: 1rem; }
@media (max-width: 720px) {
  .c99.c99-launch .next__in { grid-template-columns: 1fr; padding-left: 34px; }
  .c99.c99-launch .next__rail { left: 9px; }
  .c99.c99-launch .next__marks { text-align: left; line-height: 1.8; margin-bottom: 1rem; }
  .c99.c99-launch .next__marks b { display: inline; margin-right: 0.8rem; }
}

/* ============ closer ============ */
.c99.c99-launch .closer { padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(3rem, 6vw, 4.5rem); }
.c99.c99-launch .closer .tag { display: block; margin-bottom: 1.4rem; }
.c99.c99-launch .closer h2 { margin-bottom: 1.5rem; }
.c99.c99-launch .closer p { max-width: 48ch; }
.c99.c99-launch .closer .btn--ghost { border-color: rgba(237,237,234,0.34); }
.c99.c99-launch .closer .btn--ghost:hover { border-color: var(--panel-ink); }

/* reduced motion: the spine is drawn complete rather than on scroll */
@media (prefers-reduced-motion: reduce) {
  .c99.c99-launch .spine__fill { height: 100% !important; }
}
