/* ==========================================================================
   KoolSchool – main stylesheet
   Layout concept: graph-paper light world, sky-blue brand from the logo,
   one tangerine pop for action. Glass is used only for floating layers
   (nav, hero lesson card, form), never on every block.
   Shared by every page: tokens > base > components > sections.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* brand */
  --sky: #4fc4f7;            /* logo blue */
  --sky-deep: #0a6fba;       /* text-safe brand blue (5.3:1 on white) */
  --sky-wash: #e3f4fe;
  --pop: #ff6a2b;            /* tangerine: CTAs + highlights only */
  --pop-ink: #0c1a3b;        /* text on tangerine (6.3:1) */

  /* neutrals, biased toward the brand blue */
  --bg: #f4faff;
  --surface: #ffffff;
  --ink: #0c1a3b;
  --muted: #4a5a7a;
  --line: rgb(12 26 59 / 0.1);
  --grid-line: rgb(79 196 247 / 0.16);

  /* flyer pastels (feature + persona tiles) */
  --tint-blue: #dcf0fd;
  --tint-lilac: #ebe5ff;
  --tint-peach: #ffeadb;
  --tint-mint: #dcf4e6;

  /* glass */
  --glass-bg: rgb(255 255 255 / 0.92);
  --glass-edge: rgb(255 255 255 / 0.85);
  --glass-shadow: 0 1px 2px rgb(12 26 59 / 0.05), 0 8px 24px rgb(12 26 59 / 0.06);

  --ok: #12805c;
  --err: #c2321a;

  /* type */
  --font-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;

  /* shape: pills for interactive, 24px for panels, 16px for inner tiles */
  --r-pill: 999px;
  --r-panel: 20px;
  --r-tile: 14px;
  --r-ctl: 12px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: var(--ease-out); /* no overshoot */
  --wrap: 1200px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

/* Always light: the site keeps its light design even when the phone is in dark mode. */
:root { color-scheme: light; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; }
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 40px); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.ico { width: 1.25em; height: 1.25em; flex: none; stroke-width: 1.75; }

.h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 600; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 58ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 0.95rem/1.2 var(--font-body); letter-spacing: 0;
  color: var(--sky-deep);
}
.hl { position: relative; white-space: nowrap; color: var(--sky-deep); }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.02em; height: 0.28em; z-index: -1;
  background: var(--pop); opacity: 0.28; border-radius: 6px;
  transform-origin: left; transform: scaleX(var(--hl, 1));
  transition: transform 0.9s 0.4s var(--ease-out);
}

/* ---------- 3. Components ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-ctl);
  font: 600 1rem/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  background: var(--b-bg); color: var(--b-fg); border: 1px solid transparent;
  transition: transform 0.15s var(--ease-out), background-color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}
.btn:hover { --b-bg: color-mix(in srgb, var(--surface) 88%, var(--ink)); }
.btn:active { transform: scale(0.98); }
.btn .ico { width: 18px; height: 18px; }
.btn--pop { --b-bg: var(--pop); --b-fg: var(--pop-ink); }
.btn--pop:hover { --b-bg: color-mix(in srgb, var(--pop) 88%, #000); }
.btn--glass { --b-bg: var(--surface); border-color: var(--line); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; border-radius: 10px; }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .btn--glass, .nav__bar { background: var(--surface) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.92rem;
}

/* ---------- 4. Navigation ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding-top: 14px; }
.nav__bar {
  display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 10px 0 22px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.nav.is-stuck .nav__bar {
  background: var(--glass-bg); border-color: var(--glass-edge); box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
}
.nav__logo { display: block; flex: none; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.nav__links a {
  display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none;
  font-weight: 500; font-size: 0.95rem; color: var(--muted); transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover { color: var(--ink); background: var(--sky-wash); }
.nav__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.nav__signin { padding: 10px 14px; font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--ink); border-radius: 8px; }
.nav__signin:hover { background: var(--sky-wash); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); place-items: center; cursor: pointer; }
.nav__toggle .ico { width: 22px; height: 22px; }
.nav__toggle .ico--close { display: none; }
.nav.is-open .nav__toggle .ico--open { display: none; }
.nav.is-open .nav__toggle .ico--close { display: block; }

@media (max-width: 1023px) {
  .nav__links, .nav__signin { display: none; }
  .nav__toggle { display: grid; }
  .nav__bar { justify-content: space-between; padding-left: 18px; }
  .nav__panel {
    position: absolute; left: var(--gutter-l); right: var(--gutter-r); top: calc(100% + 8px);
    padding: 8px; border-radius: var(--r-panel); display: grid; gap: 4px;
    transform-origin: top right; transform: scale(0.96) translateY(-6px); opacity: 0; visibility: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.25s, visibility 0s 0.35s;
  }
  .nav.is-open .nav__panel { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__panel a { padding: 12px 16px; border-radius: var(--r-ctl); font-weight: 500; text-decoration: none; }
  .nav__panel a:hover { background: var(--sky-wash); }
  .nav__panel .btn { margin-top: 8px; }
}
@media (min-width: 1024px) { .nav__panel { display: none; } }

/* ---------- 5. Hero ---------- */
.hero { overflow-x: clip; position: relative; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(64px, 8vw, 104px); isolation: isolate; }
.hero__paper {
  position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}

.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; }
.hero .lede { max-width: 44ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

/* the lesson moment */
.lesson { position: relative; min-width: 0; padding: 0 0 112px 0; }
.lesson__card { border-radius: var(--r-panel); padding: 24px; position: relative; z-index: 2; }
.lesson__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.lesson__title { font: 600 0.85rem/1.2 var(--font-body); color: var(--muted); }
.lesson__title strong { display: block; color: var(--ink); font-size: 1.05rem; font-family: var(--font-display); letter-spacing: -0.01em; margin-top: 2px; }
.work {
  border-radius: 8px; padding: 12px 20px 16px;
  background:
    linear-gradient(rgb(79 196 247 / 0.22) 1px, transparent 1px) 0 34px / 100% 38px,
    #fffdf7;
  color: #1d2a4d; font: 500 1.75rem/38px var(--font-hand);
  border: 1px solid rgb(12 26 59 / 0.08);
}
.work__q { font: 600 0.8rem/1 var(--font-body); color: #5d6b88; margin-bottom: 6px; letter-spacing: 0.01em; }
.work__line { display: block; position: relative; width: max-content; max-width: 100%; }
.work__line.is-wrong .mark {
  position: absolute; left: -4px; right: -6px; bottom: 4px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q5 0 10 5 T20 5 T30 5 T40 5' fill='none' stroke='%23ff6a2b' stroke-width='2.4'/%3E%3C/svg%3E") repeat-x 0 0 / 20px 10px;
  transform-origin: left;
}
.work__flag {
  position: absolute; left: calc(100% + 12px); top: 6px; white-space: nowrap;
  font: 600 0.75rem/1 var(--font-body); color: var(--pop-ink); background: var(--pop);
  padding: 6px 8px; border-radius: 6px;
}
.tutor {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 16px;
  padding: 16px; border-radius: 12px 12px 12px 4px;
  background: var(--sky-wash); border: 1px solid var(--line);
}
.tutor__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; flex: none; }
.tutor__avatar img { width: 22px; }
.tutor p { font-size: 0.95rem; line-height: 1.5; }
.tutor strong { display: block; font-size: 0.8rem; font-weight: 600; color: var(--sky-deep); margin-bottom: 4px; }

.mastery {
  position: absolute; z-index: 3; right: -10px; bottom: 0; width: min(270px, 70%);
  border-radius: 16px; padding: 16px; display: grid; gap: 8px;
}
.mastery__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.mastery__std { font: 600 0.78rem/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--sky-deep); background: var(--sky-wash); padding: 6px 8px; border-radius: 6px; }
.mastery__skill { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.mastery__note { font-size: 0.8rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.mastery__note .ico { color: var(--pop); width: 16px; height: 16px; }
.lesson__person { position: absolute; z-index: 1; left: -36px; bottom: -6px; width: 170px; }

/* hero load sequence: content is visible at rest; .is-playing loops it */
@media (prefers-reduced-motion: no-preference) {
  .lesson.is-playing .work__line { animation: write 0.9s var(--ease-out) both; animation-delay: calc(0.35s + var(--i) * 0.55s); }
  .lesson.is-playing .is-wrong .mark { animation: draw 0.5s var(--ease-out) both; animation-delay: 2.5s; }
  .lesson.is-playing .work__flag { animation: pop 0.5s var(--ease-spring) both; animation-delay: 2.8s; }
  .lesson.is-playing .tutor { animation: rise 0.7s var(--ease-spring) both; animation-delay: 3.3s; }
  .lesson.is-playing .mastery { animation: rise 0.7s var(--ease-spring) both; animation-delay: 3.9s; }
  .hero__copy > * { animation: rise 0.9s var(--ease-out) both; }
  .hero__copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.24s; }
  .lesson__card { animation: rise 1s 0.15s var(--ease-out) both; }
}
@keyframes write { from { clip-path: inset(-20px 100% -20px -20px); } to { clip-path: inset(-20px -400px -20px -20px); } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 6. Standards strip ---------- */
.standards { padding-block: 8px 24px; }
.standards__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 20px 24px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); }
.standards__label { font-weight: 500; color: var(--muted); }
.standards__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.standards__list li { font: 500 1rem/1 var(--font-display); padding: 10px 16px; border-radius: 8px; background: var(--sky-wash); color: var(--sky-deep); }

