/* lessonpen marketing site — shared CSS + base for every page */

/* Self-hosted fonts (latin subset only — covers English + Dutch, including
   accented characters like é/ë/ï). Variable fonts, one file per family/style
   covers the whole weight range. Avoids the Google Fonts CDN request. */
@font-face{
  font-family:'Newsreader';font-style:normal;font-weight:300 600;font-display:swap;
  src:url('/fonts/newsreader-variable.woff2') format('woff2-variations'), url('/fonts/newsreader-variable.woff2') format('woff2');
}
@font-face{
  font-family:'Newsreader';font-style:italic;font-weight:400;font-display:swap;
  src:url('/fonts/newsreader-italic-variable.woff2') format('woff2-variations'), url('/fonts/newsreader-italic-variable.woff2') format('woff2');
}
@font-face{
  font-family:'Geist';font-style:normal;font-weight:300 700;font-display:swap;
  src:url('/fonts/geist-variable.woff2') format('woff2-variations'), url('/fonts/geist-variable.woff2') format('woff2');
}
@font-face{
  font-family:'Geist Mono';font-style:normal;font-weight:400 600;font-display:swap;
  src:url('/fonts/geist-mono-variable.woff2') format('woff2-variations'), url('/fonts/geist-mono-variable.woff2') format('woff2');
}

/* ──────────────────────────────────────────────────────────────────────────
   Colour tokens
   ──────────────────────────────────────────────────────────────────────────
   Every colour is declared twice: a plain light value first, then the same
   token as light-dark(light, dark). Browsers without light-dark() stop at the
   first declaration and simply stay in light mode; everything else picks the
   pair. One source of truth per token — no duplicated dark palette to keep
   in sync.

   Which half resolves is driven by `color-scheme`, so the theme switch is two
   rules at the bottom of this block. No cookie set (`system`) leaves
   `color-scheme: light dark`, which follows the OS live.

   Do not introduce raw hex/rgba below this block — add a token here instead,
   or the value will not follow the theme.
   ────────────────────────────────────────────────────────────────────────── */
:root{
  color-scheme:light dark;

  /* Surfaces, lightest-to-darkest in light mode; the ladder inverts in dark.
     Dark steps are spaced wider than a pure invert would give — otherwise
     cards, night bands, and hairlines collapse into the page (~1.1:1). */
  --paper:#f5f2ea;   --paper:light-dark(#f5f2ea,#14130f);   /* page base */
  --ivory:#fbf9f3;   --ivory:light-dark(#fbf9f3,#1e1c17);   /* subtly raised panel */
  --card:#ffffff;    --card:light-dark(#ffffff,#29261f);    /* card / raised object */
  --sand:#ebe7da;    --sand:light-dark(#ebe7da,#34302a);    /* neutral button fill */
  --sand-2:#e2ddca;  --sand-2:light-dark(#e2ddca,#3f3b33);  /* its hover */
  --cream:#ece8db;   --cream:light-dark(#ece8db,#454035);   /* hairline border */
  --warm:#dcd7c5;    --warm:light-dark(#dcd7c5,#554e42);    /* stronger border */
  --ring:#cfc9b3;    --ring:light-dark(#cfc9b3,#635b4c);    /* outline ring */

  /* Text, most-to-least emphasis. */
  --ink:#1a1814;     --ink:light-dark(#1a1814,#f3f0e5);
  --charcoal:#3d3b35;--charcoal:light-dark(#3d3b35,#d6d2c4);
  --olive:#5c594f;   --olive:light-dark(#5c594f,#aeab9d);
  --stone:#8a877b;   --stone:light-dark(#8a877b,#a39f92);

  /* Contrast bands (footer, section.dark, CTA block, schools hero).
     In light mode these are dark panels on a pale page. In dark mode they
     invert into *elevated* surfaces — lighter than --paper, with a hairline
     edge — so the page keeps its alternating rhythm instead of going flat.
     The --on-night-* text tokens barely move between themes, which is what
     lets one set of rules serve both. */
  --night:#1d1c18;   --night:light-dark(#1d1c18,#2a2721);
  --night-2:#28261f; --night-2:light-dark(#28261f,#35322a);
  --night-3:#34322a; --night-3:light-dark(#34322a,#4a453a);
  --night-edge:transparent; --night-edge:light-dark(transparent,#4a4538);
  --on-night:#f5f2ea;        --on-night:light-dark(#f5f2ea,#f3f0e5);
  --on-night-strong:#dcd8c9; --on-night-strong:light-dark(#dcd8c9,#d6d2c4);
  --on-night-2:#b0aea1;      --on-night-2:light-dark(#b0aea1,#aeab9d);
  --on-night-3:#8a877b;      --on-night-3:light-dark(#8a877b,#a39f92);
  --on-night-faint:#6e6c63;  --on-night-faint:light-dark(#6e6c63,#8f8c80);
  --on-night-accent:#f1d9cc; --on-night-accent:light-dark(#f1d9cc,#eda184);
  --on-night-ring:rgba(245,242,234,.25); --on-night-ring:light-dark(rgba(245,242,234,.25),rgba(243,240,229,.22));

  /* Accent. --accent/-2 are FILLS for brand chrome (rings, icons) and stay
     brand-exact in both themes. .btn.brand uses --accent-fill instead, which
     darkens a notch in dark mode so the white label clears WCAG AA (white on
     raw --accent is only ~3.9:1). Text/icon accents still use --accent-text. */
  --accent:#c96442;
  --accent-2:#d97757;
  --accent-fill:#c96442;       --accent-fill:light-dark(#c96442,#b55736);
  --accent-fill-hover:#d97757; --accent-fill-hover:light-dark(#d97757,#c96442);
  --accent-on:#ffffff;
  --accent-text:#c96442;    --accent-text:light-dark(#c96442,#e79a79);
  --accent-bright:#d97757;  --accent-bright:light-dark(#d97757,#e79a79);
  --accent-soft:#f1d9cc;    --accent-soft:light-dark(#f1d9cc,#3b241a);
  --accent-ink:#7c3a1d;     --accent-ink:light-dark(#7c3a1d,#eda184);
  --accent-wash:rgba(201,100,66,.04);   --accent-wash:light-dark(rgba(201,100,66,.04),rgba(224,140,105,.09));
  --accent-glow:rgba(201,100,66,.12);   --accent-glow:light-dark(rgba(201,100,66,.12),rgba(221,134,99,.16));
  --accent-glow-lg:rgba(201,100,66,.22);--accent-glow-lg:light-dark(rgba(201,100,66,.22),rgba(221,134,99,.20));

  /* Status. Each is a triple: solid, soft background, ink that sits on soft.
     Dark softs are lifted so the wash still reads as a tinted banner against
     --paper/--ivory; rails and ink carry identity either way. */
  --good:#5a7d3a;      --good:light-dark(#5a7d3a,#8fb063);
  --good-soft:#e3e8cf; --good-soft:light-dark(#e3e8cf,#3a4a26);
  --good-ink:#3f5824;  --good-ink:light-dark(#3f5824,#b9d094);
  --warn:#a76a1f;      --warn:light-dark(#a76a1f,#d59a4a);
  --warn-soft:#f1e3c8; --warn-soft:light-dark(#f1e3c8,#4a3814);
  --warn-ink:#6a4313;  --warn-ink:light-dark(#6a4313,#e5bd7f);
  --bad:#b53333;       --bad:light-dark(#b53333,#e07a72);
  --bad-soft:#efd2cd;  --bad-soft:light-dark(#efd2cd,#523028);
  --bad-ink:#7b2222;   --bad-ink:light-dark(#7b2222,#f0a49c);
  --info:#3a6b7d;      --info:light-dark(#3a6b7d,#7fb3c6);
  --info-soft:#d6e5ea; --info-soft:light-dark(#d6e5ea,#243f4a);
  --info-ink:#22515f;  --info-ink:light-dark(#22515f,#a8cfdd);

  /* Lesson-status swatches used by the marketing mockups. Kept separate from
     the status triples above because the mockups mirror the app's own palette
     and shouldn't drift with generic UI status colours. */
  --st-sched-bg:#dce4ef;   --st-sched-bg:light-dark(#dce4ef,#2a3a58);
  --st-sched-rail:#2563eb; --st-sched-rail:light-dark(#2563eb,#5b8def);
  --st-sched-ink:#1e3a8a;  --st-sched-ink:light-dark(#1e3a8a,#b8cdf5);
  --st-done-bg:#dce4d2;    --st-done-bg:light-dark(#dce4d2,#334528);
  --st-done-rail:#5a7d3a;  --st-done-rail:light-dark(#5a7d3a,#6f9445);
  --st-done-ink:#3a5424;   --st-done-ink:light-dark(#3a5424,#bcd39a);
  --st-resch-bg:#d6e5ea;   --st-resch-bg:light-dark(#d6e5ea,#243f4a);
  --st-resch-rail:#3a6b7d; --st-resch-rail:light-dark(#3a6b7d,#4d8ba3);
  --st-resch-ink:#1d3f4a;  --st-resch-ink:light-dark(#1d3f4a,#a8cfdd);
  --st-canc-bg:#efd2cd;    --st-canc-bg:light-dark(#efd2cd,#523028);
  --st-canc-rail:#b53333;  --st-canc-rail:light-dark(#b53333,#c04a42);
  --st-canc-ink:#7b2222;   --st-canc-ink:light-dark(#7b2222,#f0a49c);
  --st-unconf-bg:#f1e3c8;  --st-unconf-bg:light-dark(#f1e3c8,#4a3814);
  --st-unconf-rail:#a76a1f;--st-unconf-rail:light-dark(#a76a1f,#b8822f);
  --st-unconf-ink:#6a4313; --st-unconf-ink:light-dark(#6a4313,#e5bd7f);
  --tone-terra-ink:#5a2a14;--tone-terra-ink:light-dark(#5a2a14,#eda184);
  --tone-sky-bg:#dce8ec;   --tone-sky-bg:light-dark(#dce8ec,#243f4a);

  /* Neutral high-emphasis button: near-black on light, near-white on dark. */
  --btn-solid:#1a1814;      --btn-solid:light-dark(#1a1814,#f3f0e5);
  --btn-solid-fg:#f5f2ea;   --btn-solid-fg:light-dark(#f5f2ea,#14130f);
  --btn-solid-hover:#26241e;--btn-solid-hover:light-dark(#26241e,#e2ded0);
  --btn-plain:#ffffff;      --btn-plain:light-dark(#ffffff,#35322a);
  --btn-plain-hover:#f5f2ea;--btn-plain-hover:light-dark(#f5f2ea,#413d33);

  /* Chrome */
  --nav-bg:rgba(245,242,234,.86);       --nav-bg:light-dark(rgba(245,242,234,.86),rgba(20,19,15,.86));
  --nav-bg-solid:rgba(245,242,234,.98); --nav-bg-solid:light-dark(rgba(245,242,234,.98),rgba(20,19,15,.98));
  --hover-veil:rgba(0,0,0,.05);         --hover-veil:light-dark(rgba(0,0,0,.05),rgba(255,255,255,.07));
  --veil-light:rgba(255,255,255,.06);
  --yt-soft:#fff0ed; --yt-soft:light-dark(#fff0ed,#3a1c19);
  --yt-ink:#c4302b;  --yt-ink:light-dark(#c4302b,#f08a80);

  /* Shadows. Barely-there ink washes on light; deeper and blacker on dark,
     where elevation has to carry more of the separation work. */
  --sh-1:rgba(20,18,12,.06); --sh-1:light-dark(rgba(20,18,12,.06),rgba(0,0,0,.40));
  --sh-2:rgba(20,18,12,.10); --sh-2:light-dark(rgba(20,18,12,.10),rgba(0,0,0,.50));
  --sh-3:rgba(20,18,12,.08); --sh-3:light-dark(rgba(20,18,12,.08),rgba(0,0,0,.45));
  --sh-4:rgba(20,18,12,.18); --sh-4:light-dark(rgba(20,18,12,.18),rgba(0,0,0,.60));
  --sh-5:rgba(20,18,12,.20); --sh-5:light-dark(rgba(20,18,12,.20),rgba(0,0,0,.62));
  --sh-6:rgba(20,18,12,.22); --sh-6:light-dark(rgba(20,18,12,.22),rgba(0,0,0,.64));

  /* Hero desk wood. The same surface is painted in three places — the desktop
     desk, the mobile pseudo-element behind the headline, and the band that
     continues it into the next section — so the whole background shorthand
     lives in --wood and those three just reference it.

     light-dark() takes colours only, never images, so the grain data-URI is
     switched by the theme rules below instead. Its feColorMatrix bakes the
     grain colour in: a mid-brown that darkens the plank slightly in light
     mode, and a deeper, slightly more opaque one for dark so the striations
     still read as shadow rather than inverting into highlights. */
  --wood-grain-light:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.012 0.09' numOctaves='4' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.24 0 0 0 0 0.13 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='500' height='500' filter='url(%23w)'/%3E%3C/svg%3E");
  --wood-grain-dark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.012 0.09' numOctaves='4' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.22 0 0 0 0 0.11 0 0 0 0 0.05 0 0 0 0.42 0'/%3E%3C/filter%3E%3Crect width='500' height='500' filter='url(%23w)'/%3E%3C/svg%3E");
  --wood-grain:var(--wood-grain-light);
  /* Dark Option A — one step down from current walnut, kept warm (R-heavy)
     so the grain doesn't tip olive the way a cooler espresso pass did. */
  --wood-a:#7d5a38; --wood-a:light-dark(#7d5a38,#5e4224);
  --wood-b:#6b4b2c; --wood-b:light-dark(#6b4b2c,#4a321a);
  --wood-c:#5d3f23; --wood-c:light-dark(#5d3f23,#3c2814);
  --wood:var(--wood-grain),linear-gradient(160deg,var(--wood-a),var(--wood-b) 60%,var(--wood-c));
  /* Lamp pool falling across the desk. Lifted in dark mode — the same 15%
     wash that reads as daylight on pale oak all but disappears on night wood. */
  --wood-lamp:rgba(255,235,200,.15); --wood-lamp:light-dark(rgba(255,235,200,.15),rgba(255,220,170,.24));
  /* Soft halo around the desk shape, between wood and page. */
  --desk-rim:#f1d9cc; --desk-rim:light-dark(#f1d9cc,#342418);
  /* Coffee ring. A stain reads by being darker than the plank, so on night
     wood it has to go darker still — the light-mode brown would sit almost
     exactly on the new wood value and disappear. */
  --desk-stain:rgba(74,44,16,.35);      --desk-stain:light-dark(rgba(74,44,16,.35),rgba(14,7,2,.55));
  --desk-stain-soft:rgba(74,44,16,.15); --desk-stain-soft:light-dark(rgba(74,44,16,.15),rgba(14,7,2,.28));

  /* Homepage phone mock — slim metal rim (graphite / aluminum). */
  --pc-phone-m1:#35322c; --pc-phone-m1:light-dark(#35322c,#ddd8ce);
  --pc-phone-m2:#1a1814; --pc-phone-m2:light-dark(#1a1814,#a5a098);
  --pc-phone-m3:#0a0908; --pc-phone-m3:light-dark(#0a0908,#626058);
  --pc-phone-m4:#2a2722; --pc-phone-m4:light-dark(#2a2722,#c9c5bb);
  --pc-phone-m5:#141210; --pc-phone-m5:light-dark(#141210,#848078);
  --pc-phone-edge-hi:rgba(255,255,255,.18); --pc-phone-edge-hi:light-dark(rgba(255,255,255,.18),rgba(255,255,255,.5));
  --pc-phone-edge-lo:rgba(0,0,0,.6);         --pc-phone-edge-lo:light-dark(rgba(0,0,0,.6),rgba(0,0,0,.55));
  --pc-phone-glass-seal:rgba(0,0,0,.65);     --pc-phone-glass-seal:light-dark(rgba(0,0,0,.65),rgba(0,0,0,.5));
  --pc-phone-notch:#0a0908;

  --serif:'Newsreader','Source Serif Pro',Georgia,serif;
  --sans:'Geist',ui-sans-serif,system-ui,sans-serif;
  --mono:'Geist Mono',ui-monospace,Menlo,monospace;
}

/* The switch itself. An explicit choice pins color-scheme, which is what every
   light-dark() above resolves against; no cookie leaves the pair intact so the
   OS setting wins. Set server-side on <html> — see lib/theme.js. */
:root[data-theme="light"]{color-scheme:light}
:root[data-theme="dark"]{color-scheme:dark;--wood-grain:var(--wood-grain-dark)}
/* The grain swap can't ride on color-scheme the way the colour tokens do, so
   the system case needs its own rule. One line, not a duplicated palette. */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){--wood-grain:var(--wood-grain-dark)}
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--paper);color:var(--ink);
  font-family:var(--sans);font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased;
  font-feature-settings:"ss01"}
