/* StudentBoard brand for the pilot landing and legal pages.
   Poppins (self hosted, SIL Open Font License), sky blue, navy, slate, mist. See DESIGN.md. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 600; font-display: swap; src: url("fonts/poppins-600i.woff2") format("woff2"); }

:root {
  --navy: #0D1B2A; --slate: #1E293B; --sky: #6AC3F0; --sky-soft: #99CFF4; --mist: #EBF6FF;
  --sky-ink: #0B6FA4; --gray: #566579; --line: #E2E8F0; --white: #FFFFFF;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
  --t-small: 0.875rem; --t-body: 1.0625rem; --t-lead: 1.3rem;
  --t-h3: 1.3rem; --t-h2: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); --t-quote: clamp(1.45rem, 1.05rem + 1.7vw, 2.1rem);
  --t-h1: clamp(2.2rem, 1rem + 5.2vw, 4.1rem);
  --gutter: clamp(18px, 4.5vw, 52px); --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 var(--t-body)/1.65 var(--font); color: var(--slate); background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--sky-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--white); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.block { padding-block: clamp(44px, 7vw, 96px); }
.block--mist { background: var(--mist); }
.block--navy { background: var(--navy); color: var(--white); }

/* Headings: weight 700, tight but readable */
h1, h2, h3 { font-family: var(--font); font-weight: 700; color: var(--navy); }
.block--navy h1, .block--navy h2, .block--navy h3 { color: var(--white); }
h1 { font-size: var(--t-h1); line-height: 1.06; letter-spacing: -0.025em; max-width: 15ch; }
h2 { font-size: var(--t-h2); line-height: 1.15; letter-spacing: -0.015em; max-width: 20ch; }
h3 { font-size: var(--t-h3); line-height: 1.25; }
.lead { font-size: var(--t-lead); line-height: 1.5; max-width: 34ch; margin-top: 20px; }
.measure { max-width: 62ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 10px; border: 2px solid var(--sky);
  background: var(--sky); color: var(--navy); font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--sky-soft); border-color: var(--sky-soft); color: var(--navy); }
.btn--navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--slate); border-color: var(--slate); color: var(--white); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }

