/* GoGrand Claude Challenge — redesign pass. Tokens first, then section order matches index-new.html. */

:root {
  --navy: #010e1c;
  --navy-soft: #0e2334;
  --navy-line: #263a4b;
  --coral: #ff6959;
  --coral-dark: #d94d40;
  --coral-ink: #bf3527;
  --cream: #f5f2ea;
  --paper: #fffdf8;
  --peach: #ffe8e2;
  --sage: #e9efe5;
  --blue-wash: #e8eff3;
  --white: #ffffff;
  --muted: #5d6b77;
  --light-muted: #a9b6c0;
  --line: #dcdfd6;
  --page: 1180px;
  --pad: max(20px, calc((100vw - var(--page)) / 2));
  --radius: 22px;
  --ease-out: cubic-bezier(.2, .75, .25, 1);
  --ease-spring: cubic-bezier(.3, 1.4, .45, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--navy);
  background: var(--paper);
  font-family: "Segoe UI Variable Display", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Faint grain keeps large flat color fields from feeling synthetic. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dt, dd { text-wrap: pretty; }
button, a { -webkit-tap-highlight-color: transparent; }

::selection { background: var(--coral); color: var(--navy); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #1668ff;
  outline-offset: 3px;
  border-radius: 4px;
}

.scroll-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.skip-link {
  position: fixed;
  z-index: 130;
  top: -90px;
  left: 12px;
  padding: 12px 18px;
  color: var(--navy);
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(1, 14, 28, .18);
  transition: top .2s ease;
}

.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 10;
  width: min(calc(100% - 40px), var(--page));
  height: 96px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  display: block;
  width: 172px;
  height: 63px;
  object-fit: cover;
  object-position: center;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px 7px;
  border-bottom: 2px solid var(--coral);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-cta span,
.button span { transition: transform .22s var(--ease-out); }
.header-cta:hover span { transform: translate(3px, -3px); }

/* ---------- Shared type ---------- */

.eyebrow,
.route-label,
.week-label {
  margin: 0;
  font-size: .72rem;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  margin-bottom: clamp(26px, 3.4vw, 44px);
}

.eyebrow-mark {
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 27px;
  background: var(--coral);
  border-radius: 3px;
  box-shadow: 14px 0 0 var(--navy);
}

.start-over .eyebrow-mark,
.join .eyebrow-mark { box-shadow: 14px 0 0 var(--cream); }
.join .eyebrow-mark { background: var(--navy); box-shadow: 14px 0 0 var(--paper); }

h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 850;
}

.button {
  min-height: 58px;
  padding: 17px 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  color: var(--navy);
  background: var(--coral);
  font: inherit;
  font-size: 1rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(217, 77, 64, .28);
  transition: transform .22s var(--ease-out), box-shadow .22s ease, background .22s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(217, 77, 64, .34);
}

.button:hover span { transform: translateX(4px); }
.button-dark:hover span { transform: translate(4px, -4px); }

.button-dark {
  color: var(--paper);
  background: var(--navy);
  box-shadow: 0 16px 36px rgba(1, 14, 28, .26);
}

.button-dark:hover {
  background: #0d2438;
  box-shadow: 0 22px 46px rgba(1, 14, 28, .3);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - 96px);
  padding: clamp(30px, 5vh, 70px) var(--pad) clamp(90px, 11vh, 130px);
  display: flex;
  align-items: center;
  overflow: clip;
}

.hero-arc {
  position: absolute;
  right: -16vw;
  top: -30vw;
  width: min(54vw, 780px);
  aspect-ratio: 1;
  border: clamp(44px, 7vw, 96px) solid rgba(255, 105, 89, .09);
  border-radius: 50%;
  animation: arc-turn 90s linear infinite;
}

.hero-arc::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(clamp(44px, 7vw, 96px) / -2 - 6px);
  width: 12px;
  height: 12px;
  background: var(--coral);
  border-radius: 3px;
  opacity: .5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--page));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(44px, 6vw, 96px);
}

.hero h1 {
  margin: 0 0 clamp(22px, 3vw, 32px);
  font-size: clamp(3.1rem, 5.9vw, 5.7rem);
  line-height: .99;
  letter-spacing: -.045em;
  font-weight: 870;
}