/* ---------- 7. Bento: what it delivers ---------- */
.delivers__head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(0, auto); gap: 16px; }
.tile {
  --tile-bg: var(--tint-blue);
  position: relative; overflow: hidden; border-radius: var(--r-panel); padding: 32px;
  background: var(--tile-bg); color: #0c1a3b; display: grid; gap: 14px; align-content: start;
  min-width: 0; isolation: isolate;
}
.tile h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 600; }
.tile p { color: #33415f; max-width: 40ch; }
.tile--a { grid-column: span 3; grid-row: span 2; --tile-bg: var(--tint-blue); }
.tile--a img { width: min(78%, 400px); justify-self: center; margin-top: auto; padding-top: 12px; }
.tile--b { grid-column: span 3; --tile-bg: var(--tint-lilac); grid-template-columns: 1fr 1.05fr; align-items: center; }
.tile--b img { width: 100%; }
.tile--c { grid-column: span 3; --tile-bg: var(--tint-peach); grid-template-columns: 1fr 1fr; align-items: center; }
.tile--c img { width: 100%; }
.tile--d { grid-column: span 6; --tile-bg: var(--tint-mint); grid-template-columns: 1.2fr 1fr; align-items: center; padding-block: 32px; }
.tile--d img { width: min(100%, 340px); justify-self: end; }
.tile__text { display: grid; gap: 12px; }
.tile__tag { font: 600 0.85rem/1 var(--font-body); color: #0a6fba; }

/* ---------- 8. Roles tabs ---------- */
.roles { background: linear-gradient(180deg, transparent, var(--sky-wash) 30%, var(--sky-wash) 70%, transparent); }
.roles__head { display: grid; gap: 16px; text-align: center; justify-items: center; margin-bottom: 40px; }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 auto 24px; width: max-content; max-width: 100%; border-radius: 16px; }
.tab {
  display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; cursor: pointer;
  padding: 6px 16px 6px 6px; border-radius: 12px; font-weight: 500; color: var(--muted);
  transition: background-color 0.25s, color 0.25s;
}
.tab img { width: 38px; height: 38px; object-fit: cover; object-position: top; border-radius: 50%; background: var(--t, var(--tint-blue)); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.panel { border-radius: var(--r-panel); padding: clamp(22px, 3.4vw, 40px); display: grid; grid-template-columns: 0.8fr 2fr; gap: clamp(20px, 3.4vw, 44px); align-items: center; }
.panel[hidden] { display: none; }
.panel__art { border-radius: var(--r-tile); background: var(--t, var(--tint-blue)); display: grid; place-items: end center; padding-top: 18px; overflow: hidden; aspect-ratio: 1 / 1.05; }
.panel__art img { width: 92%; }
.panel__flow { display: grid; gap: 14px; min-width: 0; }
.step { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: baseline; padding: 16px 20px; border-radius: var(--r-ctl); background: var(--surface); border: 1px solid var(--line); }
.step__k { font: 500 0.85rem/1.3 var(--font-body); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.step__v { font: 500 clamp(1.05rem, 1.6vw, 1.25rem)/1.4 var(--font-display); }
.step--now .step__v { color: var(--muted); font-weight: 400; }
.step--with { border-color: color-mix(in srgb, var(--sky-deep) 40%, transparent); }
.step--with .step__k { color: var(--sky-deep); }
.step--win { background: var(--ink); color: var(--bg); border-color: transparent; }
.step--win .step__k { color: var(--pop); }
.step .ico { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .panel.is-entering .panel__art { animation: rise 0.6s var(--ease-out) both; }
  .panel.is-entering .step { animation: rise 0.6s var(--ease-out) both; }
  .panel.is-entering .step:nth-child(2) { animation-delay: 0.08s; }
  .panel.is-entering .step:nth-child(3) { animation-delay: 0.16s; }
}

/* ---------- 9. Why KoolSchool: built around your teaching ---------- */
.fit__top { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-bottom: clamp(48px, 7vw, 88px); }
.fit__copy { display: grid; gap: 20px; justify-items: start; }
.fit__checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.fit__checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.fit__tick { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; background: #e7f6ee; color: #15803d; }
.fit__tick .ico { width: 16px; height: 16px; }

.loop {
  margin: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) 28px minmax(0, 0.9fr) 28px minmax(0, 1.05fr); align-items: center;
  padding: clamp(16px, 2.4vw, 24px); border-radius: 24px;
  background: rgb(255 255 255 / 0.6); border: 1px solid rgb(255 255 255 / 0.8);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 2px 4px rgb(12 26 59 / 0.04), 0 32px 64px -32px rgb(12 26 59 / 0.28);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
}
.loop__stage { position: relative; display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.loop__n { font: 500 0.8rem/1 var(--font-body); color: var(--sky-deep); font-variant-numeric: tabular-nums; }
.loop__stage h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.loop__stage > p { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.loop__chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.loop__chips li { font-size: 0.78rem; font-weight: 500; padding: 5px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.loop__stage--ks { text-align: center; justify-items: center; background: var(--sky-wash); border-color: color-mix(in srgb, var(--sky-deep) 22%, transparent); }
.loop__core { width: 56px; height: 56px; margin: 4px 0 6px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 1px 2px rgb(12 26 59 / 0.06), 0 8px 20px -8px rgb(10 111 186 / 0.35); }
.loop__core img { width: 36px; height: 36px; }
.loop__outs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.loop__outs li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--bg); }
.loop__outs b { font-size: 0.85rem; font-weight: 600; }
.loop__outs small { font-size: 0.75rem; color: var(--muted); line-height: 1.35; }
.loop__link { position: relative; height: 2px; }
.loop__link span { position: absolute; inset: 0 6px 0 2px; background: repeating-linear-gradient(90deg, var(--sky-deep) 0 4px, transparent 4px 8px); }
.loop__link::after { content: ""; position: absolute; right: 2px; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--sky-deep); border-right: 2px solid var(--sky-deep); transform: rotate(45deg); }

.fit__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.fit__item { display: grid; gap: 8px; padding: 24px 0 28px; border-top: 1px solid var(--line); min-width: 0; align-content: start; }
.fit__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--sky-wash); color: var(--sky-deep); margin-bottom: 4px; }
.fit__icon .ico { width: 20px; height: 20px; stroke-width: 1.5; }
.fit__item h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.fit__item p { color: var(--muted); }

/* tablet landscape: diagram gets the full width under the copy */
@media (max-width: 1180px) {
  .fit__top { grid-template-columns: 1fr; }
  .fit__copy { max-width: 720px; }
}
/* tablet portrait and phones: diagram stacks vertically */
@media (max-width: 760px) {
  .loop { grid-template-columns: 1fr; grid-template-rows: auto 28px auto 28px auto; justify-items: stretch; }
  .loop__link { width: 2px; height: 100%; justify-self: center; }
  .loop__link span { inset: 2px 0 6px 0; background: repeating-linear-gradient(180deg, var(--sky-deep) 0 4px, transparent 4px 8px); }
  .loop__link::after { right: -3px; top: auto; bottom: 2px; transform: rotate(135deg); }
  .fit__list { grid-template-columns: 1fr 1fr; gap: 0 24px; }
}
@media (max-width: 640px) {
  .fit__copy { justify-items: center; text-align: center; margin-inline: auto; }
  .fit__copy .lede { margin-inline: auto; }
  .fit__checks { justify-items: start; text-align: left; }
  .loop__stage { text-align: center; justify-items: center; }
  .loop__chips { justify-content: center; }
  .loop__outs { width: 100%; }
  .fit__list { grid-template-columns: 1fr; }
}

/* ---------- 10. Uses marquee ---------- */
.uses { padding-block: clamp(56px, 7vw, 88px); padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.uses__label { display: block; text-align: center; margin-bottom: 24px; color: var(--muted); }
.marquee { display: flex; justify-content: center; max-width: 960px; margin-inline: auto; }
.marquee__track { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.marquee__track li {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 12px; border-radius: var(--r-ctl);
  background: var(--surface); border: 1px solid var(--line); white-space: nowrap;
  font: 500 clamp(1rem, 1.6vw, 1.2rem)/1 var(--font-display);
}
.marquee__track li:nth-child(3n+1) .u-ico { background: var(--tint-blue); }
.marquee__track li:nth-child(3n+2) .u-ico { background: var(--tint-peach); }
.marquee__track li:nth-child(3n) .u-ico { background: var(--tint-mint); }
.u-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #0c1a3b; }
.u-ico .ico { width: 18px; height: 18px; stroke-width: 1.5; }
@media (prefers-reduced-motion: no-preference) {
}
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { width: auto; flex-wrap: wrap; justify-content: center; padding-inline: 20px; }
  .marquee__track { flex-wrap: wrap; justify-content: center; }
  .marquee__track[aria-hidden="true"] { display: none; }
}

/* ---------- 11. Pilot + form ---------- */
.pilot__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.pilot__copy { display: grid; gap: 22px; }
.timeline { display: grid; gap: 0; margin: 10px 0 0; padding: 0; list-style: none; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding-block: 12px; position: relative; }
.timeline__dot { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--sky); display: grid; place-items: center; color: var(--sky-deep); }
.timeline li:last-child .timeline__dot { border-color: var(--pop); color: var(--pop); }
.timeline__dot .ico { width: 20px; height: 20px; }
.timeline strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.timeline small { display: block; font: 500 0.85rem/1.6 var(--font-body); color: var(--sky-deep); }
.timeline p { color: var(--muted); margin-top: 4px; }
.contact-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; }
.contact-line a { color: var(--sky-deep); font-weight: 600; text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }

