/* learn-skit — "soft clay on a dawn sky" */
:root{--u:1px;
  color-scheme: light;

  /* Semantic Core Tokens */
  --bg: #F6F5FD;
  --bg-tint-blue: #EEF4FD;
  --bg-tint-peach: #FEF4F0;
  --bg-tint-lavender: #F6F5FD;
  --surface: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.65);
  --surface-raised: rgba(255, 255, 255, 0.92);
  --border: rgba(27, 36, 64, 0.12);
  --border-subtle: rgba(27, 36, 64, 0.08);
  --text: #1B2440;
  --text-secondary: #3B4668;
  --text-muted: #55608A;
  --accent: #F5B69E;
  --accent-ink: #8A3B1E;
  --primary: linear-gradient(145deg, #3A4777, #1B2440);
  --primary-foreground: #FFFFFF;
  --ring: #1F4E92;
  --shadow-soft: 0 12px 30px -10px rgba(60, 80, 140, 0.12);
  --grain-opacity: 0.045;

  /* Illustrations & Arcs */
  --illustration-stroke: #1B2440;
  --illustration-stroke-subtle: rgba(27, 36, 64, 0.35);
  --illustration-fill-1: #F3F0FC;
  --illustration-fill-2: #DDEAFA;
  --illustration-fill-3: #E9E8F8;
  --illustration-fill-4: #FADACE;
  --arc-5: #F3F0FC;
  --arc-4: #DDEAFA;
  --arc-3: #E9E8F8;
  --arc-2: #FCEAE4;
  --arc-1: #FADACE;
  --arc-earth: #EEF4FD;
  --arc-land: #BFEBD9;
  --arc-highlight-opacity: 0.6;

  /* Signed-in Dashboard Tiles */
  --tile-t-0: #FFF9F6; --tile-t-1: #FCE6DC; --tile-t-2: #F8CCBB;
  --tile-a-0: #C6DCF8; --tile-a-1: #8DB9F0; --tile-a-2: #769BCD;
  --tile-b-0: #FCFCFE; --tile-b-1: #E9E8F8; --tile-b-2: #C6DCF8;
  --tile-p-0: #FAD3C4; --tile-p-1: #F5B69E; --tile-p-2: #EBA38A;
  --clay-flood-shade: #4B5CA8;
  --clay-flood-light: #FFFFFF;

  /* Bento Cards & Panels */
  --bento-lav: rgba(246, 245, 253, 0.96);
  --bento-blue: rgba(238, 244, 253, 0.96);
  --bento-peach: rgba(254, 244, 240, 0.96);
  --bento-white: rgba(255, 255, 255, 0.96);
  --final-cta-bg: #FEF4F0;

  /* Status Colors */
  --ok: #BFEBD9; --ok-ink: #17694F;
  --bad: #F7C5C0; --bad-ink: #B3322F;
  --warn: #FBE3A6; --warn-ink: #9A5B00;

  /* Palette Aliases */
  --blue-50: #EEF4FD; --blue-100: #DDEAFA; --blue-200: #C6DCF8; --blue: #8DB9F0; --blue-500: #769BCD; --blue-deep: #1F4E92;
  --lav-50: #FCFCFE; --lav-100: #F6F5FD; --lav-200: #F0EFFA; --lav: #E9E8F8; --lav-400: #C0C1D3; --lav-deep: #5B4FA3;
  --peach-50: #FEF4F0; --peach-100: #FCE9E2; --peach-200: #FADACE; --peach: #F5B69E; --peach-500: #EBA38A; --peach-deep: #8A3B1E;
  --ink-900: var(--text);
  --ink-700: var(--text-secondary);
  --ink-500: var(--text-muted);

  --g-clay-blue:linear-gradient(145deg,#B9D3F6 0%,#8DB9F0 55%,#7FAAE4 100%);
  --g-clay-lav:linear-gradient(145deg,#FDFDFF 0%,#EFEEFA 55%,#DAD8F1 100%);
  --g-clay-peach:linear-gradient(145deg,#FAD3C4 0%,#F5B69E 55%,#EBA38A 100%);
  --g-clay-white:linear-gradient(145deg,#FFFFFF 0%,#FBFAFF 60%,#EEEDF8 100%);
  --g-glass:linear-gradient(135deg,rgba(255,255,255,.62),rgba(255,255,255,.26));
  --g-glass-rim:linear-gradient(135deg,rgba(255,255,255,.95),rgba(255,255,255,.18) 42%,rgba(141,185,240,.6));
  --r-sm:12px;--r-md:18px;--r-lg:24px;--r-xl:32px;--r-2xl:44px;
  --ease:cubic-bezier(.2,.8,.2,1);--ease-in:cubic-bezier(.4,0,1,1);--spring:cubic-bezier(.34,1.56,.64,1);
  --f-display:'Plus Jakarta Sans',system-ui,sans-serif;--f-body:'DM Sans',system-ui,sans-serif;--f-num:'IBM Plex Sans',system-ui,sans-serif;
  --accent-bg:var(--g-clay-peach);
}

.dark, [data-theme="dark"]{
  color-scheme: dark;

  /* Base & Surfaces: Graphite, pearl white and sunshine yellow */
  --bg-base: #1C1D20;
  --bg: #1C1D20;
  --bg-gradient: linear-gradient(180deg, #1C1D20 0%, #242529 100%);
  --bg-tint-blue: #202124;
  --bg-tint-peach: #222326;
  --bg-tint-lavender: #242529;

  --surface-1: #242529;
  --surface-2: #2B2C30;
  --surface-3: #34353A;

  --surface: #242529;
  --surface-glass: rgba(36, 37, 41, 0.82);
  --surface-raised: #2B2C30;

  --border: rgba(242, 240, 233, 0.12);
  --border-subtle: rgba(242, 240, 233, 0.07);
  --border-hover: rgba(242, 240, 233, 0.22);
  --border-active: rgba(255, 201, 40, 0.40);

  --text-primary: #F2F0E9;
  --text-secondary: rgba(242, 240, 233, 0.68);
  --text-muted: rgba(242, 240, 233, 0.45);
  --text-disabled: rgba(242, 240, 233, 0.28);
  --text: #F2F0E9;

  --accent: #FFC928;
  --accent-ink: #1C1D20;
  --accent-hover: #FFD554;
  --accent-pressed: #E6B01F;
  --accent-tint: rgba(255, 201, 40, 0.12);
  --accent-glow: rgba(255, 201, 40, 0.25);

  --primary: #FFC928;
  --primary-foreground: #1C1D20;
  --ring: #FFC928;

  --shadow-soft: 0 12px 30px -10px rgba(0, 0, 0, 0.55);
  --grain-opacity: 0.045;

  /* Atmospheric Arcs (one hue each: darkest at top, warmest at horizon) */
  --arc-5: #202124;
  --arc-4: #2B2C30;
  --arc-3: #34353A;
  --arc-2: #44454B;
  --arc-1: rgba(122, 70, 88, 0.75);
  --arc-earth: #242529;
  --arc-land: #34353A;
  --arc-highlight-opacity: 0.18;

  --illustration-stroke: rgba(205, 200, 240, 0.40);
  --illustration-stroke-subtle: rgba(205, 200, 240, 0.25);
  --illustration-fill-1: #202124;
  --illustration-fill-2: #2B2C30;
  --illustration-fill-3: #34353A;
  --illustration-fill-4: #44454B;

  /* Floating Objects (muted, desaturated secondary hues) */
  --hero-crystal-1: #3b6b66;
  --hero-crystal-2: #2d5652;
  --hero-crystal-3: #4a7d78;
  --hero-crystal-4: #264a46;
  --hero-droplet: #525359;
  --hero-leaf: #335c44;
  --hero-sat-body: #393A3F;
  --hero-sat-panel: #FFC928;
  --hero-sat-core: #525359;
  --hero-bubble-a: #44454B;
  --hero-bubble-b: #643248;
  --hero-bubble-c: #2c476b;
  --hero-bubble-d: #2a5e4d;
  --hero-bubble-d-text: #a7f3d0;
  --hero-d-badge: #143329;
  --hero-d-check: #a7f3d0;

  --hero-star-gold: #FFC928;
  --hero-star-lav: #F2F0E9;
  --hero-sparkle: #F2F0E9;

  --card-tag-bg: #5a2835;
  --card-tag-text: #fecdd3;
  --chalkboard-bg: #202124;
  --mascot-antenna: #FFC928;

  /* Bento Cards & Panels (distinct dark tints matching light mode) */
  --bento-blue: #28292D;       /* blue-indigo */
  --bento-lav: #2B2C30;        /* plum */
  --bento-white: #26272B;      /* teal-navy */
  --bento-peach: #2B2C30;      /* warm coral-brown */
  --final-cta-bg: #28292D;     /* plum-navy */

  /* Signed-in Dashboard Tiles */
  --tile-t-0: #2B2C30; --tile-t-1: #2B2C30; --tile-t-2: #2B2C30;
  --tile-a-0: #26272B; --tile-a-1: #26272B; --tile-a-2: #26272B;
  --tile-b-0: #2B2C30; --tile-b-1: #2B2C30; --tile-b-2: #2B2C30;
  --tile-p-0: #28292D; --tile-p-1: #28292D; --tile-p-2: #28292D;
  --clay-flood-shade: #151619;
  --clay-flood-light: rgba(242, 240, 233, 0.08);

  /* Status Colors */
  --ok: #2a5e4d; --ok-ink: #a7f3d0;
  --bad: #643248; --bad-ink: #fecdd3;
  --warn: #7a4f22; --warn-ink: #fed7aa;
  --info: #2c476b;

  /* Palette Overrides mapped to graphite shades */
  --blue-50: #202124; --blue-100: #28292D; --blue-200: #35363B; --blue: #525359; --blue-500: #717278; --blue-deep: #FFC928;
  --lav-50: #242529; --lav-100: #2B2C30; --lav-200: #393A3F; --lav: #44454B; --lav-400: #5B5C63; --lav-deep: #FFC928;
  --peach-50: #222326; --peach-100: #2B2C30; --peach-200: #393A3F; --peach: #FFC928; --peach-500: #E6B01F; --peach-deep: #FFC928;

  --ink-900: #F2F0E9;
  --ink-700: rgba(242, 240, 233, 0.68);
  --ink-500: rgba(242, 240, 233, 0.45);

  --g-clay-blue: linear-gradient(145deg, #35363B 0%, #28292D 55%, #202124 100%);
  --g-clay-lav: linear-gradient(145deg, #393A3F 0%, #2B2C30 55%, #242529 100%);
  --g-clay-peach: linear-gradient(145deg, #393A3F 0%, #2B2C30 55%, #222326 100%);
  --g-clay-white: linear-gradient(145deg, #2B2C30 0%, #242529 60%, #202124 100%);
  --g-glass: linear-gradient(135deg, rgba(36, 37, 41, 0.85), rgba(28, 29, 32, 0.85));
  --g-glass-rim: linear-gradient(135deg, rgba(242, 240, 233, 0.16), rgba(242, 240, 233, 0.02) 42%, rgba(255, 201, 40, 0.2));
  --accent-bg: #FFC928;

  --logo-mark-peach: #FFC928;
  --logo-mark-blue: #525359;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(120px + env(safe-area-inset-top, 0px))}
@media (min-width:768px){html{scroll-padding-top:calc(4rem + env(safe-area-inset-top, 0px))}}
body{margin:0;min-height:100svh;font:400 1rem/1.6 var(--f-body);color:var(--text);background:var(--bg);overflow-x:hidden;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:var(--f-display);font-weight:800;letter-spacing:-.025em;line-height:1.1;margin:0}
p{margin:0}
a{color:inherit}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid var(--ring);outline-offset:2px;border-radius:12px}
.num{font-family:var(--f-num);font-variant-numeric:tabular-nums}
.muted{color:var(--text-muted)}
.skip{position:absolute;left:-999px;top:8px;z-index:99;background:var(--surface);color:var(--text);padding:8px 14px;border-radius:12px}
.skip:focus{left:12px}

/* page mesh */
.mesh{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;
  background:radial-gradient(60% 50% at 12% 8%,var(--blue-100) 0%,transparent 62%),radial-gradient(48% 44% at 92% 14%,var(--peach-100) 0%,transparent 62%),radial-gradient(70% 60% at 50% 100%,var(--lav) 0%,var(--bg) 72%)}
.blob{position:absolute;border-radius:50%;filter:blur(60px);opacity:.55;animation:drift 22s var(--ease) infinite alternate}
.b1{width:42vw;height:42vw;left:-10vw;top:28vh;background:var(--blue-200)}
.b2{width:34vw;height:34vw;right:-8vw;top:-6vh;background:var(--peach-200);animation-duration:28s}
.b3{width:30vw;height:30vw;right:18vw;bottom:-14vw;background:var(--lav-200);animation-duration:34s}
@keyframes drift{to{transform:translate3d(4vw,-3vh,0) scale(1.08)}}

.dark .mesh, [data-theme="dark"] .mesh{display:none!important}

/* Night sky washes & vertical indigo-navy gradient (dark mode only) */
.dark body::before, [data-theme="dark"] body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:var(--bg-base);
}
.dark body, [data-theme="dark"] body{
  background: transparent!important;
  background-color: #1C1D20!important;
  color: #F2F0E9;
}

/* Top strip #FFC928 -> transparent gradient */
.dark header.top::before, [data-theme="dark"] header.top::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #FFC928 0%, rgba(255,201,40,0.3) 35%, transparent 75%);
  pointer-events: none;
}
.dark, [data-theme="dark"],
.dark *, [data-theme="dark"] * {
  scrollbar-color: rgba(242, 240, 233, 0.2) transparent;
}
.dark::-webkit-scrollbar, [data-theme="dark"]::-webkit-scrollbar,
.dark *::-webkit-scrollbar, [data-theme="dark"] *::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.dark::-webkit-scrollbar-thumb, [data-theme="dark"]::-webkit-scrollbar-thumb,
.dark *::-webkit-scrollbar-thumb, [data-theme="dark"] *::-webkit-scrollbar-thumb {
  background-color: rgba(242, 240, 233, 0.2);
  border-radius: 999px;
}
.dark::-webkit-scrollbar-track, [data-theme="dark"]::-webkit-scrollbar-track,
.dark *::-webkit-scrollbar-track, [data-theme="dark"] *::-webkit-scrollbar-track {
  background: transparent;
}
.dark :focus-visible, [data-theme="dark"] :focus-visible {
  outline: 2px solid #FFC928 !important;
  outline-offset: 2px !important;
}

/* materials */
.clay{position:relative;background:var(--clay-bg,var(--g-clay-lav));border-radius:var(--r-lg);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 6px 6px 12px rgba(255,255,255,.55),inset -8px -10px 16px var(--clay-inner,rgba(100,95,165,.16)),-6px -6px 16px rgba(255,255,255,.7),10px 14px 28px -8px var(--clay-cast,rgba(105,98,170,.28));
  transition:transform 140ms var(--ease),box-shadow 140ms var(--ease)}
button.clay:active,a.clay:active,.clay[data-pressed="true"],.press:active{transform:translateY(1px) scale(.985);
  box-shadow:inset 6px 6px 14px var(--clay-inner,rgba(100,95,165,.2)),inset -6px -6px 12px rgba(255,255,255,.8),2px 3px 8px -2px var(--clay-cast,rgba(105,98,170,.28))}

.dark .clay, [data-theme="dark"] .clay{
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 2px 2px 6px rgba(255,255,255,0.04), inset -4px -6px 10px rgba(0,0,0,0.4), 0 8px 24px -6px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
}
.dark button.clay:active, .dark a.clay:active, [data-theme="dark"] button.clay:active, [data-theme="dark"] a.clay:active{
  box-shadow: inset 3px 3px 8px rgba(0,0,0,0.45), inset -2px -2px 6px rgba(255,255,255,0.05), 0 2px 8px -2px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
}

[data-tint="powder"]{--clay-bg:var(--g-clay-blue);--clay-cast:rgba(70,105,170,.36);--clay-inner:rgba(60,95,160,.24)}
[data-tint="lav"]{--clay-bg:var(--g-clay-lav);--clay-cast:rgba(105,98,170,.26);--clay-inner:rgba(100,95,165,.16)}
[data-tint="peach"]{--clay-bg:var(--g-clay-peach);--clay-cast:rgba(190,105,75,.36);--clay-inner:rgba(170,85,55,.22)}
[data-tint="white"]{--clay-bg:var(--g-clay-white);--clay-cast:rgba(90,100,160,.24);--clay-inner:rgba(100,95,165,.12)}

.dark [data-tint="powder"], [data-theme="dark"] [data-tint="powder"]{--clay-cast:rgba(0,0,0,.5);--clay-inner:rgba(0,0,0,.3)}
.dark [data-tint="lav"], [data-theme="dark"] [data-tint="lav"]{--clay-cast:rgba(0,0,0,.5);--clay-inner:rgba(0,0,0,.3)}
.dark [data-tint="peach"], [data-theme="dark"] [data-tint="peach"]{--clay-cast:rgba(0,0,0,.5);--clay-inner:rgba(0,0,0,.3)}
.dark [data-tint="white"], [data-theme="dark"] [data-tint="white"]{--clay-cast:rgba(0,0,0,.5);--clay-inner:rgba(0,0,0,.3)}

.glass{background:var(--g-glass),var(--g-glass-rim);background-origin:border-box;background-clip:padding-box,border-box;border:1px solid var(--border);
  -webkit-backdrop-filter:blur(16px) saturate(150%);backdrop-filter:blur(16px) saturate(150%);
  box-shadow:0 14px 34px -14px rgba(60,80,140,.32),inset 0 1px 0 rgba(255,255,255,.8)}
.dark .glass, [data-theme="dark"] .glass{
  background: var(--surface-glass);
  box-shadow: 0 14px 34px -14px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12);
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.glass{background:var(--surface)}}
@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.glass{background:var(--surface);backdrop-filter:none}}

/* header */
header.top{
  position:sticky;
  top:0;
  z-index:50;
  width:100%;
  height:auto;
  min-height:44px;
  padding-top:env(safe-area-inset-top, 0px);
  background:var(--surface-glass);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  border-bottom:1px solid transparent;
  transition:border-color 180ms ease,background-color 180ms ease;
}
header.top.is-scrolled{
  border-bottom-color:var(--border-subtle);
  background:var(--surface-raised);
}

.top-inner{
  max-width:72rem;
  margin:0 auto;
  padding:8px 1rem;
  width:100%;
  box-sizing:border-box;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.logo{
  order:1;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0 14px 0 10px;
  border-radius:999px;
  text-decoration:none;
  font:800 1rem var(--f-display);
  letter-spacing:-.02em;
  min-height:44px;
  min-width:44px;
  color:var(--text);
  flex-shrink:0;
  white-space:nowrap;
  touch-manipulation:manipulation;
  box-sizing:border-box;
  transition:transform 140ms var(--ease),box-shadow 140ms var(--ease);
}
.logo svg{
  flex-shrink:0;
  display:block;
}
.logo span{
  white-space:nowrap;
}
@media (max-width:359.98px){
  .logo{
    gap:6px;
    padding:0 10px 0 8px;
    font-size:0.95rem;
  }
}

.header-actions{
  order:2;
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}

.tools-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  min-width:44px;
  height:44px;
  min-height:44px;
  padding:0;
  border-radius:50%;
  color:var(--text);
  flex-shrink:0;
  touch-manipulation:manipulation;
  box-sizing:border-box;
}
.tools-toggle svg{
  display:block;
  flex-shrink:0;
}

#signin{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  min-width:44px;
  height:44px;
  min-height:44px;
  padding:0;
  border-radius:50%;
  color:var(--text);
  white-space:nowrap;
  flex-shrink:0;
  touch-manipulation:manipulation;
  box-sizing:border-box;
}
#signin .g{
  display:block;
  flex-shrink:0;
}
#signin span{
  display:none;
  white-space:nowrap;
}
@media (min-width:390px){
  #signin{
    width:auto;
    padding:0 14px;
    border-radius:999px;
    gap:8px;
  }
  #signin span{
    display:inline;
    font-size:0.9rem;
    font-weight:700;
  }
}