.hero h1 strong {
  font-weight: inherit;
  background-image: linear-gradient(var(--coral), var(--coral));
  background-repeat: no-repeat;
  background-position: 0 94%;
  background-size: 100% .14em;
}

.js .hero h1 strong {
  background-size: 0% .14em;
  transition: background-size 1s var(--ease-out) 1s;
}

.js.loaded .hero h1 strong { background-size: 100% .14em; }

.hero-line {
  max-width: 470px;
  margin: 0 0 clamp(30px, 4vw, 42px);
  color: #46535f;
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-date {
  margin: 18px 0 0;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral-ink);
}

.hero-date [data-countdown]:not(:empty)::before { content: "· "; }

.js .hero-enter {
  opacity: 0;
  transform: translateY(26px);
  animation: rise-in .85s var(--ease-out) forwards;
}

.js .hero h1.hero-enter { animation-delay: .1s; }
.js .hero-line.hero-enter { animation-delay: .22s; }
.js .button.hero-enter { animation-delay: .34s; }
.js .hero-date.hero-enter { animation-delay: .46s; }
.js .scroll-cue.hero-enter { animation-delay: .9s; }

.scroll-cue {
  position: absolute;
  right: var(--pad);
  bottom: 34px;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
}

.scroll-cue i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #c9cec1;
  border-radius: 50%;
  color: var(--coral-ink);
  font-size: 1rem;
  font-style: normal;
  animation: cue-bob 1.9s ease-in-out infinite;
}

/* ---------- Scroll story ---------- */

.story { padding: 0 var(--pad); }

.story-pin {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(16px, 2.6vw, 28px);
  padding-block: clamp(100px, 13vw, 170px);
  text-align: center;
}

.story-animated { height: 300vh; }

.story-animated .story-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding-block: 0;
}

.story-line {
  margin: 0;
  max-width: 780px;
  font-size: clamp(1.85rem, 4.6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.story-kicker { color: var(--coral-ink); }

.story-animated .story-line {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}

.story-animated .story-line.is-shown {
  opacity: 1;
  transform: none;
}

/* ---------- Workboard (hero visual) ---------- */

.workboard {
  position: relative;
  width: min(100%, 620px);
  aspect-ratio: 620 / 640;
  justify-self: end;
}

.board-grid {
  position: absolute;
  inset: 4% 0 0 10%;
  background:
    repeating-linear-gradient(0deg, rgba(1, 14, 28, .05) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(1, 14, 28, .05) 0 1px, transparent 1px 34px),
    var(--cream);
  border: 1px solid rgba(1, 14, 28, .08);
  border-radius: var(--radius);
}

.task-note {
  position: absolute;
  width: 44%;
  padding: 18px 20px 20px;
  background: var(--white);
  border: 1px solid rgba(1, 14, 28, .07);
  border-radius: 12px;
  box-shadow: 0 18px 34px rgba(1, 14, 28, .1);
  transform: rotate(var(--r));
}

.task-note span {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--coral-ink);
  font-size: .6rem;
  font-weight: 850;
  letter-spacing: .16em;
}

.task-note p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: -.01em;
}

.note-email { --r: -4deg; left: 0; top: 0; }
.note-plan { --r: 3deg; right: 1%; top: 13%; width: 41%; }
.note-compare { --r: -2deg; left: 4%; top: 38%; }

.board-tape {
  position: absolute;
  width: 74px;
  height: 22px;
  background: rgba(255, 105, 89, .45);
  border-radius: 2px;
}

.tape-one { left: 9%; top: -1.5%; transform: rotate(-12deg); }
.tape-two { right: 8%; top: 11%; transform: rotate(8deg); background: rgba(1, 14, 28, .18); }

.chat-sheet {
  position: absolute;
  right: 0;
  bottom: 2%;
  width: 57%;
  padding: 20px 22px 22px;
  background: var(--navy);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(1, 14, 28, .28);
  transform: rotate(1.4deg);
}

.chat-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--cream);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.chat-top i {
  width: 8px;
  height: 8px;
  background: #58e0a5;
  border-radius: 50%;
}

