/* Scool Tracker landing v0.4. Dark teal stays the default; playful layer on top:
   flat pop colors, chunky 3D press buttons, rounded bold titles, demos, Doodle.
   Light mode follows the device. Phone/app mockups use the real app palette (app/src/index.css). */
:root {
  --bg: #06100E; --bg2: #0A1916; --surface: #0F211D; --surface2: #153029;
  --line: rgba(190,235,222,.13); --line2: #1E3A33; --edge: #03100C;
  --text: #E9F3F0; --text2: #A3BAB4; --ph: #8FA7A1;
  --eyebrow: #8FE3C4; --mint: #A8F0D2; --lav: #C7BAFF; --on-pop: #06100E;
  --danger: #FF9A9A; --focus: #A8F0D2; --ok: #8FE3C4;
  --glow1: rgba(168,240,210,.20); --glow2: rgba(199,186,255,.17); --glow3: rgba(34,110,92,.30);
  --grain: .05; --shadow-card: 0 30px 60px -30px rgba(0,0,0,.7);
  --nav-bg: rgba(6,16,14,.72);
  /* pops + their darker 3D edges */
  --pop-mint: #A8F0D2; --pop-mint-edge: #4FB98F;
  --pop-lav: #C7BAFF; --pop-lav-edge: #8571EC;
  --pop-sun: #FFD66B; --pop-sun-edge: #CC9B1F;
  --pop-coral: #FF9F8F; --pop-coral-edge: #D9604C;
  --pop-sky: #8FD3FF; --pop-sky-edge: #3C97D2;
  --btn: #A8F0D2; --btn-edge: #4FB98F; --btn-hi: #BDF6DF;
  --doodle-fx: #CDC2FF; --track: #28483F;
  /* app palette inside phones (dark) */
  --a-bg: #171715; --a-surface: #232320; --a-alt: #1D1D1B; --a-border: #3A3A35; --a-text: #F1EFE8; --a-text2: #B8B6AC;
  --a-accent: #EDEBE3; --a-accent-c: #171715;
  --green-bg: #17321A; --green-t: #8FCB8A; --blue-bg: #14324A; --blue-t: #7FC4EE;
  --amber-bg: #3A2C10; --amber-t: #F0C077; --red-bg: #3A1616; --red-t: #F09B9B;
  --gray-bg: #2A2A26; --gray-t: #B8B6AC; --bezel: #050505;
  --title: "Nunito", ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F4F8F6; --bg2: #E8F1ED; --surface: #FFFFFF; --surface2: #E3EEEA;
    --line: rgba(6,40,32,.13); --line2: #D3E2DC; --edge: #C3D6CF;
    --text: #0A1B17; --text2: #44605A; --ph: #5B726C;
    --eyebrow: #0B6B4F; --danger: #A32D2D; --focus: #0B6B4F; --ok: #0B6B4F;
    --glow1: rgba(60,200,150,.26); --glow2: rgba(150,130,255,.20); --glow3: rgba(60,160,140,.16);
    --grain: .035; --shadow-card: 0 30px 60px -34px rgba(10,50,40,.35);
    --nav-bg: rgba(244,248,246,.78);
    --btn: #7EE6BE; --btn-edge: #2E9F76; --btn-hi: #95EDCB;
    --doodle-fx: #6E5CE0; --track: #C9DCD5;
    --a-bg: #F1EFE8; --a-surface: #FFFFFF; --a-alt: #FAFAF7; --a-border: #D3D1C7; --a-text: #2C2C2A; --a-text2: #5F5E5A;
    --a-accent: #2C2C2A; --a-accent-c: #FFFFFF;
    --green-bg: #EAF3DE; --green-t: #27500A; --blue-bg: #DCEEFB; --blue-t: #0B5D8C;
    --amber-bg: #FAEEDA; --amber-t: #854F0B; --red-bg: #FCEBEB; --red-t: #791F1F;
    --gray-bg: #E7E4DA; --gray-t: #5F5E5A; --bezel: #1C1C1A;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F4F8F6; --bg2: #E8F1ED; --surface: #FFFFFF; --surface2: #E3EEEA;
  --line: rgba(6,40,32,.13); --line2: #D3E2DC; --edge: #C3D6CF;
  --text: #0A1B17; --text2: #44605A; --ph: #5B726C;
  --eyebrow: #0B6B4F; --danger: #A32D2D; --focus: #0B6B4F; --ok: #0B6B4F;
  --glow1: rgba(60,200,150,.26); --glow2: rgba(150,130,255,.20); --glow3: rgba(60,160,140,.16);
  --grain: .035; --shadow-card: 0 30px 60px -34px rgba(10,50,40,.35);
  --nav-bg: rgba(244,248,246,.78);
  --btn: #7EE6BE; --btn-edge: #2E9F76; --btn-hi: #95EDCB;
  --doodle-fx: #6E5CE0; --track: #C9DCD5;
  --a-bg: #F1EFE8; --a-surface: #FFFFFF; --a-alt: #FAFAF7; --a-border: #D3D1C7; --a-text: #2C2C2A; --a-text2: #5F5E5A;
  --a-accent: #2C2C2A; --a-accent-c: #FFFFFF;
  --green-bg: #EAF3DE; --green-t: #27500A; --blue-bg: #DCEEFB; --blue-t: #0B5D8C;
  --amber-bg: #FAEEDA; --amber-t: #854F0B; --red-bg: #FCEBEB; --red-t: #791F1F;
  --gray-bg: #E7E4DA; --gray-t: #5F5E5A; --bezel: #1C1C1A;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; interpolate-size: allow-keywords; }
body { margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem; line-height: 1.6; font-synthesis: none; -webkit-font-smoothing: antialiased; }
body::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px; mix-blend-mode: overlay; }
:where(h1,h2,h3,h4,h5,p,ul,ol,figure,dl,dd) { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; z-index: 80; }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:root { --gutter: clamp(16px, 5vw, 64px); --gap: clamp(96px, 12vw, 176px); }
.wrap { padding-inline: var(--gutter); max-width: 1280px; margin-inline: auto; }