.nav{
  order:3;
  width:100%;
  box-sizing:border-box;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  padding:4px;
  border-radius:999px;
  position:static;
  margin:0;
  touch-manipulation:manipulation;
}
.nav a{
  min-height:44px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:4px 8px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  font-size:0.88rem;
  line-height:1.15;
  color:var(--text-secondary);
  white-space:nowrap;
  touch-manipulation:manipulation;
  transition:background 160ms,color 160ms;
  box-sizing:border-box;
}
.nav a small{
  display:block;
  font:500 0.65rem var(--f-body);
  color:var(--text-muted);
  letter-spacing:0.02em;
  line-height:1;
  margin-bottom:2px;
}
.nav a:hover{
  background:var(--bg-tint-blue);
  color:var(--text);
}
.nav a[aria-current="page"]{
  background:var(--surface);
  color:var(--text);
  box-shadow:0 4px 12px -4px rgba(70,100,160,.35);
}

.logo:focus-visible,
.tools-toggle:focus-visible,
#signin:focus-visible,
.nav a:focus-visible{
  outline:2px solid var(--ring);
  outline-offset:2px;
  border-radius:999px;
}

.dark header.top, [data-theme="dark"] header.top{
  background:rgba(28,29,32,.88);
  border-bottom-color:transparent;
}
.dark header.top.is-scrolled, [data-theme="dark"] header.top.is-scrolled{
  border-bottom-color:rgba(242,240,233,.08);
  background:#24252A;
}
.dark header.top .logo,
.dark header.top .nav,
.dark header.top .theme-toggle-btn,
.dark header.top .tools-toggle,
.dark header.top #signin,
[data-theme="dark"] header.top .logo,
[data-theme="dark"] header.top .nav,
[data-theme="dark"] header.top .theme-toggle-btn,
[data-theme="dark"] header.top .tools-toggle,
[data-theme="dark"] header.top #signin{
  background:var(--surface-1);
  border:1px solid rgba(242,240,233,.08);
  color:var(--text-primary);
  box-shadow:0 4px 12px rgba(0,0,0,.25);
}
.dark .nav a, [data-theme="dark"] .nav a{
  color:rgba(242,240,233,.68);
}
.dark .nav a small, [data-theme="dark"] .nav a small{
  color:rgba(242,240,233,.45);
}
.dark .nav a:hover, [data-theme="dark"] .nav a:hover{
  background:var(--surface-3);
  color:var(--text-primary);
}
.dark .nav a[aria-current="page"], [data-theme="dark"] .nav a[aria-current="page"]{
  background:var(--surface-3);
  color:#FFC928;
  border:1px solid rgba(255,201,40,.40);
  box-shadow:none;
}
.dark .nav a[aria-current="page"] small, [data-theme="dark"] .nav a[aria-current="page"] small{
  color:rgba(255,201,40,.7);
}

/* Theme Switch Control */
.theme-switch{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  min-width:44px;
  height:44px;
  min-height:44px;
  padding:0;
  border-radius:50%;
  border:1px solid var(--border);
  background:var(--surface-glass);
  box-shadow:0 4px 12px -4px rgba(70,100,160,.25);
  cursor:pointer;
  box-sizing:border-box;
  touch-manipulation:manipulation;
  -webkit-tap-highlight-color:transparent;
  flex-shrink:0;
  transition:background-color 200ms var(--ease),border-color 200ms var(--ease),box-shadow 200ms var(--ease);
}
.theme-switch:focus-visible{
  outline:2px solid var(--ring);
  outline-offset:2px;
}
.theme-switch-thumb{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:50%;
  background:#FFC928;
  color:#1C1D20;
  box-shadow:0 2px 6px rgba(0,0,0,.25);
  transform:none;
  flex-shrink:0;
}
.theme-switch-thumb svg{
  display:block;
  stroke:#1C1D20;
}
.theme-switch-thumb .moon-icon{display:none}
.theme-switch-thumb .sun-icon{display:block}