.chat-line {
  height: 9px;
  margin-bottom: 11px;
  border-radius: 4px;
  background: linear-gradient(100deg, #24384a 40%, #35526a 50%, #24384a 60%) 0 0 / 200% 100%;
  animation: line-shimmer 2.6s linear infinite;
}

.chat-line.long { width: 92%; }
.chat-line { width: 74%; }
.chat-line.short { width: 48%; animation-delay: .3s; }

.chat-answer {
  margin-top: 18px;
  padding: 13px 15px;
  background: rgba(255, 105, 89, .14);
  border-left: 3px solid var(--coral);
  border-radius: 0 9px 9px 0;
  color: var(--cream);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.45;
}

.chat-answer span { display: inline; }

.js .chat-answer span {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation: type-in 1.1s steps(24) 2s forwards;
}

.board-arrow {
  position: absolute;
  left: 39%;
  top: 47%;
  width: 31%;
  fill: none;
  stroke: var(--coral-dark);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.js .board-arrow .arrow-curve {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw 1s var(--ease-out) 1.35s forwards;
}

.js .board-arrow .arrow-head {
  opacity: 0;
  animation: fade-in .25s ease 2.2s forwards;
}

/* Entrance + idle motion for the board */

.js .board-grid { opacity: 0; animation: fade-in .7s ease .15s forwards; }

.js .task-note {
  opacity: 0;
  animation:
    note-drop .85s var(--ease-spring) forwards,
    note-float 7s ease-in-out 4s infinite;
}

.js .note-email { animation-delay: .45s, 4s; }
.js .note-plan { animation-delay: .62s, 4.9s; }
.js .note-compare { animation-delay: .8s, 5.6s; }

.js .board-tape { opacity: 0; animation: fade-in .4s ease 1s forwards; }

.js .chat-sheet {
  opacity: 0;
  animation: sheet-rise .9s var(--ease-spring) 1s forwards;
}

/* ---------- Start over (navy) ---------- */

.start-over {
  padding: clamp(110px, 14vw, 190px) var(--pad);
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(60px, 8vw, 130px);
  color: var(--paper);
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 105, 89, .12), transparent 30%),
    var(--navy);
}

.start-over .eyebrow { color: var(--light-muted); }

.start-over h2 { max-width: 640px; }

.start-note {
  max-width: 520px;
  margin: 26px 0 0;
  color: var(--light-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.new-chat-stack {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 520 / 470;
  justify-self: end;
}

.back-chat {
  position: absolute;
  width: 78%;
  height: 58%;
  padding: 16px 20px;
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  border-radius: 18px;
}

.back-chat span {
  color: var(--light-muted);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .06em;
}

.back-two { right: 0; top: 0; transform: rotate(3deg); opacity: .55; }
.back-one { right: 9%; top: 10%; transform: rotate(-2deg); opacity: .8; }

.front-chat {
  position: absolute;
  left: 0;
  bottom: 8%;
  width: 84%;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 34px 70px rgba(0, 0, 0, .4);
  transform: rotate(-1.2deg);
  color: var(--navy);
}

.window-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 20px;
  border-bottom: 1px solid #e7e4da;
}

.window-top i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e3ded2;
}

.window-top b {
  margin-left: 10px;
  font-size: .74rem;
  font-weight: 750;
  color: var(--muted);
  letter-spacing: .05em;
}

.front-chat > p {
  margin: 0;
  padding: 34px 24px 40px;
  font-size: 1.06rem;
  font-weight: 650;
  color: #6a7681;
}

.blank-cursor {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 6px;
  vertical-align: text-bottom;
  background: var(--coral);
  animation: blink 1.1s steps(1) infinite;
}

.margin-note {
  position: absolute;
  right: -1%;
  bottom: -4%;
  margin: 0;
  color: var(--coral);
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: -.01em;
  transform: rotate(-5deg);
}

.margin-note::before {
  content: "";
  position: absolute;
  left: -46px;
  top: 4px;
  width: 30px;
  height: 26px;
  border-left: 2.5px solid var(--coral);
  border-bottom: 2.5px solid var(--coral);
  border-radius: 0 0 0 22px;
  opacity: .75;
}

