:root {
  --ink: oklch(19% 0.025 170);
  --muted: oklch(43% 0.032 170);
  --chalk: oklch(97% 0.006 170);
  --wash: oklch(92% 0.014 170);
  --sheet: oklch(100% 0 0);
  --rule: oklch(82% 0.016 170);
  --forest: oklch(22% 0.054 166);
  --forest-2: oklch(28% 0.071 166);
  --teal: oklch(48% 0.105 184);
  --blue: oklch(33% 0.074 235);
  --gold: oklch(79% 0.151 86);
  --gold-deep: oklch(66% 0.145 80);
  --warning: oklch(38% 0.09 35);
  --shell: 1180px;
  --body: "Segoe UI", "Aptos", Arial, sans-serif;
  --utility: "Aptos Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--chalk);
  font-family: var(--body);
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ol, dl, dd { margin-top: 0; }

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--forest);
  background: var(--gold);
  transform: translateY(-160%);
  transition: transform 0.18s cubic-bezier(.22, 1, .36, 1);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  color: var(--chalk);
  background: color-mix(in oklch, var(--forest) 94%, black 6%);
  border-bottom: 1px solid color-mix(in oklch, var(--chalk) 16%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--forest);
  background: var(--gold);
  border: 1px solid color-mix(in oklch, var(--chalk) 35%, transparent);
  border-radius: 6px;
  font-family: var(--utility);
  font-size: 0.78rem;
  font-weight: 900;
}

.brand-mark-small {
  width: 32px;
  height: 32px;
  font-size: 0.68rem;
}

.brand-name { font-size: 1.06rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 23px;
  font-size: 0.94rem;
}

.site-nav a {
  color: color-mix(in oklch, var(--chalk) 82%, transparent);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--gold); }

.site-nav .nav-cta {
  padding: 9px 14px;
  color: var(--forest);
  background: var(--gold);
  border-radius: 6px;
  font-weight: 850;
}