/* Checked state = Dark mode */
.theme-switch[aria-checked="true"] .theme-switch-thumb{
  transform:none;
}
.theme-switch[aria-checked="true"] .theme-switch-thumb .moon-icon{
  display:block;
}
.theme-switch[aria-checked="true"] .theme-switch-thumb .sun-icon{
  display:none;
}

/* Dark mode track */
.dark .theme-switch, [data-theme="dark"] .theme-switch{
  background:var(--surface-3)!important;
  border:1px solid rgba(242,240,233,.16)!important;
  box-shadow:0 4px 12px rgba(0,0,0,.25)!important;
}
.dark .theme-switch:focus-visible, [data-theme="dark"] .theme-switch:focus-visible{
  outline:2px solid #FFC928;
  outline-offset:2px;
}

/* Laptop and Desktop Layout (md: and up - min-width: 768px) */
@media (min-width: 768px){
  header.top{
    height:4rem;
  }
  .top-inner{
    height:100%;
    padding:0 1.5rem;
    gap:16px;
    flex-wrap:nowrap;
    align-items:center;
    justify-content:space-between;
  }
  .logo{
    order:initial;
    gap:10px;
    padding:10px 18px 10px 12px;
    font:800 1.05rem var(--f-display);
    letter-spacing:-.02em;
  }
  .nav{
    order:initial;
    width:auto;
    display:flex;
    padding:6px;
    border-radius:999px;
    gap:2px;
  }
  .nav a{
    min-height:0;
    display:flex;
    flex-direction:column;
    padding:6px 20px;
    border-radius:999px;
    font-size:1rem;
    line-height:1.2;
  }
  .nav a small{
    font:500 .7rem var(--f-body);
    margin-bottom:0;
  }
  .header-actions{
    order:initial;
    margin-left:auto;
    gap:8px;
  }
  .theme-switch{
    width:72px;
    border-radius:999px;
    padding:4px;
    justify-content:flex-start;
  }
  .theme-switch-thumb{
    transform:translateX(0);
    transition:transform 200ms cubic-bezier(.16,1,.3,1),background-color 200ms var(--ease);
  }
  .theme-switch[aria-checked="true"] .theme-switch-thumb{
    transform:translateX(28px);
  }
  .tools-toggle{
    padding:12px;
    width:auto;
    height:auto;
  }
  #signin{
    width:auto;
    height:auto;
    min-height:44px;
    min-width:44px;
    padding:13px 22px;
    border-radius:999px;
    gap:10px;
  }
  #signin span{
    display:inline;
    font-size:1rem;
  }
}
@media (min-width: 1024px){
  .top-inner{
    padding-left:2rem;
    padding-right:2rem;
  }
}
.no-transitions, .no-transitions *{
  transition:none!important;
}

.auth-shell{min-height:calc(100svh - 92px);padding:28px clamp(16px,4vw,56px) 48px;display:grid;place-items:center}
.auth-panel{width:min(1120px,100%);min-height:clamp(460px,calc(100svh - 168px),720px);padding:clamp(32px,6vw,88px);border-radius:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:24px;position:relative;isolation:isolate;
  background:linear-gradient(135deg,rgba(255,255,255,.64),rgba(242,245,255,.28));border:1px solid var(--border);
  -webkit-backdrop-filter:blur(30px) saturate(145%);backdrop-filter:blur(30px) saturate(145%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(255,255,255,.3),0 28px 80px -30px rgba(71,85,140,.25)}
.dark .auth-panel, [data-theme="dark"] .auth-panel{background:var(--surface-glass);box-shadow:0 28px 80px -30px rgba(0,0,0,.5)}
.auth-panel .eyebrow{justify-content:center}
.auth-panel h1{font-size:clamp(2.15rem,4.8vw,4.25rem);line-height:1.08;letter-spacing:-.045em;max-width:15ch;text-wrap:balance}
.auth-description{max-width:49ch;font-size:clamp(1rem,1.4vw,1.2rem);line-height:1.7;color:var(--text-secondary);text-wrap:pretty}
.auth-panel .btn{margin-top:8px;min-height:54px;padding:0 30px}
@media (max-width:860px){.auth-shell{min-height:calc(100svh - 170px);padding:16px 16px 28px}.auth-panel{min-height:calc(100svh - 220px);border-radius:36px;padding:40px 24px;gap:24px}.auth-panel .eyebrow{font-size:.66rem;letter-spacing:.13em}.auth-panel .eyebrow::after{display:none}}
@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.auth-panel{background:var(--surface);backdrop-filter:none}}
.cta{display:flex;align-items:center;gap:10px;padding:13px 22px;border-radius:999px;font-weight:700}
.cta img{width:26px;height:26px;border-radius:50%}

/* buttons, chips */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 22px;border-radius:999px;font-weight:700;text-decoration:none;white-space:nowrap}
.btn.sm{min-height:38px;padding:0 16px;font-size:.9rem}
.btn.ink{background:var(--primary);color:var(--primary-foreground);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),inset -4px -6px 12px rgba(0,0,0,.25),var(--shadow-soft);transition:transform 140ms var(--ease)}
.btn.ink:active{transform:translateY(1px) scale(.98)}
.btn svg{width:18px;height:18px;flex:none}
.btn:disabled{opacity:.5;pointer-events:none}
.chip{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:999px;font:600 .75rem var(--f-body);letter-spacing:.02em;background:var(--surface-glass);color:var(--text-secondary)}
.chip.hy{background:var(--warn);color:var(--warn-ink)}
.chip.dot::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--accent)}
.eyebrow{display:flex;align-items:center;gap:12px;font:600 .78rem var(--f-body);letter-spacing:.18em;text-transform:uppercase;color:var(--text-secondary)}
.eyebrow::after{content:"";width:44px;height:1.5px;background:currentColor;opacity:.5}
.seg{display:inline-flex;padding:4px;border-radius:999px;gap:2px}
.seg button{padding:6px 14px;border-radius:999px;font:700 .8rem var(--f-body);color:var(--text-secondary);transition:background 160ms,color 160ms}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--text);box-shadow:var(--shadow-soft)}
.dark .btn.ink, [data-theme="dark"] .btn.ink{
  background:#FFC928;
  color:#1C1D20;
  border:1px solid rgba(255,201,40,.40);
  box-shadow:0 4px 14px rgba(0,0,0,.35);
}
.dark .btn.ink:hover, [data-theme="dark"] .btn.ink:hover{
  background:#FFD554;
}
.dark .btn.ink:active, [data-theme="dark"] .btn.ink:active{
  background:#E6B01F;
}
.dark .btn.ink svg, [data-theme="dark"] .btn.ink svg{
  color:#1C1D20;
  stroke:#1C1D20;
}
.dark .btn.clay, [data-theme="dark"] .btn.clay{
  background:var(--surface-1);
  color:#F2F0E9;
  border:1px solid rgba(242,240,233,.08);
}
.dark .btn.clay:hover, [data-theme="dark"] .btn.clay:hover{
  background:var(--surface-3);
  border-color:rgba(242,240,233,.16);
}
.dark .seg, [data-theme="dark"] .seg{
  background:var(--surface-1);
  border:1px solid rgba(242,240,233,.08);
}
.dark .seg button, [data-theme="dark"] .seg button{
  color:rgba(242,240,233,.68);
}
.dark .seg button:hover, [data-theme="dark"] .seg button:hover{
  color:var(--text-primary);
}
.dark .seg button[aria-pressed="true"], [data-theme="dark"] .seg button[aria-pressed="true"]{
  background:#FFC928;
  color:#1C1D20;
  font-weight:700;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
}

/* ===== HERO ===== */
.hero{max-width:1280px;margin:0 auto;padding:8px clamp(16px,3vw,32px) 0}
.art-wrap{container-type:inline-size}
.art{position:relative;--u:1px}
.art-svg{display:none}
.tile{border-radius:28px;padding:26px}
.tile h1{font-size:calc(var(--u)*50);line-height:1.02;letter-spacing:-.04em}
.tile h1 .w{display:inline-block;overflow:hidden;vertical-align:bottom}
.tile h1 .w>span{display:inline-block;animation:wipe 700ms var(--ease) both;animation-delay:calc(var(--i)*70ms + 200ms)}
@keyframes wipe{from{transform:translateY(105%)}}
.tile-t .lead{font-size:calc(var(--u)*16);line-height:1.5;color:var(--ink-700);max-width:40ch;margin-top:calc(var(--u)*14)}
.tile-t .row{display:flex;gap:calc(var(--u)*12);flex-wrap:wrap;margin-top:calc(var(--u)*22)}
.tile-t .micro{font-size:.78rem;color:var(--ink-700);margin-top:10px}
.thumb{position:absolute;right:calc(var(--u)*0);top:calc(var(--u)*0);width:calc(var(--u)*118);height:calc(var(--u)*146);border-radius:28px;display:grid;place-items:center;text-align:center;padding:10px;text-decoration:none}
.thumb small{display:block;font-size:calc(var(--u)*11.5);color:var(--ink-700);line-height:1.25;margin-top:4px}
.ring{--p:0;width:calc(var(--u)*70);height:calc(var(--u)*70);border-radius:50%;display:grid;place-items:center;margin:0 auto;
  background:radial-gradient(closest-side,var(--surface) 76%,transparent 78% 100%),conic-gradient(var(--accent-ink) calc(var(--p)*1%),rgba(91,79,163,.14) 0);transition:--p 900ms var(--ease)}
.ring b{font:600 calc(var(--u)*16) var(--f-num)}
@property --p{syntax:'<number>';inherits:true;initial-value:0}
.dark .ring, [data-theme="dark"] .ring{
  background:radial-gradient(closest-side,var(--surface-2) 76%,transparent 78% 100%),conic-gradient(#FFC928 calc(var(--p)*1%),rgba(242,240,233,.10) 0);
  color:#F2F0E9;
}
.dark .mod .ring, [data-theme="dark"] .mod .ring{
  background:radial-gradient(closest-side,var(--surface-1) 76%,transparent 78% 100%),conic-gradient(#FFC928 calc(var(--p)*1%),rgba(242,240,233,.10) 0);
}
.dark .done .ring, [data-theme="dark"] .done .ring{
  background:radial-gradient(closest-side,var(--surface-2) 76%,transparent 78% 100%),conic-gradient(#FFC928 calc(var(--p)*1%),rgba(242,240,233,.10) 0);
}

/* flashcard demo */
.tile-a{display:flex;flex-direction:column;color:var(--text)}
.tile-a .head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.tile-a .label{font:700 calc(var(--u)*13) var(--f-body);color:var(--text);letter-spacing:.02em}
.stack{position:relative;flex:1;display:grid;place-items:center;margin:calc(var(--u)*18) 0 calc(var(--u)*10);perspective:1200px;min-height:230px;touch-action:pan-y}
.fc{position:absolute;width:min(86%,calc(var(--u)*380));aspect-ratio:1.45;transition:transform 520ms var(--ease),opacity 300ms}
.fc[data-depth="1"]{transform:translateY(calc(var(--u)*16)) scale(.94) rotate(-2.5deg)}
.fc[data-depth="2"]{transform:translateY(calc(var(--u)*30)) scale(.88) rotate(3deg)}
.fc .in{position:absolute;inset:0;transform-style:preserve-3d;transition:transform 560ms var(--spring)}
.fc.flip .in{transform:rotateY(180deg)}
.face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:22px;padding:calc(var(--u)*22);display:flex;flex-direction:column;justify-content:space-between;
  background:var(--g-clay-white);box-shadow:inset 0 1px 0 rgba(255,255,255,.4),var(--shadow-soft)}
.face.back{transform:rotateY(180deg);background:var(--g-clay-peach)}
.face .q{font:700 calc(var(--u)*19) / 1.3 var(--f-display);letter-spacing:-.01em}
.face .meta{display:flex;justify-content:space-between;align-items:center;font-size:calc(var(--u)*12);color:var(--text-muted)}
.face .hint{font-size:calc(var(--u)*12.5);color:var(--peach-deep)}
.fc.top{cursor:grab}
.fc.out{transition:transform 360ms var(--ease-in),opacity 360ms;opacity:0}
.tile-a .foot-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:calc(var(--u)*12.5);color:var(--text-secondary)}
.kbd{font:600 .72rem var(--f-num);padding:2px 7px;border-radius:6px;background:var(--surface-glass);box-shadow:inset 0 -1px 0 rgba(0,0,0,.08)}

/* mcq */
.tile-b .head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:calc(var(--u)*420)}
.tile-b .head .label{font:700 calc(var(--u)*13) var(--f-body);color:var(--lav-deep)}
.qmeta{font:500 .78rem var(--f-num);color:var(--text-secondary)}
.stem{font:700 calc(var(--u)*19.5) / 1.35 var(--f-display);letter-spacing:-.01em;margin:calc(var(--u)*30) 0 calc(var(--u)*14);max-width:calc(var(--u)*720)}
.opts{display:grid;grid-template-columns:1fr 1fr;gap:calc(var(--u)*12)}
.opt{display:flex;align-items:center;gap:12px;text-align:left;padding:calc(var(--u)*11) calc(var(--u)*14);border-radius:18px;font-weight:500;min-height:48px;
  --clay-bg:var(--g-clay-white);transition:transform 260ms var(--spring),box-shadow 200ms,background 200ms}