/* Staggered pop-in for the stack */

.js .new-chat-stack > * {
  opacity: 0;
  transition: opacity .7s ease, translate .8s var(--ease-spring);
  translate: 0 34px;
}

.js .new-chat-stack.is-visible > * { translate: 0 0; }
.js .new-chat-stack.is-visible .back-two { opacity: .55; }
.js .new-chat-stack.is-visible .back-one { opacity: .8; transition-delay: .12s; }
.js .new-chat-stack.is-visible .front-chat { opacity: 1; transition-delay: .26s; }
.js .new-chat-stack.is-visible .margin-note { opacity: 1; transition-delay: .55s; }

/* ---------- Method (a normal week) ---------- */

.method {
  padding: clamp(110px, 14vw, 190px) var(--pad);
  background: var(--paper);
}

.method-heading { max-width: 780px; }

.method-route {
  position: relative;
  margin-top: clamp(64px, 8vw, 110px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(34px, 5vw, 70px);
}

.route-line {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 7px;
  height: 2px;
  background: #e6e3d8;
}

.route-line span {
  display: block;
  height: 100%;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
}

.is-visible .route-line span {
  transform: scaleX(1);
  transition: transform 1.6s var(--ease-out) .2s;
}

.method-route article {
  position: relative;
  padding-top: 46px;
}

.route-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--coral);
  border-radius: 5px;
}

.js .method-route .route-dot { scale: 0; }

.js .method-route.is-visible .route-dot {
  scale: 1;
  transition: scale .5s var(--ease-spring);
}

.js .method-route.is-visible article:nth-child(3) .route-dot { transition-delay: .45s; }
.js .method-route.is-visible article:nth-child(4) .route-dot { transition-delay: .9s; }

.js .method-route article { opacity: 0; translate: 0 26px; }

.js .method-route.is-visible article {
  opacity: 1;
  translate: 0 0;
  transition: opacity .7s ease, translate .8s var(--ease-out);
}

.js .method-route.is-visible article:nth-child(3) { transition-delay: .3s; }
.js .method-route.is-visible article:nth-child(4) { transition-delay: .6s; }

.route-label {
  margin-bottom: 15px;
  color: var(--coral-ink);
}

.method-route h3 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.1vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 830;
}

.method-route article > p:last-child {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.6;
}

/* ---------- Curriculum ---------- */

.curriculum {
  padding: clamp(110px, 14vw, 190px) var(--pad);
  background: var(--cream);
}

.curriculum-head { max-width: 820px; }