::selection{background:var(--accent-soft);color:var(--ink)}

/* Headlines */
h1,h2,h3,h4{font-family:var(--serif);font-weight:500;letter-spacing:-0.018em;
  color:var(--ink);margin:0;line-height:1.1}
p{margin:0;color:var(--olive);line-height:1.6}

/* Container */
.wrap{max-width:1200px;margin:0 auto;padding:0 32px}
.wrap-sm{max-width:840px;margin:0 auto;padding:0 32px}
@media (max-width:720px){
  .wrap,.wrap-sm{padding:0 20px}
}

/* Sections */
section{padding:80px 0}
section.tight{padding:48px 0}
/* --night-edge is transparent in light mode (the band is darker than the page,
   so it needs no edge) and a hairline in dark, where the band is *lighter* than
   the page and reads as a raised panel. */
section.dark{background:var(--night);color:var(--on-night);
  border-top:1px solid var(--night-edge);border-bottom:1px solid var(--night-edge)}
section.dark h1,section.dark h2,section.dark h3{color:var(--on-night)}
section.dark p{color:var(--on-night-2)}
section.sand{background:var(--ivory)}

/* Surfaces sitting ON a contrast band climb one rung of the elevation ladder.
   In light mode the band is darker than the page, so a white .card/.mock
   already pops and these values are the globals verbatim — nothing changes.
   In dark mode the band is itself raised above --paper, so a panel using the
   global surface tokens would land *below* its own background and vanish.
   Text tokens are deliberately absent: --ink/--olive/--stone already resolve
   correctly against whichever surface they end up on. */
section.dark,footer,.cta-block,.card-dark{
  --paper:#f5f2ea;   --paper:light-dark(#f5f2ea,#2a2721);
  --ivory:#fbf9f3;   --ivory:light-dark(#fbf9f3,#35322a);
  --card:#ffffff;    --card:light-dark(#ffffff,#403c32);
  --sand:#ebe7da;    --sand:light-dark(#ebe7da,#4a453a);
  --sand-2:#e2ddca;  --sand-2:light-dark(#e2ddca,#554e42);
  --cream:#ece8db;   --cream:light-dark(#ece8db,#5c5548);
  --warm:#dcd7c5;    --warm:light-dark(#dcd7c5,#6a6354);
  --ring:#cfc9b3;    --ring:light-dark(#cfc9b3,#766e5d);
  --accent-soft:#f1d9cc; --accent-soft:light-dark(#f1d9cc,#452a1e);
}

/* Eyebrow */
.eyebrow{font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--stone);font-weight:500}
section.dark .eyebrow{color:var(--on-night-3)}

/* Section heads */
.s-head{max-width:680px}
.s-head .eyebrow{margin-bottom:14px}
.s-head h2{font-size:42px;line-height:1.08}
.s-head p{margin-top:14px;font-size:17px}
@media (max-width:720px){ .s-head h2{font-size:32px} }

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:10px;
  font:500 14.5px/1 var(--sans);cursor:pointer;border:1px solid transparent;
  background:var(--sand);color:var(--charcoal);box-shadow:0 0 0 1px var(--ring);
  text-decoration:none;transition:background .15s,transform .04s;white-space:nowrap}
.btn:hover{background:var(--sand-2)}
.btn:active{transform:translateY(.5px)}
.btn.brand{background:var(--accent-fill);color:var(--accent-on);box-shadow:0 0 0 1px var(--accent-fill)}
.btn.brand:hover{background:var(--accent-fill-hover)}
.btn.dark{background:var(--btn-solid);color:var(--btn-solid-fg);box-shadow:0 0 0 1px var(--btn-solid)}
.btn.dark:hover{background:var(--btn-solid-hover)}
.btn.white{background:var(--btn-plain);color:var(--ink);box-shadow:0 0 0 1px var(--warm)}
.btn.white:hover{background:var(--btn-plain-hover)}
.btn.ghost{background:transparent;color:inherit;box-shadow:none}
.btn.ghost:hover{background:var(--hover-veil)}
section.dark .btn.ghost:hover{background:var(--veil-light)}
.btn.lg{padding:14px 24px;font-size:15px;border-radius:11px}
.btn.sm{padding:8px 12px;font-size:13px;border-radius:8px}

/* Pill / tag */
.pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;
  font:500 12px/1.4 var(--sans);background:var(--sand);color:var(--charcoal)}
.pill.outline{background:transparent;border:1px solid var(--warm);color:var(--olive)}
.pill.brand{background:var(--accent-soft);color:var(--accent-ink)}
.pill.good{background:var(--good-soft);color:var(--good-ink)}
.pill.warn{background:var(--warn-soft);color:var(--warn-ink)}
.pill.info{background:var(--info-soft);color:var(--info-ink)}
.pill.dot::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}

/* Cards */
.card{background:var(--card);border:1px solid var(--cream);border-radius:16px;padding:24px;
  box-shadow:0 1px 3px var(--sh-1), 0 8px 20px -12px var(--sh-2)}
.card-dark{background:var(--night-2);border:1px solid var(--night-3);border-radius:16px;padding:24px}

/* Top nav */
.nav{position:sticky;top:0;z-index:30;overflow:visible;
  background:var(--nav-bg);-webkit-backdrop-filter:saturate(140%) blur(14px);backdrop-filter:saturate(140%) blur(14px);
  border-bottom:1px solid var(--cream)}
.nav-inner{position:relative;max-width:1200px;margin:0 auto;padding:16px 32px;display:flex;align-items:center;gap:28px}
.nav .btn.brand{color:var(--accent-on)}
.nav .links{display:flex;align-items:center;gap:6px;margin-left:8px}
.nav .links a{padding:8px 12px;border-radius:8px;color:var(--olive);text-decoration:none;
  font-weight:500;font-size:14px}
.nav .links a:hover{background:var(--sand);color:var(--ink)}
.nav .links a.active{color:var(--ink)}
.nav .right{margin-left:auto;display:flex;align-items:center;gap:8px}
@media (max-width:840px){
  .nav .links{display:none}
  .nav{background:var(--nav-bg-solid);-webkit-backdrop-filter:none;backdrop-filter:none}
  .nav-inner{padding:18px 20px;padding-top:max(18px, env(safe-area-inset-top));gap:12px}
  /* Hiding the wrapper, not the forms — the @supports reveal rules outrank a
     plain class selector, and the sheet's copy of the toggle must survive.
     Scoped to .right's own children for the same reason: the sheet renders its
     own copies of both controls and they live inside .nav too. */
  .nav .right > .theme-switch,.nav .right > .lang-switch,.nav-signin{display:none}
  .nav .wordmark-text{font-size:20px!important}
  .nav .wordmark-icon svg{width:24px!important;height:24px!important}
}

/* Footer */
footer{background:var(--night);color:var(--on-night-2);padding:80px 0 40px;margin-top:80px;
  border-top:1px solid var(--night-edge)}
footer h4{color:var(--on-night);font-family:var(--serif);font-weight:500;font-size:14px;
  letter-spacing:.04em;margin-bottom:14px}
footer a{color:var(--on-night-2);text-decoration:none;display:block;padding:5px 0;font-size:14px}
footer a:hover{color:var(--on-night)}
footer .columns{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr 1fr 1fr;gap:40px}
footer a[aria-current]{color:var(--on-night);font-weight:500}
footer .legal{margin-top:60px;padding-top:24px;border-top:1px solid var(--night-3);
  display:flex;justify-content:space-between;font-size:12px;color:var(--on-night-faint)}
@media (max-width:840px){
  footer .columns{grid-template-columns:1fr 1fr;gap:32px}
  footer .legal{flex-direction:column;gap:8px}
}

/* Mockup chrome — a "browser/app card" used in marketing visuals */
.mock{background:var(--ivory);border:1px solid var(--cream);border-radius:18px;
  overflow:hidden;box-shadow:0 24px 60px -24px var(--sh-4),0 4px 16px -4px var(--sh-3)}
.mock-bar{display:flex;align-items:center;gap:6px;padding:10px 14px;border-bottom:1px solid var(--cream);
  background:var(--paper)}
.mock-bar .dot{width:11px;height:11px;border-radius:50%;background:var(--warm)}
.mock-bar .url{margin-left:14px;font:400 12px/1 var(--mono);color:var(--stone)}

/* Decorative ruled paper effect */
.ruled{
  background-image:linear-gradient(to bottom, transparent 31px, var(--cream) 31px, var(--cream) 32px, transparent 32px);
  background-size:100% 32px}