/* type: rounded bold titles, lowercase section titles */
h1, h2, .title { font-family: var(--title); font-weight: 900; letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7.6vw, 6.25rem); }
h2 { font-size: clamp(2.2rem, 5.6vw, 4.5rem); }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }
.lede { font-size: clamp(1.125rem, 1.7vw, 1.35rem); color: var(--text2); max-width: 34em; line-height: 1.5; }
.sec-head { display: grid; gap: 18px; max-width: 46rem; }

/* chunky 3D press button: flat fill, darker bottom edge, squishes on press */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px;
  font-family: var(--title); font-weight: 900; font-size: 1.125rem; letter-spacing: .005em; border: 0; border-radius: 18px; cursor: pointer; text-decoration: none;
  color: var(--on-pop); background: var(--btn); box-shadow: 0 6px 0 var(--btn-edge);
  transform: translateY(0); transition: transform .12s cubic-bezier(.3,1.6,.5,1), box-shadow .12s ease, background-color .15s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; margin-bottom: 6px; }
.btn:hover { background: var(--btn-hi); transform: translateY(-2px); box-shadow: 0 8px 0 var(--btn-edge); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--btn-edge); transition-duration: .05s; }
.btn[disabled] { cursor: not-allowed; opacity: .55; transform: none; box-shadow: 0 6px 0 var(--btn-edge); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 1rem; border-radius: 14px; box-shadow: 0 4px 0 var(--btn-edge); margin-bottom: 4px; }
.btn-sm:hover { box-shadow: 0 6px 0 var(--btn-edge); }
.btn-sm:active { transform: translateY(4px); }
.btn-2 { color: var(--text); background: var(--surface); box-shadow: 0 6px 0 var(--edge), inset 0 0 0 2px var(--line2); }
.btn-2:hover { background: var(--surface2); box-shadow: 0 8px 0 var(--edge), inset 0 0 0 2px var(--line2); }
.btn-2:active { box-shadow: 0 0 0 var(--edge), inset 0 0 0 2px var(--line2); }
.btn-sm.btn-2 { box-shadow: 0 4px 0 var(--edge), inset 0 0 0 2px var(--line2); }
.linkish { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 4px 2px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* tags */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 800; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--surface2); color: var(--text2); white-space: nowrap; }
.tag-demo { background: var(--pop, var(--pop-mint)); color: var(--on-pop); }
.tag-soon { background: var(--pop-lav); color: var(--on-pop); }
.tag-free { background: color-mix(in srgb, var(--pop-mint) 22%, transparent); color: var(--text); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pop-mint) 55%, transparent); }
.tag-pro { background: color-mix(in srgb, var(--pop-sun) 22%, transparent); color: var(--text); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pop-sun) 60%, transparent); }