/* Header */
.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.logo { display: block; line-height: 0; }
.logo img { height: 46px; width: auto; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.fine { color: var(--gray); font-size: var(--t-small); max-width: 30ch; line-height: 1.5; }

/* The step card: a real playbook step. One orchestrated moment on load. */
.step { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--sky); border-radius: 14px; padding: 22px 22px 20px; min-width: 0; }
.step__label { color: var(--gray); font-size: var(--t-small); }
.step__title { font-size: 1.15rem; font-weight: 600; color: var(--navy); line-height: 1.35; margin-top: 4px; }
.term { background: var(--navy); color: #E3ECF6; border-radius: 10px; padding: 14px 16px; margin: 16px 0; font: 400 0.84rem/1.6 var(--mono); }
.term__line { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.term__prompt { color: var(--sky-soft); }
.term__typed { display: inline-block; max-width: 15ch; overflow: hidden; white-space: nowrap; vertical-align: bottom; animation: typing 0.9s steps(15) 0.5s both; }
.term__reply { color: #C9D6E4; animation: appear 0.01s linear both; }
.term__reply:nth-of-type(2) { animation-delay: 1.8s; }
.term__reply:nth-of-type(3) { animation-delay: 2.3s; }
.term__reply:nth-of-type(4) { animation-delay: 2.8s; }
.term__reply:nth-of-type(5) { animation-delay: 3.3s; }
.step__see { font-size: 0.95rem; }
.step__see strong { font-weight: 600; color: var(--navy); }
.step__see ul { margin-top: 6px; }
.step__see li { padding-left: 24px; position: relative; }
.step__see li::before { content: "\2713"; position: absolute; left: 0; color: var(--sky-ink); font-weight: 700; }
.step__done { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.step__box { width: 24px; height: 24px; border: 2px solid var(--slate); border-radius: 7px; display: grid; place-items: center; font-size: 0.85rem; line-height: 1; color: var(--navy);
  animation: ticked 0.35s ease-out 4.1s both; }
.step__box::after { content: "\2713"; font-weight: 700; animation: appear 0.01s linear 4.1s both; }
@keyframes typing { from { max-width: 0; } to { max-width: 15ch; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes ticked { from { background: var(--white); border-color: var(--slate); } to { background: var(--sky); border-color: var(--sky-ink); } }

/* Intro: the problem, and how a day works */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.intro__text { margin-top: 18px; }
.days > div { padding-block: 18px; border-top: 3px solid var(--sky); }
.days > div + div { margin-top: 6px; }
.days dt { font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.days dd { margin-top: 4px; }

/* The four weeks: a real sequence, so numbered */
.weeks { margin-top: 36px; counter-reset: week; border-left: 2px solid var(--line); margin-left: 17px; max-width: 760px; }
.weeks li { position: relative; padding: 0 0 38px 44px; counter-increment: week; }
.weeks li:last-child { padding-bottom: 0; }
.weeks li::before { content: counter(week); position: absolute; left: -19px; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--sky); color: var(--navy);
  font-weight: 700; display: grid; place-items: center; }
.weeks p { margin-top: 6px; }
.weeks .end { color: var(--navy); }
.weeks .end b { font-weight: 600; color: var(--sky-ink); }
.note { margin-top: 28px; color: var(--gray); font-size: var(--t-small); max-width: 62ch; }

/* WHY (dark) */
.why { max-width: 820px; }
.why blockquote { font: italic 600 var(--t-quote)/1.3 var(--font); color: var(--white); }
.why cite { display: block; margin-top: 18px; font: 600 var(--t-small)/1.4 var(--font); color: var(--sky-soft); font-style: normal; }
.why__story { margin-top: 34px; display: grid; gap: 14px; color: #D3DEEA; max-width: 62ch; }

/* Who it is for */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); }
.fit ul { margin-top: 16px; }
.fit li { position: relative; padding: 10px 0 10px 24px; border-top: 1px solid var(--line); }
.fit li::before { content: ""; position: absolute; left: 2px; top: 1.1em; width: 8px; height: 8px; background: var(--sky); border-radius: 2px; }
.fit--no li::before { background: var(--gray); }

/* Questions */
.faq { margin-top: 28px; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding-block: 4px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding-block: 14px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; color: var(--sky-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 14px; max-width: 62ch; }

/* Final call and footer */
.final h2 { max-width: 16ch; }
.final p { margin-top: 12px; max-width: 46ch; }
.final .cta-row { margin-top: 26px; }
.foot { padding-block: 40px; font-size: var(--t-small); color: #BFCCDA; }
.foot a { color: var(--sky-soft); }
.foot a:hover { color: var(--white); }
.foot__brand { font-weight: 700; font-size: 1.2rem; color: var(--white); letter-spacing: -0.01em; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; }
.foot__note { margin-top: 14px; max-width: 70ch; }

/* Legal pages */
.prose { max-width: 740px; }
.prose h1 { max-width: none; font-size: clamp(2rem, 1rem + 3.4vw, 3rem); }
.prose section { margin-top: 44px; scroll-margin-top: 16px; }
.prose h2 { max-width: none; font-size: 1.6rem; }
.prose h2 + p, .prose h2 + ul { margin-top: 12px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li { margin-top: 6px; }
.prose .upd { color: var(--gray); font-size: var(--t-small); margin-top: 10px; }

@media (max-width: 900px) {
  .hero, .intro, .fit { grid-template-columns: 1fr; }
  h1 { max-width: 18ch; }
}
@media (max-width: 480px) {
  .btn { width: 100%; }
  .btn--small { width: auto; }
  .logo img { height: 40px; }
  .term { font-size: 0.78rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .term__typed, .term__reply, .step__box, .step__box::after { animation: none; }
  .step__box { background: var(--sky); border-color: var(--sky-ink); }
}