/* Utility */
.num{font-variant-numeric:tabular-nums}
.muted{color:var(--stone)} .second{color:var(--olive)}
.row{display:flex;align-items:center;gap:10px}
.col{display:flex;flex-direction:column;gap:10px}

/* Tiny status dot */
.dotmark{display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor}

/* CTA block */
.cta-block{background:var(--night);color:var(--on-night);border-radius:22px;padding:56px 56px;
  display:flex;align-items:center;gap:32px;position:relative;overflow:hidden;
  border:1px solid var(--night-edge)}
.cta-block::before{content:'';position:absolute;inset:0;
  background:radial-gradient(60% 80% at 80% 0%, var(--accent-glow-lg), transparent 60%);
  pointer-events:none}
.cta-block h2{color:var(--on-night);font-size:36px;max-width:560px;line-height:1.1}
.cta-block p{color:var(--on-night-2);margin-top:10px;max-width:480px}
.cta-block .actions{margin-left:auto;display:flex;flex-direction:column;gap:8px}
@media (max-width:720px){
  .cta-block{flex-direction:column;align-items:flex-start;padding:36px 28px}
  .cta-block .actions{margin-left:0;width:100%}
}

/* Anchor offset for sticky nav */
[id]{scroll-margin-top:80px}

/* ──────────────────────────────────────────────────────────────────────────
   Wordmark
   ────────────────────────────────────────────────────────────────────────── */
.wordmark{display:inline-flex;align-items:center;font-family:var(--serif);font-weight:600;
  letter-spacing:-0.01em;line-height:1;text-decoration:none;user-select:none}
.wordmark-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.wordmark-text{font-family:var(--serif);font-weight:600;letter-spacing:-0.01em;white-space:nowrap}

/* ──────────────────────────────────────────────────────────────────────────
   Nav extras
   ────────────────────────────────────────────────────────────────────────── */
.nav-signin{padding:8px 14px;font-size:13.5px}

/* Language switcher (no-JS <details> dropdown) */
.lang-switch{position:relative}
.lang-switch summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;
  padding:7px 9px;border-radius:8px;color:var(--olive);font-weight:500;font-size:13.5px}
.lang-switch summary::-webkit-details-marker{display:none}
.lang-switch summary:hover{background:var(--sand);color:var(--ink)}
.lang-current{text-transform:uppercase;letter-spacing:.04em;font-size:12px}
.lang-menu{position:absolute;right:0;top:calc(100% + 6px);background:var(--ivory);
  border:1px solid var(--cream);border-radius:10px;
  box-shadow:0 12px 30px -12px var(--sh-5);padding:5px;min-width:150px;z-index:40}
.lang-form{margin:0}
.lang-option{display:block;width:100%;text-align:left;background:transparent;border:0;cursor:pointer;
  padding:8px 12px;border-radius:7px;font:500 13.5px/1 var(--sans);color:var(--olive)}
.lang-option:hover{background:var(--sand);color:var(--ink)}
.lang-option.active{color:var(--ink);background:var(--paper)}

/* ──────────────────────────────────────────────────────────────────────────
   Theme toggle
   ──────────────────────────────────────────────────────────────────────────
   A single button as far as anyone can see, but four variants are rendered and
   CSS reveals exactly one. `prefers-color-scheme` is a media query and is never
   sent to the server, so with no cookie the server cannot know whether to
   label the button "go dark" or "go light" — the media query answers that at
   paint time instead, which keeps the whole thing free of JavaScript and of
   any first-paint flash. Same technique as .trial-full / .trial-short above.

   The variant on show also determines what a click posts. If the theme being
   asked for is the one the OS already wants, it posts 'system' and the server
   clears the cookie rather than pinning the opposite value — so the override
   dissolves the moment the user toggles back into agreement with their OS,
   instead of outliving the intent behind it.

   Wrapped in @supports because a browser without light-dark() cannot render
   the dark palette at all (see the token block) — better to show no toggle
   than one that does nothing. Any browser with light-dark() has had
   prefers-color-scheme for years, so one of the two branches always matches.
   ────────────────────────────────────────────────────────────────────────── */
.theme-form{margin:0;display:none}
@supports (color:light-dark(#000,#fff)){
  @media (prefers-color-scheme:light){
    :root:not([data-theme="dark"]) .theme-form.theme-go-dark{display:block}
    :root[data-theme="dark"] .theme-form.theme-go-light-sys{display:block}
  }
  @media (prefers-color-scheme:dark){
    :root:not([data-theme="light"]) .theme-form.theme-go-light{display:block}
    :root[data-theme="light"] .theme-form.theme-go-dark-sys{display:block}
  }
}
/* Always the same moon — this is an on/off switch for dark mode, not a
   direction sign. State comes from aria-pressed, which the four variants set,
   so the styling hook and the accessible state are the same source of truth:
   off is an outline moon, on fills it in and sits in a pressed well. The `fill`
   on the icon is a presentation attribute, so this CSS rule beats it. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:10px;
  background:transparent;border:0;cursor:pointer;padding:7px 9px;border-radius:8px;
  color:var(--olive);font:500 13.5px/1 var(--sans)}
.theme-toggle:hover{background:var(--sand);color:var(--ink)}
.theme-toggle svg{flex-shrink:0}
.theme-toggle[aria-pressed="true"]{background:var(--sand);color:var(--ink)}
.theme-toggle[aria-pressed="true"] svg{fill:currentColor}
.theme-toggle[aria-pressed="true"]:hover{background:var(--sand-2)}

/* Mobile nav menu (no-JS <details> hamburger; hidden on desktop) */
.nav-menu{display:none;position:relative;z-index:31;flex-shrink:0}
@media (max-width:840px){ .nav-menu{display:block} }
.nav-menu summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;
  justify-content:center;width:48px;height:48px;border-radius:12px;color:var(--ink);
  -webkit-tap-highlight-color:transparent;position:relative;z-index:32;overflow:visible}
.nav-menu summary::-webkit-details-marker{display:none}
.nav-menu summary:hover,.nav-menu[open] summary{background:var(--sand)}

/* Animated burger → X */
.burger{position:relative;display:block;width:22px;height:18px;margin:2px 0;overflow:visible}
.burger-line{position:absolute;left:0;right:0;height:2px;border-radius:1px;background:currentColor;
  transform-origin:center;
  transition:transform .28s cubic-bezier(.4,0,.2,1),opacity .18s ease,top .28s cubic-bezier(.4,0,.2,1),bottom .28s cubic-bezier(.4,0,.2,1)}
.burger-line:nth-child(1){top:3px}
.burger-line:nth-child(2){top:50%;margin-top:-1px}
.burger-line:nth-child(3){bottom:3px}
.nav-menu[open] .burger-line:nth-child(1){top:50%;margin-top:-1px;transform:rotate(45deg)}
.nav-menu[open] .burger-line:nth-child(2){opacity:0;transform:scaleX(0)}
.nav-menu[open] .burger-line:nth-child(3){bottom:auto;top:50%;margin-top:-1px;transform:rotate(-45deg)}

.nav-sheet{position:fixed;inset:0;z-index:29;background:var(--nav-bg-solid);
  -webkit-backdrop-filter:saturate(140%) blur(18px);backdrop-filter:saturate(140%) blur(18px);
  padding:calc(64px + 12px) 24px max(28px, env(safe-area-inset-bottom));
  display:flex;flex-direction:column;gap:4px;overflow-y:auto;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .24s ease,visibility .24s ease}
.nav-menu[open] .nav-sheet{opacity:1;visibility:visible;pointer-events:auto;
  animation:sheet-in .28s cubic-bezier(.4,0,.2,1)}
@keyframes sheet-in{from{opacity:0}to{opacity:1}}
.sheet-link{padding:16px 14px;border-radius:10px;color:var(--olive);text-decoration:none;
  font-weight:500;font-size:18px}
.sheet-link:hover,.sheet-link:active{background:var(--sand);color:var(--ink)}
.sheet-link.active{color:var(--ink);font-weight:600}
.sheet-divider{height:1px;background:var(--cream);margin:16px 0}
.sheet-trial{justify-content:center;margin-bottom:8px;padding:14px 20px;font-size:15px;color:var(--accent-on)}
.sheet-signin{justify-content:center;padding:14px 20px;font-size:15px;box-shadow:0 0 0 1px var(--ring)}
/* Theme and language sit at the foot of the sheet — utilities, not navigation.
   margin-top:auto pins them to the bottom of the flex column. */
.sheet-controls{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:20px}
.sheet-controls .theme-toggle,.sheet-controls .lang-summary{min-height:44px;padding:0 14px;
  border-radius:10px;font-size:15px}
.sheet-controls .lang-current{font-size:13px}
.lang-switch-sheet .lang-menu{left:0;right:auto;bottom:calc(100% + 6px);top:auto}

@media (prefers-reduced-motion:reduce){
  .burger-line,.nav-sheet{transition:none}
  .nav-menu[open] .nav-sheet{animation:none}
}

/* Trial CTA label: full text on desktop, short on narrow screens */
.trial-short{display:none}
@media (max-width:480px){
  .trial-full{display:none}
  .trial-short{display:inline}
}

/* ──────────────────────────────────────────────────────────────────────────
   Footer extras
   ────────────────────────────────────────────────────────────────────────── */
.footer-tag{color:var(--on-night-3);font-size:13.5px;line-height:1.6;max-width:280px}

/* ──────────────────────────────────────────────────────────────────────────
   Section-head modifier
   ────────────────────────────────────────────────────────────────────────── */
.s-head.center{margin-left:auto;margin-right:auto;text-align:center}
.eyebrow-accent{color:var(--accent-bright)}

/* ──────────────────────────────────────────────────────────────────────────
   Button variants used in pages
   ────────────────────────────────────────────────────────────────────────── */
.btn-transparent{background:transparent}
.btn-outline-light{background:transparent;color:var(--on-night);
  box-shadow:0 0 0 1px var(--on-night-ring)}

/* ──────────────────────────────────────────────────────────────────────────
   Avatars (initials circle)
   ────────────────────────────────────────────────────────────────────────── */