.opt .l{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font:600 .82rem var(--f-num);background:var(--lav-200);color:var(--lav-deep)}
.opt .st{margin-left:auto;font:700 .72rem var(--f-body);letter-spacing:.03em;white-space:nowrap}
.opt:hover:not(:disabled){transform:translateY(-1px)}
.opt:disabled{cursor:default}
.opt.ok{--clay-bg:var(--ok);--clay-cast:rgba(23,105,79,.32);--clay-inner:rgba(23,105,79,.16);transform:scale(1.025)}
.opt.ok .l{background:var(--ok-ink);color:var(--surface)}.opt.ok .st{color:var(--ok-ink)}
.opt.bad{--clay-bg:var(--bad);transform:scale(.975) translateY(2px);box-shadow:inset 5px 5px 12px rgba(179,50,47,.18)}
.opt.bad .l{background:var(--bad-ink);color:var(--surface)}.opt.bad .st{color:var(--bad-ink)}
.opt.dim{opacity:.6}
.sol{margin-top:calc(var(--u)*12);display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.layers{display:grid;gap:8px;margin-top:10px}
.layer{border-radius:16px;background:var(--surface-raised);padding:10px 14px;font-size:.92rem;animation:unfold 360ms var(--ease) both;transform-origin:top}
.layer b{font:700 .72rem var(--f-body);letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);display:block}
.layer.trap{background:var(--warn);color:var(--warn-ink)}.layer.trap b{color:var(--warn-ink)}
.layer.ans{background:var(--ok);color:var(--ok-ink)}.layer.ans b{color:var(--ok-ink)}
@keyframes unfold{from{opacity:0;transform:scaleY(.7) translateY(-6px)}}

/* predicted tile */
.tile-p .big{font:600 calc(var(--u)*64)/1 var(--f-num);letter-spacing:-.04em;color:var(--accent-ink)}
.tile-p .big sup{font-size:.28em;letter-spacing:0;vertical-align:top;margin-left:4px}
.tile-p .lbl{font:700 calc(var(--u)*13.5) var(--f-body);color:var(--accent-ink);margin-top:4px}
.tile-p a{font-size:calc(var(--u)*12.5);font-weight:700;color:var(--accent-ink);display:inline-flex;align-items:center;gap:6px;margin-top:calc(var(--u)*10)}

/* desktop artboard */
@media (min-width:1024px){
  .art{--u:calc(100cqw/1150);aspect-ratio:1150/780}
  .art-svg{display:block;position:absolute;inset:0;width:100%;height:100%;overflow:visible}
  .art-svg g.t{transition:transform 600ms var(--ease);transform-box:fill-box;transform-origin:center}
  .tile{position:absolute;left:var(--x);top:var(--y);width:var(--w);height:var(--h);padding:0;background:none!important;box-shadow:none!important;border-radius:0}
  .tile-a{z-index:2}.tile-t .lead{max-width:calc(var(--u)*420)}
  .art.intro .tile-a{animation-delay:80ms}.art.intro .tile-b{animation-delay:160ms}.art.intro .tile-p{animation-delay:240ms}
  .stack{min-height:0}
  .thumb{border-radius:calc(var(--u)*28)}
  .art.intro .tile,.art.intro g.t{animation:rise 700ms var(--ease) both}
}
@keyframes rise{from{opacity:0;transform:translateY(16px) scale(.98)}}
@media (max-width:1023px){
  .art{display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}.tile{min-width:0}
  .tile-t{display:flex;flex-direction:column}.thumb{order:9}.tile-t .micro{order:10}
  .tile-t{background:var(--g-clay-peach)!important;--clay-cast:rgba(190,105,75,.28);--clay-inner:rgba(170,85,55,.14);padding:28px 24px;position:relative}
  .tile-t h1{font-size:clamp(2.4rem,1.2rem + 5vw,3.6rem)}
  .thumb{position:static;width:auto;height:auto;display:flex;gap:14px;text-align:left;margin-top:20px;padding:12px 16px}
  .thumb small{font-size:.8rem}.ring{--u:1px}
  .tile-a{--clay-bg:var(--g-clay-blue);clip-path:polygon(0 0,100% 0,100% 100%,56px 100%,0 calc(100% - 56px))}
  .tile-a .stack{aspect-ratio:4/3.2}
  .tile-b{--clay-bg:var(--g-clay-lav);clip-path:polygon(56px 0,100% 0,100% 100%,0 100%,0 56px)}
  .tile-b .head{padding-left:34px}
  .tile-p{--clay-bg:var(--g-clay-peach)}
  .stem{font-size:1.15rem}.face .q{font-size:1.1rem}.tile-p .big{font-size:4rem}
}
@media (min-width:700px) and (max-width:1023px){.art{grid-template-columns:repeat(2,minmax(0,1fr))}.tile-t,.tile-p{grid-column:1/-1}.tile-b .opts{grid-template-columns:1fr}}
@media (max-width:1023px){
  .tile-t .row .btn{max-width:100%;min-width:0;white-space:normal;padding:12px 22px;line-height:1.4}
  .tile-t .row .btn span{min-width:0;overflow-wrap:anywhere}
  .tile-t .row .btn svg{flex-shrink:0}
}
@media (max-width:560px){.opts{grid-template-columns:1fr}.tile-t .row .btn{flex:1 1 100%}}

/* Dark mode dashboard tiles & blob cards */
.dark .art-svg g.t,
[data-theme="dark"] .art-svg g.t{
  filter:drop-shadow(0 24px 60px rgba(0,0,0,.35)) drop-shadow(0 0 80px rgba(255,201,40,.05))!important;
}

/* Put surface colour (--surface-1 / --surface-2) only on the blob-shaped element */
/* On desktop: blob-shaped SVG paths hold surface colour & faint top highlight; inner wrappers are completely transparent with no border/shadow */
@media (min-width:1024px){
  .dark .tile,
  .dark .tile-t,
  .dark .tile-a,
  .dark .tile-b,
  .dark .tile-p,
  [data-theme="dark"] .tile,
  [data-theme="dark"] .tile-t,
  [data-theme="dark"] .tile-a,
  [data-theme="dark"] .tile-b,
  [data-theme="dark"] .tile-p{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    outline:0!important;
  }
}

/* Set every inner wrapper inside those cards to background: transparent; border: 0; box-shadow: none; outline: 0; */
/* Leave the flashcard itself (.fc), MCQ option cards (.opt), buttons, pills and toggles as they are */
.dark .tile-t .thumb,
.dark .tile-a .head,
.dark .tile-a .stack,
.dark .tile-a .foot-row,
.dark .tile-b .head,
.dark .tile-b .foot-row,
.dark .tile-p .lbl,
[data-theme="dark"] .tile-t .thumb,
[data-theme="dark"] .tile-a .head,
[data-theme="dark"] .tile-a .stack,
[data-theme="dark"] .tile-a .foot-row,
[data-theme="dark"] .tile-b .head,
[data-theme="dark"] .tile-b .foot-row,
[data-theme="dark"] .tile-p .lbl{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:0!important;
}

/* Mobile: the tile elements are the blob-shaped cards themselves with faint top-edge highlight and dark mode shadow */
@media (max-width:1023px){
  .dark .tile-t, [data-theme="dark"] .tile-t{
    background:linear-gradient(180deg, rgba(255,214,130,.05), transparent 40%), var(--surface-2)!important;
    border:1px solid rgba(242,240,233,.08)!important;
    box-shadow:0 24px 60px rgba(0,0,0,.35), 0 0 80px rgba(255,201,40,.05)!important;
  }
  .dark .tile-a, [data-theme="dark"] .tile-a{
    background:linear-gradient(180deg, rgba(255,214,130,.05), transparent 40%), var(--surface-1)!important;
    border:0!important;
    filter:drop-shadow(0 24px 60px rgba(0,0,0,.35)) drop-shadow(0 0 80px rgba(255,201,40,.05))!important;
    box-shadow:none!important;
  }
  .dark .tile-b, [data-theme="dark"] .tile-b{
    background:linear-gradient(180deg, rgba(255,214,130,.05), transparent 40%), var(--surface-1)!important;
    border:0!important;
    filter:drop-shadow(0 24px 60px rgba(0,0,0,.35)) drop-shadow(0 0 80px rgba(255,201,40,.05))!important;
    box-shadow:none!important;
  }
  .dark .tile-p, [data-theme="dark"] .tile-p{
    background:linear-gradient(180deg, rgba(255,214,130,.05), transparent 40%), var(--surface-2)!important;
    border:1px solid rgba(242,240,233,.08)!important;
    box-shadow:0 24px 60px rgba(0,0,0,.35), 0 0 80px rgba(255,201,40,.05)!important;
  }
}
.dark .tile-b .head .label, [data-theme="dark"] .tile-b .head .label{
  color:#FFC928;
}
.dark .tile-b .opt, [data-theme="dark"] .tile-b .opt{
  background:var(--surface-2);
  border:1px solid rgba(242,240,233,.08);
  color:var(--text-primary);
}
.dark .tile-b .opt .l, [data-theme="dark"] .tile-b .opt .l{
  background:var(--surface-3);
  color:#FFC928;
}
.dark .tile-p .big, [data-theme="dark"] .tile-p .big{
  color:#F2F0E9;
}
.dark .tile-p .big sup, [data-theme="dark"] .tile-p .big sup{
  color:#FFC928;
}
.dark .tile-p .lbl, [data-theme="dark"] .tile-p .lbl{
  color:rgba(242,240,233,.68);
}
.dark .tile-p a, [data-theme="dark"] .tile-p a{
  color:#FFC928;
}
.dark .stack .fc, [data-theme="dark"] .stack .fc{
  background:var(--surface-2);
  color:var(--text-primary);
  border:1px solid rgba(242,240,233,.08);
}
.dark .stack .fc[data-depth="1"], [data-theme="dark"] .stack .fc[data-depth="1"]{
  background:var(--surface-2);
  filter:brightness(.92);
}
.dark .stack .fc[data-depth="2"], [data-theme="dark"] .stack .fc[data-depth="2"]{
  background:var(--surface-3);
  filter:brightness(.85);
}
.dark .stack .face, [data-theme="dark"] .stack .face{
  background:var(--surface-2);
  color:var(--text-primary);
}
.dark .stack .face.back, [data-theme="dark"] .stack .face.back{
  background:var(--surface-3);
  color:var(--text-primary);
}
.dark #nextCard, [data-theme="dark"] #nextCard{
  background:#FFC928!important;
  color:#1C1D20!important;
  border:1px solid rgba(255,201,40,.40)!important;
}
.dark #nextCard:hover, [data-theme="dark"] #nextCard:hover{
  background:#FFD554!important;
}
.dark #nextCard svg, [data-theme="dark"] #nextCard svg{
  color:#1C1D20!important;
  stroke:#1C1D20!important;
}