.menu-toggle {
  display: none;
  color: var(--chalk);
  background: transparent;
  border: 1px solid color-mix(in oklch, var(--chalk) 35%, transparent);
  border-radius: 6px;
  padding: 8px 13px;
  font: inherit;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: var(--chalk);
  background:
    radial-gradient(circle at 86% 13%, color-mix(in oklch, var(--gold) 34%, transparent) 0 9rem, transparent 9.2rem),
    linear-gradient(108deg, var(--forest) 0%, var(--forest) 52%, var(--blue) 52.2%, var(--blue) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 118px;
  background: linear-gradient(180deg, transparent, color-mix(in oklch, black 18%, transparent));
  pointer-events: none;
}

.hero-field {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56vw;
  height: 36%;
  background:
    linear-gradient(135deg, transparent 0 48%, color-mix(in oklch, var(--gold) 42%, transparent) 48% 50%, transparent 50%),
    color-mix(in oklch, var(--forest-2) 62%, var(--forest));
  clip-path: polygon(0 22%, 78% 0, 100% 100%, 0 100%);
  opacity: 0.72;
}

.hero-screens {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-phone {
  position: absolute;
  width: 250px;
  background: var(--sheet);
  border: 6px solid var(--sheet);
  border-radius: 14px;
  box-shadow: 18px 24px 0 color-mix(in oklch, black 24%, transparent);
}

.hero-phone-study {
  right: 12vw;
  top: 70px;
  width: 282px;
  z-index: 2;
}

.hero-phone-practice {
  right: 27vw;
  top: 222px;
  width: 222px;
  z-index: 1;
}

.hero-phone-review {
  right: 3vw;
  bottom: -68px;
  width: 238px;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.28fr);
  gap: 48px;
  align-items: end;
  min-height: 720px;
  padding-block: 76px 50px;
}

.hero-copy { max-width: 760px; }

.label {
  margin-bottom: 18px;
  color: var(--teal);
  font-family: var(--utility);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
}

.label-gold { color: var(--gold); }

h1,
h2,
h3 {
  margin-bottom: 0;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(4.1rem, 10vw, 6rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
  line-height: 1.02;
}

.hero-line {
  max-width: 720px;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 30px;
  color: color-mix(in oklch, var(--chalk) 83%, transparent);
  font-size: 1.2rem;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 0.18s cubic-bezier(.22, 1, .36, 1),
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.button:hover,
.button:focus-visible { transform: translateY(-2px); }

.button-primary {
  color: var(--forest);
  background: var(--gold);
}

.button-primary:hover,
.button-primary:focus-visible { background: color-mix(in oklch, var(--gold) 84%, white 16%); }

.button-secondary {
  color: var(--chalk);
  border-color: color-mix(in oklch, var(--chalk) 42%, transparent);
  background: color-mix(in oklch, var(--chalk) 8%, transparent);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.button-light {
  color: var(--forest);
  background: var(--chalk);
}

.route-slip {
  max-width: 360px;
  padding: 24px;
  color: var(--ink);
  background: var(--chalk);
  border: 2px solid var(--gold);
  border-radius: 12px;
  box-shadow: 12px 12px 0 color-mix(in oklch, black 22%, transparent);
}

.route-slip p {
  margin-bottom: 18px;
  color: var(--forest);
  font-family: var(--utility);
  font-size: 0.8rem;
  font-weight: 900;
}

.route-slip ol {
  display: grid;
  gap: 14px;
  padding: 0;
  margin-bottom: 0;
  list-style: none;
}

.route-slip li {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.route-slip span {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.proof-strip {
  color: var(--forest);
  background: var(--sheet);
  border-block: 1px solid var(--rule);
}

.proof-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-inner span {
  min-height: 60px;
  padding: 18px 20px 16px 0;
  border-right: 1px solid var(--rule);
  font-family: var(--utility);
  font-size: 0.78rem;
  font-weight: 850;
}

.proof-inner span:last-child { border-right: 0; }

.section { padding-block: clamp(76px, 10vw, 124px); }

.section-heading {
  max-width: 860px;
  margin-bottom: 46px;
}

.section-heading p:last-child,
.screen-header > p {
  max-width: 590px;
  color: var(--muted);
  font-size: 1.08rem;
}

.route-section { background: var(--chalk); }

.route-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(40px, 7vw, 86px);
  align-items: start;
}

.route-board {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.route-board article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 184px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}

.route-board article:last-child { border-bottom: 0; }

.route-tag {
  margin-bottom: 12px;
  color: var(--teal);
  font-family: var(--utility);
  font-size: 0.76rem;
  font-weight: 850;
}

.route-copy p:not(.route-tag),
.screen-copy p:not(.route-tag) {
  max-width: 440px;
  color: var(--muted);
  text-wrap: pretty;
}

.route-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 112px;
  padding: 14px;
  color: var(--forest);
  background: color-mix(in oklch, var(--gold) 78%, white 22%);
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-family: var(--utility);
  font-size: 0.78rem;
  font-weight: 900;
}

.screen-section {
  color: var(--chalk);
  background: var(--forest);
}

.screen-header {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
  gap: clamp(34px, 7vw, 84px);
  align-items: end;
  margin-bottom: 54px;
}

.screen-header .label { color: var(--gold); }
.screen-header > p { color: color-mix(in oklch, var(--chalk) 78%, transparent); }

.screen-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
}

.screen-card {
  display: grid;
  grid-template-columns: 0.8fr 0.9fr;
  gap: 24px;
  align-items: end;
  min-height: 390px;
  padding: 26px;
  color: var(--ink);
  background: var(--chalk);
  border-radius: 14px;
  overflow: hidden;
}

.screen-card-wide {
  grid-row: span 2;
  grid-template-columns: 1fr;
  min-height: 760px;
  color: var(--chalk);
  background: var(--blue);
}

.screen-card-wide .route-tag { color: var(--gold); }
.screen-card-wide .screen-copy p:not(.route-tag) { color: color-mix(in oklch, var(--chalk) 78%, transparent); }

.screen-card img {
  justify-self: center;
  align-self: end;
  width: auto;
  max-height: 380px;
  border: 1px solid color-mix(in oklch, var(--ink) 22%, transparent);
  border-radius: 12px;
  background: var(--sheet);
  box-shadow: 10px 10px 0 color-mix(in oklch, var(--teal) 18%, transparent);
}

.screen-card-wide img {
  max-height: 660px;
  border-color: color-mix(in oklch, var(--chalk) 38%, transparent);
  box-shadow: 14px 14px 0 color-mix(in oklch, var(--gold) 36%, transparent);
}

.use-section { background: var(--wash); }

.use-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 78px);
  align-items: start;
}

.use-list {
  border-top: 2px solid var(--ink);
}

.use-list p {
  display: grid;
  grid-template-columns: minmax(150px, 0.44fr) 1fr;
  gap: 20px;
  padding: 20px 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}

.use-list span {
  color: var(--ink);
  font-weight: 900;
}

.boundary-section { background: var(--chalk); }

.boundary-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 80px);
  padding: 56px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.boundary-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.boundary-copy p:last-child {
  margin-bottom: 0;
  color: var(--warning);
}