.avatar{width:24px;height:24px;border-radius:99px;font-size:10px;font-weight:500;
  display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.avatar-sm{width:24px;height:24px;font-size:9.5px}
.avatar-md{width:36px;height:36px;font-size:13px}
.avatar-terra{background:var(--accent-soft);color:var(--accent-ink)}
.avatar-sky{background:var(--info-soft);color:var(--info-ink)}
.avatar-ink{background:var(--good-soft);color:var(--good-ink)}

/* ──────────────────────────────────────────────────────────────────────────
   Hero
   ────────────────────────────────────────────────────────────────────────── */
.hero{padding-top:0px;padding-bottom:0px}
.hero-copy{max-width:660px}
.hero-title{font-size:60px;line-height:1.04;letter-spacing:-0.022em}
.hero-subtitle{font-size:18px;line-height:1.55;margin-top:20px;max-width:540px}
.hero-actions{display:flex;align-items:center;gap:20px;margin-top:30px;flex-wrap:wrap}
.hero-note{font-size:13px;margin-top:14px}
.hero-link{color:var(--olive);font-weight:500;font-size:14.5px;text-decoration:none;
  border-bottom:1px solid var(--ring);padding-bottom:2px;transition:color .15s,border-color .15s}
.hero-link:hover{color:var(--ink);border-color:var(--olive)}
.hero-mock-wrap{margin-top:52px;position:relative}
@media (max-width:720px){
  .hero-title{font-size:32px}
  .hero-subtitle{font-size:16px}
  .hero-mock-wrap{margin-top:0}
  .hero-mock-wrap .wrap{padding:0}
  /* Wood + rim cover the whole hero (headline included) so the curve runs
     unbroken from the top edge down to the pencil ledge. Anchored here, not
     on .hero-desk, so the clip scales with however tall the copy renders. */
  .hero-mock-wrap::before{content:'';position:absolute;inset:0;
    background:var(--desk-rim);opacity:.65;clip-path:url(#deskRimClipMobile)}
  .hero-mock-wrap::after{content:'';position:absolute;top:0;left:0;right:0;bottom:-1px;z-index:0;
    clip-path:url(#deskClipMobile);
    background:var(--wood);background-attachment:fixed,fixed}
  .hero-mock-wrap .wrap,.hero-mock-wrap .hero-desk{position:relative;z-index:1}
  .hero-copy{padding:28px 42% 8px 20px}
  .hero-copy .hero-subtitle,.hero-copy .hero-actions,.hero-copy .hero-note{display:none}
}
@media (min-width:721px){
  .hero .wrap{position:relative}
  .hero-copy{position:absolute;top:0;left:0;z-index:2;max-width:42%;padding-top:44px}
  .hero-mock-wrap{margin-top:0}
}

/* ──────────────────────────────────────────────────────────────────────────
   Hero desk illustration — wood surface with scattered desk items
   ────────────────────────────────────────────────────────────────────────── */
/* The desk is a painted scene, so it themes as a scene rather than as UI: the
   surface it's lit by goes dark (--wood, --wood-lamp, --desk-rim above), while
   the objects ON it stay the colour they physically are — paper is still white
   paper, the mug still glazed ceramic. Re-declaring the tokens here pins those
   objects; everything inside inherits, so the child rules stay unchanged.
   Absent on purpose: .desk-surface, .desk-rim and .desk-coffee-ring are part
   of the surface rather than objects on it, so they theme with the wood. */
.desk-note,.desk-reminder,.desk-receipt,.desk-cup,.desk-pencil{
  --paper:#f5f2ea; --ivory:#fbf9f3; --cream:#ece8db; --warm:#dcd7c5;
  --ink:#1a1814; --charcoal:#3d3b35; --olive:#5c594f; --stone:#8a877b;
  --accent:#c96442; --accent-text:#c96442; --accent-soft:#f1d9cc; --accent-ink:#7c3a1d;
}

.hero-desk{position:relative;width:100%;aspect-ratio:1360/560;min-height:480px;max-height:560px;
  overflow:hidden;background:var(--paper)}
.desk-rim{position:absolute;inset:0;background:var(--desk-rim);opacity:.65;clip-path:url(#deskRimClip)}
/* bottom:-1px covers clip-path anti-alias fringe so --paper doesn't show
   as a hairline under the wood before the next section's band. */
.desk-surface{position:absolute;top:0;left:0;right:0;bottom:-1px;clip-path:url(#deskClip);
  background:var(--wood);background-attachment:fixed,fixed}
.desk-surface::after{content:'';position:absolute;inset:0;
  background:radial-gradient(120% 90% at 40% 8%, var(--wood-lamp), transparent 55%)}

.desk-coffee-ring{position:absolute;left:60.4%;top:32.9%;width:8.8%;aspect-ratio:1;border-radius:50%;
  border:7px solid var(--desk-stain);box-shadow:inset 0 0 6px var(--desk-stain-soft)}
.desk-cup{position:absolute;left:62.3%;top:36.7%;width:8.7%;aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle at 38% 32%, #f4efe2, #ddd5bf 70%, #c8bfa4);
  box-shadow:0 3px 4px rgba(30,16,4,.35),0 20px 36px -12px rgba(30,16,4,.6),inset 0 -4px 10px rgba(120,90,50,.25)}
.desk-cup::before{content:'';position:absolute;inset:12%;border-radius:50%;
  background:radial-gradient(circle at 42% 36%, #6b4226, #3f2412 75%);
  box-shadow:inset 0 4px 10px rgba(0,0,0,.5),inset 0 -2px 6px rgba(255,220,170,.15)}
.desk-cup-handle{position:absolute;right:-20%;top:29%;width:32%;height:37%;border-radius:50%;
  border:9px solid #ddd5bf;border-left-color:transparent;transform:rotate(-14deg);
  box-shadow:2px 2px 3px rgba(30,16,4,.25)}

.desk-note{position:absolute;left:74.2%;top:-4%;width:17.3%;background:var(--ivory);
  padding:38px 14px 14px;transform:rotate(-5deg);
  clip-path:polygon(0 0,100% 0,100% 96%,94% 100%,87% 97%,79% 100%,71% 97%,62% 100%,54% 98%,45% 100%,37% 97%,29% 100%,21% 97%,13% 100%,6% 98%,0 100%);
  box-shadow:0 2px 3px rgba(30,16,4,.3),0 18px 34px -12px rgba(30,16,4,.55)}
.desk-note-day{font-family:var(--serif);font-size:14px;font-weight:500;color:var(--ink)}
.desk-note-list{margin-top:8px;display:flex;flex-direction:column;gap:8px}
.desk-note-row{display:flex;gap:8px;align-items:center;font-size:11.5px;color:var(--ink)}
.desk-note-row.strike{color:var(--stone);text-decoration:line-through}
.desk-note-time{font:500 10px/1 var(--mono);color:var(--accent-text)}
.desk-note-row.strike .desk-note-time{color:var(--stone)}

.desk-reminder{position:absolute;left:64.3%;top:75%;width:21.3%;background:var(--ivory);
  border-radius:14px;padding:12px 14px;transform:rotate(-2.5deg);display:flex;gap:10px;align-items:flex-start;
  box-shadow:0 2px 3px rgba(30,16,4,.3),0 18px 34px -12px rgba(30,16,4,.55)}
.desk-reminder-icon{width:26px;height:26px;border-radius:8px;background:var(--accent);flex-shrink:0;
  display:flex;align-items:center;justify-content:center}
.desk-reminder-brand{font-size:11.5px;font-weight:600;color:var(--ink)}
.desk-reminder-text{font-size:11px;color:var(--olive);line-height:1.4;margin-top:2px}

.desk-pencil{position:absolute;left:38.8%;top:93.3%;width:15.4%;height:7px;border-radius:4px;
  background:linear-gradient(90deg,#2e2a22 0 6%,#d9b98a 6% 15%,var(--accent) 15% 100%);
  box-shadow:0 5px 9px rgba(30,16,4,.45);transform:rotate(-3deg)}
.desk-pencil::after{content:'';position:absolute;right:-1px;top:-2px;width:11px;height:11px;border-radius:50%;
  background:#b85030;box-shadow:inset -2px -2px 3px rgba(0,0,0,.25)}

.desk-cta{display:none;position:absolute}

.desk-receipt{position:absolute;left:84.7%;top:48.3%;width:11%;background:var(--ivory);padding:14px 12px 16px;
  transform:rotate(7deg);
  clip-path:polygon(0 2%,8% 0,17% 2%,26% 0,36% 2%,46% 0,56% 2%,66% 0,76% 2%,86% 0,95% 2%,100% 0,100% 98%,92% 100%,83% 97%,73% 100%,63% 97%,53% 100%,43% 97%,33% 100%,23% 97%,13% 100%,4% 97%,0 100%);
  box-shadow:0 2px 3px rgba(30,16,4,.3),0 14px 26px -10px rgba(30,16,4,.5)}
.desk-receipt-label{font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--stone);font-weight:600}
.desk-receipt-amount{font-family:var(--serif);font-size:19px;margin-top:5px;color:var(--ink)}
.desk-receipt-rule{border-top:1px dashed var(--warm);margin-top:10px;padding-top:8px}
.desk-receipt-pill{font-size:10px;padding:2px 7px}
.pill.good.desk-receipt-pill{background:var(--st-done-bg);color:var(--st-done-ink)}

@media (max-width:720px){
  .hero-desk{aspect-ratio:auto;height:330px;min-height:0;background:transparent;overflow:visible}
  .desk-surface,.desk-rim{display:none}
  .desk-note,.desk-reminder{display:none}

  .desk-cta{display:block;left:20px;top:8px;width:48%}
  .desk-cta .hero-subtitle{font-size:13px;line-height:1.5;margin-top:0}
  .desk-cta .hero-actions{flex-direction:column;align-items:flex-start;gap:10px;margin-top:14px}
  .desk-cta .btn{padding:9px 14px;font-size:13px}
  .desk-cta .hero-link{font-size:12.5px}
  .desk-cta .hero-note{font-size:11px;margin-top:10px}

  /* Negative tops pull the cup up beside the headline (hero-desk overflow is
     visible on mobile) — level with the "invoices" line, on the wood strip. */
  .desk-coffee-ring{left:auto;right:10%;top:-116px;width:60px;border-width:6px}
  .desk-cup{left:auto;right:5%;top:-100px;width:60px}
  .desk-cup-handle{border-width:6px}
  .desk-receipt{left:auto;right:7%;top:64px;width:92px;padding:10px 10px 12px}
  .desk-receipt-amount{font-size:16px}
  .desk-pencil{left:30%;right:auto;top:auto;bottom:14px;width:46%;transform:rotate(-4deg)}
}

/* ──────────────────────────────────────────────────────────────────────────
   Problem section
   ────────────────────────────────────────────────────────────────────────── */
/* Pull 1px over the hero so body --paper can't flash as a hairline seam
   between the desk wood and this section's continuation band. */
section.hero-wood-continue{position:relative;margin-top:-1px}
.wood-continue-band{position:absolute;top:-1px;left:0;right:0;height:261px;pointer-events:none;
  background:var(--wood);background-attachment:fixed,fixed;
  -webkit-mask-image:linear-gradient(to bottom, black 0%, rgba(0,0,0,.92) 20%, rgba(0,0,0,.68) 42%, rgba(0,0,0,.38) 64%, rgba(0,0,0,.14) 84%, transparent 100%);
  mask-image:linear-gradient(to bottom, black 0%, rgba(0,0,0,.92) 20%, rgba(0,0,0,.68) 42%, rgba(0,0,0,.38) 64%, rgba(0,0,0,.14) 84%, transparent 100%)}
section.hero-wood-continue .wrap{position:relative;z-index:1}
@media (max-width:720px){
  /* .wood-continue-band is `top:0` against the section's padding box, so the
     section's own top padding was pushing it down and leaving a gap under the
     hero card instead of continuing its wood straight into this section. */
  section.hero-wood-continue{padding-top:0}
  section.hero-wood-continue .wrap{padding-top:48px}
}
.problem-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:48px}
.problem-card{display:flex;flex-direction:column;gap:12px}
.problem-row{display:flex;gap:10px}
.problem-mark{width:22px;height:22px;border-radius:7px;display:flex;align-items:center;
  justify-content:center;flex-shrink:0;margin-top:1px}
.problem-mark-bad{background:var(--bad-soft);color:var(--bad-ink)}
.problem-mark-good{background:var(--good-soft);color:var(--good)}
.problem-before{font-family:var(--serif);font-size:15.5px;line-height:1.5;color:var(--charcoal);
  font-style:italic}
.problem-rule{height:1px;background:var(--cream);margin:4px 0}
.problem-after{font-size:14px;line-height:1.55;color:var(--ink)}
@media (max-width:840px){ .problem-grid{grid-template-columns:1fr 1fr} }
@media (max-width:560px){ .problem-grid{grid-template-columns:1fr} }

/* ──────────────────────────────────────────────────────────────────────────
   Phone carousel showcase (homepage features)
   ────────────────────────────────────────────────────────────────────────── */
.pc-section{margin-top:0}
.pc-head{max-width:640px;margin:0 auto 72px;padding-bottom:12px}
.pc-head h2{font-size:clamp(32px,4.2vw,44px)}
.pc-head p{max-width:520px;margin-left:auto;margin-right:auto}

.pc-stage{
  /* Pair as one unit: center together, modest gutter (not space-between —
     that was stretching ~486px across the 1200 wrap). */
  display:grid;grid-template-columns:minmax(260px,360px) 300px;gap:48px;
  align-items:center;justify-content:center;
  /* Room for dots that sit under the phone outside layout height */
  padding-bottom:36px;
}

.pc-copy{
  min-width:0;padding:0;
  display:flex;flex-direction:column;gap:0;
}

.pc-group{padding:0}
.pc-group + .pc-group{margin-top:14px;padding-top:14px;border-top:1px solid var(--cream)}
.pc-group-label{
  font:600 11px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;
  color:var(--stone);margin-bottom:8px;padding-left:12px;
}
.pc-cat-list{display:flex;flex-direction:column;gap:2px}
.pc-cat{
  display:grid;grid-template-columns:20px 1fr;column-gap:10px;row-gap:2px;
  width:100%;text-align:left;align-items:start;
  padding:8px 12px;border:0;border-radius:12px;background:transparent;
  color:var(--ink);cursor:pointer;
  transition:background .14s ease, box-shadow .14s ease;
}
.pc-cat svg{
  grid-row:1 / span 2;margin-top:2px;flex-shrink:0;
  opacity:.5;color:var(--olive);transition:opacity .14s ease, color .14s ease;
}
.pc-cat-title{
  font:500 15px/1.2 var(--sans);color:var(--ink);
  transition:color .14s ease;
}
.pc-cat-blurb{
  grid-column:2;font:400 13px/1.35 var(--sans);color:var(--olive);
  max-width:280px;
}
.pc-cat:hover{background:var(--sand)}
.pc-cat:hover svg{opacity:.8}
.pc-cat[aria-current="true"]{
  background:var(--card);box-shadow:inset 0 0 0 1px var(--cream);
}
.pc-cat[aria-current="true"] svg{opacity:1;color:var(--accent-text)}
.pc-cat[aria-current="true"] .pc-cat-title{color:var(--ink);font-weight:600}
.pc-cat[aria-current="true"] .pc-cat-blurb{color:var(--charcoal)}
.pc-cat:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Dots under the phone, out of flow so .pc-copy centers to the phone alone */
.pc-phone-dots{
  position:absolute;left:50%;transform:translateX(-50%);
  top:100%;margin-top:18px;z-index:2;
  display:flex;justify-content:center;gap:7px;padding:2px 0 0;
}
.pc-dot{
  width:7px;height:7px;border-radius:99px;border:0;padding:0;
  background:var(--stone);cursor:pointer;opacity:.55;
  transition:width .22s ease, background .18s ease, opacity .18s ease;
}
.pc-dot:hover{opacity:.85}
.pc-dot[aria-current="true"]{width:20px;background:var(--accent);opacity:1}
.pc-dot:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* Phone shell — height is the phone (dots are absolute) so stage
   align-items:center lines the categories up with the device. */
.pc-phone-wrap{
  display:flex;flex-direction:column;align-items:center;
  position:relative;gap:18px;
}
.pc-mobile-caption{
  display:none;text-align:center;max-width:340px;width:100%;
  min-height:5.5em;overflow:hidden;padding:0 8px;
}
.pc-caption-panel{
  will-change:transform,opacity;
  transition:transform .22s cubic-bezier(.22,1,.36,1), opacity .18s ease;
  transform:translateY(0);opacity:1;
}
.pc-caption-panel.is-out{
  transform:translateY(-8px);opacity:0;
}
.pc-caption-panel.is-prep{
  transition:none;
  transform:translateY(14px);opacity:0;
}
.pc-caption-panel.is-in{
  transform:translateY(0);opacity:1;
}
.pc-mobile-group{
  font:600 11px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;
  color:var(--stone);margin-bottom:10px;
}
.pc-mobile-title{
  font:600 22px/1.2 var(--sans);color:var(--ink);letter-spacing:-0.02em;
}
.pc-mobile-blurb{
  margin:8px 0 0;font:400 14.5px/1.45 var(--sans);color:var(--olive);
}
.pc-phone-frame{position:relative;display:flex;justify-content:center}
.pc-phone-glow{
  position:absolute;inset:8% 6%;border-radius:48px;
  background:radial-gradient(ellipse at 50% 30%, var(--accent-glow-lg), transparent 70%);
  filter:blur(18px);pointer-events:none;z-index:0;
}
.pc-phone{
  position:relative;z-index:1;isolation:isolate;
  width:280px;aspect-ratio:9/19.2;
  /* ~3px rim — diagonal metal + hard edge speculars (readable on thin chassis) */
  border-radius:32px;
  padding:3px;
  background:
    linear-gradient(155deg,
      var(--pc-phone-m1) 0%,
      var(--pc-phone-m2) 16%,
      var(--pc-phone-m3) 34%,
      var(--pc-phone-m4) 48%,
      var(--pc-phone-m5) 66%,
      var(--pc-phone-m2) 82%,
      var(--pc-phone-m1) 100%);
  box-shadow:
    0 0 0 .5px color-mix(in srgb, var(--pc-phone-m3) 70%, transparent),
    inset 0 0 0 .6px var(--pc-phone-edge-hi),
    inset 0 1px 0 var(--pc-phone-edge-hi),
    inset 0 -1px 0 var(--pc-phone-edge-lo),
    inset 1px 0 0 color-mix(in srgb, var(--pc-phone-edge-hi) 55%, transparent),
    inset -1px 0 0 var(--pc-phone-edge-lo),
    0 28px 60px var(--sh-5),
    0 8px 20px var(--sh-3);
  touch-action:pan-y;
}
/* Bright catch light along the upper-left rim only (under the screen) */
.pc-phone::before{
  content:'';
  position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;
  background:
    linear-gradient(125deg,
      rgba(255,255,255,.5) 0%,
      rgba(255,255,255,.12) 12%,
      transparent 28%),
    linear-gradient(300deg,
      transparent 60%,
      rgba(255,255,255,.08) 78%,
      transparent 92%);
  opacity:.65;
}
.pc-phone-bezel{
  position:relative;z-index:1;height:100%;border-radius:29px;overflow:hidden;
  background:var(--ivory);
  box-shadow:inset 0 0 0 1px var(--pc-phone-glass-seal);
}
.pc-notch{
  position:absolute;top:6px;left:50%;transform:translateX(-50%);
  width:68px;height:15px;background:var(--pc-phone-notch);border-radius:99px;z-index:5;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1);
}
.pc-status{
  position:absolute;top:12px;left:18px;right:18px;z-index:4;
  display:flex;justify-content:space-between;align-items:center;
  font:600 10px/1 var(--sans);color:var(--ink);pointer-events:none;
}
.pc-status-icons{display:flex;gap:4px;align-items:center;opacity:.75}
.pc-status-icons span{display:block;height:8px;border-radius:2px;background:currentColor}
.pc-status-icons .sig{width:12px}
.pc-status-icons .wifi{width:10px}
.pc-status-icons .bat{width:16px;height:7px;border:1.2px solid currentColor;background:transparent;position:relative}
.pc-status-icons .bat::after{content:'';position:absolute;right:-3px;top:1.5px;width:1.5px;height:3px;background:currentColor;border-radius:0 1px 1px 0}

.pc-screen{
  position:absolute;inset:0;padding-top:42px;display:flex;flex-direction:column;
  background:linear-gradient(180deg, var(--paper) 0%, var(--ivory) 100%);
}
.pc-screen-appbar{
  display:flex;align-items:center;justify-content:flex-end;
  padding:4px 16px 10px;flex-shrink:0;
}
.pc-screen-avatar{
  width:24px;height:24px;border-radius:99px;background:var(--accent-soft);
  color:var(--accent-ink);font:600 9px/24px var(--sans);text-align:center;
}

.pc-carousel{
  flex:1;position:relative;overflow:hidden;min-height:0;
}
.pc-track{
  display:flex;height:100%;
  transition:transform .42s cubic-bezier(.22,1,.36,1);
}
.pc-slide{
  flex:0 0 100%;width:100%;height:100%;
  padding:0 14px 18px;box-sizing:border-box;overflow:hidden;
}
@media (prefers-reduced-motion:reduce){
  .pc-track,.pc-dot{transition:none}
  .pc-caption-panel{transition:none}
}

/* Mini UIs inside the phone — denser, closer to real SaaS chrome */
.mu-stack{display:flex;flex-direction:column;gap:8px;height:100%}
.mu-card{
  background:var(--card);border:1px solid var(--cream);border-radius:14px;
  padding:11px 12px;box-shadow:0 1px 0 var(--sh-1);
}
.mu-card.grow{flex:1;min-height:0;display:flex;flex-direction:column}
.mu-label{
  font:600 9px/1 var(--sans);letter-spacing:.12em;text-transform:uppercase;
  color:var(--stone);margin-bottom:8px;
}
.mu-head-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.mu-head-row .mu-label{margin:0}
.mu-title{font-family:var(--serif);font-size:15px;font-weight:500;color:var(--ink);letter-spacing:-0.01em;line-height:1.15}
.mu-sub{font-size:10.5px;color:var(--olive);line-height:1.4;margin-top:3px}

.mu-row{
  display:flex;align-items:center;gap:8px;padding:7px 0;
  border-top:1px solid var(--cream);
}
.mu-row:first-of-type{border-top:0;padding-top:0}
.mu-row:last-child{padding-bottom:0}
.mu-time{
  flex-shrink:0;width:34px;font:500 10px/1.15 var(--sans);color:var(--ink);
  font-variant-numeric:tabular-nums;
}
.mu-time span{display:block;font:400 8.5px/1.1 var(--sans);color:var(--stone);margin-top:2px}
.mu-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}
.mu-name{font:500 11px/1.25 var(--sans);color:var(--ink);min-width:0}
.mu-name.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mu-meta{font:400 9.5px/1.25 var(--sans);color:var(--stone)}
.mu-cell{flex:1;min-width:0}
.mu-pill{
  font:500 8.5px/1 var(--sans);padding:3px 6px;border-radius:99px;white-space:nowrap;flex-shrink:0;
}
.mu-pill.good{background:var(--good-soft);color:var(--good-ink)}
.mu-pill.warn{background:var(--warn-soft);color:var(--warn-ink)}
.mu-pill.info{background:var(--info-soft);color:var(--info-ink)}
.mu-pill.soft{background:var(--sand);color:var(--charcoal)}
.mu-pill.brand{background:var(--accent-soft);color:var(--accent-ink)}
.mu-pill.dot::before{content:'';display:inline-block;width:4px;height:4px;border-radius:50%;
  background:currentColor;margin-right:4px;vertical-align:1px}

.mu-btn{
  display:inline-flex;align-items:center;justify-content:center;
  font:500 9.5px/1 var(--sans);padding:6px 9px;border-radius:7px;border:0;white-space:nowrap;
}
.mu-btn.brand{background:var(--accent-fill);color:var(--accent-on)}
.mu-btn.ghost{background:var(--sand);color:var(--charcoal);border:1px solid var(--warm)}
.mu-btn.good{background:var(--good);color:#fff}
.mu-actions{display:flex;gap:5px;flex-shrink:0}

.mu-stats{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.mu-stat{
  background:var(--paper);border:1px solid var(--cream);border-radius:10px;padding:8px 9px;
}
.mu-stat-k{font:500 8.5px/1 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--stone)}
.mu-stat-v{font-family:var(--serif);font-size:16px;font-weight:500;color:var(--ink);margin-top:4px;letter-spacing:-0.02em}
.mu-stat-v small{font-family:var(--sans);font-size:9px;font-weight:500;color:var(--stone);margin-left:3px}

.mu-filters{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:2px}
.mu-filter{
  font:500 9px/1 var(--sans);padding:5px 8px;border-radius:99px;
  background:var(--sand);color:var(--charcoal);border:1px solid transparent;
}
.mu-filter.on{background:var(--accent-fill);color:var(--accent-on)}

.mu-toolbar{
  display:flex;align-items:center;gap:5px;margin-bottom:8px;flex-wrap:wrap;
}
.mu-tool{
  font:500 9px/1 var(--sans);padding:5px 7px;border-radius:6px;
  background:var(--sand);color:var(--charcoal);border:1px solid var(--cream);
}
.mu-tool.on{background:var(--card);border-color:var(--ring);color:var(--ink)}
.mu-badge{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:14px;height:14px;padding:0 4px;border-radius:99px;
  background:var(--accent);color:#fff;font:600 8px/14px var(--sans);margin-left:3px;
}
.mu-more{
  margin-left:auto;width:26px;height:26px;border-radius:8px;
  border:1px solid var(--cream);background:var(--ivory);color:var(--olive);
  display:inline-flex;align-items:center;justify-content:center;gap:2.5px;flex-shrink:0;
}
.mu-more span{
  width:3px;height:3px;border-radius:50%;background:currentColor;
}
.mu-more span.is-lit{background:var(--accent)}

/* Schedule week grid */
.mu-sched{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;flex:1}
.mu-sched-day{
  background:var(--paper);border:1px solid var(--cream);border-radius:8px;
  padding:6px 4px;min-height:0;
}
.mu-sched-day.today{background:var(--accent-wash);border-color:var(--accent-soft)}
.mu-sched-d{font:600 8px/1 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--stone);margin-bottom:5px;text-align:center}
.mu-sched-day.today .mu-sched-d{color:var(--accent-text)}
.mu-block{
  font:500 8px/1.2 var(--sans);padding:3px 4px;border-radius:4px;margin-bottom:3px;
  background:var(--st-sched-bg);color:var(--st-sched-ink);
  box-shadow:inset 2px 0 0 0 var(--st-sched-rail);
}
.mu-block.done{background:var(--st-done-bg);color:var(--st-done-ink);box-shadow:inset 2px 0 0 0 var(--st-done-rail)}
.mu-block.resch{background:var(--st-resch-bg);color:var(--st-resch-ink);box-shadow:inset 2px 0 0 0 var(--st-resch-rail)}
.mu-block.unc{background:var(--st-unconf-bg);color:var(--st-unconf-ink);box-shadow:inset 2px 0 0 0 var(--st-unconf-rail)}
.mu-block .t{display:block;font-size:7px;opacity:.75;margin-top:1px}

/* Schedule — single day (fits phone) + mobile create FAB */
.mu-day{
  position:relative;flex:1;min-height:0;display:flex;flex-direction:column;
  background:var(--paper);border:1px solid var(--cream);border-radius:10px;
  overflow:hidden;
}
.mu-day-rows{flex:1;display:flex;flex-direction:column;min-height:0;padding:4px 0 40px}
.mu-day-row{
  display:grid;grid-template-columns:34px 1fr;gap:6px;align-items:stretch;
  min-height:36px;padding:0 8px;border-top:1px solid var(--cream);
}
.mu-day-row:first-child{border-top:0}
.mu-day-hour{
  font:500 8.5px/1 var(--sans);color:var(--stone);padding-top:4px;
  font-variant-numeric:tabular-nums;
}
.mu-day-slot{position:relative;min-height:32px}
.mu-day-block{
  position:absolute;left:0;right:0;top:2px;bottom:2px;
  border-radius:6px;padding:5px 7px;
  font:500 10px/1.25 var(--sans);
  background:var(--st-sched-bg);color:var(--st-sched-ink);
  box-shadow:inset 2.5px 0 0 0 var(--st-sched-rail);
  overflow:hidden;
}
.mu-day-block.done{background:var(--st-done-bg);color:var(--st-done-ink);box-shadow:inset 2.5px 0 0 0 var(--st-done-rail)}
.mu-day-block.tall{bottom:auto;height:calc(200% - 4px);z-index:1}
.mu-day-block .meta{display:block;font:400 8.5px/1.2 var(--sans);opacity:.8;margin-top:2px}
.mu-fab{
  position:absolute;right:10px;bottom:10px;z-index:3;
  width:36px;height:36px;border-radius:50%;border:0;
  background:var(--accent);color:#fff;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 4px 12px var(--accent-glow-lg);
  font:600 20px/1 var(--sans);
}

.mu-note{
  font-family:var(--serif);font-size:12px;line-height:1.45;color:var(--charcoal);
  border-left:2.5px solid var(--accent);padding-left:10px;margin:8px 0 8px;
}
.mu-subj{
  display:inline-flex;font:500 8.5px/1 var(--sans);padding:3px 6px;border-radius:5px;
  background:var(--sand);color:var(--charcoal);margin-left:6px;
}
.mu-files{display:flex;flex-direction:column;gap:5px}
.mu-file{
  display:flex;align-items:center;gap:7px;padding:6px 7px;
  background:var(--paper);border:1px solid var(--cream);border-radius:8px;
}
.mu-file-badge{
  font:600 7.5px/1 var(--sans);letter-spacing:.04em;color:var(--olive);
  background:var(--ivory);border:1px solid var(--cream);border-radius:4px;padding:4px 5px;flex-shrink:0;
}
.mu-file-badge.yt{color:var(--yt-ink);background:var(--yt-soft);border-color:transparent}

/* Notes attachment previews */
.mu-previews{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:2px}
.mu-prev{
  border:1px solid var(--cream);border-radius:9px;overflow:hidden;background:var(--card);
  text-align:left;
}
.mu-prev-media{
  position:relative;aspect-ratio:16/10;background:var(--sand);
  display:flex;align-items:center;justify-content:center;
}
.mu-prev-media.yt{
  background:
    linear-gradient(160deg,rgba(20,18,12,.25),rgba(20,18,12,.55)),
    radial-gradient(ellipse at 30% 40%,#c45a4a,#6b2a22 70%);
}
.mu-prev-play{
  width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.92);
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
}
.mu-prev-play::after{
  content:'';border-style:solid;border-width:4px 0 4px 7px;
  border-color:transparent transparent transparent #c4302b;margin-left:1px;
}
.mu-prev-media.pdf{
  background:var(--ivory);
  flex-direction:column;gap:3px;padding:8px 10px;
}
.mu-prev-pdf-line{
  height:2px;border-radius:99px;background:var(--warm);width:100%;
}
.mu-prev-pdf-line:nth-child(1){width:70%;height:3px;background:var(--accent-soft)}
.mu-prev-pdf-line:nth-child(2){width:92%}
.mu-prev-pdf-line:nth-child(3){width:84%}
.mu-prev-pdf-line:nth-child(4){width:60%}
.mu-prev-pdf-badge{
  position:absolute;left:6px;bottom:6px;
  font:700 7px/1 var(--sans);letter-spacing:.04em;color:var(--olive);
  background:var(--card);border:1px solid var(--cream);border-radius:3px;padding:3px 4px;
}
.mu-prev-cap{padding:6px 7px 7px}
.mu-prev-title{font:500 9.5px/1.25 var(--sans);color:var(--ink);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mu-prev-sub{font:400 8.5px/1.2 var(--sans);color:var(--stone);margin-top:2px}

.mu-amount{font-family:var(--serif);font-size:22px;font-weight:500;color:var(--ink);letter-spacing:-0.02em;line-height:1}
.mu-amount span{font-family:var(--sans);font-size:10px;font-weight:500;color:var(--stone);margin-left:4px}

.mu-req-title{font:600 11px/1.3 var(--sans);color:var(--ink)}
.mu-req-detail{font-size:10px;color:var(--olive);margin-top:3px;line-height:1.4}
.mu-req-note{font:italic 10px/1.4 var(--serif);color:var(--charcoal);margin-top:6px;
  padding:6px 8px;background:var(--paper);border-radius:7px}

.mu-link-row{
  display:flex;align-items:center;gap:6px;padding:7px 8px;margin-top:8px;
  background:var(--paper);border:1px dashed var(--warm);border-radius:8px;
}
.mu-link-row code{flex:1;font:400 9px/1.2 var(--mono);color:var(--olive);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.mu-progress{
  height:4px;border-radius:99px;background:var(--sand);margin-top:6px;overflow:hidden;
}
.mu-progress > i{display:block;height:100%;background:var(--accent);border-radius:99px}

.pc-homebar{
  flex-shrink:0;display:flex;justify-content:center;padding:6px 0 10px;
}
.pc-homebar span{
  width:88px;height:4px;border-radius:99px;background:var(--ink);opacity:.18;
}

@media (max-width:860px){
  .pc-stage{grid-template-columns:1fr;gap:28px;padding-bottom:32px}
  .pc-copy{display:none}
  .pc-mobile-caption{display:block}
  .pc-phone-wrap{order:1;gap:16px}
  .pc-head{margin-bottom:40px}
}

.chip{display:inline-flex;align-items:center;padding:5px 11px;border-radius:99px;
  font:500 12px/1 var(--sans);background:var(--paper);border:1px solid var(--cream);color:var(--charcoal)}
.chip-brand{background:var(--accent-fill);color:var(--accent-on);border-color:var(--accent-fill)}
.chip-muted{color:var(--stone)}

/* ──────────────────────────────────────────────────────────────────────────
   Social proof band
   ────────────────────────────────────────────────────────────────────────── */
.proof-band{max-width:760px;margin:0 auto;text-align:center}
.proof-band .eyebrow{margin-bottom:16px}
.proof-line{font-family:var(--serif);font-size:23px;line-height:1.5;color:var(--ink)}
@media (max-width:720px){ .proof-line{font-size:19px} }

/* ──────────────────────────────────────────────────────────────────────────
   Mini schedule (inside features card)
   ────────────────────────────────────────────────────────────────────────── */
.mini-sched{width:100%;background:var(--paper);border:1px solid var(--cream);
  border-radius:10px;padding:10px 14px}
.mini-sched-head{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-bottom:8px}
.mini-sched-day{font-size:10px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--stone);font-weight:500;text-align:center}
.mini-sched-day.today{color:var(--accent-text)}
.mini-sched-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;height:240px;position:relative}
.mini-sched-col{position:relative;border-radius:6px}
.mini-sched-col.today{background:var(--accent-wash)}
/* Each tone carries its own ink. It used to be one shared terracotta for all
   three, which the tinted backgrounds hid in light mode but would strand as
   dark-on-dark once the tones invert. */
.mini-sched-block{position:absolute;left:2px;right:2px;border-radius:5px;
  padding:4px 6px;font-size:9.5px;font-weight:500;color:var(--tone-terra-ink)}
.mini-sched-block.tone-terra{background:var(--accent-soft);box-shadow:inset 2px 0 0 0 var(--accent);
  color:var(--tone-terra-ink)}
.mini-sched-block.tone-sky{background:var(--tone-sky-bg);box-shadow:inset 2px 0 0 0 var(--info);
  color:var(--info-ink)}
.mini-sched-block.tone-ink{background:var(--st-done-bg);box-shadow:inset 2px 0 0 0 var(--st-done-rail);
  color:var(--st-done-ink)}

/* ──────────────────────────────────────────────────────────────────────────
   Teacher overview (dark section)
   ────────────────────────────────────────────────────────────────────────── */
.overview-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:48px;align-items:center}
.overview-title{font-size:42px;line-height:1.08;margin-top:14px}
.overview-lede{font-size:17px;line-height:1.65;margin-top:18px;color:var(--on-night-2)}
.overview-bullets{display:flex;flex-direction:column;gap:14px;margin-top:28px}
.bullet{display:flex;gap:12px;align-items:flex-start}
.bullet-mark{width:20px;height:20px;border-radius:6px;background:var(--accent);color:var(--accent-on);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}
.bullet-text{font-size:15px;color:var(--on-night-strong);line-height:1.5}
.overview-cta{margin-top:28px}
.overview-mock-body{padding:26px 28px}
.overview-mock-greet{font-family:var(--serif);font-size:24px;color:var(--ink);margin-top:6px}
.overview-mock-lede{color:var(--olive);font-size:13px;margin-top:6px}
.overview-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px}
.overview-stat{background:var(--paper);border:1px solid var(--cream);border-radius:10px;padding:10px 12px}
.overview-stat-label{font-size:9.5px;color:var(--stone)}
.overview-stat-value{font-family:var(--serif);font-size:20px;font-weight:500;color:var(--ink);margin-top:4px}
.overview-stat-value.warn{color:var(--warn)}
.overview-mock-list{margin-top:14px;border-top:1px solid var(--cream);padding-top:8px}
.overview-mock-row{display:grid;grid-template-columns:42px 26px 1fr auto;gap:10px;
  padding:8px 0;align-items:center;border-top:1px solid var(--cream)}
.overview-mock-row.first{border-top:0}
.overview-mock-time{font-family:var(--serif);font-size:12.5px;font-weight:500;color:var(--ink)}
.overview-mock-time.now{color:var(--accent-text)}
.overview-mock-cell{min-width:0}
.overview-mock-name{font-size:11.5px;font-weight:500;color:var(--ink)}
.overview-mock-focus{font-size:10.5px}
.overview-mock-tag{padding:1px 6px;font-size:9.5px}
@media (max-width:840px){
  .overview-grid{grid-template-columns:1fr;gap:32px}
}

/* ──────────────────────────────────────────────────────────────────────────
   Social proof / testimonials / partners
   ────────────────────────────────────────────────────────────────────────── */
.testimonials-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:48px}
.testimonial{display:flex;flex-direction:column}
.testimonial-stars{display:flex;gap:1px;margin-bottom:14px}
.testimonial-quote{font-family:var(--serif);font-size:17px;line-height:1.55;
  color:var(--charcoal);flex:1}
.testimonial-foot{display:flex;align-items:center;gap:10px;margin-top:18px;padding-top:18px;
  border-top:1px solid var(--cream)}
.testimonial-name{font-size:13.5px;color:var(--ink);font-weight:500}
.testimonial-role{font-size:12px}
.partners{margin-top:48px;padding:24px 32px;background:var(--ivory);
  border:1px solid var(--cream);border-radius:16px;
  display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.partners-copy{flex:1 1 280px}
.partners-copy p{margin-top:8px;color:var(--charcoal)}
.partners-copy strong{color:var(--ink)}
.partners-list{display:flex;align-items:center;gap:18px;flex-wrap:wrap;opacity:.85}
.partner-logo{font-family:var(--serif);font-size:14px;color:var(--olive);
  letter-spacing:-0.005em;font-weight:500}
@media (max-width:840px){ .testimonials-grid{grid-template-columns:1fr} }

/* ──────────────────────────────────────────────────────────────────────────
   Final CTA block extras
   ────────────────────────────────────────────────────────────────────────── */
.cta-eyebrow{color:var(--accent-bright)}
.cta-title{margin-top:14px}
.cta-ghost{color:var(--on-night);box-shadow:inset 0 0 0 1px var(--on-night-ring)}
.cta-ghost:hover{background:var(--veil-light)}

/* ──────────────────────────────────────────────────────────────────────────
   About — mission statement + principles grid
   ────────────────────────────────────────────────────────────────────────── */
.about-mission{font-family:var(--serif);font-weight:600;font-size:21px;line-height:1.5;
  color:var(--ink);border-left:3px solid var(--accent);padding-left:18px;margin-top:32px}
.principles-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:48px}
.principle-card{padding:24px}
.principle-n{font-family:var(--mono);font-size:11px;letter-spacing:.16em;color:var(--accent-text);font-weight:500}
.principle-icon{width:34px;height:34px;border-radius:10px;background:var(--paper);border:1px solid var(--cream);
  display:inline-flex;align-items:center;justify-content:center;color:var(--accent-text)}
.principle-t{font-size:20px;margin-top:10px}
.principle-icon + .principle-t{margin-top:14px}
.principle-d{margin-top:8px;font-size:14px;line-height:1.6}
@media (max-width:840px){ .principles-grid{grid-template-columns:1fr 1fr} }
@media (max-width:560px){ .principles-grid{grid-template-columns:1fr} }

/* ──────────────────────────────────────────────────────────────────────────
   FAQ
   ────────────────────────────────────────────────────────────────────────── */
.faq-wrap{max-width:1080px}
.faq-layout{display:grid;grid-template-columns:220px 1fr;gap:48px;align-items:start}
.faq-side{position:sticky;top:88px}
.faq-side .eyebrow{margin-bottom:12px}
.faq-side a{display:block;padding:7px 12px;border-radius:8px;color:var(--olive);
  text-decoration:none;font-size:13.5px;margin-bottom:2px}
.faq-side a:hover{background:var(--sand);color:var(--ink)}
.faq-groups{display:flex;flex-direction:column;gap:48px}
.faq-group h2{font-size:26px;margin-bottom:14px}
.faq-item{border-top:1px solid var(--cream)}
.faq-item:first-child{border-top:0}
.faq-item summary{list-style:none;cursor:pointer;padding:18px 22px;
  display:flex;align-items:center;gap:14px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-question{flex:1;font-size:16px;font-weight:500;color:var(--ink);font-family:var(--serif)}
.faq-chev{flex-shrink:0;transition:transform .15s}
.faq-item[open] .faq-chev{transform:rotate(180deg)}
.faq-answer{padding:0 22px 22px;max-width:680px}
.faq-answer p{font-size:14.5px;line-height:1.65;color:var(--charcoal)}
@media (max-width:840px){
  .faq-layout{grid-template-columns:1fr}
  .faq-side{position:static;display:flex;flex-wrap:wrap;gap:8px}
}

/* ──────────────────────────────────────────────────────────────────────────
   Pricing — plan cards (2-up: Solo / School)
   ────────────────────────────────────────────────────────────────────────── */
.plans-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:48px;
  max-width:760px;margin-left:auto;margin-right:auto}
.price-card{padding:28px 26px;position:relative;display:flex;flex-direction:column}
.price-card-badge{position:absolute;top:-12px;left:24px;padding:4px 12px;border-radius:99px;
  background:var(--accent-fill);color:var(--accent-on);font:500 11px/1 var(--sans);letter-spacing:.04em}
.price-card-name{font-size:24px;margin-top:6px}
.price-card-caption{margin-top:6px;font-size:13.5px;color:var(--olive)}
.price-card-amount{margin:18px 0;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.price-card-num{font-family:var(--serif);font-size:48px;font-weight:500;color:var(--ink);
  letter-spacing:-0.02em;line-height:1}
.price-card-suffix{font-size:13px;color:var(--stone)}
.price-card-limit{padding:10px 14px;background:var(--paper);border:1px solid var(--cream);
  border-radius:9px;font-size:12.5px;color:var(--charcoal);margin-bottom:18px}
.price-card-features{display:flex;flex-direction:column;gap:9px;margin-bottom:24px}
.price-card-feature{display:flex;gap:10px;align-items:flex-start}
.price-card-check{width:16px;height:16px;border-radius:99px;background:var(--good-soft);
  color:var(--good);display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}
.price-card-feature-text{font-size:13.5px;color:var(--charcoal);line-height:1.5}
.price-card .btn{width:100%;justify-content:center;margin-top:auto}
.price-card-note{font-size:12px;line-height:1.4;color:var(--stone);text-align:center;margin-top:10px;min-height:2.8em}
@media (max-width:720px){ .plans-grid{grid-template-columns:1fr} }

/* ──────────────────────────────────────────────────────────────────────────
   Pricing — comparison table
   ────────────────────────────────────────────────────────────────────────── */
.compare-table-wrap{padding:0;overflow:hidden;margin-top:40px;overflow-x:auto}
.compare-table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px}
.compare-table th{text-align:center;padding:14px 20px;font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--stone);font-weight:500;border-bottom:1px solid var(--cream);
  background:var(--paper)}
.compare-table th:first-child{text-align:left}
.compare-table td{padding:14px 20px;border-top:1px solid var(--cream);font-size:13.5px;
  color:var(--ink);text-align:center}
.compare-table td.label{text-align:left;color:var(--charcoal);font-weight:500}
.compare-table td.label .note{font-weight:400;margin-left:8px;font-size:11.5px;color:var(--stone)}
@media (max-width:480px){
  .compare-table th,.compare-table td{padding:10px 8px;font-size:12.5px}
  .compare-table th{font-size:10px}
  .compare-table td.label{font-size:12.5px}
  .compare-table td.label .note{display:block;margin-left:0;margin-top:2px}
}

/* ──────────────────────────────────────────────────────────────────────────
   Features — page header tags
   ────────────────────────────────────────────────────────────────────────── */
.feat-tags{display:flex;gap:14px;justify-content:center;margin-top:14px;flex-wrap:wrap}
.feat-tag{font-size:13px;color:var(--olive);text-decoration:none;padding:6px 10px;
  border-radius:99px;border:1px solid var(--cream);background:var(--ivory)}
.feat-tag:hover{background:var(--sand)}
/* Below 560px the 7 pills wrap into ragged centred rows — each row a different
   width, nothing lining up. A 2-col grid gives them equal widths and straight
   edges; the odd one out spans the full row so the gap reads as deliberate
   rather than as a wrap artefact. */
@media (max-width:560px){
  .feat-tags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .feat-tag{text-align:center}
  .feat-tag:last-child:nth-child(odd){grid-column:1 / -1}
}

/* ──────────────────────────────────────────────────────────────────────────
   Features — alternating text/mockup block
   ────────────────────────────────────────────────────────────────────────── */
.feat-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.feat-grid.reverse{direction:rtl}
.feat-grid > div{direction:ltr}
.feat-badge-row{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.feat-badge{width:36px;height:36px;border-radius:10px;background:var(--accent-soft);color:var(--accent-ink);
  display:inline-flex;align-items:center;justify-content:center}
.feat-title{font-size:34px;line-height:1.1}
.feat-desc{margin-top:14px;font-size:16px;line-height:1.65}
.feat-bullets{display:flex;flex-direction:column;gap:10px;margin-top:18px}
.feat-bullet{display:flex;gap:10px;align-items:flex-start}
.feat-bullet-mark{width:18px;height:18px;border-radius:5px;background:var(--accent);color:var(--accent-on);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:2px}
.feat-bullet-text{font-size:14.5px;color:var(--charcoal);line-height:1.55}
@media (max-width:840px){
  .feat-grid{grid-template-columns:1fr!important;direction:ltr!important}
}

/* ──────────────────────────────────────────────────────────────────────────
   Features — Scheduling mockup
   ────────────────────────────────────────────────────────────────────────── */
.sm-sched{padding:20px;display:grid;grid-template-columns:42px repeat(5,1fr);gap:6px;
  font-family:var(--mono);font-size:10px;color:var(--stone)}
.sm-sched-day{text-align:center;padding:4px 0;font-size:10px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--stone);font-weight:500}
.sm-sched-day.today{color:var(--accent-text)}
.sm-sched-date{font-family:var(--serif);font-size:16px;margin-top:2px;color:var(--ink)}
.sm-sched-day.today .sm-sched-date{color:var(--accent-text)}
.sm-sched-hour{text-align:right;padding:18px 4px 0 0}
.sm-sched-cell{height:42px;border-top:1px solid var(--cream);position:relative}
.sm-sched-cell.today{background:var(--accent-wash)}
.sm-sched-block{position:absolute;inset:3px 2px;border-radius:5px;padding:4px 6px;font-size:9.5px;
  font-weight:500;font-family:var(--sans)}
.sm-sched-block.scheduled{background:var(--st-sched-bg);box-shadow:inset 2px 0 0 0 var(--st-sched-rail);color:var(--st-sched-ink)}
.sm-sched-block.completed{background:var(--st-done-bg);box-shadow:inset 2px 0 0 0 var(--st-done-rail);color:var(--st-done-ink)}
.sm-sched-block.rescheduled{background:var(--st-resch-bg);box-shadow:inset 2px 0 0 0 var(--st-resch-rail);color:var(--st-resch-ink)}
.sm-sched-block.canceled{background:var(--st-canc-bg);box-shadow:inset 2px 0 0 0 var(--st-canc-rail);color:var(--st-canc-ink);text-decoration:line-through}
.sm-sched-block.unconfirmed{background:var(--st-unconf-bg);box-shadow:inset 2px 0 0 0 var(--st-unconf-rail);color:var(--st-unconf-ink)}

.sm-sched-legend{display:flex;flex-wrap:wrap;gap:10px;padding:10px 20px 16px;border-top:1px solid var(--cream)}
.sm-sched-legend-item{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:500;color:var(--stone)}
.sm-sched-legend-dot{width:9px;height:9px;border-radius:3px;flex-shrink:0}
.sm-sched-legend-dot.scheduled{background:var(--st-sched-bg);box-shadow:inset 2px 0 0 0 var(--st-sched-rail)}
.sm-sched-legend-dot.completed{background:var(--st-done-bg);box-shadow:inset 2px 0 0 0 var(--st-done-rail)}
.sm-sched-legend-dot.rescheduled{background:var(--st-resch-bg);box-shadow:inset 2px 0 0 0 var(--st-resch-rail)}
.sm-sched-legend-dot.canceled{background:var(--st-canc-bg);box-shadow:inset 2px 0 0 0 var(--st-canc-rail)}
.sm-sched-legend-dot.unconfirmed{background:var(--st-unconf-bg);box-shadow:inset 2px 0 0 0 var(--st-unconf-rail)}
@media (max-width:480px){
  .sm-sched-sep{display:none}
}

/* ──────────────────────────────────────────────────────────────────────────
   Features — Reminders mockup
   ────────────────────────────────────────────────────────────────────────── */
.rm-wrap{padding:24px 28px}
.rm-head{display:flex;align-items:center;gap:8px;margin-bottom:14px;font-size:11.5px;color:var(--stone)}
.rm-studio{color:var(--olive);font-weight:500}
.rm-when{margin-left:auto;font-family:var(--mono)}
.rm-title{font-family:var(--serif);font-size:22px;font-weight:500;color:var(--ink)}
.rm-sub{font-size:13px;color:var(--olive);margin-top:8px;line-height:1.55}
.rm-card{margin:18px 0;padding:14px 16px;background:var(--paper);border:1px solid var(--cream);
  border-radius:10px;display:flex;align-items:center;gap:14px}
.rm-date{width:48px;text-align:center;padding:4px 0;background:var(--ivory);border:1px solid var(--cream);
  border-radius:8px}
.rm-date-month{font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-text);font-weight:600}
.rm-date-day{font-family:var(--serif);font-size:18px;font-weight:500;margin-top:2px}
.rm-meta-time{font-size:12px;color:var(--olive)}
.rm-meta-title{font-size:13px;color:var(--ink);font-weight:500;margin-top:2px}
.rm-actions{display:flex;gap:6px}

/* ──────────────────────────────────────────────────────────────────────────
   Features — Students mockup
   ────────────────────────────────────────────────────────────────────────── */
.stm-row{display:grid;grid-template-columns:32px 1fr 100px 80px;gap:14px;padding:14px 24px;
  align-items:center;border-top:1px solid var(--cream)}
.stm-row:first-child{border-top:0}
.stm-name{font-size:13px;font-weight:500;color:var(--ink)}
.stm-sub{font-size:11px}
.stm-level{font-size:11.5px}
@media (max-width:480px){
  .stm-row{grid-template-columns:32px 1fr 80px}
  .stm-level{display:none}
}

/* ──────────────────────────────────────────────────────────────────────────
   Features — Notes mockup
   ────────────────────────────────────────────────────────────────────────── */
.nm-wrap{padding:22px 26px}
.nm-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.nm-avatar{width:32px;height:32px;border-radius:99px;background:var(--accent-soft);color:var(--accent-ink);
  display:inline-flex;align-items:center;justify-content:center;font-weight:500;font-size:12px}
.nm-name{font-size:13px;font-weight:500;color:var(--ink)}
.nm-meta{font-size:11px}
.nm-quote{font-family:var(--serif);font-size:15px;line-height:1.55;color:var(--charcoal);
  border-left:3px solid var(--accent);padding-left:14px;margin-top:14px}
.nm-attachments{display:flex;flex-direction:column;gap:6px;margin-top:14px}
.nm-attachment{display:flex;align-items:center;gap:10px;padding:8px 10px;background:var(--paper);
  border-radius:8px;border:1px solid var(--cream)}
.nm-attachment-icon{width:24px;height:24px;border-radius:5px;display:inline-flex;align-items:center;
  justify-content:center;font-weight:600;font-size:11px;flex-shrink:0}
.nm-attachment-icon.video{background:var(--yt-soft);color:var(--yt-ink)}
.nm-attachment-icon.pdf{background:var(--paper);border:1px solid var(--cream);color:var(--olive);
  font-size:8px;font-weight:500}
.nm-attachment-title{font-size:12px;font-weight:500;color:var(--ink)}
.nm-attachment-sub{font-size:10.5px}

/* ──────────────────────────────────────────────────────────────────────────
   Features — Billing mockup
   ────────────────────────────────────────────────────────────────────────── */
.bm-wrap{padding:24px 26px}
.bm-amount{font-family:var(--serif);font-size:30px;font-weight:500;color:var(--ink);margin-top:6px}
.bm-amount-label{font-size:14px;font-weight:400;color:var(--stone)}
.bm-chart{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;align-items:end;margin-top:20px;height:120px}
.bm-bar-col{display:flex;flex-direction:column;align-items:stretch;height:100%;justify-content:flex-end}
.bm-bar{border-radius:4px 4px 2px 2px;background:var(--sand-2)}
.bm-bar.last{background:var(--accent)}
.bm-bar-label{text-align:center;font-size:9px;margin-top:6px;color:var(--stone);font-family:var(--mono)}
.bm-bar-label.last{color:var(--ink);font-weight:500}
.bm-alert{margin-top:18px;padding:10px 12px;background:var(--warn-soft);border-radius:8px;font-size:12px;
  color:var(--warn-ink);display:flex;align-items:center;gap:8px}

/* ──────────────────────────────────────────────────────────────────────────
   Features — Availability mockup
   ────────────────────────────────────────────────────────────────────────── */
.avm-wrap{padding:18px 22px}
.avm-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:14px}
.avm-day{border-radius:10px;padding:10px 8px;text-align:center;border:1px solid var(--cream)}
.avm-day.on{background:var(--accent-soft);border-color:var(--accent-soft)}
.avm-day.off{opacity:.6}
.avm-day-label{font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:500;color:var(--stone)}
.avm-day.on .avm-day-label{color:var(--accent-ink)}
.avm-day-hours{font-size:9.5px;font-family:var(--mono);margin-top:4px;white-space:pre-line;
  line-height:1.4;color:var(--stone)}