/* ===== sections ===== */
.wrap{max-width:1200px;margin:0 auto;padding:0 clamp(16px,3vw,32px)}
.sec{padding:clamp(56px,8vw,104px) 0 0}
.sec-h{display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap;margin-bottom:28px}
.sec-h h2{font-size:clamp(1.7rem,1.2rem + 1.6vw,2.5rem);max-width:20ch}
.sec-h p{max-width:46ch;color:var(--ink-700)}
.creator-credit{margin-top:24px;padding:16px 20px;border-radius:18px;background:var(--lav-50);color:var(--ink-700);font-size:.9rem}
.creator-credit p{margin-bottom:6px;font-weight:700}
.creator-credit ul{display:flex;flex-wrap:wrap;gap:4px 24px;list-style:none;margin:0;padding:0}
.subjects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.subj{padding:26px;border-radius:32px;text-decoration:none;display:flex;flex-direction:column;gap:14px;min-height:300px}
.subj:hover{transform:translateY(-3px)}
.subj .code{font:600 .8rem var(--f-num);letter-spacing:.08em;opacity:.8}
.subj h3{font-size:1.55rem;letter-spacing:-.03em}
.subj p{color:var(--ink-700);font-size:.95rem}
.subj .stats{display:flex;gap:18px;margin-top:auto}
.subj .stats div{font:600 1.5rem var(--f-num)}.subj .stats small{display:block;font:500 .75rem var(--f-body);color:var(--ink-700)}
.subj .go{position:absolute;right:20px;top:20px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.75)}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;counter-reset:s}
.step{padding:24px;border-radius:28px;background:rgba(255,255,255,.55)}
.step::before{counter-increment:s;content:"0" counter(s);font:600 .85rem var(--f-num);color:var(--blue-deep);display:block;margin-bottom:28px}
.step h3{font-size:1.2rem;margin-bottom:8px}.step p{color:var(--ink-700);font-size:.95rem}
@media (max-width:860px){.subjects,.steps{grid-template-columns:1fr}.subj{min-height:0}}
.dark .subj, [data-theme="dark"] .subj{
  background:var(--surface-1);
  border:1px solid rgba(242,240,233,.08);
}
.dark .subj .go, [data-theme="dark"] .subj .go{
  background:var(--surface-3);
  color:#FFC928;
}
.dark .step, [data-theme="dark"] .step{
  background:var(--surface-1);
  border:1px solid rgba(242,240,233,.08);
}
.dark .step::before, [data-theme="dark"] .step::before{
  color:#FFC928;
}
.dark .creator-credit, [data-theme="dark"] .creator-credit{
  background:var(--surface-1);
  border:1px solid rgba(242,240,233,.08);
  color:rgba(242,240,233,.68);
}

/* ===== app pages ===== */
.subject-tabs{display:inline-flex;max-width:100%;overflow-x:auto;gap:4px;padding:6px;border-radius:24px;margin-bottom:24px}
.subject-tabs a{padding:11px 18px;border-radius:18px;font-size:.9rem;font-weight:700;text-decoration:none;white-space:nowrap}
.subject-tabs a[aria-current="page"]{background:var(--surface);color:var(--text);box-shadow:var(--shadow-soft)}
.module-group{grid-column:1/-1;font-size:1.35rem;margin:8px 0 0}
.page-head{padding:clamp(20px,4vw,40px) 0 24px;display:flex;justify-content:space-between;align-items:end;gap:20px;flex-wrap:wrap}
.page-head h1{font-size:clamp(2rem,1.4rem + 2.2vw,3rem)}
.page-head p{color:var(--ink-700);max-width:56ch;margin-top:10px}
.crumb{font:600 .8rem var(--f-body);color:var(--ink-700);text-decoration:none;display:inline-flex;gap:6px;align-items:center;margin-bottom:12px}
.mods{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.mod{padding:20px;border-radius:26px;display:flex;flex-direction:column;gap:12px}
.mod .top-row{display:flex;justify-content:space-between;gap:12px;align-items:start}
.mod .id{font:600 .78rem var(--f-num);color:var(--ink-500)}
.mod h3{font-size:1.1rem;letter-spacing:-.015em;line-height:1.25}
.mod .ring{--u:.8px;flex:none}
.mod .acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.mod.locked{background:rgba(255,255,255,.45);box-shadow:inset 0 0 0 1.5px rgba(91,79,163,.14)}
.mod.locked h3{color:var(--ink-700)}
.filter{margin-bottom:22px}
.dark .subject-tabs, [data-theme="dark"] .subject-tabs{
  background:var(--surface-1);
  border:1px solid rgba(242,240,233,.08);
}
.dark .subject-tabs a, [data-theme="dark"] .subject-tabs a{
  color:rgba(242,240,233,.68);
}
.dark .subject-tabs a[aria-current="page"], [data-theme="dark"] .subject-tabs a[aria-current="page"]{
  background:var(--surface-3);
  color:#FFC928;
  border:1px solid rgba(255,201,40,.40);
  box-shadow:none;
}
.dark .filter.seg button[aria-pressed="true"], [data-theme="dark"] .filter.seg button[aria-pressed="true"]{
  background:var(--surface-3);
  color:#FFC928;
  border:1px solid rgba(255,201,40,.40);
}
.dark .mod, [data-theme="dark"] .mod{
  background:var(--surface-1);
  border:1px solid rgba(242,240,233,.08);
  box-shadow:0 4px 16px rgba(0,0,0,.25);
  transition:border-color 200ms,box-shadow 200ms,transform 200ms;
}
.dark .mod:hover, [data-theme="dark"] .mod:hover{
  border-color:rgba(255,201,40,.40);
  box-shadow:0 8px 24px rgba(0,0,0,.35),0 0 16px rgba(255,201,40,.12);
}
.dark .mod .id, [data-theme="dark"] .mod .id{
  color:rgba(242,240,233,.45);
}
.dark .chip.hy, [data-theme="dark"] .chip.hy{
  background:rgba(255,201,40,.15);
  color:#FFC928;
  border:1px solid rgba(255,201,40,.40);
}
.dark .mod .acts .btn, [data-theme="dark"] .mod .acts .btn{
  background:var(--surface-2);
  color:#F2F0E9;
  border:1px solid rgba(242,240,233,.08);
}
.dark .mod .acts .btn:hover, [data-theme="dark"] .mod .acts .btn:hover{
  border-color:rgba(255,201,40,.40);
  color:#F2F0E9;
}
.dark .mod .acts .btn svg, [data-theme="dark"] .mod .acts .btn svg{
  color:#F2F0E9;
  stroke:#F2F0E9;
}

.session{max-width:760px;margin:0 auto}
.bar{height:10px;border-radius:99px;background:rgba(91,79,163,.12);overflow:hidden;box-shadow:inset 1px 2px 4px rgba(60,60,120,.15)}
.bar i{display:block;height:100%;border-radius:99px;background:var(--accent-bg);transition:width 500ms var(--ease)}
.sess-top{display:flex;align-items:center;gap:16px;margin:12px 0 26px}
.sess-top .bar{flex:1}
.big-card{position:relative;aspect-ratio:1.6;perspective:1400px;cursor:pointer;margin-bottom:24px}
.big-card .fc{width:100%;aspect-ratio:auto;inset:0}
.big-card .face{padding:clamp(22px,4vw,40px);border-radius:32px}
.big-card .face .q{font-size:clamp(1.3rem,1rem + 1.4vw,1.9rem)}
.big-card .face .a{font:500 clamp(1.1rem,.95rem + .8vw,1.45rem)/1.45 var(--f-body)}
@media (max-width:560px){.big-card{aspect-ratio:.95}}
.rate{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.rate button{padding:14px 8px;border-radius:20px;font-weight:700;display:flex;flex-direction:column;align-items:center;gap:2px}
.rate small{font:500 .72rem var(--f-num);color:var(--ink-500)}
.panel{background:var(--surface-raised);border:1px solid var(--border);border-radius:28px;padding:clamp(20px,3vw,32px);box-shadow:var(--shadow-soft)}
.panel .stem{font-size:clamp(1.15rem,1rem + .6vw,1.4rem);margin:12px 0 20px}
.panel .opts{grid-template-columns:1fr}
.next-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;flex-wrap:wrap}
.done{text-align:center;padding:48px 24px}
.done .ring{--u:2px;margin-bottom:20px}
.done h2{font-size:2rem;margin-bottom:8px}
.done .row{display:flex;gap:12px;justify-content:center;margin-top:24px;flex-wrap:wrap}

/* notes */
.note{max-width:720px;margin:0 auto;display:grid;gap:18px}
.note .panel h2{font-size:1.25rem;margin-bottom:10px}
.note .panel p{font-size:1.06rem;line-height:1.7}
.fbox{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.fbox div{padding:16px;border-radius:20px}
.fbox small{display:block;font-weight:700;font-size:.78rem;color:var(--text-secondary);margin-bottom:6px}
.fbox code{font:600 1.08rem var(--f-num);color:var(--text)}
.facts{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.facts li{display:flex;gap:12px;padding:12px 14px;border-radius:16px;background:var(--peach-50)}
.facts li::before{content:"★";color:var(--peach-deep)}
.traps li{background:var(--warn);color:var(--warn-ink)}.traps li::before{content:"⚠";color:var(--warn-ink)}

/* predicted list + cover mode */
.plist{display:grid;gap:14px}
.pq{position:relative;padding:20px 22px;border-radius:24px;background:var(--surface-raised);border:1px solid var(--border);box-shadow:var(--shadow-soft)}
.pq .qmeta{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.pq .s{font-weight:700;font-family:var(--f-display);letter-spacing:-.01em;font-size:1.05rem}
.pq ol{list-style:upper-alpha;margin:10px 0 0;padding-left:22px;display:grid;grid-template-columns:repeat(2,1fr);gap:4px 20px;color:var(--text-secondary)}
.pq ol li.c{color:var(--ok-ink);font-weight:700}
.pq .ans{margin-top:12px;padding:12px 14px;border-radius:16px;background:var(--ok);color:var(--ok-ink);position:relative;overflow:hidden}
.pq .ans p+p{margin-top:4px;font-size:.92rem;color:var(--text-secondary)}
.pq .cover{position:absolute;inset:0;border-radius:16px;display:grid;place-items:center;font:700 .85rem var(--f-body);color:var(--text-secondary);transition:opacity 420ms var(--ease),filter 420ms,transform 420ms;cursor:pointer;
  background:var(--surface-glass);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.pq.open .cover{opacity:0;transform:scale(1.04);filter:blur(6px);pointer-events:none}
@media (max-width:560px){.pq ol{grid-template-columns:1fr}}

.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translate(-50%,30px);opacity:0;padding:12px 20px;border-radius:18px;font-weight:600;font-size:.92rem;z-index:50;transition:opacity 240ms,transform 240ms var(--ease);max-width:calc(100% - 32px);pointer-events:none}
.toast.on{opacity:1;transform:translate(-50%,0)}
.dark .bar, [data-theme="dark"] .bar{
  background:rgba(242,240,233,.08);
  box-shadow:inset 1px 1px 3px rgba(0,0,0,.4);
}
.dark .bar i, [data-theme="dark"] .bar i{
  background:#FFC928;
}
.dark .panel, [data-theme="dark"] .panel{
  background:var(--surface-2);
  border:1px solid rgba(242, 240, 233, 0.12);
  box-shadow:var(--shadow-soft);
}
.dark .panel .stem, [data-theme="dark"] .panel .stem{
  color:#F2F0E9;
}
.dark .panel .opt, [data-theme="dark"] .panel .opt{
  background:var(--surface-1);
  border:1px solid rgba(242, 240, 233, 0.12);
  color:var(--text-primary);
  transition:border-color 150ms,background-color 150ms,transform 150ms;
}
.dark .panel .opt:hover:not(:disabled), [data-theme="dark"] .panel .opt:hover:not(:disabled){
  border-color:rgba(255,201,40,.40);
}
.dark .panel .opt[aria-pressed="true"], [data-theme="dark"] .panel .opt[aria-pressed="true"]{
  background:rgba(255,201,40,.12);
  border-color:#FFC928;
  outline:2px solid #FFC928;
}
.dark .panel .opt .l, [data-theme="dark"] .panel .opt .l{
  background:var(--surface-3);
  color:#FFC928;
}
.dark .panel .opt.ok, [data-theme="dark"] .panel .opt.ok{
  background:rgba(42,94,77,.22)!important;
  border:1.5px solid #3e8e72!important;
  color:var(--text-primary)!important;
}
.dark .panel .opt.ok .l, [data-theme="dark"] .panel .opt.ok .l{
  background:#3e8e72!important;
  color:#1C1D20!important;
}
.dark .panel .opt.ok .st, [data-theme="dark"] .panel .opt.ok .st{
  color:#a7f3d0!important;
}
.dark .panel .opt.bad, [data-theme="dark"] .panel .opt.bad{
  background:rgba(100,50,72,.22)!important;
  border:1.5px solid #9e4b67!important;
  color:var(--text-primary)!important;
}
.dark .panel .opt.bad .l, [data-theme="dark"] .panel .opt.bad .l{
  background:#9e4b67!important;
  color:#1C1D20!important;
}
.dark .panel .opt.bad .st, [data-theme="dark"] .panel .opt.bad .st{
  color:#fecdd3!important;
}
.dark .layers .layer, [data-theme="dark"] .layers .layer{
  background:var(--surface-1);
  border:1px solid rgba(242,240,233,.08);
}
.dark .layers .layer.ans, [data-theme="dark"] .layers .layer.ans{
  background:rgba(111,207,151,.12);
  border:1px solid #6FCF97;
  color:var(--text-primary);
}
.dark .layers .layer.ans b, [data-theme="dark"] .layers .layer.ans b{
  color:#6FCF97;
}
.dark .layers .layer.trap, [data-theme="dark"] .layers .layer.trap{
  background:rgba(242,153,74,.14);
  border:1px solid #F2994A;
  color:var(--text-primary);
}
.dark .layers .layer.trap b, [data-theme="dark"] .layers .layer.trap b{
  color:#F2994A;
}
.dark .layers .layer.hint, [data-theme="dark"] .layers .layer.hint{
  background:var(--surface-1);
  border:1px solid rgba(242,240,233,.12);
}
.dark .layers .layer.cut, [data-theme="dark"] .layers .layer.cut{
  background:rgba(255,201,40,.12);
  border:1px solid rgba(255,201,40,.40);
  color:var(--text-primary);
}
.dark .layers .layer.cut b, [data-theme="dark"] .layers .layer.cut b{
  color:#FFC928;
}
.dark .sess-top .chip.num, [data-theme="dark"] .sess-top .chip.num{
  background:var(--surface-3);
  color:rgba(242,240,233,.68);
  border:1px solid rgba(242,240,233,.08);
}
.dark .sess-top .chip.num .score-num, [data-theme="dark"] .sess-top .chip.num .score-num{
  color:#FFC928;
}
.dark #practice-pace, [data-theme="dark"] #practice-pace{
  color:rgba(242,240,233,.45);
}
.dark #practice-pace.over-pace, [data-theme="dark"] #practice-pace.over-pace{
  color:#F2994A!important;
}
.dark #next:disabled, [data-theme="dark"] #next:disabled{
  background:rgba(255,201,40,.25)!important;
  color:rgba(242,240,233,.45)!important;
  border:1px solid transparent!important;
  box-shadow:none!important;
  cursor:not-allowed;
  opacity:1!important;
}
.dark #next:disabled svg, [data-theme="dark"] #next:disabled svg{
  color:rgba(242,240,233,.45)!important;
  stroke:rgba(242,240,233,.45)!important;
}
.dark #card-prev:disabled, [data-theme="dark"] #card-prev:disabled{
  color:rgba(242,240,233,.28);
  border-color:rgba(242,240,233,.04);
}
.dark .page-head .seg button[aria-pressed="true"], [data-theme="dark"] .page-head .seg button[aria-pressed="true"]{
  background:rgba(255,201,40,.16)!important;
  color:#FFC928!important;
  border:1px solid rgba(255,201,40,.40)!important;
  box-shadow:none!important;
}
.dark .item-tools .btn, [data-theme="dark"] .item-tools .btn{
  background:var(--surface-1);
  color:#F2F0E9;
  border:1px solid rgba(242,240,233,.08);
}
.dark .item-tools .btn:hover, [data-theme="dark"] .item-tools .btn:hover{
  background:var(--surface-3);
  border-color:rgba(242,240,233,.16);
}
.dark .item-tools [data-bookmark][aria-pressed="true"], [data-theme="dark"] .item-tools [data-bookmark][aria-pressed="true"]{
  background:rgba(255,201,40,.16)!important;
  color:#FFC928!important;
  border:1px solid rgba(255,201,40,.40)!important;
}