.form { border-radius: var(--r-panel); padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 16px; }
.form__title { font-size: 1.6rem; font-weight: 600; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: 0.92rem; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); background: var(--surface); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky-deep); box-shadow: 0 0 0 4px rgb(79 196 247 / 0.28); }
.field .err { display: none; color: var(--err); font-size: 0.85rem; font-weight: 600; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--err); }
.field.is-invalid .err { display: block; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.92rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sky-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; min-height: 52px; font-size: 1.05rem; }
.form .btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.form__status { display: none; padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; }
.form__status.is-ok { display: block; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.form__status.is-err { display: block; background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.form__fine { font-size: 0.8rem; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
.is-loading .ico { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 11b. District growth ---------- */
.growth__head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 48px); }
.growth__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.growth__item { display: grid; gap: 8px; align-content: start; padding-top: 24px; border-top: 1px solid var(--line); }
.growth__n { font: 500 0.85rem/1 var(--font-body); color: var(--sky-deep); font-variant-numeric: tabular-nums; }
.growth__item h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.growth__item p { color: var(--muted); }

/* ---------- 11c. Pilot layout + demo popup ---------- */
.pilot__grid { align-items: center; }
.pilot__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pilot__plan { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); }
.pilot__plan .timeline { margin: 0; }
.form__intro { color: var(--muted); font-size: 0.95rem; margin-top: -8px; }

.modal {
  width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: var(--r-panel);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 64px rgb(12 26 59 / 0.24);
  overflow: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: rgb(12 26 59 / 0.55); }
.modal .form { padding: clamp(24px, 4vw, 40px); }
.modal__close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -52px 0; z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  transition: color 0.15s var(--ease-out), background-color 0.15s var(--ease-out);
}
.modal__close:hover { color: var(--ink); background: var(--sky-wash); }
.modal__close .ico { width: 18px; height: 18px; }
html:has(.modal[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: rise 0.3s var(--ease-out) both; }
  .modal[open]::backdrop { animation: fade 0.3s var(--ease-out) both; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 11d. Phone: everything centered ---------- */
@media (max-width: 640px) {
  .hero__copy { justify-items: center; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .standards__inner { justify-content: center; text-align: center; }
  .standards__list { justify-content: center; }
  .delivers__head, .roles__head, .growth__head, .pilot__copy, .faq__head { text-align: center; justify-items: center; }
  .delivers__head .lede, .growth__head .lede, .pilot__copy .lede, .faq__head .lede { margin-inline: auto; }
  .tile, .tile__text { text-align: center; justify-items: center; }
  .tile p { margin-inline: auto; }
  .step { text-align: center; }
  .step__k { justify-content: center; }
  .fit__item, .growth__item { justify-items: center; text-align: center; }
  .growth__list { grid-template-columns: 1fr; }
  .growth__item { padding-bottom: 24px; }
  .pilot__cta, .contact-line { justify-content: center; }
  .closing__band { text-align: center; justify-items: center; }
  .closing__band p { margin-inline: auto; }
  .footer__base { justify-content: center; text-align: center; }
  .modal { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .modal .form { padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 641px) and (max-width: 960px) {
  .growth__list { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .growth__item { padding-bottom: 24px; }
}

/* ---------- 11e. Infographics: how it works + class mastery ---------- */
.how__head { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(32px, 5vw, 48px); }
.how__flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: how; }
.how__step {
  position: relative; display: grid; gap: 8px; align-content: start;
  padding: 20px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.how__step:not(:last-child)::after {
  content: ""; position: absolute; top: 72px; right: -13px; z-index: 1; width: 10px; height: 10px;
  border-top: 2px solid var(--sky-deep); border-right: 2px solid var(--sky-deep); transform: rotate(45deg);
}
.how__art { height: 112px; border-radius: var(--r-tile); background: var(--sky-wash); display: grid; place-items: center; margin-bottom: 8px; overflow: hidden; }
.how__n { font: 500 0.85rem/1 var(--font-body); color: var(--sky-deep); }
.how__step h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.how__step p { color: var(--muted); font-size: 0.95rem; }

.mini-paper {
  display: grid; gap: 2px; padding: 8px 14px; border-radius: 8px; background: #fffdf7; border: 1px solid rgb(12 26 59 / 0.08);
  font: 500 1.35rem/30px var(--font-hand); color: #1d2a4d; position: relative;
  background-image: linear-gradient(rgb(79 196 247 / 0.22) 1px, transparent 1px); background-size: 100% 30px; background-position: 0 29px;
}
.mini-paper .is-wrong { text-decoration: underline wavy var(--pop); text-underline-offset: 5px; }
.mini-flag { justify-self: start; font: 600 0.7rem/1 var(--font-body); background: var(--pop); color: var(--pop-ink); padding: 4px 6px; border-radius: 4px; }
.mini-chat { display: grid; gap: 6px; width: 84%; font: 500 0.8rem/1.3 var(--font-body); }
.mini-chat span { justify-self: start; padding: 6px 10px; border-radius: 10px 10px 10px 4px; background: var(--surface); border: 1px solid var(--line); }
.mini-chat .is-me { justify-self: end; border-radius: 10px 10px 4px 10px; background: var(--sky-deep); color: #fff; border-color: transparent; }
.mini-bars { display: flex; align-items: end; gap: 12px; height: 72px; }
.mini-bars span { width: 22px; height: calc(var(--v) * 100%); border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--sky-deep) 30%, transparent); }
.mini-bars .is-now { background: var(--sky-deep); }


@media (max-width: 960px) {
  .how__flow { grid-template-columns: 1fr 1fr; }
  .how__step:nth-child(2)::after { display: none; }
}
@media (max-width: 640px) {
  .how__head { text-align: center; justify-items: center; }
  .how__head .lede { margin-inline: auto; }
  .how__flow { grid-template-columns: 1fr; gap: 24px; }
  .how__step { text-align: center; justify-items: center; }
  .how__art { width: 100%; }
  .how__step:not(:last-child)::after { display: block; top: auto; bottom: -19px; right: auto; left: calc(50% - 6px); transform: rotate(135deg); }
  .how__step:nth-child(2)::after { display: block; }
}

/* ---------- 11f. Administrator dashboard (example data) ---------- */
.growth__head--center { text-align: center; justify-items: center; margin-inline: auto; }
.growth__head--center .lede { margin-inline: auto; }
.dash {
  margin: 0 0 clamp(40px, 6vw, 64px); border-radius: 24px; overflow: hidden;
  background: rgb(255 255 255 / 0.6); border: 1px solid rgb(255 255 255 / 0.8);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 2px 4px rgb(12 26 59 / 0.04), 0 32px 64px -32px rgb(12 26 59 / 0.28);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
}
.dash__bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 0.55); font-size: 0.85rem; color: var(--muted); }
.dash__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgb(12 26 59 / 0.12); }
.dash__bar span { margin-left: 8px; font-weight: 500; color: var(--ink); }
.dash__bar small { margin-left: auto; font-size: 0.8rem; }
.dash__body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; }
.dash__card { display: grid; gap: 16px; align-content: start; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.dash__card--wide { grid-column: 1 / -1; }
.dash__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dash__head h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.dash__crumb { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.dash__crumb span { margin: 0 4px; opacity: 0.5; }
.dash__tag { font-size: 0.8rem; font-weight: 500; color: var(--sky-deep); background: var(--sky-wash); padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.dash__delta { font: 600 0.9rem/1 var(--font-body); color: #15803d; font-variant-numeric: tabular-nums; }

.dash__courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.course { --c: var(--sky-deep); display: grid; gap: 4px; padding: 16px; border-radius: 12px; background: var(--bg); }
.course--good { --c: #15803d; }
.course--risk { --c: #c2410c; }
.course__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.course__top strong { font-weight: 600; }
.course__top b { font: 600 1.5rem/1 var(--font-display); color: var(--c); font-variant-numeric: tabular-nums; }
.course small { color: var(--muted); font-size: 0.8rem; }
.meter { display: block; height: 6px; margin-top: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--c) calc(var(--v) * 1%), rgb(12 26 59 / 0.08) 0); }

.health { list-style: none; margin: 0; padding: 0; display: grid; }
.health__row { --c: #15803d; display: grid; grid-template-columns: 10px 1fr auto 56px; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.health__row:last-child { border-bottom: 0; }
.health__row--mid { --c: #d97706; }
.health__row--risk { --c: #c2410c; }
.health__row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); align-self: center; }
.health__row b { font: 600 1.4rem/1 var(--font-display); font-variant-numeric: tabular-nums; text-align: right; }
.health__row small { color: var(--muted); font-size: 0.8rem; }
.health__split { display: flex; gap: 3px; height: 8px; }
.health__split span { flex: var(--w); border-radius: 2px; background: #15803d; }
.health__split span:nth-child(2) { background: #d97706; }
.health__split span:nth-child(3) { background: #c2410c; }

.growth-chart { position: relative; height: 168px; padding-bottom: 20px; }
.growth-chart__bars { position: absolute; inset: 0 0 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: end; }
.growth-chart__bars div { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 6px; }
.growth-chart__bars i { align-self: end; height: calc((var(--v) - 40) / 60 * 100%); border-radius: 6px 6px 3px 3px; background: color-mix(in srgb, var(--sky-deep) 28%, transparent); }
.growth-chart__bars .is-now i { background: var(--sky-deep); }
.growth-chart__bars small { text-align: center; font-size: 0.75rem; color: var(--muted); }
.growth-chart__target { position: absolute; left: 0; right: 0; bottom: calc(20px + 6px + (var(--t) - 40) / 60 * (100% - 26px)); border-top: 1px dashed rgb(12 26 59 / 0.3); z-index: 1; }
.growth-chart__target em { position: absolute; right: 0; top: -20px; font: 500 0.75rem/1 var(--font-body); font-style: normal; color: var(--muted); background: var(--surface); padding: 2px 4px; }

@media (max-width: 960px) {
  .dash__body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dash { border-radius: 20px; text-align: left; }
  .dash__body { padding: 12px; gap: 12px; }
  .dash__card { padding: 16px; }
  .dash__courses { grid-template-columns: 1fr; }
  .dash__tag { display: none; }
  .dash__bar i { display: none; }
  .dash__bar span { margin-left: 0; font-size: 0.8rem; white-space: nowrap; }
  .dash__bar small { white-space: nowrap; }
}
@media (prefers-reduced-transparency: reduce) {
  .dash { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- 11g. Apple-style material + feedback details ---------- */
.nav.is-stuck .nav__bar { background: rgb(255 255 255 / 0.7); border-color: rgb(255 255 255 / 0.8); }
.btn:active, .tab:active, .nav__toggle:active, .modal__close:active { transform: scale(0.97); transition-duration: 0.1s; }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: materialize 0.35s var(--ease-out) both; }
  @keyframes materialize { from { opacity: 0; transform: translateY(8px) scale(0.98); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: sheet-up 0.35s var(--ease-out) both; }
  @keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- 12. FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.5fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__head { display: grid; gap: 16px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 24px 0; font: 500 clamp(1.08rem, 1.6vw, 1.25rem)/1.35 var(--font-display);
}
.qa summary::-webkit-details-marker { display: none; }
.qa__pm { width: 32px; height: 32px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--sky-wash); color: var(--sky-deep); transition: transform 0.4s var(--ease-out), background-color 0.3s; }
.qa[open] .qa__pm { transform: rotate(45deg); }
.qa__a { padding: 0 56px 24px 0; color: var(--muted); max-width: 64ch; }
@media (prefers-reduced-motion: no-preference) { .qa[open] .qa__a { animation: rise 0.45s var(--ease-out) both; } }

/* ---------- 13. Closing band + footer ---------- */
.closing { padding-bottom: clamp(48px, 6vw, 72px); }
.closing__band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-panel); padding: clamp(32px, 6vw, 72px);
  background: #0c1a3b; border: 1px solid var(--line);
  color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
}
.closing__band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
}
.closing__band h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 600; }
.closing__band p { color: rgb(255 255 255 / 0.78); margin-top: 12px; max-width: 52ch; font-size: 1.08rem; }

.footer { padding-block: 40px 48px; border-top: 1px solid var(--line); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 8px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }

/* ---------- 14. Scroll reveal (only for blocks below the first screen) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); transition-delay: calc(var(--d, 0) * 50ms); }
  .rv.is-pre { opacity: 0; transform: translateY(12px); }
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .pilot__grid, .faq__grid { grid-template-columns: 1fr; }
  .lesson { padding-left: 0; max-width: 560px; }
  .lesson__person { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--a { grid-column: span 2; grid-row: auto; grid-template-columns: 1fr 1fr; align-items: center; }
  .tile--a img { margin-top: 0; }
  .tile--b, .tile--c { grid-column: span 2; }
  .tile--d { grid-column: span 2; }
  .panel { grid-template-columns: 1fr; }
  .panel__art { aspect-ratio: auto; max-height: 260px; }
  .panel__art img { width: auto; max-height: 240px; }
  .closing__band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(2.3rem, 10vw, 2.9rem); }
  .work { font-size: 1.45rem; padding-inline: 14px; }
  .work__flag { left: calc(100% + 8px); top: 8px; }
  .mastery { position: relative; right: auto; width: 100%; margin-top: 12px; }
  .lesson { padding-bottom: 0; }
  .bento { grid-template-columns: 1fr; }
  .tile--a, .tile--b, .tile--c, .tile--d { grid-column: auto; grid-template-columns: 1fr; }
  .tile img, .tile--a img, .tile--d img { width: min(80%, 300px); justify-self: center; }
  .tile { padding: 24px; }
  .tabs { width: 100%; border-radius: 16px; }
  .tab { flex: 1 1 calc(50% - 8px); padding-right: 12px; font-size: 0.9rem; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .form__row { grid-template-columns: 1fr; }
  .qa__a { padding-right: 0; }
  .standards__inner { padding: 20px; }
}

/* ---------- 16. Tablet + touch refinements ---------- */
@media (min-width: 1280px) { .mastery { right: -24px; } }
@media (min-width: 641px) and (max-width: 960px) { .lesson { max-width: 620px; } }
@media (max-width: 1023px) { .nav__panel { background: color-mix(in srgb, var(--surface) 94%, transparent); } }
@media (max-width: 420px) {
  .nav__actions > .btn { display: none; }
  .nav__logo img { height: 30px; }
  .hero .eyebrow { font-size: 0.9rem; }
}
@media (pointer: coarse) {
  .footer__links a, .contact-line a, .form__fine a, .faq__head a { display: inline-block; padding-block: 10px; }
  .check { padding-block: 6px; }
  .check input { width: 24px; height: 24px; }
  .btn:hover { transform: none; }
}

/* ---------- 17. Depth on cards + glass popup ---------- */
:root {
  --shadow-card: 0 1px 2px rgb(12 26 59 / 0.04), 0 8px 24px -10px rgb(12 26 59 / 0.12);
  --shadow-card-hover: 0 2px 4px rgb(12 26 59 / 0.05), 0 16px 36px -12px rgb(12 26 59 / 0.18);
}
.tile, .panel, .step, .standards__inner, .pilot__plan, .lesson__card, .mastery, .marquee__track li, .closing__band {
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s var(--ease-out);
}
.tile { border: 1px solid rgb(255 255 255 / 0.7); }
.tile:hover, .marquee__track li:hover, .pilot__plan:hover { box-shadow: var(--shadow-card-hover); }
.step--win { box-shadow: 0 12px 28px -12px rgb(12 26 59 / 0.45); }
.closing__band { box-shadow: 0 24px 48px -24px rgb(12 26 59 / 0.5); }
.form__status, .modal .form .field input, .modal .form .field select, .modal .form .field textarea { background: var(--surface); }

.modal {
  background: rgb(255 255 255 / 0.76);
  border: 1px solid rgb(255 255 255 / 0.7);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.8) inset, 0 32px 80px -16px rgb(12 26 59 / 0.35);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}
.modal::backdrop {
  background: rgb(12 26 59 / 0.32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal__close { background: rgb(255 255 255 / 0.7); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .modal { background: var(--surface); }
}
@media (prefers-reduced-transparency: reduce) {
  .modal { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- 18. Centered footer ---------- */
.footer { padding-block: 56px 96px; }
.footer__center { display: grid; justify-items: center; text-align: center; gap: 16px; }
.footer__logo { height: 34px; width: auto; }
.footer__tag { color: var(--muted); max-width: 44ch; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; margin-top: 4px; }
.footer__links a, .footer__mail { color: var(--muted); text-decoration: none; transition: color 0.15s var(--ease-out); }
.footer__links a:hover, .footer__mail:hover { color: var(--ink); }
.footer__mail { color: var(--sky-deep); font-weight: 500; }

/* ---------- 19. Floating helpers: KoolBuddy (left) + back to top (right) ---------- */
.kb, .to-top { position: fixed; z-index: 70; bottom: max(20px, env(safe-area-inset-bottom, 0px)); }
.kb { left: max(20px, env(safe-area-inset-left, 0px)); display: grid; justify-items: start; gap: 12px; }
.kb__launcher {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; cursor: pointer;
  border-radius: 26px; border: 1px solid rgb(255 255 255 / 0.8); color: var(--ink); font-weight: 600;
  background: rgb(255 255 255 / 0.72); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 8px 28px -8px rgb(12 26 59 / 0.3);
  transition: transform 0.12s var(--ease-out), background-color 0.15s var(--ease-out);
}
.kb__launcher .ico { width: 22px; height: 22px; color: var(--sky-deep); }
.kb__launcher:hover { background: rgb(255 255 255 / 0.9); }
.kb__launcher:active { transform: scale(0.96); }
.kb.is-open .kb__launcher span { display: none; }
.kb.is-open .kb__launcher { padding: 0 15px; }

.kb__panel {
  width: min(380px, calc(100vw - 40px)); height: min(560px, calc(100dvh - 120px)); display: grid; grid-template-rows: auto 1fr auto auto;
  border-radius: 20px; overflow: hidden; transform-origin: bottom left;
  background: rgb(255 255 255 / 0.8); border: 1px solid rgb(255 255 255 / 0.8);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 32px 80px -20px rgb(12 26 59 / 0.4);
}
.kb__panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .kb__panel:not([hidden]) { animation: kb-in 0.28s var(--ease-out) both; }
  @keyframes kb-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
}
.kb__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--line); }
.kb__avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-wash); }
.kb__head h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.kb__head p { font-size: 0.8rem; color: var(--muted); }
.kb__close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgb(255 255 255 / 0.7); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.kb__close:hover { color: var(--ink); }
.kb__close .ico { width: 16px; height: 16px; }
.kb__log { overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: grid; gap: 10px; align-content: start; }
.kb__msg { display: grid; gap: 8px; max-width: 88%; }
.kb__msg p { padding: 10px 14px; border-radius: 16px 16px 16px 6px; background: var(--surface); border: 1px solid var(--line); font-size: 0.92rem; line-height: 1.5; }
.kb__msg--me { justify-self: end; }
.kb__msg--me p { border-radius: 16px 16px 6px 16px; background: var(--sky-deep); color: #fff; border-color: transparent; }
.kb__msg--typing p { display: inline-flex; gap: 4px; padding: 14px; }
.kb__msg--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
  .kb__msg--typing span { animation: kb-dot 1s var(--ease-out) infinite; }
  .kb__msg--typing span:nth-child(2) { animation-delay: 0.15s; }
  .kb__msg--typing span:nth-child(3) { animation-delay: 0.3s; }
  @keyframes kb-dot { 50% { opacity: 1; transform: translateY(-2px); } }
}
.kb__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.kb__act { font: 500 0.85rem/1 var(--font-body); padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; }
.kb__act--primary { background: var(--pop); color: var(--pop-ink); border-color: transparent; }
.kb__chips { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.kb__chips:empty { display: none; }
.kb__chip { flex: none; font: 500 0.82rem/1 var(--font-body); padding: 8px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--sky-deep) 30%, transparent); background: rgb(255 255 255 / 0.8); color: var(--sky-deep); cursor: pointer; white-space: nowrap; }
.kb__chip:hover { background: var(--sky-wash); }
.kb__form { display: grid; grid-template-columns: 1fr 44px; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: rgb(255 255 255 / 0.6); }
.kb__input { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); background: var(--surface); font-size: 16px; }
.kb__input:focus { outline: none; border-color: var(--sky-deep); box-shadow: 0 0 0 3px rgb(79 196 247 / 0.28); }
.kb__send { border: 0; border-radius: 12px; background: var(--sky-deep); color: #fff; display: grid; place-items: center; cursor: pointer; }
.kb__send:active, .kb__act:active, .kb__chip:active { transform: scale(0.96); }
.kb__send .ico { width: 20px; height: 20px; }

.to-top {
  right: max(20px, env(safe-area-inset-right, 0px)); width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--ink);
  border: 1px solid rgb(255 255 255 / 0.8); background: rgb(255 255 255 / 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 8px 28px -8px rgb(12 26 59 / 0.3);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0s 0.2s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:active { transform: scale(0.94); }
.to-top .ico { width: 20px; height: 20px; }
html:has(.modal[open]) .kb, html:has(.modal[open]) .to-top { display: none; }

@media (max-width: 640px) {
  .kb { left: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
  .to-top { right: 16px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; }
  .kb__launcher { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .kb__launcher span { display: none; }
  .kb.is-open { left: 8px; right: 8px; }
  .kb__panel { width: 100%; height: min(78dvh, 600px); }
}
@media (prefers-reduced-transparency: reduce) {
  .kb__launcher, .kb__panel, .to-top { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- 20. Multi-page: nav dropdown, page heroes, frames, features, cards, pricing ---------- */
.nav__links a[aria-current="page"], .nav__dd.is-current > .nav__ddbtn { color: var(--ink); background: var(--sky-wash); }
.nav__dd { position: relative; }
.nav__ddbtn {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; font-size: 0.95rem;
  font-family: inherit; font-weight: 500; color: var(--muted); cursor: pointer; line-height: inherit;
}
.nav__ddbtn:hover { color: var(--ink); background: var(--sky-wash); }
.nav__ddbtn .ico { width: 16px; height: 16px; transition: transform 0.2s var(--ease-out); }
.nav__dd.is-open .nav__ddbtn .ico { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 50%; width: 300px; margin: 0; padding: 8px; list-style: none;
  display: grid; gap: 2px; border-radius: 16px; transform: translate(-50%, -6px) scale(0.97); opacity: 0; visibility: hidden; transform-origin: top center;
  transition: opacity 0.2s var(--ease-out), transform 0.4s var(--spring, var(--ease-out)), visibility 0s 0.2s;
  box-shadow: 0 2px 4px rgb(12 26 59 / 0.04), 0 24px 48px -16px rgb(12 26 59 / 0.25);
  background: var(--surface); border: 1px solid var(--line);
}
.nav__dd.is-open .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.nav__menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.nav__menu a:hover, .nav__menu a[aria-current="page"] { background: var(--sky-wash); }
.nav__menu strong { font-weight: 600; font-size: 0.95rem; }
.nav__menu small { font-size: 0.8rem; color: var(--muted); }
.nav__group { padding: 12px 16px 4px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.nav__panel a.nav__sub { padding-left: 28px; }
.nav__panel a[aria-current="page"] { background: var(--sky-wash); color: var(--sky-deep); }
@media (max-width: 1180px) and (min-width: 1024px) {
  .nav__links a, .nav__ddbtn { padding: 8px 9px; font-size: 0.92rem; }
  .nav__signin { display: none; }
}

.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--sky-deep); text-decoration: none; }
.more .ico { width: 18px; height: 18px; transition: transform 0.2s var(--ease-out); }
.more:hover .ico { transform: translateX(3px); }
.persona-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 32px; }
.persona-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--sky-deep); text-decoration: none; padding: 8px 4px; }
.persona-links .ico { width: 16px; height: 16px; }

.phero { padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px); }
.phero__in { display: grid; gap: 20px; justify-items: center; text-align: center; max-width: 880px; }
.phero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.phero .lede { margin-inline: auto; }
.phero .eyebrow img { width: 28px; height: 28px; object-fit: contain; }
.phero .eyebrow .ico { width: 18px; height: 18px; }
.phero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.phero .dash, .phero .frame--hero { margin-top: clamp(40px, 6vw, 64px); }

.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.band { background: linear-gradient(180deg, transparent, var(--sky-wash) 20%, var(--sky-wash) 80%, transparent); }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 48px); max-width: 720px; }
.sec-head--center { text-align: center; justify-items: center; margin-inline: auto; }
.sec-head--center .lede { margin-inline: auto; }
.h3x { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
.note { margin-top: 32px; text-align: center; color: var(--muted); }
.note a { color: var(--sky-deep); font-weight: 600; }
.soon { display: inline-block; font: 600 0.75rem/1 var(--font-body); padding: 6px 10px; border-radius: 6px; background: var(--tint-peach); color: #9a3412; }

/* browser-style frame that holds a product screenshot (or a placeholder illustration until one exists) */
.frame {
  margin: 0; border-radius: 20px; overflow: hidden; min-width: 0;
  background: rgb(255 255 255 / 0.6); border: 1px solid rgb(255 255 255 / 0.8);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 2px 4px rgb(12 26 59 / 0.04), 0 32px 64px -32px rgb(12 26 59 / 0.28);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
}
.frame__bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 0.55); font-size: 0.8rem; color: var(--muted); }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgb(12 26 59 / 0.12); }
.frame__bar span { margin-left: 8px; font-weight: 500; color: var(--ink); }
.frame__body { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--t, var(--tint-blue)); margin: 12px; border-radius: 12px; overflow: hidden; }
.frame__art { width: 62%; height: auto; }
.frame__shot { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.frame__body--split { grid-template-columns: repeat(3, 1fr); gap: 12px; background: none; aspect-ratio: auto; }
.frame__pane { display: grid; gap: 12px; justify-items: center; padding: 24px 16px; border-radius: 12px; background: var(--t); }
.frame__pane img { width: 80%; height: auto; }
.frame__pane b { font-weight: 600; }

.toolnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(40px, 6vw, 64px); padding: 0; list-style: none; }
.toolnav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: 0.92rem; color: var(--ink); text-decoration: none; }
.toolnav a:hover { background: var(--sky-wash); }
.toolnav .ico { width: 18px; height: 18px; color: var(--sky-deep); }