.avm-day.on .avm-day-hours{color:var(--accent-ink)}

/* ──────────────────────────────────────────────────────────────────────────
   Features — Invite mockup
   ────────────────────────────────────────────────────────────────────────── */
.im-wrap{padding:22px 26px}
.im-title{font-family:var(--serif);font-size:20px;font-weight:500;color:var(--ink);margin-top:6px}
.im-body{font-size:13px;color:var(--olive);margin-top:8px}
.im-cta{margin-top:14px;width:100%;justify-content:center}
.im-expires{font-size:10.5px;margin-top:14px;text-align:center}

/* ──────────────────────────────────────────────────────────────────────────
   Schools — hero
   ────────────────────────────────────────────────────────────────────────── */
.schools-hero{padding-top:80px;padding-bottom:80px}
.schools-hero-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:56px;align-items:center}
.schools-hero-title{font-size:56px;line-height:1.05;letter-spacing:-0.022em;margin-top:14px;color:var(--on-night)}
.schools-hero-verticals{font-size:19px;margin-top:18px;line-height:1.5;color:var(--accent-bright);font-weight:500;max-width:520px}
.schools-hero-sub{font-size:17px;margin-top:12px;line-height:1.6;color:var(--on-night-2);max-width:520px}
.schools-hero-actions{display:flex;gap:10px;margin-top:32px;flex-wrap:wrap}
@media (max-width:840px){ .schools-hero-grid{grid-template-columns:1fr} }