/* Notes View */
.dark .note-toc, [data-theme="dark"] .note-toc{
  background:var(--surface-1);
  border:1px solid rgba(242,240,233,.08);
}
.dark .note-toc a, [data-theme="dark"] .note-toc a{
  color:rgba(242,240,233,.68);
  border-left:2px solid transparent;
  border-radius:4px;
  padding-left:10px;
  transition:color 150ms,border-color 150ms;
}
.dark .note-toc a:hover, [data-theme="dark"] .note-toc a:hover{
  color:var(--text-primary);
  background:var(--surface-3);
}
.dark .note-toc a.active, .dark .note-toc a[aria-current="true"],
[data-theme="dark"] .note-toc a.active, [data-theme="dark"] .note-toc a[aria-current="true"]{
  color:#FFC928!important;
  border-left:2px solid #FFC928!important;
  background:rgba(255,201,40,.08);
  font-weight:700;
}
.dark .note-toc p.muted, [data-theme="dark"] .note-toc p.muted{
  color:rgba(242,240,233,.45);
}
.dark .note > .chip, [data-theme="dark"] .note > .chip{
  background:rgba(242,240,233,.06);
  color:rgba(242,240,233,.45);
  border:1px solid rgba(242,240,233,.08);
}
.dark .note .panel, [data-theme="dark"] .note .panel{
  background:var(--surface-2);
  border:1px solid rgba(242,240,233,.08);
}
.dark .note .panel h2, [data-theme="dark"] .note .panel h2{
  color:#F2F0E9;
}
.dark .note .panel p, [data-theme="dark"] .note .panel p{
  color:rgba(242,240,233,.82);
}
.dark .note code,
.dark .fbox div,
[data-theme="dark"] .note code,
[data-theme="dark"] .fbox div{
  background:#1C1D20!important;
  color:#FFC928!important;
  border:1px solid rgba(255,201,40,.25)!important;
}
.dark .fbox code, [data-theme="dark"] .fbox code{
  color:#FFC928!important;
}
.dark #note-traps, .dark .traps li,
[data-theme="dark"] #note-traps, [data-theme="dark"] .traps li{
  background:rgba(242,153,74,.12)!important;
  border:1px solid rgba(242,153,74,.35)!important;
  color:var(--text-primary)!important;
}
.dark #note-traps h2, [data-theme="dark"] #note-traps h2{
  color:#F2994A!important;
}
.dark .traps li::before, [data-theme="dark"] .traps li::before{
  color:#F2994A!important;
}
.dark #note-shortcuts,
[data-theme="dark"] #note-shortcuts{
  background:rgba(255,201,40,.10)!important;
  border:1px solid rgba(255,201,40,.35)!important;
  color:var(--text-primary)!important;
}
.dark #note-shortcuts h2, [data-theme="dark"] #note-shortcuts h2{
  color:#FFC928!important;
}

.dark .pq, [data-theme="dark"] .pq{
  background:var(--surface-2);
  border:1px solid rgba(242,240,233,.08);
}
.dark .pq .cover, [data-theme="dark"] .pq .cover{
  background:rgba(36,37,42,.88);
  color:rgba(242,240,233,.68);
}
.dark .toast, [data-theme="dark"] .toast{
  background:var(--surface-3);
  color:#F2F0E9;
  border:1px solid rgba(242,240,233,.12);
}
.dark .question-palette button[aria-current="step"], [data-theme="dark"] .question-palette button[aria-current="step"]{
  background:#FFC928!important;
  color:#1C1D20!important;
}
.dark .question-palette .marked, [data-theme="dark"] .question-palette .marked{
  box-shadow:inset 0 0 0 2px #F2994A!important;
}
@media (max-width:860px){.toast{bottom:100px}}
.view-in{animation:viewin 420ms var(--ease) both}
@keyframes viewin{from{opacity:0;transform:translateY(10px)}}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:1ms!important;animation-delay:0ms!important;transition-duration:120ms!important}.blob{animation:none}.fc .in{transition:opacity 120ms}}

/* Public Landing Page */
.landing-shell{width:100%;max-width:1240px;margin:0 auto;padding:0 clamp(16px,4vw,32px);display:flex;flex-direction:column;gap:clamp(48px,8vw,80px);overflow-x:clip}

/* Atmosphere Hero Section */
.hero-atmosphere{
  position:relative;
  width:100%;
  max-width:100%;
  min-height:100dvh;
  min-height:calc(100dvh - 64px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  overflow-x:clip;
  padding:0;
  margin:0;
  box-sizing:border-box;
}
.hero-scene-wrap{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:1;
  overflow:hidden;
}
.hero-atmosphere-svg{
  width:100%;
  height:100%;
  display:block;
  overflow:hidden;
}
.hero-backdrop{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:min(940px,94vw);
  height:min(520px,80%);
  background:radial-gradient(ellipse 65% 55% at 50% 48%,rgba(246,245,253,.88) 0%,rgba(246,245,253,.45) 60%,transparent 100%);
  pointer-events:none;
  z-index:2;
}
.dark .hero-backdrop, [data-theme="dark"] .hero-backdrop{
  background:radial-gradient(ellipse 65% 55% at 50% 48%,rgba(14,20,36,.88) 0%,rgba(14,20,36,.45) 60%,transparent 100%);
}
.hero-content{
  position:relative;
  z-index:3;
  width:100%;
  max-width:80rem;
  margin:0 auto;
  padding:20px 1rem 64px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  box-sizing:border-box;
}
@media (min-width:640px){.hero-content{padding-left:1.5rem;padding-right:1.5rem;padding-bottom:72px}}
@media (min-width:1024px){.hero-content{padding-left:2rem;padding-right:2rem;padding-bottom:80px}}

.hero-eyebrow{
  font:700 .8rem var(--f-body);
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--ink-700);
  margin-bottom:16px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  animation:heroFadeUp .6s var(--ease) .05s both;
}
.hero-eyebrow::after{
  content:"";
  width:32px;
  height:1.5px;
  background:currentColor;
  opacity:.4;
}

.hero-headline{
  font-family:var(--f-display);
  font-size:clamp(2.5rem,9vw,6rem);
  font-weight:800;
  line-height:.95;
  letter-spacing:-.04em;
  color:var(--ink-900);
  max-width:14ch;
  margin:0 auto 20px;
  text-wrap:balance;
  word-break:break-word;
  overflow-wrap:break-word;
  animation:heroFadeUp .7s var(--ease) .15s both;
}
@media (max-width:480px){
  .hero-headline{
    font-size:clamp(2.15rem,8.8vw,2.9rem);
    max-width:11ch;
    line-height:1.02;
  }
}

.hero-subtext{
  font-size:clamp(1.05rem,1.8vw,1.25rem);
  line-height:1.5;
  color:var(--ink-700);
  max-width:36rem;
  margin:0 auto 32px;
  text-wrap:pretty;
  animation:heroFadeUp .6s var(--ease) .25s both;
}

.hero-cta-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  width:100%;
  max-width:340px;
  animation:heroFadeUp .6s var(--ease) .35s both;
}
@media (min-width:640px){.hero-cta-wrap{max-width:none}}

