/* The public website (workers/study/src/site.ts). Tokens as in ../styles.css, light theme. */
:root {
  --ground: #f4f6f8; --surface: #fff; --surface-2: #eaeef2; --panel-alt: #e7ecf0;
  --ink: #18222e; --ink-2: #4b5868; --muted: #7b8794; --line: #d9dfe6;
  --accent: #0e7c7b; --accent-dark: #0a5f5e; --accent-soft: #d8eeee;
  --font-display: Newsreader, Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 18px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* clip, not hidden: the hero art bleeds off the right edge, and a hidden overflow would stop the header sticking */
.page { overflow-x: clip; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
img { display: block; }
section[id], div[id] { scroll-margin-top: 72px; }
/* 1200px of content, as in the design (which sizes boxes without their padding) */
.wrap { max-width: 1248px; margin: 0 auto; padding-inline: 24px; }
.eyebrow { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dark); }

/* buttons */
.btn { display: inline-block; padding: 15px 24px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 18px; line-height: 1.3; }
.btn:hover { background: var(--surface-2); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.white { background: #fff; border-color: #fff; color: var(--accent-dark); font-weight: 700; }
.btn.white:hover { filter: brightness(0.96); color: var(--accent-dark); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(244, 246, 248, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { padding-block: 14px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.logo { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo img { width: 36px; height: 36px; }
.logo span { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.nav { display: flex; gap: 22px; font-size: 16px; flex-wrap: wrap; }
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.acts { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.btn-text { padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 16px; color: var(--ink); }
.btn-text:hover { background: var(--surface-2); color: var(--ink); }
.btn-sm { padding: 9px 16px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; }
.btn-sm:hover { background: var(--accent-dark); color: #fff; }
.btn-sm .short { display: none; }

/* hero */
.hero { padding-top: 72px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 40px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(48px, 6.4vw, 88px); font-weight: 500; line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.lede { font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.note { font-size: 15px; color: var(--muted); }
.hero-art { position: relative; height: 600px; min-width: 0; }
.pill { position: absolute; inset: 20px -400px -60px 40px; background: var(--accent-soft); border-radius: 300px 0 0 300px; }
.devices { position: absolute; inset: 0; transform-origin: 0 0; }
.devices .ipad { position: absolute; left: 150px; top: 0; width: 579px; height: auto; border-radius: 31px; box-shadow: 0 22px 49px -16px rgba(4, 30, 30, 0.5); }
.devices .phone { position: absolute; left: 0; top: 150px; width: 284px; height: auto; border-radius: 42px; transform: rotate(-5deg); transform-origin: 0 0; box-shadow: 0 31px 56px -15px rgba(4, 30, 30, 0.6); }

/* curricula strip */
.strip { background: var(--surface); border-block: 1px solid var(--line); }
.strip-in { padding-block: 22px; display: flex; gap: 14px 36px; align-items: center; flex-wrap: wrap; }
.strip .label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.strip .name { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink-2); }
.strip .more { font-size: 15px; color: var(--muted); }

/* the demo video */
.demo { padding-top: 88px; display: flex; flex-direction: column; gap: 28px; }
.demo-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.demo-head h2 { font-family: var(--font-display); font-size: clamp(36px, 4.2vw, 56px); font-weight: 500; line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; }
.demo-head p { font-size: 19px; color: var(--ink-2); text-wrap: pretty; }
.demo-frame { border-radius: 20px; overflow: hidden; background: #0b171f; box-shadow: 0 30px 60px -24px rgba(4, 30, 30, 0.45); }
.demo-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0b171f; }
.demo-go { display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; }

/* feature rows */
.features { padding-top: 96px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 96px; }
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; }
.ftext { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.ftext h2, .curricula h2 { font-family: var(--font-display); font-size: clamp(36px, 4.2vw, 56px); font-weight: 500; line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; }
.ftext p, .curricula .intro p { font-size: 19px; color: var(--ink-2); text-wrap: pretty; }
.ftext ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ftext li { display: flex; gap: 12px; font-size: 17px; line-height: 1.45; }
.ftext li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.panel { position: relative; height: 540px; border-radius: 24px; overflow: hidden; min-width: 0; }
.panel.teal { background: var(--accent-soft); }
.panel.grey { background: var(--panel-alt); }
.panel .phone { position: absolute; left: 50%; top: 56px; width: 284px; height: auto; margin-left: -142px; border-radius: 42px; transform-origin: 0 0; box-shadow: 0 25px 50px -19px rgba(4, 30, 30, 0.6); }
.panel .tilt-l { transform: rotate(-4deg); }
.panel .tilt-r { transform: rotate(4deg); }
/* Listen: the player sits at the foot of the screen, so this phone hangs from the top of its panel instead */
.panel .up { top: auto; bottom: 56px; transform-origin: 50% 100%; }
/* two columns from 976px: text and picture alternate sides; stacked, the text comes first */
@media (min-width: 976px) { .feature.flip .ftext { order: 2; } .feature.flip .panel { order: 1; } }

/* everything else */
.extras { padding-top: 72px; padding-bottom: 96px; }
.extras h2 { margin-bottom: 32px; font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 46px); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cell { background: var(--surface); padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.cell h3 { font-weight: 700; font-size: 19px; line-height: 1.3; }
.cell p { font-size: 16.5px; color: var(--ink-2); text-wrap: pretty; }

/* curricula */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.curricula { padding-block: 88px; }
.curricula .intro { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin-bottom: 40px; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.pack { background: var(--ground); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.pack h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.15; }
.pack .sub { font-size: 15px; font-weight: 600; color: var(--accent-dark); line-height: 1.4; }
.pack p { font-size: 16px; color: var(--ink-2); text-wrap: pretty; }

/* closing call to action */
.cta { background: var(--accent); color: #fff; }
.cta-in { padding-block: 88px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.cta h2 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 68px); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; max-width: 14em; text-wrap: balance; }
.cta p { font-size: 20px; color: var(--accent-soft); max-width: 34em; }
/* register interest, on the teal band */
.reg { width: 100%; max-width: 900px; display: flex; flex-direction: column; gap: 16px; margin-top: 6px; }
.reg-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.reg label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; color: #fff; }
.reg label em { font-style: normal; font-weight: 400; color: var(--accent-soft); }
.reg input, .reg select { width: 100%; padding: 13px 14px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 10px; background: #fff; color: var(--ink); font: 400 17px/1.3 var(--font-body); }
.reg input:focus-visible, .reg select:focus-visible, .btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.reg-go { display: flex; gap: 14px 18px; align-items: center; flex-wrap: wrap; }
.reg-go .btn { cursor: pointer; font-family: var(--font-body); }
.reg-note { font-size: 14.5px; color: var(--accent-soft); }
.reg-note a, .thanks a { color: #fff; text-decoration: underline; }
.reg-err { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fff; color: #9b2c2c; font-size: 16px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { padding: 22px 24px; border-radius: 14px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3); max-width: 640px; }
.thanks h3 { font-family: var(--font-display); font-size: 28px; font-weight: 500; margin-bottom: 6px; }
.thanks p { font-size: 18px; }

/* terms and privacy */
.legal { max-width: 768px; padding-top: 64px; padding-bottom: 88px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 56px); font-weight: 500; line-height: 1.05; letter-spacing: -0.015em; }
.legal .updated { margin: 10px 0 28px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }
.legal h2 { margin: 36px 0 10px; font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.2; }
.legal p, .legal li { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal strong { color: var(--ink); }
.legal a { text-decoration: underline; }

/* footer */
.foot { padding-top: 40px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 18px; font-size: 14.5px; color: var(--muted); }
.foot-row { display: flex; gap: 10px 20px; align-items: center; flex-wrap: wrap; }
.foot-row .name { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); }
.foot-row a { color: var(--ink-2); }
.foot-row a:hover { color: var(--ink); }
.foot-row .copy { margin-left: auto; }
.foot p { max-width: 80ch; line-height: 1.6; text-wrap: pretty; }

/* one column: the hero art sits under the text and needs its full height, or the devices cover the curricula strip */
@media (max-width: 1047px) {
  .hero-art { height: 800px; }
  .pill { bottom: 0; }
}
/* phones: keep Sign in and the main button, and shrink the hero art */
@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .btn-sm .long { display: none; }
  .btn-sm .short { display: inline; }
  .nav { display: none; }
  .bar { gap: 12px; }
  .logo span { font-size: 21px; }
  .btn-text { padding-inline: 10px; }
  .btn-sm { padding-inline: 12px; }
  .hero { padding-top: 48px; }
  .hero-art { height: 500px; }
  .devices { transform: scale(0.62); }
  .pill { inset: 10px -400px 0 24px; }
}