/* ──────────────────────────────────────────────────────────────────────────
   Schools — pain/cure cards
   ────────────────────────────────────────────────────────────────────────── */
.pain-list{margin-top:36px}
.pain-item{display:grid;grid-template-columns:34px 1fr;gap:18px;padding:24px 0;border-top:1px solid var(--cream)}
.pain-item:first-child{border-top:0;padding-top:0}
.pain-icon{width:34px;height:34px;border-radius:10px;background:var(--card);border:1px solid var(--cream);
  display:inline-flex;align-items:center;justify-content:center;color:var(--accent-text);margin-top:2px}
.pain-body{display:flex;flex-direction:column;gap:14px;min-width:0}
.pain-cure-pain{font-family:var(--serif);font-style:italic;font-size:16px;line-height:1.5;color:var(--charcoal)}
.pain-cure-rule{width:32px;height:1px;background:var(--warm)}
.pain-cure-cure{font-size:14.5px;color:var(--ink);line-height:1.6;font-weight:400;max-width:600px}
@media (max-width:560px){ .pain-item{gap:14px} }

/* Scroll-reveal: progressive-enhancement fade/rise, see site.js */
[data-reveal]{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
[data-reveal].is-visible{opacity:1;transform:translateY(0)}
@media (prefers-reduced-motion:reduce){
  [data-reveal]{opacity:1;transform:none;transition:none}
}

/* ──────────────────────────────────────────────────────────────────────────
   Schools — migration phase timeline
   ────────────────────────────────────────────────────────────────────────── */
/* Left-rail vertical timeline: numbered circles sit absolutely on the left rail;
   step text is centred on the section x-axis (not beside the circles). The rail
   never crosses text — no masking, always visible.
   An accent fill travels up the line on scroll and pours into each circle: the circle
   fills like liquid from the top to a partial level (--fill, set per-circle by JS from
   scroll position), and the number is split at that same waterline — white in the
   filled part, grey below. Duplicating the number inside the clipped liquid layer keeps
   the digit's two-tone split perfectly aligned with the background fill.
   JS (site.js) sets --mig-top/--mig-h to span first→last circle centre, --mig-fill to
   the rail's scroll progress, and each circle's --fill; values below are no-JS fallback. */
.mig-timeline{--mig-circle:84px;position:relative;list-style:none;margin:48px auto 0;padding:0}
.mig-timeline::before,.mig-timeline::after{content:'';position:absolute;left:calc(var(--mig-circle) / 2);
  transform:translateX(-50%);width:3px;border-radius:3px;top:var(--mig-top,42px);z-index:0;pointer-events:none}
.mig-timeline::before{height:var(--mig-h,calc(100% - 84px));background:var(--ring)}
.mig-timeline::after{height:var(--mig-fill,0px);background:linear-gradient(var(--accent-2),var(--accent));
  transition:height .12s linear}
.mig-step{position:relative;min-height:var(--mig-circle);padding:28px 0;
  display:flex;align-items:center;justify-content:center}
.mig-step:first-child{padding-top:0}
.mig-step:last-child{padding-bottom:0}
.mig-num{position:absolute;left:0;top:50%;transform:translateY(-50%);z-index:2;
  width:var(--mig-circle);height:var(--mig-circle);border-radius:99px;
  overflow:hidden;background:var(--ivory);border:2px solid var(--ring);
  font-family:var(--serif);font-size:38px;font-weight:500;
  transition:border-color .3s ease,box-shadow .3s ease}
.mig-num-face{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--stone)}
/* Liquid body: flat-topped fill, held 6px short of the waterline so the wave (which
   spans the waterline ±6px) supplies the entire visible surface — no flat edge shows. */