.hero-cta-pill{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  height:3.5rem;
  width:100%;
  padding:0 8px 0 18px;
  background:var(--primary);
  color:var(--primary-foreground);
  border-radius:999px;
  box-shadow:0 12px 28px -6px rgba(27,36,64,.38),inset 0 1px 0 rgba(255,255,255,.25);
  cursor:pointer;
  transition:transform 200ms var(--ease),box-shadow 200ms var(--ease);
  border:1px solid rgba(255,255,255,.18);
  min-height:44px;
  touch-manipulation:manipulation;
  box-sizing:border-box;
}
@media (min-width:640px){.hero-cta-pill{width:auto;min-width:280px;padding:0 8px 0 20px}}
.hero-cta-pill:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 36px -8px rgba(27,36,64,.48),inset 0 1px 0 rgba(255,255,255,.32);
}
.hero-cta-pill:active{
  transform:translateY(1px) scale(.985);
}
.hero-cta-pill:focus-visible{
  outline:3px solid var(--ring);
  outline-offset:3px;
}
.hero-cta-content{
  display:flex;
  align-items:center;
  gap:12px;
}
.hero-cta-label{
  font:700 1.05rem var(--f-display);
  letter-spacing:-.01em;
  color:var(--primary-foreground);
}
.hero-cta-icon-box{
  width:40px;
  height:40px;
  background:var(--surface);
  color:var(--text);
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  transition:transform 200ms var(--ease);
}
.hero-cta-pill:hover .hero-cta-icon-box{
  transform:translateX(4px);
}
.dark .hero-backdrop, [data-theme="dark"] .hero-backdrop{
  background:radial-gradient(ellipse 70% 55% at 50% 70%, rgba(245, 182, 158, 0.08) 0%, rgba(245, 182, 158, 0.02) 45%, transparent 75%)!important;
}
.dark .hero-eyebrow, [data-theme="dark"] .hero-eyebrow{
  color:#FFC928!important;
}
.dark .hero-eyebrow::after, [data-theme="dark"] .hero-eyebrow::after{
  background:rgba(255,201,40,.5)!important;
  opacity:1!important;
}
.dark .hero-headline, [data-theme="dark"] .hero-headline{
  color:#F2F0E9;
}
.dark .hero-subtext, [data-theme="dark"] .hero-subtext{
  color:rgba(242,240,233,.68);
}
.dark .hero-atmosphere-svg .hero-layer-labels text,
[data-theme="dark"] .hero-atmosphere-svg .hero-layer-labels text,
.dark .hero-atmosphere-svg .desktop-only-obj text,
[data-theme="dark"] .hero-atmosphere-svg .desktop-only-obj text{
  fill:#d5d2f2!important;
  opacity:0.70!important;
}
.dark .hero-cta-pill, [data-theme="dark"] .hero-cta-pill{
  background:#FFC928;
  color:#1C1D20;
  border:1px solid rgba(255,201,40,.40);
  box-shadow:0 12px 28px -6px rgba(0,0,0,.5), 0 0 20px rgba(245, 182, 158, 0.12);
}
.dark .hero-cta-pill:hover, [data-theme="dark"] .hero-cta-pill:hover{
  background:#FFD554;
}
.dark .hero-cta-pill:active, [data-theme="dark"] .hero-cta-pill:active{
  background:#E6B01F;
}
.dark .hero-cta-label, [data-theme="dark"] .hero-cta-label{
  color:#1C1D20;
}
.dark .hero-cta-icon-box, [data-theme="dark"] .hero-cta-icon-box{
  background:#1C1D20;
  color:#FFC928;
  border:1.5px solid rgba(255,201,40,.3);
  box-shadow:0 4px 12px rgba(0,0,0,.35);
}
.dark .hero-cta-icon-box svg, [data-theme="dark"] .hero-cta-icon-box svg{
  color:#FFC928;
  stroke:#FFC928;
}
.dark .hero-cta-subnote, [data-theme="dark"] .hero-cta-subnote{
  color:rgba(242,240,233,.45);
}
.dark .stats-band, [data-theme="dark"] .stats-band{
  background:var(--surface-1);
  border:1px solid rgba(242,240,233,.08);
}
.dark .stat-divider, [data-theme="dark"] .stat-divider{
  background:rgba(242,240,233,.08);
}
.dark .stat-number, [data-theme="dark"] .stat-number{
  color:#F2F0E9;
}
.dark .stat-label, [data-theme="dark"] .stat-label{
  color:rgba(242,240,233,.45);
}
.dark .bento-card, [data-theme="dark"] .bento-card{
  border:1px solid rgba(242,240,233,.08);
  box-shadow:0 12px 30px -10px rgba(0,0,0,.45);
}
.dark .bento-card-lav, [data-theme="dark"] .bento-card-lav{background:#24252A}
.dark .bento-card-blue, [data-theme="dark"] .bento-card-blue{background:#27282E}
.dark .bento-card-peach, [data-theme="dark"] .bento-card-peach{background:#2A2B32}
.dark .bento-card-white, [data-theme="dark"] .bento-card-white{background:#24252A}
.dark .bento-card-title, [data-theme="dark"] .bento-card-title{color:#F2F0E9}
.dark .bento-card-desc, [data-theme="dark"] .bento-card-desc{color:rgba(242,240,233,.68)}
.dark .how-num-circle, [data-theme="dark"] .how-num-circle{
  background:var(--surface-1);
  border:1.5px solid rgba(242,240,233,.16);
  color:#FFC928;
}
.dark .how-step-title, [data-theme="dark"] .how-step-title{color:#F2F0E9}
.dark .how-step-desc, [data-theme="dark"] .how-step-desc{color:rgba(242,240,233,.68)}
.dark .how-path-line, [data-theme="dark"] .how-path-line{stroke:rgba(242,240,233,.16)}
.dark .how-mobile-track, [data-theme="dark"] .how-mobile-track{background:rgba(242,240,233,.08)}
.dark .final-cta-panel, [data-theme="dark"] .final-cta-panel{
  background:var(--surface-1);
  border:1px solid rgba(242,240,233,.08);
}
.dark .final-cta-heading, [data-theme="dark"] .final-cta-heading{color:#F2F0E9}
.dark .final-cta-lead, [data-theme="dark"] .final-cta-lead{color:rgba(242,240,233,.68)}
.dark .final-cta-subnote, [data-theme="dark"] .final-cta-subnote{color:rgba(242,240,233,.45)}
.dark .final-cta-pill, [data-theme="dark"] .final-cta-pill{
  background:#FFC928!important;
  color:#1C1D20!important;
}
.dark .final-cta-pill .hero-cta-label, [data-theme="dark"] .final-cta-pill .hero-cta-label{
  color:#1C1D20!important;
}
.dark .final-cta-pill .hero-cta-icon-box, [data-theme="dark"] .final-cta-pill .hero-cta-icon-box{
  background:#1C1D20!important;
  color:#FFC928!important;
}
.dark .landing-footer, [data-theme="dark"] .landing-footer{
  border-top-color:rgba(242,240,233,.08);
}
.dark .landing-footer-logo, [data-theme="dark"] .landing-footer-logo{color:#F2F0E9}
.dark .landing-footer-link, [data-theme="dark"] .landing-footer-link{color:rgba(242,240,233,.68)}
.dark .landing-footer-link:hover, [data-theme="dark"] .landing-footer-link:hover{color:#FFC928}
.dark .compact-signin-card, [data-theme="dark"] .compact-signin-card{
  background:var(--surface-1);
  border:1px solid rgba(242,240,233,.08);
}
.hero-cta-subnote{
  display:block;
  font-size:.84rem;
  color:var(--ink-500);
  font-weight:500;
  text-align:center;
}

/* Animations: Fade up, Drift, Parallax */
@keyframes heroFadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@keyframes heroDrift1{0%{transform:translate3d(0,0,0)}50%{transform:translate3d(8px,-12px,0)}100%{transform:translate3d(-6px,-20px,0)}}
@keyframes heroDrift2{0%{transform:translate3d(0,0,0)}50%{transform:translate3d(-10px,10px,0)}100%{transform:translate3d(8px,18px,0)}}
@keyframes heroDrift3{0%{transform:translate3d(0,0,0)}50%{transform:translate3d(10px,-8px,0)}100%{transform:translate3d(-6px,-16px,0)}}
@keyframes heroDrift4{0%{transform:translate3d(0,0,0)}50%{transform:translate3d(-8px,-10px,0)}100%{transform:translate3d(6px,-18px,0)}}
@keyframes heroDrift5{0%{transform:translate3d(0,0,0)}50%{transform:translate3d(6px,12px,0)}100%{transform:translate3d(-8px,8px,0)}}
@keyframes heroDrift6{0%{transform:translate3d(0,0,0)}50%{transform:translate3d(-6px,-10px,0)}100%{transform:translate3d(8px,-16px,0)}}
@keyframes heroDriftMascot{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(0,-6px,0)}}

.hero-drift-1{animation:heroDrift1 8.5s ease-in-out infinite alternate}
.hero-drift-2{animation:heroDrift2 7.2s ease-in-out infinite alternate -2s}
.hero-drift-3{animation:heroDrift3 9s ease-in-out infinite alternate -4.5s}
.hero-drift-4{animation:heroDrift4 6.8s ease-in-out infinite alternate -1.5s}
.hero-drift-5{animation:heroDrift5 8s ease-in-out infinite alternate -3s}
.hero-drift-6{animation:heroDrift6 7.6s ease-in-out infinite alternate -1s}
.hero-drift-mascot{animation:heroDriftMascot 5.5s ease-in-out infinite alternate}

.parallax-near{transform:translate3d(calc(var(--hero-mx,0)*16px),calc(var(--hero-my,0)*16px),0);transition:transform 120ms ease-out}
.parallax-mid{transform:translate3d(calc(var(--hero-mx,0)*10px),calc(var(--hero-my,0)*10px),0);transition:transform 120ms ease-out}
.parallax-far{transform:translate3d(calc(var(--hero-mx,0)*5px),calc(var(--hero-my,0)*5px),0);transition:transform 120ms ease-out}

/* Responsive SVG floating objects */
@media (max-width:768px){
  .desktop-only-obj{display:none!important}
  .floating-flashcard-group{transform:translate(690px,135px) scale(.72) rotate(-6.5deg)!important}
  .floating-crystal-group{transform:translate(515px,230px) scale(.85)!important}
  .floating-leaf-group{transform:translate(870px,460px) scale(.85) rotate(22deg)!important}
  .floating-droplet-group{transform:translate(525px,590px) scale(.85)!important}
  .floating-option-d-group{transform:translate(855px,570px) scale(.85)!important}
}

@media (prefers-reduced-motion:reduce){
  .hero-drift-1,.hero-drift-2,.hero-drift-3,.hero-drift-4,.hero-drift-5,.hero-drift-6,.hero-drift-mascot{animation:none!important}
  .parallax-near,.parallax-mid,.parallax-far{transform:none!important}
  .hero-eyebrow,.hero-headline,.hero-subtext,.hero-cta-wrap{animation:none!important;opacity:1!important;transform:none!important}
}

/* Global Landing Container & Rhythm */
.l-container{max-width:72rem;margin-left:auto;margin-right:auto;padding-left:1rem;padding-right:1rem;width:100%}
@media (min-width:640px){.l-container{padding-left:1.5rem;padding-right:1.5rem}}
@media (min-width:1024px){.l-container{padding-left:2rem;padding-right:2rem}}

.landing-sec{padding-top:clamp(4rem,7vw,7rem);padding-bottom:clamp(4rem,7vw,7rem)}
.landing-sec-stats{padding-top:clamp(2rem,4vw,3.5rem);padding-bottom:clamp(3rem,5vw,5rem)}

.landing-sec-header{text-align:center;max-width:48rem;margin:0 auto clamp(2rem,4vw,3.5rem)}
.landing-sec-heading{
  font-family:var(--f-display);
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1.05;
  font-size:clamp(2rem,5.5vw,3.75rem);
  color:var(--text);
  margin:0 auto;
  max-width:48rem;
  text-wrap:balance;
}
.landing-sec-subtext{
  margin-top:1rem;
  font-size:clamp(1rem,1.4vw,1.125rem);
  color:var(--text-muted);
  line-height:1.6;
  max-width:36rem;
  margin-left:auto;
  margin-right:auto;
}

/* Scroll Fade Up Animation */
.scroll-fade-up{opacity:0;transform:translateY(24px);transition:opacity 600ms cubic-bezier(.16,1,.3,1),transform 600ms cubic-bezier(.16,1,.3,1)}
.scroll-fade-up.in-view{opacity:1;transform:translateY(0)}
@media (prefers-reduced-motion:reduce){
  .scroll-fade-up{opacity:1!important;transform:none!important;transition:none!important}
}

/* 1. Stats Band */
.stats-band{display:flex;flex-direction:column;border-radius:1.75rem;background:var(--surface-raised);border:1.5px solid var(--border);box-shadow:var(--shadow-soft)}
@media (min-width:640px){.stats-band{flex-direction:row;align-items:center;justify-content:space-around}}
.stat-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.75rem 1.25rem;text-align:center;flex:1}
.stat-num-row{display:inline-flex;align-items:center;justify-content:center;gap:.75rem}
.stat-number{font-family:var(--f-display);font-weight:800;font-size:clamp(2.75rem,5.5vw,3.75rem);line-height:1;letter-spacing:-.03em;color:var(--text)}
.stat-illu{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.stat-label{font-size:.875rem;color:var(--text-muted);font-weight:500;margin-top:.5rem}
.stat-divider{width:100%;height:1px;background:var(--border-subtle)}
@media (min-width:640px){.stat-divider{width:1px;height:3.75rem}}

/* 2. Features Bento Grid */
.features-bento-grid{display:grid;grid-template-columns:1fr;gap:1.25rem}
@media (min-width:640px){.features-bento-grid{grid-template-columns:repeat(2,1fr);gap:1.5rem}}
@media (min-width:1024px){.features-bento-grid{grid-template-columns:repeat(6,1fr);gap:1.75rem}}

.bento-card{position:relative;border-radius:1.5rem;padding:1.75rem 1.5rem 1.25rem;display:flex;flex-direction:column;overflow:hidden;border:1.5px solid var(--border);box-shadow:var(--shadow-soft);transition:transform 220ms var(--ease),box-shadow 220ms var(--ease)}
@media (min-width:640px){.bento-card{padding:2rem 1.75rem 1.5rem}}

@media (hover:hover) and (pointer:fine){
  .bento-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px -12px rgba(27,36,64,.12)}
  .bento-card:hover .bento-visual{transform:rotate(2deg) scale(1.02)}
}

.bento-card-lav{background:var(--bento-lav)}
.bento-card-blue{background:var(--bento-blue)}
.bento-card-peach{background:var(--bento-peach)}
.bento-card-white{background:var(--bento-white)}

@media (min-width:1024px){
  .bento-card-wide{grid-column:span 3;min-height:380px}
  .bento-card-compact{grid-column:span 3;min-height:340px}
}

.bento-card-head{margin-bottom:1rem;z-index:2;position:relative}
.bento-card-title{font-family:var(--f-display);font-size:1.25rem;font-weight:700;color:var(--text);margin:0}
.bento-card-desc{font-size:.9375rem;color:var(--text-secondary);line-height:1.55;margin-top:.35rem}

.bento-visual{margin-top:auto;display:flex;align-items:center;justify-content:center;width:100%;transition:transform 240ms var(--ease);z-index:1;position:relative}
.bento-visual svg{width:100%;height:auto;display:block;max-height:220px}

/* 3. How It Works Path */
.how-path-wrap{position:relative}
.how-steps-list{display:flex;flex-direction:column;gap:2rem;position:relative}
.how-mobile-track{position:absolute;left:23px;top:24px;bottom:24px;width:2px;background:var(--border);z-index:0}

.how-step-item{display:flex;align-items:flex-start;gap:1.25rem;position:relative;z-index:1}
.how-num-circle{width:48px;height:48px;border-radius:50%;border:1.5px solid var(--illustration-stroke);background:var(--surface);color:var(--text);font-family:var(--f-display);font-weight:800;font-size:1.125rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:var(--shadow-soft)}

.how-step-body{flex:1;padding-top:2px}
.how-step-icon-badge{display:inline-flex;align-items:center;justify-content:center;margin-bottom:.5rem}
.how-step-title{font-family:var(--f-display);font-size:1.25rem;font-weight:700;color:var(--text);margin:0}
.how-step-desc{font-size:.9375rem;color:var(--text-secondary);line-height:1.55;margin-top:.35rem}

@media (min-width:768px){
  .how-mobile-track{display:none}
  .how-steps-list{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;position:relative}
  .how-desktop-line-wrap{position:absolute;top:24px;left:calc(16.66% + 24px);right:calc(16.66% + 24px);height:4px;z-index:0;pointer-events:none}
  .how-desktop-line-svg{width:100%;height:4px;overflow:visible;display:block}
  .how-path-line{stroke-dasharray:8 6;stroke-dashoffset:800;transition:stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1)}
  .how-path-line.animated{stroke-dashoffset:0}

  .how-step-item{flex-direction:column;align-items:center;text-align:center;gap:1rem}
  .how-step-body{display:flex;flex-direction:column;align-items:center}
}
@media (prefers-reduced-motion:reduce){
  .how-path-line{stroke-dashoffset:0!important;transition:none!important}
}

/* 4. Final CTA Panel */
.final-cta-panel{position:relative;border-radius:2rem;background:var(--final-cta-bg);border:1.5px solid var(--border);padding:clamp(3rem,6vw,5rem) clamp(1.25rem,4vw,3rem);overflow:hidden;text-align:center;display:flex;flex-direction:column;align-items:center;box-shadow:var(--shadow-soft)}
.final-cta-corner-art{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.final-cta-content{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;max-width:48rem}
.final-cta-heading{
  font-family:var(--f-display);
  font-weight:800;
  font-size:clamp(2rem,5.5vw,3.75rem);
  line-height:1.05;
  letter-spacing:-.03em;
  color:var(--text);
  margin:0 auto;
  max-width:48rem;
  text-wrap:balance;
}
.final-cta-lead{font-size:clamp(1rem,1.4vw,1.15rem);color:var(--text-secondary);line-height:1.6;margin-top:1rem;margin-bottom:1.75rem;max-width:36rem}
.final-cta-subnote{margin-top:.75rem;font-size:.875rem;color:var(--text-muted);font-weight:500;display:block}

@media (max-width:639px){
  .final-cta-pill{width:100%!important;min-height:56px!important}
}

/* 5. Landing Footer */
.landing-footer{border-top:1px solid var(--border-subtle);padding-top:2rem;padding-bottom:calc(2.5rem + env(safe-area-inset-bottom));margin-top:2rem}
.landing-footer-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1.25rem}
.landing-footer-brand{display:flex;align-items:center;gap:.6rem;font-size:.875rem;color:var(--text-muted)}
.landing-footer-logo{font-family:var(--f-display);font-weight:800;color:var(--text);letter-spacing:-.02em}
.landing-footer-sep{color:var(--text-muted);opacity:.5}
.landing-footer-tag{font-weight:500}
.landing-footer-links{display:flex;align-items:center;gap:1rem}
.landing-footer-link{min-height:44px;display:inline-flex;align-items:center;padding:0 .5rem;font-size:.875rem;font-weight:600;color:var(--text-secondary);text-decoration:none;border-radius:8px;transition:color 150ms}
.landing-footer-link:hover{color:var(--text);text-decoration:underline}

/* Compact Sign-in Modal / Card */
.compact-signin-shell{min-height:calc(85dvh - 80px);display:flex;align-items:center;justify-content:center;padding:24px 16px}
.compact-signin-card{width:100%;max-width:440px;border-radius:32px;padding:36px 28px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:18px;background:var(--surface-raised);box-shadow:var(--shadow-soft);border:1px solid var(--border)}
.compact-signin-card h2{font-size:1.8rem;letter-spacing:-.02em;color:var(--text)}
.compact-signin-card p{color:var(--text-secondary);font-size:.95rem;line-height:1.55}

/* Print styles: strictly light theme */
@media print {
  :root, html, html.dark, [data-theme="dark"], body {
    color-scheme: light !important;
    background: #FFFFFF !important;
    color: #000000 !important;
  }
}

/* Phone rendering: static artwork avoids repainting large SVG filter surfaces. */
button,a,input,select,textarea,summary{touch-action:manipulation}
@media (max-width:860px),(pointer:coarse){
  .mesh{display:none}
  header.top,.glass,.auth-panel{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  header.top{background:var(--surface-raised)!important}
  .hero-atmosphere{min-height:0;justify-content:flex-start}
  .hero-content{padding:clamp(70px,16vw,100px) 20px 64px}
  .hero-headline{font-size:clamp(2rem,8vw,3.5rem);line-height:1.08;max-width:14ch}
  .hero-eyebrow{font-size:.7rem;letter-spacing:.1em;gap:8px}
  .hero-subtext{font-size:1rem;line-height:1.5;max-width:32ch;margin-bottom:24px}
  .hero-backdrop{width:100%;height:80%}
  .hero-atmosphere-svg [filter],.landing-sec svg [filter],.landing-sec-stats svg [filter]{filter:none!important}
  .hero-atmosphere-svg>rect[filter]{display:none}
  [class*="hero-drift-"],.blob{animation:none!important}
  .hero-atmosphere-svg [class*="hero-drift-"]{display:none}
  .parallax-near,.parallax-mid,.parallax-far{transform:none!important;transition:none!important}
  .scroll-fade-up,.hero-eyebrow,.hero-headline,.hero-subtext,.hero-cta-wrap,.view-in{
    animation:none!important;opacity:1!important;transform:none!important;transition:none!important
  }
  .how-path-line{transition:none!important;stroke-dashoffset:0!important}
  .how-path-wrap,.landing-sec,.landing-sec-stats,.landing-cta{content-visibility:auto;contain-intrinsic-size:auto 500px}
  .hero-cta-pill,.clay,.panel{box-shadow:0 5px 14px rgba(27,36,64,.12)}
  .clay:hover{transform:none}
  .top-inner{padding-inline:max(12px,env(safe-area-inset-left));gap:6px}
  .header-actions{gap:6px}
  .top .logo{padding-inline:10px;font-size:1rem}
  .top .logo svg{width:22px;height:22px}
  .theme-switch{width:44px;min-width:44px}
  .theme-toggle-track{max-width:44px}
  .top .nav a{min-height:44px}
  .wrap{padding-inline:max(16px,env(safe-area-inset-left))}
}
@media (max-width:359px){
  .top .logo{font-size:.9rem;gap:5px;padding-inline:8px}
  .hero-eyebrow::after{display:none}
  .hero-content{padding-inline:16px}
}
/* Low-resource browsers prioritize interaction over layered decoration. */
.reduced-effects .mesh{display:none}
.reduced-effects .glass,.reduced-effects header.top,.reduced-effects .study-dialog::backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.reduced-effects .clay,.reduced-effects .panel,.reduced-effects .opt,.reduced-effects .reading-nav{box-shadow:none!important}
.reduced-effects .carousel-peek-card{filter:none!important}
.reduced-effects [class*="hero-drift-"],.reduced-effects .blob,.reduced-effects .view-in,.reduced-effects .layer{animation:none!important}
.reduced-effects .hero-atmosphere-svg [filter]{filter:none!important}
.reduced-effects .hero-atmosphere-svg>rect[filter]{display:none}
.reduced-effects .parallax-near,.reduced-effects .parallax-mid,.reduced-effects .parallax-far{transform:none!important;transition:none!important}
@media(pointer:coarse){
  .opts .opt,.opts .opt:hover,.opts .opt:active{transform:none!important;box-shadow:none!important;transition:background-color 80ms,color 80ms}
  .layer{animation:none!important}
  .carousel-active-card{box-shadow:none!important}
}