.plan-list {
  margin-top: clamp(46px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.plan-row {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 10px 50px;
  align-items: baseline;
  padding: clamp(24px, 3.2vw, 38px) 0;
  border-bottom: 1px solid var(--line);
}

.plan-row h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 850;
}

.plan-row p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---------- Work ribbon ---------- */

.work-ribbon {
  position: relative;
  z-index: 2;
  width: 104%;
  margin: -34px 0 -34px -2%;
  padding: 20px 0;
  background: var(--navy);
  transform: rotate(-2deg);
  overflow: clip;
  box-shadow: 0 24px 50px rgba(1, 14, 28, .2);
}

.ribbon-track { display: flex; }

.ribbon-group {
  flex: none;
  display: flex;
  align-items: center;
  gap: clamp(26px, 3.6vw, 50px);
  padding-right: clamp(26px, 3.6vw, 50px);
  animation: ribbon-scroll 22s linear infinite;
  white-space: nowrap;
  color: var(--cream);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -.02em;
}

.ribbon-group b {
  color: var(--coral);
  font-size: .55em;
  font-weight: 400;
}

.ribbon-group .hollow {
  color: transparent;
  -webkit-text-stroke: 2px var(--cream);
}

/* ---------- Countdown ---------- */

.countdown {
  padding: clamp(90px, 11vw, 150px) var(--pad);
  background: var(--paper);
  color: var(--navy);
  text-align: center;
}

.countdown-title {
  margin: 0 0 clamp(30px, 4.5vw, 50px);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 830;
  letter-spacing: -.02em;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(20px, 5vw, 60px);
}

.count-cell {
  display: grid;
  gap: 10px;
  min-width: clamp(72px, 13vw, 150px);
}

.count-cell b {
  font-size: clamp(3rem, 10vw, 7.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.count-cell span {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--coral-ink);
}

/* ---------- Join ---------- */

.join {
  position: relative;
  padding: clamp(130px, 17vw, 230px) var(--pad) clamp(120px, 15vw, 200px);
  overflow: clip;
  color: var(--navy);
  background: var(--coral);
}

.join-shape {
  position: absolute;
  border-radius: 50%;
}

.shape-one {
  right: -140px;
  top: -160px;
  width: 480px;
  height: 480px;
  border: 64px solid rgba(255, 255, 255, .16);
  animation: arc-turn 70s linear infinite;
}

.shape-one::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -38px;
  width: 13px;
  height: 13px;
  background: var(--navy);
  border-radius: 3px;
  opacity: .55;
}

.shape-two {
  left: -160px;
  bottom: -200px;
  width: 460px;
  height: 460px;
  background: rgba(1, 14, 28, .07);
  border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
  animation: blob-drift 18s ease-in-out infinite alternate;
}

.join-copy {
  position: relative;
  z-index: 1;
  max-width: var(--page);
  margin-inline: auto;
  display: grid;
  justify-items: center;
  text-align: center;
}

.join .eyebrow { justify-content: center; }
.join h2 { max-width: 800px; font-size: clamp(2.9rem, 6vw, 5.6rem); }

.join-why {
  max-width: 560px;
  margin: 26px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(1, 14, 28, .82);
}

.join-intro {
  margin: 22px 0 0;
  font-size: 1.12rem;
  font-weight: 650;
}

.price-card {
  width: min(100%, 500px);
  margin-top: clamp(26px, 3.5vw, 42px);
  padding: clamp(26px, 4vw, 40px) clamp(22px, 3.4vw, 38px) clamp(24px, 3.4vw, 34px);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(1, 14, 28, .18);
  text-align: center;
}

.price-card .price {
  margin: 0;
  font-size: clamp(4.8rem, 9vw, 7.2rem);
}

.price-once {
  margin: 2px 0 0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--coral-ink);
}

.price-list {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  text-align: left;
}

.price-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 2px;
  border-top: 1px solid var(--line);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.45;
}

.price-list li:last-child { border-bottom: 1px solid var(--line); }

.price-list li::before {
  content: "+";
  flex: none;
  color: var(--coral-ink);
  font-weight: 800;
}

.price-card .button-dark { width: 100%; }

.price-ladder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.ladder-step {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(1, 14, 28, .3);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(1, 14, 28, .72);
}

.ladder-step.is-now {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

.ladder-step.is-done {
  opacity: .5;
  text-decoration: line-through;
}

.join-includes {
  margin: -8px 0 34px;
  font-size: 1.02rem;
  font-weight: 650;
  color: rgba(1, 14, 28, .88);
}

.price {
  margin: clamp(20px, 3vw, 36px) 0 clamp(26px, 3.4vw, 40px);
  font-size: clamp(7rem, 15vw, 12.5rem);
  line-height: .82;
  letter-spacing: -.07em;
  font-weight: 900;
}

.price-mask {
  display: block;
  overflow: clip;
}

.price-inner { display: block; }

.js .price .price-inner {
  translate: 0 108%;
  transition: translate .9s var(--ease-out) .15s;
}

.js .price.is-visible .price-inner,
.js .price-card.is-visible .price-inner { translate: 0 0; }

.join-action { display: grid; justify-items: center; }

.join .button-dark {
  min-height: 66px;
  padding: 20px 46px;
  font-size: 1.05rem;
}

.join-note {
  max-width: 430px;
  margin: 20px 0 0;
  font-size: .85rem;
  color: rgba(1, 14, 28, .78);
}

.checkout-status {
  max-width: 430px;
  margin: 16px 0 0;
  padding: 13px 16px;
  background: var(--paper);
  border-radius: 9px;
  font-size: .86rem;
  font-weight: 600;
}

/* ---------- FAQ ---------- */

.faq {
  width: min(calc(100% - 40px), var(--page));
  margin-inline: auto;
  padding-block: clamp(110px, 14vw, 190px);
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  align-items: start;
  gap: clamp(60px, 8vw, 130px);
}

.faq-heading { position: sticky; top: 80px; }
.faq h2 { font-size: clamp(2.4rem, 4.2vw, 3.9rem); }

.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  position: relative;
  padding: 27px 56px 27px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 18px;
  color: var(--coral-ink);
  font-size: 1.9rem;
  font-weight: 400;
  transition: transform .25s var(--ease-out);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  max-width: 640px;
  margin: -6px 0 30px;
  color: var(--muted);
  line-height: 1.65;
}