.faq-section {
  padding-top: 0;
  background: var(--chalk);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(34px, 8vw, 90px);
}

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

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 850;
}

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

.faq-list summary::after {
  content: "+";
  color: var(--teal);
  font-size: 1.35rem;
  font-weight: 500;
}

.faq-list details[open] summary::after { content: "-"; }

.faq-list details p {
  max-width: 600px;
  padding: 0 42px 22px 0;
  margin-bottom: 0;
  color: var(--muted);
}

.faq-list a {
  color: var(--teal);
  font-weight: 750;
}

.final-cta {
  color: var(--chalk);
  background: var(--blue);
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 62px;
}

.final-cta h2 {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--chalk);
}

.site-footer {
  color: color-mix(in oklch, var(--chalk) 74%, transparent);
  background: color-mix(in oklch, var(--forest) 96%, black 4%);
  border-top: 1px solid color-mix(in oklch, var(--chalk) 12%, transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 110px;
  font-size: 0.86rem;
}

.footer-brand { color: var(--chalk); }
.footer-inner p { margin-bottom: 0; }

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-inner nav a { text-underline-offset: 4px; }

.footer-inner nav a:hover,
.footer-inner nav a:focus-visible { color: var(--gold); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 1120px) {
  .hero-phone-study { right: 7vw; }
  .hero-phone-practice { right: 22vw; }
  .hero-phone-review { right: -4vw; }
}

@media (max-width: 940px) {
  .hero {
    min-height: auto;
    background:
      radial-gradient(circle at 92% 82%, color-mix(in oklch, var(--gold) 26%, transparent) 0 7rem, transparent 7.2rem),
      linear-gradient(180deg, var(--forest) 0%, var(--forest) 58%, var(--blue) 58.2%, var(--blue) 100%);
  }

  .hero-field { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 760px;
    padding-block: 60px 28px;
  }

  .route-slip {
    max-width: 420px;
    margin-top: 18px;
  }

  .hero-phone-study {
    right: 20px;
    top: auto;
    bottom: 28px;
    width: 190px;
    opacity: 0.9;
  }

  .hero-phone-practice,
  .hero-phone-review { display: none; }

  .proof-inner,
  .route-grid,
  .screen-header,
  .screen-stage,
  .use-panel,
  .boundary-panel,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .proof-inner span {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .proof-inner span:last-child { border-bottom: 0; }

  .screen-card,
  .screen-card-wide {
    grid-row: auto;
    min-height: auto;
  }

  .screen-card-wide img { max-height: 620px; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 680px) {
  .shell { width: min(var(--shell), calc(100% - 32px)); }
  .header-inner { min-height: 66px; }
  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 18px;
    background: color-mix(in oklch, var(--forest) 96%, black 4%);
    border-bottom: 1px solid color-mix(in oklch, var(--chalk) 16%, transparent);
  }

  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: 13px 4px; }
  .site-nav .nav-cta { margin-top: 5px; text-align: center; }

  h1 { font-size: clamp(3.6rem, 21vw, 5rem); }
  h2 { font-size: clamp(2.35rem, 13vw, 3.2rem); }

  .hero-inner {
    min-height: 780px;
    padding-block: 52px 28px;
  }

  .hero-lede { font-size: 1.06rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }

  .route-slip {
    padding: 20px;
    box-shadow: 8px 8px 0 color-mix(in oklch, black 20%, transparent);
  }

  .hero-phone-study {
    width: 162px;
    right: 12px;
    bottom: 18px;
  }

  .route-board article {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .route-mark {
    min-width: 0;
    min-height: 48px;
    justify-self: start;
  }

  .screen-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .screen-card img {
    max-height: none;
    width: 100%;
    box-shadow: 8px 8px 0 color-mix(in oklch, var(--teal) 17%, transparent);
  }

  .screen-card-wide img { box-shadow: 10px 10px 0 color-mix(in oklch, var(--gold) 30%, transparent); }

  .use-list p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .final-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 52px;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-block: 32px;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
