/* StudyFrames landing page. The booklet's world on screen: deep navy nights, a warm sun, white
   pages; Bricolage Grotesque for headlines, Lexend for reading. Dark and light sections alternate
   like spreads in the booklet. */
@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("fonts/Lexend-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("fonts/Lexend-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("fonts/Lexend-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("fonts/Lexend-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("fonts/Lexend-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #070e24; --navy: #0b1530; --navy-2: #121f48; --navy-3: #1a2c63; --line-dark: rgba(255,255,255,.1);
  --paper: #ffffff; --mist: #f3f6fc; --cream: #fff7ec; --ink: #0b1530; --ink-2: #34406a; --muted: #67718f; --line: #e3e8f3;
  --blue: #1668ff; --blue-2: #0a55e0; --sky: #19c2ff; --sun: #ff9500; --sun-2: #ff6a00; --gold: #ffc23d;
  --green: #12b76a; --green-soft: #e3f8ee; --amber: #f5a524; --amber-soft: #fff3dc; --red: #f04438; --violet: #7a5af8; --pink: #ee46bc;
  --on-dark: #e9eeff; --on-dark-2: rgba(222,230,255,.72);
  --display: "Bricolage", "Lexend", system-ui, sans-serif;
  --body: "Lexend", system-ui, "Segoe UI", sans-serif;
  --r-lg: 28px; --r: 18px; --r-sm: 12px;
  --shadow: 0 2px 4px rgba(11,21,48,.05), 0 24px 48px -20px rgba(11,21,48,.28);
  --shadow-dark: 0 30px 80px -24px rgba(0,0,0,.7);
  --wrap: 1200px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; line-height: 1.04; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

/* ---------------------------------------------------------------- buttons, chips */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .95rem 1.4rem; border-radius: 999px; font: 600 1rem/1 var(--body); text-decoration: none; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn.sun { background: linear-gradient(135deg, var(--gold), var(--sun) 45%, var(--sun-2)); color: #1b0f00; box-shadow: 0 12px 30px -10px rgba(255,122,0,.75); }
.btn.blue { background: var(--blue); color: #fff; box-shadow: 0 12px 30px -12px rgba(22,104,255,.8); }
.btn.glass { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.btn.line { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11,21,48,.06); }
.btn.small { padding: .7rem 1.05rem; font-size: .92rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font: 700 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--sun-2); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); }
.dark .eyebrow, .night .eyebrow { color: var(--gold); }
.lede { font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem); color: var(--ink-2); max-width: 60ch; }
.dark .lede, .night .lede, .students .lede { color: var(--on-dark-2); }
.h-xl { font-size: clamp(2.5rem, 1.3rem + 4.2vw, 4.7rem); }
.h-lg { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.7rem); }
.h-md { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.05rem); }
.sun-text { background: linear-gradient(100deg, var(--gold), var(--sun) 40%, var(--sun-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.blue-text { background: linear-gradient(100deg, var(--blue), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); background: rgba(7,14,36,.42); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 rgba(255,255,255,.06); transition: background .3s; }
.top.solid { background: rgba(7,14,36,.88); }
.top .bar { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.top .logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; font: 800 1.22rem/1 var(--display); letter-spacing: -.02em; white-space: nowrap; flex: none; }
.top .logo img { width: 32px; height: 32px; border-radius: 9px; }
.top .logo b { color: var(--sky); font-weight: 800; }
.top nav { display: flex; gap: .15rem; margin: 0 auto; }
.top nav a { color: rgba(233,238,255,.82); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .55rem .9rem; border-radius: 999px; white-space: nowrap; transition: color .2s, background .2s; }
.top nav a:hover { color: #fff; background: rgba(255,255,255,.09); }
.top nav .only-menu { display: none; }
.top .end { display: flex; gap: 1rem; align-items: center; flex: none; }
.top .signin { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.top .signin:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 12px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; margin: auto; }
@media (max-width: 1100px) {
  .top nav { display: none; }
  .top .end { margin-left: auto; }
  .menu-btn { display: grid; }
  .top.open nav { display: grid; position: absolute; top: 68px; left: 12px; right: 12px; background: var(--navy); border: 1px solid var(--line-dark); border-radius: 20px; padding: .6rem; margin: 0; box-shadow: var(--shadow-dark); }
  .top.open nav a { padding: .9rem 1rem; font-size: 1.05rem; }
}
@media (max-width: 560px) {
  .top .signin, .top .end .btn { display: none; }
  .top nav .only-menu { display: block; }
  .top nav .cta { margin-top: .4rem; text-align: center; font-weight: 700; color: #1b0f00; background: linear-gradient(135deg, var(--gold), var(--sun) 45%, var(--sun-2)); }
}

/* ---------------------------------------------------------------- sections */
section { position: relative; }
.dark { background: var(--navy); color: var(--on-dark); }
.night { background: radial-gradient(1200px 700px at 80% -10%, #1b2f6e 0%, transparent 60%), radial-gradient(900px 600px at -10% 110%, #14245a 0%, transparent 60%), var(--night); color: var(--on-dark); }
.pad { padding-block: clamp(5rem, 9vw, 8.5rem); }
.head { display: grid; gap: 1.1rem; max-width: 820px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------------------------------------------------------------- hero */
.hero { min-height: 100svh; padding-top: 120px; padding-bottom: 5rem; overflow: hidden; isolation: isolate; display: flex; align-items: center; }
.hero .sunball { position: absolute; z-index: -1; width: clamp(420px, 52vw, 780px); aspect-ratio: 1; right: -14%; top: 76px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd27a 0%, #ff9d1c 32%, #ff6a00 55%, rgba(255,106,0,0) 70%); filter: saturate(1.1); opacity: .9; animation: breathe 9s ease-in-out infinite; }
.hero .stars { position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.7), transparent), radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,.4), transparent), radial-gradient(1.5px 1.5px at 85% 40%, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 10% 85%, rgba(255,255,255,.45), transparent); background-size: 520px 520px; animation: drift 120s linear infinite; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.who-switch { display: inline-flex; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line-dark); gap: 4px; margin-bottom: 1.6rem; flex-wrap: wrap; }
.who-switch button { border: 0; background: none; color: var(--on-dark-2); font: 600 .92rem/1 var(--body); padding: .7rem 1.05rem; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.who-switch button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 6px 18px -6px rgba(0,0,0,.5); }
.hero-copy [data-who] { display: none; }
.hero-copy [data-who].on { display: grid; gap: 1.3rem; animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 .line { display: block; }
.hero h1 .cut { color: rgba(233,238,255,.45); background: linear-gradient(var(--red), var(--red)) no-repeat 0 60% / 0 .085em; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: strike .8s .9s cubic-bezier(.6,0,.2,1) forwards; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.hero .proof-line { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--on-dark-2); font-size: .92rem; }
.hero .proof-line span { display: inline-flex; align-items: center; gap: .45rem; }
.hero .proof-line svg { width: 18px; height: 18px; color: var(--green); }
.hero-stage { position: relative; min-height: 480px; }
.hero-stage [data-who] { display: none; }
.hero-stage [data-who].on { display: block; animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }

/* ---------------------------------------------------------------- devices */
.laptop { position: relative; width: 100%; }
.laptop .lid { background: #0a0f1f; border-radius: 18px 18px 6px 6px; padding: 2.2% 2.2% 3%; box-shadow: var(--shadow-dark), inset 0 0 0 1px rgba(255,255,255,.08); }
.laptop .screen { border-radius: 6px; overflow: hidden; aspect-ratio: 1280/750; background: #0d1530; }
.laptop .screen video, .laptop .screen img, .browser .screen video, .browser .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.laptop .base { height: 14px; margin: 0 -6%; background: linear-gradient(#c9d1e4, #8c97b4); border-radius: 0 0 22px 22px; position: relative; }
.laptop .base::before { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 5px; transform: translateX(-50%); background: #6f7a98; border-radius: 0 0 8px 8px; }
.phone { position: relative; width: 100%; max-width: 270px; aspect-ratio: 412/892; border-radius: 40px; padding: 11px; background: #0a0f1f; box-shadow: var(--shadow-dark), inset 0 0 0 2px rgba(255,255,255,.12); }
.phone .screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #fff; position: relative; }
.phone .screen video, .phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 30%; height: 18px; transform: translateX(-50%); background: #0a0f1f; border-radius: 0 0 14px 14px; z-index: 2; }
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.dark .browser, .night .browser { border-color: rgba(255,255,255,.08); box-shadow: var(--shadow-dark); }
.browser .chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef2f9; border-bottom: 1px solid var(--line); }
.browser .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.browser .chrome i:nth-child(2) { background: #febc2e; } .browser .chrome i:nth-child(3) { background: #28c840; }
.browser .chrome span { margin-left: 10px; font-size: .74rem; color: var(--muted); background: #fff; border-radius: 999px; padding: 4px 12px; flex: 1; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser .screen { aspect-ratio: 1280/750; background: #f4f7fc; }
.float-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: .7rem; background: #fff; color: var(--ink); border-radius: 16px; padding: .7rem .95rem; box-shadow: 0 18px 40px -16px rgba(0,0,0,.55); font-size: .84rem; line-height: 1.25; animation: bob 6s ease-in-out infinite; }
.float-chip b { display: block; font-weight: 700; font-size: .92rem; }
.float-chip small { color: var(--muted); }
.float-chip .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #fff; }
.float-chip .ic svg { width: 19px; height: 19px; }
.ic.red { background: var(--red); } .ic.green { background: var(--green); } .ic.blue { background: var(--blue); } .ic.sun { background: var(--sun); } .ic.violet { background: var(--violet); }
.pulse { position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid currentColor; opacity: 0; animation: ping 2s ease-out infinite; }

/* ---------------------------------------------------------------- who strip */
.whostrip { background: var(--night); border-top: 1px solid var(--line-dark); }
.whostrip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.whostrip a { padding: 1.5rem 1.2rem; text-decoration: none; color: var(--on-dark); display: grid; gap: .3rem; border-left: 1px solid var(--line-dark); transition: background .25s; }
.whostrip a:first-child { border-left: 0; }
.whostrip a:hover { background: rgba(255,255,255,.04); }
.whostrip small { color: var(--gold); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
.whostrip b { font: 700 1.08rem/1.3 var(--display); }
.whostrip span { color: var(--on-dark-2); font-size: .88rem; }
@media (max-width: 860px) { .whostrip .wrap { grid-template-columns: 1fr 1fr; } .whostrip a:nth-child(3) { border-left: 0; } .whostrip a:nth-child(n+3) { border-top: 1px solid var(--line-dark); } }

/* ---------------------------------------------------------------- pains */
.pains { background: var(--mist); }
.pain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.pain { position: relative; background: #fff; border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); overflow: hidden; display: grid; gap: 1.1rem; min-height: 320px; }
.pain .who { display: flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--muted); font-size: .9rem; }
.pain .who .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 .95rem/1 var(--display); }
.pain q { font: 700 clamp(1.25rem, 1.05rem + .8vw, 1.7rem)/1.22 var(--display); letter-spacing: -.02em; quotes: "\201C" "\201D"; color: var(--ink); }
.pain .fix { display: grid; gap: .6rem; border-top: 1px dashed var(--line); padding-top: 1.1rem; align-content: start; }
.pain .fix b { display: flex; gap: .5rem; align-items: center; color: var(--green); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.pain .fix b svg { width: 18px; height: 18px; }
.pain .fix p { color: var(--ink-2); }
.pain .fix a { font-weight: 600; color: var(--blue); text-decoration: none; }
.pain .fix a:hover { text-decoration: underline; }
@media (max-width: 820px) { .pain-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- exam day */
.split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.split.flip > :first-child { order: 2; }
@media (max-width: 940px) { .split, .split.flip { grid-template-columns: minmax(0, 1fr); } .split.flip > :first-child { order: 0; } }
.netdemo { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: 1.2rem; }
.netdemo .toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.netdemo .toggle b { font: 700 1.05rem/1.2 var(--display); }
.switch { position: relative; display: inline-flex; align-items: center; gap: .8rem; cursor: pointer; font-weight: 600; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 62px; height: 34px; border-radius: 999px; background: var(--green); position: relative; transition: background .3s; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.switch .track::after { content: ""; position: absolute; top: 4px; left: 32px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: left .3s cubic-bezier(.4,1.4,.6,1); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.switch input:not(:checked) + .track { background: var(--red); }
.switch input:not(:checked) + .track::after { left: 4px; }
.switch input:focus-visible + .track { outline: 3px solid var(--sky); outline-offset: 3px; }
.net { display: grid; justify-items: center; gap: 0; }
.node { display: flex; align-items: center; gap: .75rem; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); border-radius: 16px; padding: .8rem 1rem; min-width: min(100%, 300px); transition: border-color .4s, background .4s, opacity .4s; }
.node .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.node .ic svg { width: 21px; height: 21px; }
.node b { display: block; font-weight: 600; }
.node small { color: var(--on-dark-2); font-size: .8rem; }
.wire { width: 3px; height: 46px; position: relative; background: repeating-linear-gradient(180deg, var(--sky) 0 8px, transparent 8px 14px); background-size: 3px 14px; animation: flow 1s linear infinite; }
.wire .cut-x { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0); width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; transition: transform .35s cubic-bezier(.4,1.6,.6,1); }
.wire .cut-x svg { width: 16px; height: 16px; }
.labs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; width: 100%; }
/* A 360px phone: two lab computers to a row, so nothing reaches past the screen. */
@media (max-width: 400px) { .labs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lab { background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); border-radius: 14px; padding: .7rem .5rem; text-align: center; font-size: .78rem; color: var(--on-dark-2); display: grid; gap: .35rem; justify-items: center; }
.lab svg { width: 24px; height: 24px; color: var(--on-dark); }
.lab .st { display: inline-flex; align-items: center; gap: .3rem; color: #7ff0b8; font-weight: 600; }
.lab .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 1.4s ease-in-out infinite; }
.netdemo .status { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(18,183,106,.12); color: #9ff5cb; font-weight: 500; font-size: .92rem; transition: background .4s, color .4s; }
.netdemo .status svg { width: 20px; height: 20px; flex: none; }
.netdemo.offline .wire.up { background: repeating-linear-gradient(180deg, rgba(240,68,56,.7) 0 8px, transparent 8px 14px); animation: none; }
.netdemo.offline .wire.up .cut-x { transform: translate(-50%, -50%) scale(1); }
.netdemo.offline .node.cloud { opacity: .45; border-style: dashed; }
.netdemo.offline .status { background: rgba(255,149,0,.13); color: #ffd79c; }
.counter-pill { font-variant-numeric: tabular-nums; }
.feat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.6rem; margin-top: 2.6rem; }
.feat { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: .9rem; align-items: start; }
.feat .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.feat .ic svg { width: 22px; height: 22px; }
.feat b { display: block; font: 700 1.05rem/1.3 var(--display); margin-bottom: .2rem; }
.feat p { font-size: .94rem; color: var(--ink-2); }
.dark .feat p, .night .feat p { color: var(--on-dark-2); }
@media (max-width: 640px) { .feat-list { grid-template-columns: 1fr; } }
.shots { position: relative; display: grid; gap: 1rem; }
.shots .browser:nth-child(2) { width: 62%; margin-left: auto; margin-top: -18%; position: relative; z-index: 2; }

/* ---------------------------------------------------------------- teachers */
.stepper { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); align-items: start; }
.steps { display: grid; gap: .6rem; counter-reset: step; }
.step { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 1rem 1.1rem; cursor: pointer; display: grid; gap: .25rem; font: inherit; color: inherit; position: relative; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.step b { font: 700 1.02rem/1.3 var(--display); display: flex; align-items: center; gap: .6rem; }
.step b::before { counter-increment: step; content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--ink-2); font: 700 .8rem/1 var(--body); flex: none; }
.step span { color: var(--muted); font-size: .9rem; padding-left: 2.1rem; }
.step .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--blue); }
.step[aria-selected="true"] { border-color: color-mix(in srgb, var(--blue) 45%, white); box-shadow: 0 14px 30px -18px rgba(22,104,255,.6); }
.step[aria-selected="true"] b::before { background: var(--blue); color: #fff; }
.stage-shot { position: relative; }
.stage-shot video { display: none; }
.stage-shot video.on { display: block; }
.qtypes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.4rem; }
.qtype { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: .9rem; align-items: center; }
.qtype .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; font: 800 1.1rem/1 var(--display); }
.qtype b { font: 700 1.05rem/1.25 var(--display); display: block; }
.qtype span { color: var(--muted); font-size: .88rem; }
@media (max-width: 860px) { .stepper { grid-template-columns: 1fr; } .steps { grid-template-columns: repeat(2, 1fr); } .qtypes { grid-template-columns: 1fr; } }
.bigstat { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; padding: 1.4rem 1.6rem; background: linear-gradient(120deg, #eaf1ff, #f6f0ff); border-radius: 22px; }
.bigstat .n { font: 800 clamp(2.4rem, 1.6rem + 3vw, 3.6rem)/1 var(--display); color: var(--blue); font-variant-numeric: tabular-nums; }
.bigstat p { color: var(--ink-2); max-width: 46ch; }

/* ---------------------------------------------------------------- students */
.students { background: radial-gradient(900px 600px at 100% 0%, #2a1f6e 0%, transparent 60%), radial-gradient(800px 600px at 0% 100%, #0f2a6b 0%, transparent 55%), #0c1438; color: var(--on-dark); overflow: hidden; }
.trybox { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow-dark); display: grid; gap: 1rem; }
.trybox .meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; font-weight: 600; color: var(--violet); letter-spacing: .06em; text-transform: uppercase; }
.trybox h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); line-height: 1.25; }
.opts { display: grid; gap: .55rem; }
.opt { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font: 500 1rem/1.3 var(--body); color: var(--ink); text-align: left; transition: border-color .2s, background .2s, transform .15s; }
.opt:hover { border-color: #b9c8ee; }
.opt:active { transform: scale(.99); }
.opt .l { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); font-weight: 700; font-size: .85rem; flex: none; }
.opt.right { border-color: var(--green); background: var(--green-soft); }
.opt.right .l { background: var(--green); color: #fff; }
.opt.wrong { border-color: #f9b4ae; background: #fff1f0; }
.opt.wrong .l { background: var(--red); color: #fff; }
.opts.done .opt { cursor: default; }
.explain { display: none; gap: .8rem; }
.explain.on { display: grid; animation: rise .5s both; }
.explain .verdict { font: 700 1.05rem/1.2 var(--display); }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .5rem .9rem; font: 600 .85rem/1 var(--body); cursor: pointer; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabpanel { background: var(--mist); border-radius: 14px; padding: 1rem 1.1rem; font-size: .95rem; color: var(--ink-2); }
.tabpanel[hidden] { display: none; }
.tabpanel ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.ace { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.ace span { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .95rem; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.ace .a { background: rgba(255,194,61,.15); color: var(--gold); } .ace .n { background: rgba(25,194,255,.13); color: #8be3ff; } .ace .y { background: rgba(255,255,255,.08); color: var(--on-dark-2); }
.ace small { font-weight: 400; opacity: .8; }
.stu-media { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem; align-items: end; margin-top: clamp(3rem, 6vw, 5rem); }
.stu-media .phone { max-width: 230px; }
@media (max-width: 700px) { .stu-media { grid-template-columns: 1fr; } .stu-media .phone { margin: 0 auto; } }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.4rem; }
.tile { background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); border-radius: 20px; padding: 1.2rem; display: grid; gap: .5rem; align-content: start; transition: transform .3s, background .3s; }
.tile:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); }
.tile .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.tile .ic svg { width: 21px; height: 21px; }
.tile b { font: 700 1.02rem/1.25 var(--display); }
.tile p { font-size: .88rem; color: var(--on-dark-2); }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- parents */
.parents { background: linear-gradient(180deg, var(--cream), #fff 70%); overflow: hidden; }
.report { width: 100%; max-width: 340px; margin: 0 auto; }
.report .screen { background: #f4f6fb; color: var(--ink); display: flex; flex-direction: column; }
.rp-head { background: linear-gradient(135deg, var(--blue), #5b8dff); color: #fff; padding: 2.2rem 1rem 1rem; }
.rp-head small { opacity: .85; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.rp-head b { display: block; font: 700 1.05rem/1.25 var(--display); margin-top: .35rem; }
.rp-body { padding: .8rem; display: grid; gap: .6rem; font-size: .78rem; overflow: hidden; }
.rp-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.rp-nums div { background: #fff; border-radius: 10px; padding: .5rem .3rem; text-align: center; }
.rp-nums b { display: block; font: 800 1.15rem/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.rp-nums small { color: var(--muted); font-size: .6rem; }
.rp-card { background: #fff; border-radius: 12px; padding: .65rem .7rem; display: grid; gap: .4rem; }
.rp-card h4 { margin: 0; font: 700 .72rem/1 var(--body); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.rp-bar { height: 7px; background: var(--mist); border-radius: 999px; overflow: hidden; }
.rp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--sun)); border-radius: inherit; transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.rp-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.rp-chips span { background: var(--amber-soft); color: #9a5b00; border-radius: 999px; padding: .2rem .5rem; font-weight: 600; font-size: .66rem; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.report.go .rp-chips span { opacity: 1; transform: none; }
.rp-next { background: #eef4ff; border-radius: 12px; padding: .6rem .7rem; color: var(--ink-2); }
.rp-gifts { display: flex; justify-content: space-between; }
.rp-gifts button { border: 0; background: #fff; border-radius: 12px; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; transition: transform .2s; }
.rp-gifts button:hover { transform: scale(1.15) rotate(-6deg); }
.rp-gifts button.sent { animation: pop .6s; }
.parent-list { display: grid; gap: .9rem; margin: 1.8rem 0 2rem; padding: 0; list-style: none; }
.parent-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: .8rem; align-items: start; color: var(--ink-2); }
.parent-list li svg { width: 26px; height: 26px; color: var(--sun-2); margin-top: .05rem; }
.parent-list b { color: var(--ink); }
.free { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: center; background: #fff; border-radius: 22px; padding: 1.2rem 1.4rem; box-shadow: var(--shadow); border: 1px solid #ffe2bd; }
.free .days { font: 800 3rem/1 var(--display); color: var(--sun-2); text-align: center; }
.free .days small { display: block; font: 700 .65rem/1 var(--body); letter-spacing: .14em; color: var(--sun-2); }
.free p { color: var(--ink-2); font-size: .94rem; }
.free b { color: var(--ink); }

/* ---------------------------------------------------------------- watch */
.films { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 1.2rem; max-width: 1040px; margin: 0 auto; }
.film { min-width: 0; position: relative; border-radius: 24px; overflow: hidden; background: #000; border: 1px solid var(--line-dark); cursor: pointer; text-align: left; padding: 0; color: #fff; display: grid; font: inherit; }
.film img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .6s, opacity .4s; grid-area: 1 / 1; }
.film:hover img { transform: scale(1.04); opacity: .95; }
.film .cap { grid-area: 1 / 1; align-self: end; padding: 1.2rem; background: linear-gradient(transparent, rgba(4,8,22,.92) 45%); display: grid; gap: .3rem; }
.film .cap b { font: 700 1.12rem/1.25 var(--display); }
.film .cap small { color: var(--on-dark-2); }
.film .play { grid-area: 1 / 1; place-self: center; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--navy); box-shadow: 0 10px 40px rgba(0,0,0,.5); transition: transform .3s; }
.film:hover .play { transform: scale(1.1); }
.film .play svg { width: 30px; height: 30px; margin-left: 4px; }
.film.tall { grid-row: span 2; min-height: 100%; }
.film.wide { aspect-ratio: 16/9; }
@media (max-width: 900px) { .films { grid-template-columns: 1fr; } .film.tall { grid-row: auto; aspect-ratio: 4/5; } }
dialog.player { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; }
dialog.player::backdrop { background: rgba(3,6,18,.86); backdrop-filter: blur(6px); }
dialog.player video { width: 100%; max-height: 86vh; border-radius: 18px; background: #000; }
dialog.player.tall { max-width: min(460px, 94vw); }
dialog.player .x { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; display: grid; place-items: center; }
dialog.player .x svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- trust */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.num { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem; display: grid; gap: .3rem; }
.num .n { font: 800 clamp(2rem, 1.5rem + 1.8vw, 2.8rem)/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.num b { font-weight: 600; }
.num small { color: var(--muted); }
@media (max-width: 900px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .num { padding: 1.1rem; } .num .n { font-size: 1.75rem; } }
.platforms { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.platforms span { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.platforms svg { width: 18px; height: 18px; color: var(--blue); }

/* ---------------------------------------------------------------- faq */
.faq { display: grid; gap: .7rem; max-width: 880px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 1.3rem; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 0; font: 700 1.08rem/1.35 var(--display); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--body); color: var(--blue); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.2rem; color: var(--ink-2); max-width: 70ch; }

/* ---------------------------------------------------------------- final */
.final { overflow: hidden; isolation: isolate; text-align: center; }
.final .sunball { position: absolute; z-index: -1; width: 700px; aspect-ratio: 1; left: 50%; bottom: -480px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, #ffb347 0%, #ff7a00 40%, rgba(255,106,0,0) 70%); opacity: .85; animation: breathe 10s ease-in-out infinite; }
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; text-align: left; }
.door { background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); border-radius: 22px; padding: 1.4rem; display: grid; gap: .7rem; align-content: start; backdrop-filter: blur(6px); }
.door small { color: var(--gold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; }
.door b { font: 700 1.2rem/1.25 var(--display); }
.door p { color: var(--on-dark-2); font-size: .92rem; }
.door .btn { justify-self: start; margin-top: .3rem; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } }
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.2rem; }
footer.foot { background: var(--night); color: var(--on-dark-2); padding: 2.5rem 0 3rem; font-size: .88rem; border-top: 1px solid var(--line-dark); }
footer.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
footer.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
footer.foot a { color: var(--on-dark); text-decoration: none; }
footer.foot a:hover { text-decoration: underline; }
footer.foot .legal { margin-top: 1.6rem; font-size: .78rem; line-height: 1.6; max-width: 110ch; }

/* ---------------------------------------------------------------- motion */
[data-reveal] { transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js [data-reveal]:not(.seen) { opacity: 0; transform: translateY(28px); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes strike { to { background-size: 100% .085em; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes drift { to { background-position: 520px 260px; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ping { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes flow { to { background-position: 0 14px; } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.5) rotate(10deg); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal]:not(.seen) { opacity: 1; transform: none; }
  .hero h1 .cut { background-size: 100% .085em; }
}
@media (max-width: 940px) {
  .hero { min-height: 0; padding-top: 104px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 0; margin-top: 1rem; }
  .hero-stage .float-chip { font-size: .78rem; }
}
@media (max-width: 640px) {
  .hero .sunball { width: 420px; right: -50%; top: auto; bottom: 2%; opacity: .7; }
  .who-switch { display: flex; width: 100%; }
  .who-switch button { flex: 1; padding: .7rem .4rem; font-size: .84rem; }
  .hero .ctas .btn { flex: 1 1 100%; justify-content: center; }
}
.who-switch .who-q { align-self: center; padding: 0 .4rem 0 .8rem; color: var(--on-dark-2); font-size: .88rem; }
@media (max-width: 640px) { .who-switch .who-q { display: none; } }