.faq details[open] p { animation: faq-open .45s var(--ease-out); }

/* ---------- Footer ---------- */

.site-footer {
  width: min(calc(100% - 40px), var(--page));
  margin-inline: auto;
  padding: 44px 0 64px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .78rem;
}

.site-footer img { width: 160px; height: 58px; object-fit: cover; object-position: center; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { text-underline-offset: 3px; }
.site-footer p { margin: 0; }

/* ---------- Mobile CTA ---------- */

.mobile-cta {
  position: fixed;
  z-index: 90;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: none;
  padding: 5px;
  background: rgba(255, 253, 248, .9);
  border: 1px solid rgba(1, 14, 28, .1);
  border-radius: 15px;
  box-shadow: 0 14px 38px rgba(1, 14, 28, .22);
  backdrop-filter: blur(12px);
  translate: 0 130%;
  transition: translate .4s var(--ease-out);
}

.mobile-cta a {
  display: block;
  padding: 15px 18px;
  color: var(--paper);
  background: var(--navy);
  border-radius: 11px;
  text-align: center;
  text-decoration: none;
  font-weight: 850;
}

/* ---------- Generic reveal ---------- */

.js [data-reveal]:not(.new-chat-stack):not(.method-route):not(.price) {
  opacity: 0;
  translate: 0 34px;
  transition: opacity .8s ease, translate .9s var(--ease-out);
}

.js [data-reveal].is-visible:not(.new-chat-stack):not(.method-route):not(.price) {
  opacity: 1;
  translate: 0 0;
}

.js .method-route,
.js .new-chat-stack,
.js .price { opacity: 1; }

/* ---------- Keyframes ---------- */

@keyframes rise-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  to { opacity: 1; }
}

@keyframes note-drop {
  from { opacity: 0; transform: translateY(-36px) rotate(calc(var(--r) + 6deg)); }
  60% { opacity: 1; }
  to { opacity: 1; transform: translateY(0) rotate(var(--r)); }
}

@keyframes note-float {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-6px) rotate(var(--r)); }
}