/* lesson-style scroll progress bar */
.lessonbar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 5px; pointer-events: none; }
.lessonbar i { display: block; height: 100%; background: var(--pop-mint); border-radius: 0 99px 99px 0; transform: scaleX(0); transform-origin: 0 50%; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; transition: min-height .3s cubic-bezier(.2,.7,.2,1); }
.nav.scrolled { background: var(--nav-bg); border-bottom-color: var(--line); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.nav.scrolled .wrap { min-height: 60px; }
.nav .btn-sm { margin-block: 0 4px; flex: none; white-space: nowrap; }
@media (max-width: 380px) { .brand { font-size: 1.05rem; gap: 8px; } .nav .btn-sm { padding: 0 14px; font-size: .95rem; } }
.brand { flex: none; white-space: nowrap; font-family: var(--title); font-weight: 900; font-size: 1.2rem; letter-spacing: -0.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand svg { width: 28px; height: 28px; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.brand:hover svg { transform: rotate(-10deg) scale(1.08); }
.nav-links { display: none; gap: 4px; margin-left: auto; }
.nav-links a { font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 12px; color: var(--text2); transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* hero */
.hero { position: relative; isolation: isolate; text-align: center; overflow: hidden; margin-top: -76px; padding-top: calc(76px + clamp(28px, 5vw, 64px)); }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: min(1100px, 150vw);
  background:
    radial-gradient(34% 30% at 50% 66%, var(--glow1), transparent 72%),
    radial-gradient(26% 26% at 74% 58%, var(--glow2), transparent 72%),
    radial-gradient(40% 34% at 14% 14%, var(--glow3), transparent 72%),
    radial-gradient(34% 28% at 90% 8%, var(--glow3), transparent 72%); }
.hero::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(to bottom, transparent, var(--bg)); }
.hero h1 { max-width: 10.5em; margin-inline: auto; }
.hero .lede { margin: 22px auto 0; }
.hero .cta { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.hero .cta small { color: var(--text2); font-size: .95rem; }
.hero .sample { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 6; font-size: .8rem; color: var(--text2); letter-spacing: .02em; }
.hero-phone { position: relative; margin: clamp(40px, 5vw, 60px) auto 0; width: min(340px, 78vw); transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hero-phone::after { content: ""; position: absolute; z-index: 4; left: -160px; right: -160px; bottom: -2px; height: 44%; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--bg) 88%); }
.hero-phone .phone { width: 100%; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.hero-phone .screen { border-bottom-left-radius: 0; border-bottom-right-radius: 0; min-height: 560px; }
.hero-doodle { position: absolute; z-index: 5; width: 92px; left: -4px; top: -128px; }
@media (max-width: 599px) { .hero-phone { margin-top: 136px; } }
@media (min-width: 600px) { .hero-doodle { width: 170px; left: -178px; top: 40px; } }
@media (min-width: 1000px) { .hero-doodle { width: 200px; left: -196px; top: 30px; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero .lede { animation: rise .8s .08s cubic-bezier(.2,.7,.2,1) both; }
  .hero .cta { animation: rise .8s .16s cubic-bezier(.2,.7,.2,1) both; }
  .hero-phone .phone { animation: rise 1s .26s cubic-bezier(.2,.7,.2,1) both, float 7s 1.5s ease-in-out infinite; }
}

/* phone + app mockup (real app palette) */
.phone { position: relative; background: var(--bezel); border-radius: 50px; padding: 11px; border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.04), 0 60px 90px -40px rgba(0,0,0,.75), 0 0 140px -30px var(--glow1), 0 0 90px -40px var(--glow2); }
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; background: #1b1b1a; border-radius: 2px; }
.phone::before { left: -4px; top: 110px; height: 52px; box-shadow: 0 70px 0 #1b1b1a; }
.phone::after { right: -4px; top: 150px; height: 80px; }
.island { position: absolute; z-index: 5; top: 21px; left: 50%; width: 88px; height: 25px; margin-left: -44px; background: #000; border-radius: 14px; }
.screen { text-align: left; background: var(--a-bg); border-radius: 40px; padding: 0 14px 18px; display: flex; flex-direction: column; gap: 10px; color: var(--a-text); font-size: 14px; line-height: 1.35; overflow: hidden; position: relative; }
.sb { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px 4px; font-size: 13px; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.sb svg { width: 52px; height: 11px; color: var(--a-text); }
.s-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-top: 6px; }
.s-head h3, .s-head h4 { font-size: 24px; letter-spacing: -0.025em; font-weight: 700; line-height: 1.2; }
.s-date { font-size: 12px; color: var(--a-text2); }
.left { font-size: 12px; color: var(--a-text2); margin-top: -4px; }
.left b { color: var(--a-text); font-variant-numeric: tabular-nums; }
.task { background: var(--a-alt); border: 1px solid var(--a-border); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; transition: opacity .4s ease, background-color .3s ease; }
.trow { flex-direction: row; align-items: center; gap: 10px; }
.tmain { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.task-title { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.task-sub { font-size: 12px; color: var(--a-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chk { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--a-border); display: grid; place-items: center; color: var(--a-accent-c); transition: background-color .25s, border-color .25s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.chk svg { width: 13px; height: 13px; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .3s .1s ease; }
.chk svg use { stroke-dasharray: 16; stroke-dashoffset: inherit; }
.task.done { opacity: .5; }
.task.done .chk, .td-li.done .chk { background: var(--green-t); border-color: var(--green-t); transform: scale(1.12); }
.task.done .chk svg, .td-li.done .chk svg { stroke-dashoffset: 0; }
.task.done .task-title, .td-li.done .task-title { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.badge { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; display: inline-block; line-height: 1.4; transition: background-color .3s, color .3s; }
.badge.pop { animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
.b-green { background: var(--green-bg); color: var(--green-t); }
.b-blue { background: var(--blue-bg); color: var(--blue-t); }
.b-amber { background: var(--amber-bg); color: var(--amber-t); }
.b-red { background: var(--red-bg); color: var(--red-t); }
.b-gray { background: var(--gray-bg); color: var(--gray-t); }
.pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 14px; justify-content: center; font-size: 12px; color: var(--a-text2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot.cb { background: var(--blue-t); } .dot.cg { background: var(--green-t); } .dot.co { background: var(--a-border); }
.note-card { font-size: 13px; color: var(--a-text2); background: var(--a-surface); border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; }
.note-card b { color: var(--a-text); font-weight: 700; }
.sample { font-size: .85rem; color: var(--text2); text-align: center; }
.fine { font-size: .875rem; color: var(--text2); }
.fine a { color: var(--text2); }

/* Doodle + Squib (mascot images, transparent webp). Motion only when the user allows it. */
.dd { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 3px 0 rgba(0,0,0,.18)); }
[data-doodle] { aspect-ratio: 2 / 3; }
.dd-swap .dd { animation: ddswap .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes ddswap { 0% { transform: scale(.86, 1.1) translateY(6px); } 100% { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .dd { transform-origin: 50% 100%; }
  .dd-wave { animation: ddsway 2.6s ease-in-out infinite; }
  .dd-jump { animation: hop .7s cubic-bezier(.3,1.4,.5,1) infinite alternate; }
  .dd-worried { animation: shake2 .5s ease-in-out infinite; }
  .dd-focused { animation: breathe 3.2s ease-in-out infinite; }
  .dd-sleepy { animation: breathe 5s ease-in-out infinite; }
}
@keyframes ddsway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes hop { from { transform: translateY(4px); } to { transform: translateY(-14px) rotate(2deg); } }
@keyframes shake2 { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025, .98); } }

/* problem */
.problem { padding-block: var(--gap) calc(var(--gap) * .6); }
.pain { list-style: none; padding: 0; margin-top: clamp(36px, 5vw, 64px); display: grid; gap: 12px; }
.pain li { padding: clamp(18px, 3vw, 30px) clamp(18px, 3vw, 32px); border-radius: 24px; background: var(--surface); box-shadow: 0 6px 0 var(--edge);
  font-family: var(--title); font-size: clamp(1.4rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
.problem .fix { margin-top: clamp(28px, 4vw, 48px); color: var(--text); font-weight: 650; }

/* feature rows: words on one side, demo on the other, sides swap each row */
.feats { padding-block: calc(var(--gap) * .4) var(--gap); }
.feat { display: grid; gap: 28px; padding-top: clamp(72px, 10vw, 150px); align-items: center; scroll-margin-top: 80px; }
@media (min-width: 900px) {
  .feat { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 104px); }
  .feat:nth-of-type(even) .feat-copy { order: 2; }
}
.feat-copy { display: grid; gap: 16px; justify-items: start; max-width: 32rem; }
.feat-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--pop); color: var(--on-pop); box-shadow: 0 5px 0 var(--pop-edge); transform: rotate(-4deg); }
.feat-ico svg { width: 30px; height: 30px; }
.feat h3 { font-family: var(--title); font-weight: 900; font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
.feat-copy > p:not(.plan) { color: var(--text); font-size: 1.125rem; max-width: 30em; }
.points { list-style: none; padding: 0; display: grid; gap: 8px; }
.points li { display: flex; gap: 10px; align-items: baseline; font-weight: 650; color: var(--text2); }
.points li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 4px; background: var(--pop); transform: translateY(1px) rotate(12deg); box-shadow: 0 2px 0 var(--pop-edge); }
.plan { display: flex; flex-wrap: wrap; gap: 8px; }

/* demo card: chunky 3D card with the row's pop color on the top edge */
.demo { position: relative; background: var(--surface); border-radius: 28px; padding: 16px 16px 20px; box-shadow: 0 8px 0 var(--edge), inset 0 0 0 2px var(--line2);
  display: grid; gap: 14px; min-width: 0; }
.demo::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 5px; border-radius: 0 0 6px 6px; background: var(--pop); }
.demo-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 4px; }
.demo .app { background: var(--a-bg); color: var(--a-text); border-radius: 20px; padding: 14px; display: grid; gap: 12px; font-size: 14px; line-height: 1.35; min-width: 0; }
.demo .app .s-head { margin-top: 0; }
.demo-doodle { position: absolute; z-index: 2; width: 80px; right: 8px; top: -116px; pointer-events: none; }
.demo:has(.demo-doodle) .demo-top { padding-right: 84px; }
@media (min-width: 600px) { .demo { padding: 22px 22px 26px; } .demo .app { padding: 18px; } .demo-doodle { width: 104px; right: 16px; top: -150px; } .demo:has(.demo-doodle) .demo-top { padding-right: 120px; } }
.snd { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 12px; border: 0; cursor: pointer;
  font: inherit; font-size: .85rem; font-weight: 800; color: var(--text2); background: var(--surface2); }
.snd svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .snd { padding: 0 10px; } #snd-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.snd[aria-pressed="false"] .snd-on, .snd[aria-pressed="true"] .snd-off { display: none; }
.snd[aria-pressed="true"] { color: var(--on-pop); background: var(--pop-mint); }
/* sliders */
.ctl { display: grid; gap: 8px; }
.ctl label, .ctl-hint, .st-pick legend { font-weight: 750; font-size: 1rem; }
.ctl output { font-family: var(--title); font-weight: 900; font-size: 1.1rem; }
.ctl-scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text2); margin-top: -4px; }
.ctl-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ctl-row .btn { margin-bottom: 4px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 14px; border-radius: 99px; background: linear-gradient(to right, var(--pop, var(--pop-mint)) var(--fill, 0%), var(--track) var(--fill, 0%)); box-shadow: inset 0 2px 0 rgba(0,0,0,.18); }
input[type="range"]::-moz-range-track { height: 14px; border-radius: 99px; background: var(--track); }
input[type="range"]::-moz-range-progress { height: 14px; border-radius: 99px; background: var(--pop, var(--pop-mint)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -8px; border-radius: 50%; background: var(--pop, var(--pop-mint)); border: 3px solid var(--on-pop); box-shadow: 0 4px 0 var(--pop-edge, var(--pop-mint-edge)); transition: transform .15s cubic-bezier(.3,1.6,.5,1); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--pop, var(--pop-mint)); border: 3px solid var(--on-pop); box-shadow: 0 4px 0 var(--pop-edge, var(--pop-mint-edge)); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--focus); outline-offset: 3px; }
input[type="range"]:focus-visible::-moz-range-thumb { outline: 3px solid var(--focus); outline-offset: 3px; }

/* today demo */
.left-pill { font-size: 13px; color: var(--a-text2); background: var(--a-alt); border: 1px solid var(--a-border); padding: 4px 10px; border-radius: 99px; }
.left-pill b { color: var(--a-text); font-variant-numeric: tabular-nums; }
.td-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.td-li { transition: opacity .3s; }
.td-li.done { opacity: .55; }
.td-item { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; min-height: 58px;
  background: var(--a-alt); border: 1px solid var(--a-border); border-radius: 14px; padding: 10px 12px; box-shadow: 0 3px 0 var(--a-border);
  transition: transform .12s cubic-bezier(.3,1.6,.5,1), box-shadow .12s, background-color .2s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.td-item:hover { background: var(--a-surface); transform: translateY(-1px); box-shadow: 0 4px 0 var(--a-border); }
.td-item:active { transform: translateY(3px); box-shadow: 0 0 0 var(--a-border); }
.td-item .task-title { font-size: 15px; }
.td-item .task-sub { font-size: 12.5px; }
.td-item .badge { font-size: 12px; }
.td-done { font-weight: 700; text-align: center; color: var(--a-text); }

/* grades demo */
.gr-big { background: var(--a-alt); border: 1px solid var(--a-border); border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.gr-name { font-weight: 700; font-size: 15px; }
.gr-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gr-pct { font-family: var(--title); font-weight: 900; font-size: 44px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-right: 6px; min-width: 2.6em; }
.badge.big { font-size: 15px; padding: 5px 13px; }
.gr-bar { height: 10px; border-radius: 99px; background: var(--a-surface); overflow: hidden; }
.gr-bar i { display: block; height: 100%; width: 100%; border-radius: 99px; background: var(--red-t); transform-origin: 0 50%; transition: transform .2s ease, background-color .3s; }
.gr-bar i[data-tier="Watch"] { background: var(--amber-t); } .gr-bar i[data-tier="Solid"] { background: var(--green-t); }
.gr-next { font-size: 13.5px; color: var(--a-text2); font-weight: 600; }
.gr-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.gr-list li { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--a-alt); border: 1px solid var(--a-border); font-size: 14px; }
#demo-grades .ctl { --pop: var(--pop-sky); --pop-edge: var(--pop-sky-edge); }

/* calendar demo */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; text-align: center; }
.cal-grid .dow { font-size: 11px; color: var(--a-text2); font-weight: 700; padding-bottom: 2px; }
.cal-grid .cd { font: inherit; font-weight: 700; font-size: 13px; min-height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--a-text2); background: transparent; border: 0; padding: 0; }
.cal-grid button.cd { cursor: pointer; transition: transform .12s cubic-bezier(.3,1.6,.5,1), box-shadow .12s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.cal-grid button.cd:hover { transform: translateY(-2px); }
.cal-grid button.cd:active { transform: translateY(2px) scale(.95); }
.cd.cb { background: var(--blue-bg); color: var(--blue-t); box-shadow: 0 3px 0 color-mix(in srgb, var(--blue-t) 35%, transparent); }
.cd.cg { background: var(--green-bg); color: var(--green-t); box-shadow: 0 3px 0 color-mix(in srgb, var(--green-t) 35%, transparent); }
.cd.co { background: repeating-linear-gradient(135deg, var(--gray-bg) 0 4px, transparent 4px 8px); color: var(--a-text2); box-shadow: inset 0 0 0 1.5px var(--a-border); }
.cd.now { outline: 2.5px solid var(--a-text); outline-offset: 1px; }
.cd.flip { animation: cflip .5s var(--d, 0ms) cubic-bezier(.3,1.6,.5,1) both; }
@keyframes cflip { 0% { transform: scale(.6) rotate(-10deg); } 100% { transform: none; } }
.ctl-hint { color: var(--text2); font-weight: 650; }
#demo-cal .ctl-row .btn { margin-left: auto; }

/* study demo */
.st-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.st-pick legend { padding: 0; margin-bottom: 8px; font-size: 14px; color: var(--a-text2); }
.st-opts { display: grid; gap: 6px; }
.st-opts input { position: absolute; opacity: 0; pointer-events: none; }
.st-opts label { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; padding: 8px 12px; border-radius: 12px; cursor: pointer;
  background: var(--a-alt); border: 2px solid var(--a-border); font-weight: 650; font-size: 14px; transition: border-color .15s, background-color .15s, transform .12s; }
.st-opts label:hover { background: var(--a-surface); }
.st-opts label:active { transform: scale(.98); }
.st-opts input:checked + label { border-color: var(--a-text); background: var(--a-surface); }
.st-opts input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.st-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-main { display: flex; align-items: center; gap: 16px; }
.ring { position: relative; flex: none; width: 128px; height: 128px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring-bg { stroke: var(--a-surface); }
.ring-fg { stroke: var(--pop-sun-edge); stroke-linecap: round; }
.ring-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-in b { font-family: var(--title); font-weight: 900; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-in span { font-size: 12px; color: var(--a-text2); font-weight: 650; margin-top: 4px; }
.st-why { font-size: 14px; color: var(--a-text2); font-weight: 600; }
.st-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.st-btns .btn { min-height: 48px; font-size: 1rem; }
.st-btns #st-start { --btn: var(--pop-sun); --btn-hi: #FFE08F; --btn-edge: var(--pop-sun-edge); min-width: 120px; }
.demo .app .st-note { color: var(--a-text2); font-size: 12.5px; }

/* reminders demo */
.lock { position: relative; border-radius: 26px; padding: 18px 14px 0; min-height: 360px; overflow: hidden; background: #141B3A; color: #fff; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; }
.lock::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: #1C2550; border-radius: 50% 50% 0 0 / 30px 30px 0 0; }
.lock > * { position: relative; }
.lock-time { text-align: center; display: grid; }
.lock-time span { font-size: 14px; font-weight: 650; opacity: .85; }
.lock-time b { font-family: var(--title); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -0.02em; }
.notes { list-style: none; padding: 0; display: grid; gap: 8px; align-content: start; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 18px; background: rgba(245,245,250,.94); color: #15161A; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.notes .note:first-child { animation: slidein .55s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes slidein { from { transform: translateY(-40px) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.note-ico { flex: none; width: 36px; height: 36px; }
.note-ico svg { width: 36px; height: 36px; border-radius: 9px; }
.note-txt { flex: 1; display: grid; gap: 1px; min-width: 0; font-size: 14px; line-height: 1.3; }
.note-app { font-size: 12px; color: #4A4D57; font-weight: 650; display: flex; justify-content: space-between; gap: 8px; }
.note-app i { font-style: normal; font-weight: 500; }
.note b { font-weight: 750; }
.note-p { color: #2E3038; }
.lock-doodle { width: 116px; justify-self: center; margin-bottom: -8px; color: #CDC2FF; }
#rem-send { --btn: var(--pop-coral); --btn-hi: #FFB4A7; --btn-edge: var(--pop-coral-edge); }

/* setup demo */
.su-bar { height: 14px; border-radius: 99px; background: var(--a-surface); overflow: hidden; }
.su-bar i { display: block; height: 100%; background: var(--pop-mint-edge); border-radius: 99px; transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.3,1.4,.5,1); }
#su-body { display: grid; gap: 12px; justify-items: start; min-height: 250px; align-content: start; }
.su-step { font-size: 13px; color: var(--a-text2); font-weight: 700; }
.su-h { font-family: var(--title); font-weight: 900; font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; margin-top: -6px; }
.su-h:focus { outline: none; }
.su-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip3d { font: inherit; font-weight: 750; font-size: 15px; min-height: 46px; padding: 0 16px; border-radius: 14px; cursor: pointer; color: var(--a-text);
  background: var(--a-alt); border: 2px solid var(--a-border); box-shadow: 0 4px 0 var(--a-border); margin-bottom: 4px;
  transition: transform .12s cubic-bezier(.3,1.6,.5,1), box-shadow .12s, background-color .15s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.chip3d:hover { background: var(--a-surface); transform: translateY(-1px); box-shadow: 0 5px 0 var(--a-border); }
.chip3d:active { transform: translateY(4px); box-shadow: 0 0 0 var(--a-border); }
.chip3d[aria-pressed="true"] { background: var(--blue-bg); color: var(--blue-t); border-color: var(--blue-t); box-shadow: 0 4px 0 var(--blue-t); }
.su-note { font-size: 13px; color: var(--a-text2); font-weight: 650; }
.su-note.over { color: var(--amber-t); }
.su-result { font-size: 16px; font-weight: 650; flex-basis: 100%; }

/* day strip */
.day { padding-block: var(--gap); background: var(--bg2); position: relative; }
.day-strip { list-style: none; padding: 0; margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 18px; }
@media (min-width: 800px) { .day-strip { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.day-strip li { position: relative; background: var(--surface); border-radius: 28px; padding: 22px 22px 26px; box-shadow: 0 8px 0 var(--edge), inset 0 0 0 2px var(--line2); display: grid; gap: 8px; align-content: start; }
.day-pic { width: 128px; margin: -6px 0 4px; }
@media (max-width: 799px) { .day-strip li { padding-right: 112px; min-height: 150px; } .day-pic { position: absolute; right: 10px; top: 14px; width: 96px; margin: 0; } }
.day-time { display: inline-block; justify-self: start; font-weight: 800; font-size: .85rem; padding: 6px 10px; border-radius: 99px; background: var(--pop); color: var(--on-pop); }
.day-strip h3 { font-family: var(--title); font-weight: 900; font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.05; }
.day-strip p:not(.day-time) { color: var(--text2); }
.day-strip .tag { margin-top: 6px; }

/* stats */
.stats { padding-block: var(--gap); }
.stat-grid { display: grid; gap: 12px; margin-top: clamp(36px, 5vw, 64px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 800px) { .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.stat { padding: clamp(18px, 2.4vw, 30px); border-radius: 24px; background: var(--surface); box-shadow: 0 6px 0 var(--edge); }
.stat b { display: block; font-family: var(--title); font-size: clamp(3.4rem, 7.4vw, 6rem); font-weight: 900; letter-spacing: -0.03em; line-height: .95; font-variant-numeric: tabular-nums; color: var(--mint); }
.stat:nth-child(2) b { color: var(--lav); } .stat:nth-child(3) b { color: var(--pop-sun); } .stat:nth-child(4) b { color: var(--pop-coral); }
.stat span { display: block; margin-top: 10px; color: var(--text2); font-size: .98rem; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .stat b { color: #0B6B4F; } :root:not([data-theme="dark"]) .stat:nth-child(2) b { color: #5B45D6; } :root:not([data-theme="dark"]) .stat:nth-child(3) b { color: #8A6400; } :root:not([data-theme="dark"]) .stat:nth-child(4) b { color: #B23E2B; } }

/* plans */
.plans { padding-block: 0 var(--gap); }
.beta-note { margin-top: clamp(28px, 4vw, 44px); display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 20px; background: var(--pop-mint); color: var(--on-pop); box-shadow: 0 6px 0 var(--pop-mint-edge); font-size: 1.05rem; max-width: 46rem; }
.beta-note svg { flex: none; width: 28px; height: 28px; }
.plan-wrap { margin-top: 28px; border-radius: 28px; background: var(--surface); box-shadow: 0 8px 0 var(--edge), inset 0 0 0 2px var(--line2); padding: 8px clamp(10px, 2vw, 24px) 14px; overflow-x: auto; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.plan-table th, .plan-table td { padding: 14px 8px; text-align: center; vertical-align: middle; }
.plan-table tbody th { text-align: left; font-weight: 650; padding-left: 4px; }
.plan-table tbody tr + tr > * { border-top: 2px solid var(--line); }
.plan-table thead th { padding-top: 18px; padding-bottom: 16px; vertical-align: top; width: 26%; }
.plan-table thead th:first-child { width: auto; }
.p-name { display: block; font-family: var(--title); font-weight: 900; font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.1; }
.p-price { display: block; font-weight: 800; color: var(--text2); font-size: .95rem; }
.p-price small { font-weight: 650; font-size: .8rem; display: block; }
.p-pro .p-name { display: inline-block; background: var(--pop-sun); color: var(--on-pop); padding: 4px 12px; border-radius: 12px; box-shadow: 0 4px 0 var(--pop-sun-edge); margin-bottom: 8px; }
.p-free .p-name { display: inline-block; background: var(--pop-mint); color: var(--on-pop); padding: 4px 12px; border-radius: 12px; box-shadow: 0 4px 0 var(--pop-mint-edge); margin-bottom: 8px; }
.plan-table .yes { width: 26px; height: 26px; margin: 0 auto; padding: 4px; border-radius: 50%; background: var(--pop-mint); color: var(--on-pop); }
.plan-table td:last-child .yes { background: var(--pop-sun); }
.plan-table .no { color: var(--text2); font-weight: 800; font-size: 1.2rem; }
.plan-table .val { font-family: var(--title); font-weight: 900; font-size: 1.05rem; }
@media (max-width: 520px) { .plan-table { font-size: .92rem; } .plan-table th, .plan-table td { padding: 12px 4px; } .plan-table thead th { width: 24%; } }
.plans-foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* faq */
.faq { padding-block: 0 var(--gap); }
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 72px; } .faq-head { position: sticky; top: 100px; align-self: start; } }
.faq-doodle { width: 150px; margin-top: 24px; }
@media (max-width: 899px) { .faq-doodle { display: none; } }
.faq details { border-radius: 20px; background: var(--surface); box-shadow: 0 5px 0 var(--edge); margin-bottom: 12px; padding-inline: 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 750; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; transition: color .2s; -webkit-tap-highlight-color: transparent; }
.faq summary:hover { color: var(--eyebrow); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 10px; background-color: var(--surface2);
  background-image: linear-gradient(var(--eyebrow), var(--eyebrow)), linear-gradient(var(--eyebrow), var(--eyebrow));
  background-size: 12px 3px, 3px 12px; background-position: center; background-repeat: no-repeat;
  transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:focus-visible { outline-offset: 4px; }
.faq details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .35s cubic-bezier(.2,.7,.2,1), opacity .3s ease, content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }
.faq .ans p { padding: 0 0 20px; color: var(--text2); max-width: 38em; }

/* join */
.join { padding-block: var(--gap); position: relative; isolation: isolate; background: linear-gradient(to bottom, var(--bg2) 82%, var(--bg)); }
.join::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(40% 50% at 78% 40%, var(--glow1), transparent 70%), radial-gradient(34% 44% at 96% 80%, var(--glow2), transparent 70%), radial-gradient(30% 40% at 8% 30%, var(--glow3), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); }
.join-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .join-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.join .lede { margin-top: 20px; }
.join-doodle { width: 140px; margin-top: 24px; }
@media (max-width: 899px) { .join-doodle { display: none; } }
.form-card { position: relative; background: var(--surface); border-radius: 28px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 8px 0 var(--edge), inset 0 0 0 2px var(--line2); }
.form-card form { display: grid; gap: 18px; }
.form-card .btn { width: 100%; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: .95rem; }
.field .hint { font-weight: 400; color: var(--text2); }
.field input, .field select { font: inherit; font-size: 1rem; min-height: 54px; padding: 0 16px; border-radius: 16px; border: 2px solid var(--line2); background: var(--bg); color: var(--text); width: 100%; min-width: 0;
  transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field input:hover, .field select:hover { border-color: color-mix(in srgb, var(--eyebrow) 45%, var(--line2)); }
.field input::placeholder { color: var(--ph); }
.field input:focus, .field select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 24%, transparent); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 20%, transparent); }
.field:has(input:user-valid:not(:placeholder-shown)) input[type="email"] { border-color: color-mix(in srgb, var(--ok) 60%, var(--line2)); }
.sel { position: relative; }
.sel select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.sel::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--text2); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.sel select:required:invalid { color: var(--ph); }
.field-err { font-size: .875rem; font-weight: 650; color: var(--danger); display: none; }
.field-err.show { display: block; animation: shake .38s ease; }
@keyframes shake { 20% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 80% { transform: translateX(-2px); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#wl-btn .spin { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(6,16,14,.25); border-top-color: var(--on-pop); animation: spin .7s linear infinite; }
#wl-btn.loading .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-msg { font-weight: 650; display: none; padding: 12px 16px; border-radius: 14px; font-size: .95rem; }
.form-msg.err { display: block; color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.thanks { display: none; text-align: center; padding-block: 10px; }
.thanks.show { display: block; animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.thanks-doodle { width: 140px; margin: 0 auto 12px; }
.thanks h3 { font-family: var(--title); font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 10px; line-height: 1.05; }
.thanks p { color: var(--text2); max-width: 22em; margin-inline: auto; }
.thanks:focus { outline: none; }

/* footer */
.foot { padding-block: clamp(56px, 8vw, 104px) 32px; }
.foot-word { font-family: var(--title); font-weight: 900; letter-spacing: -0.035em; line-height: .9; font-size: clamp(3rem, 14.6vw, 12.4rem); white-space: nowrap; overflow: hidden; padding-bottom: .06em;
  background: linear-gradient(180deg, var(--text) 10%, color-mix(in srgb, var(--eyebrow) 14%, transparent) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; margin-top: clamp(24px, 4vw, 48px); padding-top: 20px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--text2); }
.foot-row ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot-row a, .foot-row span { display: inline-block; padding-block: 8px; }
.foot-row a { text-underline-offset: 3px; }

/* sticky mobile CTA */
.mbar { display: none; }
@media (max-width: 699px) {
  .mbar { display: flex; position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 6px 20px; border-radius: 22px;
    background: var(--nav-bg); border: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.55);
    font-weight: 700; font-size: .95rem; transform: translateY(160%); visibility: hidden; transition: transform .45s cubic-bezier(.2,.7,.2,1), visibility 0s .45s; }
  .mbar.show { transform: none; visibility: visible; transition-delay: 0s; }
  .foot { padding-bottom: 96px; }
}

/* confetti canvas */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 70; pointer-events: none; }

/* pop-in on scroll (only with JS + motion allowed; class "anim" set by main.js) */
.anim .reveal { opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .5s ease, transform .65s cubic-bezier(.3,1.35,.5,1); }
.anim .reveal.in { opacity: 1; transform: none; }
.anim .feat .demo.reveal { transition-delay: .08s; }
.anim .day-strip li.reveal:nth-child(2), .anim .stat.reveal:nth-child(2) { transition-delay: .08s; }
.anim .day-strip li.reveal:nth-child(3), .anim .stat.reveal:nth-child(3) { transition-delay: .16s; }
.anim .stat.reveal:nth-child(4) { transition-delay: .24s; }

/* legal pages */
.legal { max-width: 46rem; padding-block: 48px var(--gap); }
.legal h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); margin-bottom: 16px; }
.legal h2 { font-size: 1.5rem; letter-spacing: -0.01em; margin: 40px 0 10px; line-height: 1.15; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin-top: 8px; }
.legal p + p { margin-top: 12px; }
.draft { background: var(--amber-bg); color: var(--amber-t); padding: 14px 18px; border-radius: 14px; font-weight: 650; margin: 8px 0 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .hero-phone { transform: none !important; }
}

/* Squib beside the Free vs Pro heading */
.plans .wrap { position: relative; }
.plans-squib { display: none; }
@media (min-width: 900px) { .plans-squib { display: block; position: absolute; right: var(--pad, 24px); top: -8px; width: 150px; pointer-events: none; } }

/* mascots off (see ENABLED in doodle/doodle.js) */
[data-doodle] { display: none !important; }
.demo:has(.demo-doodle) .demo-top { padding-right: 0 !important; }

/* free section + start steps */
.free-card { padding: clamp(20px, 3vw, 36px); }
.free-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.free-list li { display: flex; gap: 12px; align-items: center; font-weight: 650; }
.free-list .yes { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--pop-mint); color: var(--on-pop); }
.free-note { margin-top: 22px; padding-top: 18px; border-top: 2px solid var(--line); }
.start-steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 16px; margin-bottom: 24px; }
.start-steps li { counter-increment: s; display: flex; gap: 14px; align-items: center; font-size: 1.1rem; }
.start-steps li::before { content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--title); font-weight: 900; background: var(--pop-mint); color: var(--on-pop); }
.form-card .btn { text-align: center; }

/* hero sign-up: Student ID box + big Sign up free button (PLAN 2026-11-23 later) */
.hero .cta { width: 100%; max-width: 640px; margin-inline: auto; margin-top: 28px; gap: 10px; }
.signup { width: 100%; }
.signup-row { display: flex; flex-direction: column; gap: 12px; }
.sid { width: 100%; min-height: 56px; padding: 0 20px; border-radius: 18px; border: 2px solid var(--line2); background: var(--surface); color: var(--text);
  font: 700 1.125rem/1.2 -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, sans-serif; letter-spacing: .04em; text-align: center;
  box-shadow: inset 0 2px 0 rgba(0,0,0,.12); transition: border-color .15s, box-shadow .15s; }
.sid::placeholder { color: var(--ph); letter-spacing: 0; font-weight: 600; }
.sid:hover { border-color: var(--text2); }
.sid:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.sid[aria-invalid="true"] { border-color: var(--danger); }
.btn-go { width: 100%; font-size: 1.2rem; box-shadow: 0 6px 0 var(--btn-edge), 0 0 34px -4px var(--glow1); }
.btn-go:hover { box-shadow: 0 8px 0 var(--btn-edge), 0 0 40px -2px var(--glow1); }
.btn-go:active { box-shadow: 0 0 0 var(--btn-edge), 0 0 24px -6px var(--glow1); }
.sid-err { margin-top: -4px; color: var(--danger); font-weight: 700; font-size: .98rem; }
.sid-err:empty { display: none; }
.cta-links { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 22px; }
.cta-links a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line2); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.cta-links a:hover { text-decoration-color: var(--focus); }
.cta-links a + a { color: var(--text2); font-weight: 600; }
.hero .cta small { max-width: 32em; line-height: 1.45; font-size: .9rem; }
@media (min-width: 600px) {
  .signup-row { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
  .sid-err { order: 3; flex: 0 0 100%; margin-top: 0; }
  .sid { flex: 1 1 auto; max-width: 280px; text-align: left; }
  .btn-go { width: 320px; flex: none; }
}
@media (max-width: 599px) { .hero-phone { margin-top: 48px; } .hero .lede { margin-top: 16px; } }
@media (prefers-reduced-motion: no-preference) {
  .btn-go { animation: go-glow 3.2s 1.2s ease-in-out infinite; }
  @keyframes go-glow { 50% { box-shadow: 0 6px 0 var(--btn-edge), 0 0 46px 2px var(--glow1); } }
  .btn-go:hover, .btn-go:active { animation: none; }
}