.mig-num-liquid{position:absolute;left:0;top:0;width:100%;height:calc(var(--fill,0%) - 6px);overflow:hidden;
  background:linear-gradient(var(--accent-2),var(--accent))}
.mig-num-liquid .mig-num-face{inset:auto;top:0;left:0;width:100%;height:var(--mig-circle);color:var(--accent-on)}
/* Irregular surface riding the waterline: SVG wave, accent above the curve,
   transparent below. Static — no scrolling/looping animation. */
.mig-num-wave{position:absolute;left:0;right:0;top:var(--fill,0%);height:12px;transform:translateY(-50%);
  opacity:0;pointer-events:none;background-repeat:repeat-x;background-size:36px 12px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6 Q15 2 30 6 T60 6 V0 H0 Z' fill='%23c96442'/%3E%3C/svg%3E")}
.mig-num.is-filling .mig-num-wave{opacity:1}
.mig-num.is-full .mig-num-liquid{height:100%}
.mig-num.is-full{border-color:var(--accent-2);box-shadow:0 0 0 7px var(--accent-glow)}
.mig-content{text-align:center;max-width:28rem;margin:0 auto}
.mig-h{font-size:20px;line-height:1.2}
.mig-d{font-size:14px;line-height:1.6;margin-top:8px}
@media (max-width:560px){
  .mig-timeline{--mig-circle:60px}
  .mig-num{font-size:27px}
  .mig-step{padding:22px 0;padding-left:calc(var(--mig-circle) + 22px);justify-content:flex-start}
  .mig-content{text-align:left;max-width:none;margin:0}
}
@media (prefers-reduced-motion:reduce){ .mig-num{transition:none} .mig-timeline::after{transition:none} }

/* ──────────────────────────────────────────────────────────────────────────
   Schools — contact section
   ────────────────────────────────────────────────────────────────────────── */
.contact-panel{background:var(--ivory);border:1px solid var(--cream);border-radius:22px;padding:40px;
  box-shadow:0 24px 48px -32px var(--sh-6);position:relative;overflow:hidden}
.contact-panel::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,var(--accent),var(--accent-2))}
.contact-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:44px;align-items:start}
.contact-bits{display:flex;flex-direction:column;gap:14px;margin-top:24px}
.contact-bit{display:flex;align-items:center;gap:12px}
.contact-bit-icon{width:32px;height:32px;border-radius:8px;background:var(--paper);border:1px solid var(--cream);
  display:inline-flex;align-items:center;justify-content:center;color:var(--olive)}