@keyframes sheet-rise {
  from { opacity: 0; transform: translateY(44px) rotate(3.5deg); }
  to { opacity: 1; transform: translateY(0) rotate(1.4deg); }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes type-in {
  to { clip-path: inset(0 0 0 0); }
}

@keyframes line-shimmer {
  to { background-position: -200% 0; }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes arc-turn {
  to { transform: rotate(360deg); }
}

@keyframes blob-drift {
  to { translate: 40px -30px; rotate: 14deg; }
}

@keyframes ribbon-scroll {
  to { transform: translateX(-100%); }
}


@keyframes faq-open {
  from { opacity: 0; translate: 0 -8px; }
  to { opacity: 1; translate: 0 0; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero { min-height: auto; padding-bottom: 130px; }
  .hero-inner { grid-template-columns: 1fr; gap: 70px; }
  .workboard { justify-self: center; }
  .start-over { grid-template-columns: 1fr; }
  .new-chat-stack { justify-self: start; margin-top: 10px; }
  .margin-note { right: 4%; }
  .method-route { grid-template-columns: 1fr; gap: 44px; padding-left: 34px; }
  .route-line { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .route-line span { transform: scaleY(0); transform-origin: top center; height: 100%; }
  .is-visible .route-line span { transform: scaleY(1); transition: transform 1.6s var(--ease-out) .2s; }
  .method-route article { padding-top: 0; padding-left: 14px; }
  .route-dot { left: -34px; top: 3px; }
  .faq { grid-template-columns: 1fr; gap: 56px; }
  .faq-heading { position: static; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; }

  .site-header { width: calc(100% - 32px); height: 78px; }
  .brand img { width: 142px; height: 52px; }
  .header-cta { display: none; }

  .hero { padding-top: 16px; padding-bottom: 120px; }
  .hero h1 { font-size: clamp(2.6rem, 11.5vw, 3.4rem); }
  .hero-line { font-size: 1.02rem; }
  .hero .button { width: 100%; }
  .scroll-cue { right: 20px; bottom: 26px; }

  .workboard { aspect-ratio: 620 / 700; }
  .task-note { width: 52%; padding: 13px 14px 15px; }
  .task-note p { font-size: .78rem; }
  .note-plan { width: 47%; }
  .chat-sheet { width: 68%; padding: 15px 16px 16px; }
  .chat-answer { font-size: .76rem; }
  .board-arrow { left: 34%; top: 44%; }
  .board-tape { width: 54px; height: 17px; }

  .start-over { padding-block: 110px; }
  .new-chat-stack { width: 100%; }
  .front-chat > p { padding: 26px 18px 30px; font-size: .95rem; }
  .margin-note { font-size: 1.05rem; right: 0; bottom: -7%; }

  .method { padding-block: 110px; }
  .curriculum { padding-block: 110px; }
  .plan-row { grid-template-columns: 1fr; gap: 6px; }
  .plan-row h3 { font-size: 1.6rem; }

  .countdown-title { font-size: 1.3rem; }
  .count-cell { min-width: 64px; }

  .work-ribbon { margin: -26px 0 -26px -3%; padding: 14px 0; }

  .join { padding-block: 130px 120px; }
  .join h2 { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .price { font-size: clamp(6rem, 30vw, 8.5rem); }
  .join .button-dark { width: 100%; }
  .shape-one { width: 300px; height: 300px; border-width: 42px; right: -120px; top: -110px; }
  .shape-two { width: 300px; height: 300px; left: -130px; bottom: -140px; }

  .faq { padding-block: 105px; }
  .faq h2 { font-size: 2.4rem; }

  .site-footer { grid-template-columns: 1fr; gap: 18px; padding-bottom: 130px; }

  .mobile-cta { display: block; }
  .past-hero .mobile-cta { translate: 0 0; }
  .join-in-view .mobile-cta { translate: 0 130%; }
}

/* ---------- Forced colors ---------- */

@media (forced-colors: active) {
  .scroll-progress span,
  .eyebrow-mark,
  .route-dot,
  .blank-cursor { background: CanvasText; }
  .hero h1 strong { background: none; text-decoration: underline; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }

  .js .hero-enter,
  .js [data-reveal],
  .js .task-note,
  .js .board-grid,
  .js .board-tape,
  .js .chat-sheet,
  .js .method-route article,
  .js .new-chat-stack > *,
  .js .new-chat-stack .back-two,
  .js .new-chat-stack .back-one {
    opacity: 1;
    animation: none;
    transform: none;
    translate: 0 0;
    rotate: none;
    scale: none;
  }

  .js .task-note { transform: rotate(var(--r)); }
  .js .chat-sheet { transform: rotate(1.4deg); }
  .js .new-chat-stack .back-two { transform: rotate(3deg); opacity: .55; }
  .js .new-chat-stack .back-one { transform: rotate(-2deg); opacity: .8; }
  .js .front-chat { transform: rotate(-1.2deg); }
  .js .margin-note { transform: rotate(-5deg); }
  .js .price .price-inner { translate: 0 0; }
  .js .method-route .route-dot { scale: 1; }
  .js .board-arrow .arrow-curve { stroke-dashoffset: 0; animation: none; }
  .js .board-arrow .arrow-head { opacity: 1; animation: none; }
  .js .chat-answer span { clip-path: none; animation: none; }
  .js .hero h1 strong { background-size: 100% .14em; }
  .route-line span, .is-visible .route-line span { transform: none; }
  .ribbon-group { animation: none; }
  .hero-arc, .shape-one, .shape-two { animation: none; }
  .chat-line { animation: none; }
  .blank-cursor { animation: none; }
}