.feats { display: grid; gap: clamp(56px, 8vw, 104px); }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; scroll-margin-top: 96px; }
.feat--flip .feat__text { order: 2; }
.feat__text { display: grid; gap: 16px; justify-items: start; }
.feat__text h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; }
.feat__text > p { color: var(--muted); font-size: 1.05rem; }
.feat__icon, .card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-wash); color: var(--sky-deep); }
.feat__icon .ico, .card__icon .ico { width: 22px; height: 22px; stroke-width: 1.75; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.ticks .ico { width: 20px; height: 20px; flex: none; color: #15803d; margin-top: 2px; }
.ticks--2 { grid-template-columns: 1fr 1fr; gap: 10px 24px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(12 26 59 / 0.04), 0 12px 32px -20px rgb(12 26 59 / 0.2); min-width: 0; }
.card h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.card p { color: var(--muted); }

.shift { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 12px; border-radius: 24px; background: var(--t); }
.shift__col { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: 16px; background: rgb(255 255 255 / 0.75); }
.shift__col:last-child { background: var(--surface); }
.shift__k { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--sky-deep); }
.shift__k .ico { width: 18px; height: 18px; }
.shift__col p { font-size: 1.05rem; }

.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pills li { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; }
.pills .ico { width: 18px; height: 18px; color: #15803d; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo__card { display: grid; gap: 14px; align-content: start; justify-items: start; padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: var(--t); }
.duo__card img { width: 120px; height: auto; }
.duo__card h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 600; }
.duo__card > p { color: #33415f; }
.pilot-mini { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.pilot-mini > div { display: grid; gap: 12px; justify-items: start; max-width: 620px; }
.pilot-mini p { color: var(--muted); }

.badges { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.badge { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px -20px rgb(12 26 59 / 0.2); }
.badge__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #e7f6ee; color: #15803d; }
.badge__icon .ico { width: 24px; height: 24px; }
.badge strong { display: block; font: 600 1.1rem/1.2 var(--font-display); }
.badge small { color: var(--muted); font-size: 0.85rem; }
.cards--1 { grid-template-columns: 1fr; }

.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 24px; border-radius: 20px; background: var(--t); min-width: 0; }
.post__tag { font: 600 0.8rem/1 var(--font-body); color: var(--sky-deep); }
.post h3 { font-size: 1.25rem; font-weight: 600; }
.post p { color: #33415f; }
.post .soon { margin-top: 6px; background: rgb(255 255 255 / 0.75); color: var(--muted); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 920px; margin-inline: auto; }
.plan { display: grid; gap: 16px; align-content: start; padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px -20px rgb(12 26 59 / 0.2); }
.plan--pro { border-color: color-mix(in srgb, var(--sky-deep) 30%, transparent); background: linear-gradient(180deg, var(--sky-wash), var(--surface) 45%); }
.plan__name { font-weight: 600; color: var(--sky-deep); }
.plan__price { font: 600 clamp(2.4rem, 4vw, 3rem)/1 var(--font-display); letter-spacing: -0.02em; }
.plan__for { color: var(--muted); }
.plan .btn { justify-self: start; }
.plan .ticks { padding-top: 16px; border-top: 1px solid var(--line); }

.faq-groups { display: grid; gap: clamp(40px, 6vw, 64px); max-width: 860px; }
.faq-group { display: grid; gap: 16px; }
.faq-group__t { font-size: 1.4rem; font-weight: 600; }

@media (max-width: 960px) {
  .feat, .duo { grid-template-columns: 1fr; }
  .feat--flip .feat__text { order: 0; }
  .cards--3, .posts { grid-template-columns: 1fr 1fr; }
  .shift { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cards--3, .cards--2, .posts, .plans { grid-template-columns: 1fr; }
  .frame__body--split { grid-template-columns: 1fr; }
  .frame__body--split .frame__pane:not(:first-child) { display: none; }
  .ticks--2 { grid-template-columns: 1fr; }
  .feat__text, .duo__card, .pilot-mini > div, .post, .plan { justify-items: center; text-align: center; }
  .ticks { justify-items: start; text-align: left; }
  .plan .btn { justify-self: center; }
  .pilot-mini { flex-direction: column; text-align: center; }
  .pilot-mini > div { justify-items: center; }
  .card { justify-items: center; text-align: center; }
  .sec-head { text-align: center; justify-items: center; margin-inline: auto; }
  .sec-head .lede { margin-inline: auto; }
  .toolnav { justify-content: center; }
  .faq-group__t { text-align: center; }
  .badge { width: 100%; }
}
@media (prefers-reduced-transparency: reduce) {
  .frame { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.hero__video { border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); box-shadow: 0 32px 64px -32px rgb(12 26 59 / 0.28); }
.hero__video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- 21. Reference-site patterns: product screen under hero, trust band, dual CTAs ---------- */
.screen { padding-block: 8px clamp(32px, 5vw, 56px); }
.screen__label { text-align: center; font-weight: 500; color: var(--muted); margin-bottom: 20px; }
.screen__video { max-width: 960px; margin-inline: auto; border-radius: var(--r-panel); overflow: hidden; box-shadow: 0 24px 56px -20px rgb(12 26 59 / 0.22); background: var(--ink); }
.screen__player { width: 100%; display: block; border-radius: var(--r-panel); }
.trust { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px -20px rgb(12 26 59 / 0.2); }
.trust__copy { display: grid; gap: 14px; justify-items: start; }
.trust__copy p { color: var(--muted); }
.trust .eyebrow .ico { width: 18px; height: 18px; }
.badges--stack { flex-direction: column; align-items: stretch; margin: 0; }
.badges--stack .badge { box-shadow: none; background: var(--bg); }
.closing__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.closing__band .btn--glass { --b-bg: rgb(255 255 255 / 0.1); --b-fg: #fff; border-color: rgb(255 255 255 / 0.25); color: #fff; }
.nav__promo { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.nav__promo a { background: var(--tint-peach); }
.nav__promo a:hover { background: color-mix(in srgb, var(--tint-peach) 80%, var(--pop)); }
.nav__panel .btn--glass { margin-top: 8px; }
@media (max-width: 1280px) { .nav__free { display: none; } }
@media (max-width: 860px) {
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .trust__copy { justify-items: center; text-align: center; }
  .screen__label { font-size: 0.95rem; }
}

/* ---------- 22. Menu icons (one outline set, 1.75 stroke, 16px) ---------- */
.nav__links a, .nav__ddbtn { display: inline-flex; align-items: center; gap: 6px; }
.nav__ico { width: 16px; height: 16px; flex: none; stroke-width: 1.75; color: var(--sky-deep); opacity: 0.8; }
.nav__links a:hover .nav__ico, .nav__links a[aria-current="page"] .nav__ico, .nav__ddbtn:hover .nav__ico { opacity: 1; }
.nav__menu a { grid-template-columns: 32px 1fr; align-items: center; column-gap: 12px; }
.nav__menu a > span:last-child { display: grid; gap: 2px; }
.nav__mi { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--sky-wash); color: var(--sky-deep); }
.nav__mi .ico { width: 18px; height: 18px; stroke-width: 1.75; opacity: 1; }
.nav__promo .nav__mi { background: rgb(255 255 255 / 0.7); color: #c2410c; }
.nav__panel a:not(.btn), .nav__group { display: flex; align-items: center; gap: 10px; }
.nav__panel .nav__ico { width: 18px; height: 18px; }
.nav__group .nav__ico { width: 14px; height: 14px; }
@media (max-width: 1280px) and (min-width: 1024px) { .nav__signin { display: none; } }
@media (max-width: 1120px) and (min-width: 1024px) {
  .nav__links { gap: 0; }
  .nav__links a, .nav__ddbtn { padding: 8px 7px; gap: 5px; font-size: 0.9rem; }
  .nav__links .nav__ico { width: 15px; height: 15px; }
}
.nav__links { align-items: center; }
.nav__links a, .nav__ddbtn { white-space: nowrap; }
@media (max-width: 1439px) and (min-width: 1024px) { .nav__free { display: none; } }
@media (max-width: 1023px) { .nav__panel { background: var(--surface); } }
html:has(.nav.is-open) .kb, html:has(.nav.is-open) .to-top { visibility: hidden; }

/* ---------- 23. Pricing comparison table ---------- */
.plan__price small { font: 500 1rem/1 var(--font-body); color: var(--muted); letter-spacing: 0; }
.cmp { max-width: 1000px; margin-inline: auto; }
.cmp__table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.95rem; }
.cmp__table th, .cmp__table td { padding: 14px 20px; text-align: left; vertical-align: middle; }
/* header row sticks under the nav while the long table scrolls */
.cmp__table thead th {
  position: sticky; top: 84px; z-index: 5; vertical-align: bottom; padding-block: 16px;
  background: rgb(255 255 255 / 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cmp__table thead th:first-child { border-left: 1px solid var(--line); border-top-left-radius: 16px; }
.cmp__table thead th:last-child { border-right: 1px solid var(--line); border-top-right-radius: 16px; background: rgb(227 244 254 / 0.95); }
.cmp__h { display: block; font: 600 1.05rem/1.2 var(--font-display); }
.cmp__h small { display: block; margin-top: 4px; font: 500 0.8rem/1.3 var(--font-body); color: var(--muted); }
thead th:last-child .cmp__h { color: var(--sky-deep); }
.cmp__cta { display: inline-flex; margin-top: 10px; padding: 6px 12px; border-radius: 8px; font: 600 0.8rem/1 var(--font-body); text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); transition: background-color 0.2s, transform 0.2s var(--ease-out); }
.cmp__cta--pop { background: var(--pop); border-color: transparent; color: var(--pop-ink); }
.cmp__cta:hover { transform: translateY(-1px); }
.cmp__table tbody th, .cmp__table tbody td { background: var(--surface); border-bottom: 1px solid var(--line); transition: background-color 0.2s; }
.cmp__table tbody tr:nth-child(even) > * { background: #f9fcff; }
.cmp__table tbody td:last-child { background: #f1f9ff; }
.cmp__table tbody tr:nth-child(even) td:last-child { background: #e9f5fe; }
.cmp__table tbody tr:hover > * { background: var(--sky-wash); }
.cmp__table tbody th { font-weight: 500; width: 40%; border-left: 1px solid var(--line); }
.cmp__table tbody td { width: 30%; }
.cmp__table tbody td:last-child { border-right: 1px solid var(--line); }
.cmp__table tbody tr:last-child th { border-bottom-left-radius: 16px; }
.cmp__table tbody tr:last-child td:last-child { border-bottom-right-radius: 16px; }
.cmp__fn { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; vertical-align: 2px; background: var(--sky-wash); color: var(--sky-deep); font: 600 0.7rem/1 var(--font-body); text-decoration: none; }
a.cmp__fn:hover { background: var(--sky-deep); color: #fff; }
.cmp__yes { display: inline-flex; align-items: center; gap: 8px; color: #15803d; font-weight: 600; }
.cmp__tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e7f6ee; }
.cmp__tick .ico { width: 14px; height: 14px; stroke-width: 2.5; }
.cmp__inf { font-weight: 600; color: var(--sky-deep); }
.cmp__num b { font: 600 1.15rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.cmp__num span { color: var(--muted); font-size: 0.875rem; }
.cmp__txt { color: var(--ink); font-size: 0.9rem; line-height: 1.45; }
.cmp__notes { list-style: none; max-width: 1000px; margin: 16px auto 0; padding: 0; display: grid; gap: 8px; font-size: 0.875rem; color: var(--muted); }
.cmp__notes li { display: flex; gap: 8px; align-items: flex-start; }
.cmp__notes .cmp__fn { margin: 1px 0 0; flex: none; }
@media (max-width: 1023px) { .cmp__table thead th { top: 76px; } }
@media (max-width: 720px) {
  .cmp__table thead { display: none; }
  .cmp__table, .cmp__table tbody { display: block; }
  .cmp__table tbody { display: grid; gap: 8px; }
  .cmp__table tr { display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
  .cmp__table tbody th, .cmp__table tbody td, .cmp__table tbody tr:nth-child(even) > *, .cmp__table tbody td:last-child, .cmp__table tbody tr:nth-child(even) td:last-child { border: 0; border-radius: 0; background: var(--surface); }
  .cmp__table tbody th { grid-column: 1 / -1; width: auto; padding: 12px 16px 4px; font-weight: 600; font-size: 0.95rem; text-align: center; }
  .cmp__table tbody td { width: auto; display: grid; gap: 4px; align-content: start; justify-items: center; text-align: center; padding: 8px 12px 14px; }
  .cmp__table tbody td:last-child { background: #f1f9ff; }
  .cmp__table td::before { content: attr(data-label); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
  .cmp__table td:last-child::before { color: var(--sky-deep); }
  .cmp__notes li { justify-content: center; text-align: left; }
}

/* ---------- 23b. Pricing hover card in the nav (desktop with a mouse only) ---------- */
.nav__pp { position: relative; }
.nav__pop {
  position: absolute; top: calc(100% + 8px); left: 50%; width: 460px; padding: 10px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 4px rgb(12 26 59 / 0.04), 0 24px 48px -16px rgb(12 26 59 / 0.25);
  opacity: 0; visibility: hidden; transform: translate(-50%, -4px); pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0s 0.2s;
}
.nav__pop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
@media (hover: hover) and (min-width: 1024px) {
  .nav__pp:hover .nav__pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; transition-delay: 0.08s, 0.08s, 0s; }
}
.pop__plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pop__plan { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 12px; background: var(--bg); text-decoration: none; color: var(--ink); transition: background-color 0.2s, transform 0.2s var(--ease-out); }
.pop__plan:hover { transform: translateY(-2px); background: var(--sky-wash); }
.pop__plan--pro { background: linear-gradient(180deg, var(--sky-wash), var(--bg)); }
.pop__name { font-size: 0.8rem; font-weight: 600; color: var(--sky-deep); }
.pop__price { font: 600 1.5rem/1 var(--font-display); letter-spacing: -0.02em; }
.pop__price small { font: 500 0.8rem/1 var(--font-body); color: var(--muted); letter-spacing: 0; }
.pop__plan ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 0.8rem; color: var(--muted); }
.pop__plan li { padding-left: 14px; position: relative; }
.pop__plan li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: #15803d; }
.pop__all { display: flex; justify-content: center; gap: 6px; margin-top: 8px; padding: 10px; border-radius: 10px; font-size: 0.875rem; font-weight: 600; color: var(--sky-deep); text-decoration: none; }
.pop__all:hover { background: var(--sky-wash); }
.nav__links .pop__plan { display: grid; padding: 14px; font-size: 1rem; color: var(--ink); white-space: normal; }
.nav__links .pop__all { display: flex; padding: 10px; color: var(--sky-deep); font-size: 0.875rem; font-weight: 600; }

/* ---------- 24. Motion: hover lift, live dashboard, arrow nudge, sticky tool nav (all opt-out with reduced motion) ---------- */
@property --v { syntax: "<number>"; inherits: true; initial-value: 0; }
@media (prefers-reduced-motion: no-preference) {
  @media (hover: hover) {
    .card, .post, .plan, .duo__card, .badge, .tile, .feat .frame, .how__step, .fit__item, .growth__item, .pills li, .toolnav a {
      transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.2s;
    }
    .card:hover, .post:hover, .plan:hover, .duo__card:hover, .badge:hover, .tile:hover, .how__step:hover, .pills li:hover {
      transform: translateY(-4px); box-shadow: 0 2px 4px rgb(12 26 59 / 0.04), 0 24px 48px -24px rgb(12 26 59 / 0.3);
    }
    .feat .frame:hover { transform: translateY(-4px) scale(1.01); }
    .frame__art, .tile img, .duo__card img { transition: transform 0.6s var(--ease-out); }
    .feat .frame:hover .frame__art, .tile:hover img, .duo__card:hover img { transform: scale(1.04); }
    .card:hover .card__icon, .feat:hover .feat__icon { background: var(--sky-deep); color: #fff; }
    .card__icon, .feat__icon { transition: background-color 0.25s, color 0.25s; }
    .btn .ico, .more .ico { transition: transform 0.25s var(--ease-out); }
    .btn:hover .ico, .more:hover .ico { transform: translateX(3px); }
  }
  /* dashboard comes alive when it scrolls into view */
  .dash.is-live .meter { animation: fill-v 1.1s var(--ease-out) both; }
  .dash.is-live .growth-chart__bars i { transform-origin: bottom; animation: grow-y 0.9s var(--ease-out) both; }
  .dash.is-live .growth-chart__bars div:nth-child(2) i { animation-delay: 0.08s; }
  .dash.is-live .growth-chart__bars div:nth-child(3) i { animation-delay: 0.16s; }
  .dash.is-live .growth-chart__bars div:nth-child(4) i { animation-delay: 0.24s; }
  .dash.is-live .growth-chart__bars div:nth-child(5) i { animation-delay: 0.32s; }
  .dash.is-live .health__split span { transform-origin: left; animation: grow-x 0.9s var(--ease-out) both; }
  .dash.is-live .growth-chart__target { animation: fade-in 0.6s 0.5s var(--ease-out) both; }
  .growth-chart__bars .is-now i { animation: none; }
  .dash.is-live .growth-chart__bars .is-now i { animation: grow-y 0.9s 0.32s var(--ease-out) both, pulse-now 2.4s 1.4s ease-in-out infinite; }
  @keyframes fill-v { from { --v: 0; } }
  @keyframes grow-y { from { transform: scaleY(0); } }
  @keyframes grow-x { from { transform: scaleX(0); } }
  @keyframes fade-in { from { opacity: 0; } }
  @keyframes pulse-now { 50% { filter: brightness(1.15); } }
  /* gentle float on placeholder illustrations */
  .frame__pane img { animation: float 6s ease-in-out infinite; }
  .frame__pane:nth-child(2) img { animation-delay: -2s; }
  .frame__pane:nth-child(3) img { animation-delay: -4s; }
  @keyframes float { 50% { transform: translateY(-6px); } }
}
.toolnav a[aria-current="true"] { background: var(--sky-deep); color: #fff; border-color: transparent; }
.toolnav a[aria-current="true"] .ico { color: #fff; }

/* ---------- 25. Apple-style pass (WWDC "Designing Fluid Interfaces") + icon system ----------
   - critically damped spring (damping 1.0, response 0.4) for every hover/press transform
   - feedback on pointer-down, no 300ms tap delay, no grey tap flash
   - size-specific tracking, optical sizing
   - one icon language: 1.75 stroke, tinted chip, same radius everywhere */
:root { --spring: cubic-bezier(0.22, 1, 0.36, 1); }
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, 0.087, 0.258, 0.433, 0.584, 0.703, 0.793, 0.857, 0.903, 0.935, 0.956, 0.971, 0.981, 0.988, 0.992, 0.995, 1); }
}
html { -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
a, button, summary, [role="tab"], label { touch-action: manipulation; }
h1, h2, h3, .h2 { font-optical-sizing: auto; }
h3 { letter-spacing: -0.012em; }
small, .eyebrow, .tile__tag, .post__tag, .plan__name, .soon, .growth__n { letter-spacing: 0.01em; }

/* press feedback lives on pointer-down and is instant */
.btn, .toolnav a, .tab, .pills li, .nav__links a, .nav__ddbtn, .qa summary, .kb__btn, .to-top, .footer__links a, .footer__mail, .more {
  transition-property: transform, background-color, border-color, color, box-shadow;
  transition-duration: 0.5s, 0.15s, 0.15s, 0.15s, 0.35s;
  transition-timing-function: var(--spring);
}
.btn:active, .toolnav a:active, .tab:active, .nav__links a:active, .nav__ddbtn:active, .kb__btn:active, .to-top:active, .more:active { transform: scale(0.97); transition-duration: 0.1s; }
.qa summary:active { transform: scale(0.995); transition-duration: 0.1s; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .card, .post, .plan, .duo__card, .badge, .tile, .how__step, .growth__item, .pills li { transition-timing-function: var(--spring); transition-duration: 0.5s; }
  .card:active, .post:active, .plan:active, .tile:active, .duo__card:active { transform: translateY(-2px) scale(0.99); transition-duration: 0.12s; }
}

/* shared icon chip (tag, plan, growth, faq, table) */
.tag-ic, .plan__ic, .growth__ic, .faq-group__ic, .cmp__ic {
  display: inline-grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 9px;
  background: rgb(255 255 255 / 0.8); color: var(--sky-deep);
  box-shadow: inset 0 0 0 1px rgb(10 111 186 / 0.12);
}
.tag-ic .ico, .plan__ic .ico, .cmp__ic .ico { width: 16px; height: 16px; stroke-width: 1.75; }
.tile__tag { display: inline-flex; align-items: center; gap: 10px; }
.tile:hover .tag-ic { background: var(--sky-deep); color: #fff; box-shadow: none; }
.tag-ic { transition: background-color 0.25s, color 0.25s; }

.growth__top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.growth__ic { width: 40px; height: 40px; border-radius: 12px; background: var(--sky-wash); box-shadow: none; transition: background-color 0.25s, color 0.25s, transform 0.5s var(--spring); }
.growth__ic .ico { width: 20px; height: 20px; stroke-width: 1.75; }
@media (hover: hover) { .growth__item:hover .growth__ic { background: var(--sky-deep); color: #fff; } }
@media (max-width: 640px) { .growth__top { justify-content: center; } }

.plan__name { display: inline-flex; align-items: center; gap: 10px; }
.plan__ic { width: 32px; height: 32px; border-radius: 10px; background: var(--sky-wash); box-shadow: none; }
.plan--pro .plan__ic { background: var(--sky-deep); color: #fff; }
@media (max-width: 640px) { .plan__name { justify-content: center; } }

.cmp__ic { width: 30px; height: 30px; margin-right: 12px; vertical-align: middle; background: var(--sky-wash); box-shadow: none; }
.cmp__table tbody th { line-height: 1.35; }
@media (min-width: 721px) { .cmp__table tbody th { display: table-cell; } .cmp__table tbody th .cmp__ic { float: left; margin-top: -4px; } }
@media (max-width: 720px) { .cmp__table tbody th { display: flex; align-items: center; justify-content: center; gap: 0; } .cmp__ic { width: 26px; height: 26px; margin-right: 10px; } }

.post__tag { display: inline-flex; align-items: center; gap: 6px; }
.post__tag .ico { width: 16px; height: 16px; }
.soon { display: inline-flex; align-items: center; gap: 6px; }
.soon .ico { width: 14px; height: 14px; }

.faq-group__t { display: flex; align-items: center; gap: 12px; }
.faq-group__ic { width: 36px; height: 36px; border-radius: 10px; background: var(--sky-wash); box-shadow: none; }
.faq-group__ic .ico { width: 18px; height: 18px; }
@media (max-width: 640px) { .faq-group__t { justify-content: center; } }

.footer__links--legal a, .footer__mail, .footer__made { display: inline-flex; align-items: center; gap: 6px; }
.footer__links--legal .ico, .footer__mail .ico, .footer__made .ico { width: 16px; height: 16px; }
.footer__made .ico { color: var(--sky-deep); }
.eyebrow .ico { width: 18px; height: 18px; }

/* breathing room between the privacy cards and their buttons */
.cards + .phero__ctas { margin-top: 32px; }

/* scroll-edge effect: soft fade under the floating nav instead of a hard line */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 20px; pointer-events: none;
  background: linear-gradient(to bottom, rgb(244 250 255 / 0.85), rgb(244 250 255 / 0));
  opacity: 0; transition: opacity 0.3s var(--ease-out);
}
.nav.is-stuck::after { opacity: 1; }

/* materialize, don't just fade: dropdown arrives with blur + scale from its trigger */
@media (prefers-reduced-motion: no-preference) {
  .nav__menu { transform-origin: top center; }
}

/* accessibility: stronger contrast on request */
@media (prefers-contrast: more) {
  :root { --line: rgb(12 26 59 / 0.35); --muted: #2b3a57; }
  .glass, .nav__bar, .dash, .modal { background: var(--surface) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-color: var(--ink) !important; }
  .tag-ic, .plan__ic, .growth__ic, .faq-group__ic, .cmp__ic { box-shadow: inset 0 0 0 1px currentColor; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active, .toolnav a:active, .tab:active, .card:active, .post:active, .plan:active, .tile:active { transform: none; }
  .nav::after { transition: none; }
}
@media (max-width: 720px) { .cmp__num { display: grid; justify-items: center; gap: 2px; } .cmp__num span { font-size: 0.8rem; } }
@media (max-width: 720px) { .cmp__table tbody tr td:last-child, .cmp__table tbody tr:nth-child(even) td:last-child { background: #f1f9ff; } }

/* ---------- 25. Hero headline sized for the longer approved copy ---------- */
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); }
@media (max-width: 640px) { .hero h1 { font-size: clamp(1.75rem, 8vw, 2.3rem); } .hero .eyebrow { font-size: 0.8rem; } }

/* ---------- 26. Tighter hero copy rhythm (rows never stretch apart) ---------- */
.hero__copy { gap: 0; align-content: center; align-self: center; }
.hero__copy > h1 { margin-top: 14px; }
.hero__copy > h1 + .lede { margin-top: 18px; }
.hero__copy > .lede + .lede { margin-top: 8px; }
.hero__copy > .hero__ctas { margin-top: 28px; }
/* headline must fit its column on every font renderer (Windows fonts run a little wider) */
.hero h1 { font-size: clamp(2.2rem, 3.7vw, 3.3rem); }
@media (min-width: 1024px) { .hero__copy { align-self: start; padding-top: 24px; } }
.screen__title { text-align: center; margin-bottom: clamp(24px, 4vw, 40px); }

/* ---------- 27. Run every class data-informed: feature tour + Explore popups ---------- */
.tour .wrap { padding-block: clamp(40px, 6vw, 72px); border-radius: 28px; background: linear-gradient(180deg, var(--sky-wash), color-mix(in srgb, var(--sky-wash) 40%, var(--bg))); }
.tour__head { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 760px; margin: 0 auto clamp(32px, 5vw, 48px); padding-inline: 16px; }
.tour__head .lede { margin-inline: auto; }
.tour__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding-inline: clamp(12px, 3vw, 40px); }
.tour__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tour__item { position: relative; border-radius: 16px; border: 1px solid transparent; transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out); overflow: hidden; }
.tour__item:not(.is-on):hover { background: rgb(255 255 255 / 0.6); }
.tour__item.is-on { background: var(--surface); border-color: var(--line); box-shadow: 0 1px 2px rgb(12 26 59 / 0.04), 0 16px 40px -24px rgb(12 26 59 / 0.3); }
.tour__btn { all: unset; box-sizing: border-box; width: 100%; display: flex; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; border-radius: 16px; }
.tour__btn:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: -2px; }
.tour__ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--sky-deep); border: 1px solid var(--line); transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out); }
.tour__ico .ico { width: 20px; height: 20px; }
.tour__item.is-on .tour__ico { background: var(--sky-deep); color: #fff; border-color: transparent; }
.tour__t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.tour__t h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.tour__pill { display: inline-block; font: 600 0.75rem/1 var(--font-body); color: var(--sky-deep); background: var(--sky-wash); border: 1px solid color-mix(in srgb, var(--sky-deep) 18%, transparent); padding: 6px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.tour__item.is-on .tour__pill { background: #fff4ee; color: #a6400f; border-color: color-mix(in srgb, var(--pop) 30%, transparent); }
.tour__body { display: grid; gap: 12px; justify-items: start; padding: 0 16px 0 68px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.45s var(--ease-out), opacity 0.3s var(--ease-out), padding 0.45s var(--ease-out); }
.tour__item.is-on .tour__body { max-height: 260px; opacity: 1; padding-bottom: 20px; }
.tour__item:not(.is-on) .tour__body { visibility: hidden; }
.tour__body p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
button.more { all: unset; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--sky-deep); cursor: pointer; border-radius: 8px; }
button.more:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: 4px; }
button.more .ico { width: 18px; height: 18px; transition: transform 0.2s var(--ease-out); }
button.more:hover .ico { transform: translateX(3px); }
.tour__bar { position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--sky-deep) 12%, transparent); opacity: 0; }
.tour__bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--sky-deep); transform: scaleX(0); transform-origin: left; }
.tour.is-auto .tour__item.is-on .tour__bar { opacity: 1; }
.tour.is-auto .tour__item.is-on .tour__bar::after { animation: tourbar var(--tour-ms, 6000ms) linear forwards; }
.tour.is-paused .tour__item.is-on .tour__bar::after { animation-play-state: paused; }
@keyframes tourbar { to { transform: scaleX(1); } }

/* product panel */
.tour__stage { position: relative; aspect-ratio: 7 / 5; border-radius: 24px; padding: clamp(20px, 3vw, 36px); background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--sky) 35%, transparent), transparent 60%), linear-gradient(160deg, #fff, var(--tint-blue)); border: 1px solid var(--line); box-shadow: 0 2px 4px rgb(12 26 59 / 0.04), 0 32px 64px -32px rgb(12 26 59 / 0.35); overflow: hidden; }
.tour__screen { position: absolute; inset: clamp(20px, 3vw, 36px); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: scale(0.97) translateY(8px); transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out), visibility 0s linear 0.45s; }
.tour__screen.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ui { width: min(100%, 520px); border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(12 26 59 / 0.05), 0 20px 40px -20px rgb(12 26 59 / 0.3); overflow: hidden; font-size: 0.85rem; }
.ui__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--sky-wash) 45%, #fff); }
.ui__bar b { font: 600 0.95rem/1.2 var(--font-display); }
.ui__tag { font: 600 0.72rem/1 var(--font-body); color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 6px 8px; border-radius: var(--r-pill); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ui__tag.is-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); background: #e9f7f0; }
.ui__body { display: grid; gap: 8px; padding: 16px; }
.ui__label { font: 600 0.72rem/1 var(--font-body); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
.ui__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ui__chips span, .ui__seg span { padding: 6px 10px; border-radius: var(--r-pill); border: 1px solid var(--line); font-weight: 500; }
.ui__chips .is-on { background: var(--sky-deep); color: #fff; border-color: transparent; }
.ui__checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ui__checks li { display: flex; align-items: center; gap: 8px; }
.ui__checks li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.ui__checks .is-on::before { background: var(--sky-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l9 -10'/%3E%3C/svg%3E") center / 10px no-repeat; border-color: var(--sky-deep); }
.ui__seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--sky-wash); justify-self: start; }
.ui__seg span { border: 0; }
.ui__seg .is-on { background: var(--surface); box-shadow: 0 1px 3px rgb(12 26 59 / 0.12); }
.ui-sheet { position: absolute; right: 2%; bottom: 4%; display: grid; gap: 2px; padding: 12px 16px 14px; width: 40%; max-width: 200px; background: #fffdf6; border-radius: 6px; box-shadow: 0 12px 24px -10px rgb(12 26 59 / 0.35); transform: rotate(4deg); font: 400 1.25rem/1.3 var(--font-hand); color: #23356b; background-image: repeating-linear-gradient(transparent 0 25px, rgb(79 196 247 / 0.35) 25px 26px); }
.ui-work { display: grid; gap: 4px; padding: 8px 12px; border-radius: 10px; background: #fffdf6; font: 400 1.35rem/1.35 var(--font-hand); color: #23356b; }
.ui-work span { display: flex; align-items: center; gap: 8px; }
.ui-work span::after { font: 600 0.75rem/1 var(--font-body); padding: 4px 6px; border-radius: 4px; }
.ui-work .is-ok::after { content: "✓"; color: var(--ok); background: #e9f7f0; }
.ui-work .is-bad { text-decoration: underline wavy var(--pop); text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.ui-work .is-bad::after { content: "!"; color: #a6400f; background: #fff4ee; }
.ui-work .is-struck { text-decoration: line-through; color: color-mix(in srgb, #23356b 45%, transparent); }
.ui-note { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; border-left: 3px solid var(--pop); background: #fff4ee; }
.ui-note b { font-size: 0.78rem; color: #a6400f; }
.ui-note.is-ok { border-left-color: var(--ok); background: #e9f7f0; }
.ui-note.is-ok b { color: var(--ok); }
.ui__rubric { display: flex; flex-wrap: wrap; gap: 6px; }
.ui__rubric span, .ui-skills span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); font-weight: 500; }
.ui__rubric b, .ui-skills b { font-size: 0.72rem; padding: 3px 6px; border-radius: 4px; }
b.is-ok { color: var(--ok); background: #e9f7f0; }
b.is-warn { color: #8a5a00; background: #fff4d6; }
b.is-bad { color: #a6400f; background: #fff4ee; }
.ui-chat { gap: 8px; }
.ui-chat span { justify-self: start; max-width: 82%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--sky-wash); line-height: 1.4; }
.ui-chat .is-me { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--sky-deep); color: #fff; }
.ui-type { justify-self: start; display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 14px; background: var(--sky-wash); }
.ui-type b { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--sky-deep) 50%, transparent); }
.ui-cohort { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 10px 12px 10px 16px; border-radius: 10px; border: 1px solid var(--line); position: relative; }
.ui-cohort::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.ui-cohort span { color: var(--muted); font-size: 0.78rem; grid-column: 1; }
.ui-cohort i { grid-column: 2; grid-row: 1 / span 2; font: 600 0.8rem/1 var(--font-body); font-style: normal; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-wash); color: var(--sky-deep); }
.ui-path { position: relative; display: flex; justify-content: space-between; align-items: center; margin: 6px 8px 0; }
.ui-path::before { content: ""; position: absolute; left: 7px; right: 7px; top: 50%; height: 2px; transform: translateY(-50%); background: color-mix(in srgb, var(--sky-deep) 25%, transparent); }
.ui-path span { position: relative; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--sky-deep) 35%, transparent); background: var(--surface); }
.ui-path .is-done { background: var(--sky-deep); border-color: var(--sky-deep); }
.ui-path .is-on { border-color: var(--pop); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pop) 20%, transparent); }
.ui-chart { width: 100%; height: 120px; display: block; }
.ui-chart path { fill: none; vector-effect: non-scaling-stroke; }
.ui-chart__grid { stroke: var(--line); stroke-width: 1; }
.ui-chart__a { stroke: var(--sky-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ui-chart__b { stroke: var(--pop); stroke-width: 2; stroke-dasharray: 6 5; stroke-linecap: round; }
.ui__legend { display: flex; gap: 16px; color: var(--muted); font-size: 0.78rem; }
.ui__legend span { display: inline-flex; align-items: center; gap: 6px; }
.ui__legend span::before { content: ""; width: 16px; height: 3px; border-radius: 3px; background: var(--sky-deep); }
.ui__legend .is-b::before { background: var(--pop); }
.ui-skills { display: flex; flex-wrap: wrap; gap: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .tour__screen.is-on .ui-chart__a, .tour__screen.is-on .ui-chart__b { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.4s var(--ease-out) 0.2s forwards; }
  .tour__screen.is-on .ui-chart__b { stroke-dasharray: 600; }
  .tour__screen.is-on .ui-chat span { animation: rise 0.5s var(--ease-out) both; }
  .tour__screen.is-on .ui-chat span:nth-child(2) { animation-delay: 0.25s; }
  .tour__screen.is-on .ui-chat span:nth-child(3) { animation-delay: 0.5s; }
  .tour__screen.is-on .ui-chat span:nth-child(4) { animation-delay: 0.75s; }
  .ui-type b { animation: blink 1.2s ease-in-out infinite; }
  .ui-type b:nth-child(2) { animation-delay: 0.2s; }
  .ui-type b:nth-child(3) { animation-delay: 0.4s; }
  .tour__screen.is-on .ui-note { animation: rise 0.5s var(--ease-out) 0.3s both; }
  .tour__screen.is-on .ui-sheet { animation: sheet 0.7s var(--ease-out) 0.15s both; }
}
@media (prefers-reduced-motion: reduce) { .tour__item, .tour__body, .tour__screen { transition: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: 0.3; } }
@keyframes sheet { from { opacity: 0; transform: rotate(10deg) translateY(16px); } }

/* phone + tablet: accordion; JS moves the panel into the open item */
@media (max-width: 900px) {
  .tour__grid { grid-template-columns: 1fr; padding-inline: 12px; }
  .tour .tour__list > .tour__stage { display: none; }
  .tour__list + .tour__stage { display: none; }
  .tour__item .tour__stage { aspect-ratio: auto; height: clamp(300px, 70vw, 420px); margin: 0 12px 16px; border-radius: 16px; padding: 12px; }
  .tour__item .tour__screen { inset: 12px; }
  .tour__body { padding-left: 16px; }
  .tour__btn { text-align: left; }
}
@media (max-width: 520px) {
  .tour .wrap { border-radius: 0; }
  .tour__item .tour__stage { height: 360px; }
  .ui { font-size: 0.8rem; }
  .ui__tag { max-width: 46%; }
  .ui-sheet { display: none; }
}

/* Explore popup */
.xmodal { width: min(920px, calc(100% - 32px)); background: var(--surface); } /* solid: long copy reads better than glass */
.xmodal__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.xmodal__art { position: relative; min-height: 100%; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--sky) 35%, transparent), transparent 60%), linear-gradient(160deg, #fff, var(--tint-blue)); display: grid; place-items: center; padding: 32px 24px; }
.xmodal__art .tour__screen { position: static; opacity: 1; visibility: visible; transform: none; width: 100%; }
.xmodal__art .ui-sheet { display: none; }
.xmodal__copy { display: grid; gap: 12px; align-content: start; justify-items: start; padding: clamp(24px, 4vw, 40px); padding-top: 32px; }
.xmodal__title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; padding-right: 40px; }
.xmodal__lede { color: var(--muted); line-height: 1.6; }
.xmodal__h { font: 600 0.78rem/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; color: var(--sky-deep); margin-top: 8px; }
.xmodal__steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 8px; }
.xmodal__steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 0.95rem; line-height: 1.5; }
.xmodal__steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 0.8rem/1 var(--font-body); background: var(--sky-wash); color: var(--sky-deep); }
.xmodal__gets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.xmodal__gets li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 0.9rem; line-height: 1.45; }
.xmodal__gets .ico { width: 18px; height: 18px; color: var(--ok); margin-top: 2px; }
.xmodal__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 12px; }
@media (max-width: 760px) {
  .xmodal__in { grid-template-columns: 1fr; }
  .xmodal__art { padding: 56px 16px 16px; }
  .xmodal__copy { padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .xmodal__gets { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .xmodal { width: 100%; } .xmodal__copy { justify-items: start; text-align: left; } .xmodal__cta { width: 100%; } .xmodal__cta .btn { flex: 1 1 100%; justify-content: center; } }