.contact-bit-label{font-size:14px;color:var(--ink)}
.contact-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.contact-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.contact-field-wide{grid-column:1 / -1}
.contact-field-label{font-size:12px;color:var(--charcoal);font-weight:500}
.contact-field input,.contact-field select,.contact-field textarea{
  width:100%;background:var(--paper);border:1px solid var(--warm);border-radius:9px;padding:10px 12px;
  font:400 13.5px/1.4 var(--sans);color:var(--ink);outline:none;font-family:inherit}
.contact-field input::placeholder,
.contact-field textarea::placeholder{color:var(--stone);opacity:1}
.contact-field input:focus,.contact-field select:focus,.contact-field textarea:focus{
  border-color:var(--ring);box-shadow:0 0 0 3px var(--accent-wash)}
.contact-submit{display:flex;flex-direction:column;gap:8px;margin-top:2px}
.contact-reply{font-size:11.5px;text-align:center}
.form-notice{border-radius:10px;padding:16px 18px;font-size:13.5px;line-height:1.6}
.form-notice-ok{background:var(--good-soft);color:var(--good)}
.form-notice-ok strong{display:block;font-size:15px;margin-bottom:4px;color:var(--good-ink)}
.form-notice-error{background:var(--bad-soft);color:var(--bad);margin-bottom:16px}
.form-notice-error a{color:var(--bad);text-decoration:underline}
@media (max-width:840px){
  .contact-grid{grid-template-columns:1fr;gap:32px}
  .contact-panel{padding:28px 22px}
}
@media (max-width:480px){ .contact-form{grid-template-columns:1fr} }

/* ──────────────────────────────────────────────────────────────────────────
   Schools — director dashboard mock
   ────────────────────────────────────────────────────────────────────────── */
.sdm-wrap{padding:22px 24px}
.sdm-title{font-family:var(--serif);font-size:22px;font-weight:500;color:var(--ink);margin-top:6px}
.sdm-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:18px}
.sdm-stat{padding:10px 12px;background:var(--paper);border:1px solid var(--cream);border-radius:10px}
.sdm-stat-label{font-size:9.5px}
.sdm-stat-value{font-family:var(--serif);font-size:18px;font-weight:500;margin-top:3px;color:var(--ink)}
.sdm-teachers{margin-top:18px}
.sdm-teacher-row{display:grid;grid-template-columns:24px 1fr 80px 36px;gap:10px;padding:6px 0;align-items:center}
.sdm-teacher-name{font-size:12px;color:var(--ink)}
.sdm-teacher-bar{height:5px;background:var(--cream);border-radius:99px;overflow:hidden}
.sdm-teacher-fill{height:100%;background:var(--accent);opacity:.8}
.sdm-teacher-frac{font-size:10.5px;text-align:right}
@media (max-width:480px){
  .sdm-stats{grid-template-columns:repeat(2,1fr)}
  .sdm-teacher-row{grid-template-columns:24px 1fr 50px 32px;gap:6px}
}
