/* ==========================================================================
   Verbali — site styles
   Brand: cream canvas, Verbali violet, Verbi's orange collar & cyan eyes,
   and the Fitzgerald-key colours of an AAC board as the supporting palette.
   ========================================================================== */

:root {
  /* canvas */
  --cream: #FFF7EA;
  --cream-2: #FBEEDA;
  --paper: #FFFDF8;
  --line: #EADFCB;
  --line-2: #DED0B8;

  /* ink */
  --ink: #1E1A36;
  --ink-2: #413B5E;
  --muted: #6B6585;

  /* brand */
  --violet: #7A65EC;
  --violet-deep: #5A45D3;
  --violet-ink: #3B2C9E;
  --violet-soft: #ECE7FE;
  --orange: #F26A1F;
  --orange-soft: #FFE6D4;
  --steel: #8E8A83;
  --cyan: #45C2EE;

  /* Fitzgerald key — tile fills / edges */
  --yel: #FFF1B3;  --yel-e: #E9C443;
  --grn: #DDF2D2;  --grn-e: #78BE63;
  --blu: #D8EDFB;  --blu-e: #59A9DD;
  --org: #FFE0C4;  --org-e: #EE9447;
  --pnk: #FDDCE7;  --pnk-e: #E07C9F;
  --pur: #E9E1FB;  --pur-e: #9883E6;
  --gry: #EEEBE6;  --gry-e: #B6AFA4;

  /* IEP data colours (from the IEP dashboard) */
  --c-blue: #306EE0;
  --c-green: #2E9E57;
  --c-amber: #EB9117;
  --c-teal: #149E8F;

  --f-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-1: 0 1px 0 rgba(30, 26, 54, .04), 0 8px 24px -12px rgba(30, 26, 54, .18);
  --shadow-2: 0 2px 0 rgba(30, 26, 54, .04), 0 30px 60px -30px rgba(30, 26, 54, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  /* the three motion durations used everywhere */
  --t-fast: .2s;
  --t-med: .35s;
  --t-slow: .6s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.ico-sm { width: 16px; height: 16px; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 14px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--violet-deep);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--orange);
}
.eyebrow.on-dark { color: #CFC5FF; }

.display, .h1, .h2, .h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.025em; margin: 0; }
.display { font-size: clamp(42px, 6.4vw, 86px); line-height: .96; letter-spacing: -.04em; }
.h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1; letter-spacing: -.035em; }
.h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.03; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.015em; font-weight: 700; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 40em; margin: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.hl-violet { color: var(--violet); }
.hl-orange { color: var(--orange); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--violet); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg);
  font: 700 16px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: transform var(--t-fast) var(--spring), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px -8px rgba(30,26,54,.45);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 26px -12px rgba(30,26,54,.5); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ico { transition: transform var(--t-fast) var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-ink { --bg: var(--ink); }
.btn-orange { --bg: var(--orange); }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { --bg: #fff; --fg: var(--ink); }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none;
  color: var(--violet-deep);
}
.link-arrow .ico { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

.store-btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 9px 16px 9px 12px; min-height: 52px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); /* badge outline, visible on dark cards too */
  transition: transform var(--t-fast) var(--spring);
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn svg { width: 26px; height: 26px; }
.store-btn small { display: block; font-size: 11px; opacity: .75; line-height: 1.1; }
.store-btn strong { display: block; font-size: 17px; line-height: 1.1; }

/* ---------- AAC tiles (the brand motif) ---------- */
.t {
  --f: var(--gry); --e: var(--gry-e);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 6px 12px; min-height: 38px; border-radius: 10px;
  background: var(--f); box-shadow: inset 0 0 0 2px var(--e), 0 3px 0 var(--e);
  font: 700 15px/1.1 var(--f-body); color: var(--ink); white-space: nowrap;
  transition: transform var(--t-fast) var(--spring), box-shadow var(--t-fast) var(--ease);
}
button.t:hover, a.t:hover, .marquee .t:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--e), 0 5px 0 var(--e); }
button.t:active, a.t:active, .t.press { transform: translateY(2px); box-shadow: inset 0 0 0 2px var(--e), 0 1px 0 var(--e); }
.t .em { font-size: 1.5em; line-height: 1; }
.t-yel { --f: var(--yel); --e: var(--yel-e); }
.t-grn { --f: var(--grn); --e: var(--grn-e); }
.t-blu { --f: var(--blu); --e: var(--blu-e); }
.t-org { --f: var(--org); --e: var(--org-e); }
.t-pnk { --f: var(--pnk); --e: var(--pnk-e); }
.t-pur { --f: var(--pur); --e: var(--pur-e); }
.t-gry { --f: var(--gry); --e: var(--gry-e); }
.tile-row { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  display: inline-block; font: 700 11px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 999px; background: var(--orange-soft); color: #B4470C; font-style: normal;
  vertical-align: middle;
}
.tag-violet { background: var(--violet-soft); color: var(--violet-ink); }
.tag-green { background: #DDF2E3; color: #1E7A40; }
.tag-ink { background: var(--ink); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), backdrop-filter var(--t-med) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 247, 234, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.logo { display: inline-flex; align-items: flex-end; gap: 8px; text-decoration: none; }
.logo-word {
  position: relative; font: 800 30px/1 var(--f-body); letter-spacing: -.035em; color: var(--violet);
  padding-bottom: 7px;
}
.logo-word::after {
  content: ""; position: absolute; left: 1px; right: 1px; bottom: 0; height: 3px; border-radius: 3px; background: var(--violet);
  transform-origin: left; transition: transform var(--t-slow) var(--ease);
}
.logo:hover .logo-word::after { transform: scaleX(.6); }
.logo-verbi { width: 34px; height: auto; margin-bottom: -4px; transform-origin: 50% 90%; }
.logo:hover .logo-verbi { animation: wag var(--t-slow) var(--ease); }
.logo-lg .logo-word { font-size: 40px; padding-bottom: 9px; }
.logo-lg .logo-word::after { height: 4px; }
.logo-lg .logo-verbi { width: 46px; }
@keyframes wag { 0%,100% { transform: rotate(0) } 25% { transform: rotate(-9deg) } 60% { transform: rotate(7deg) } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 12px; border-radius: 10px; border: 0; background: none; cursor: pointer;
  font: 600 15.5px/1 var(--f-body); color: var(--ink-2); text-decoration: none;
}
.nav-link:hover { color: var(--ink); background: rgba(30,26,54,.05); }
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--orange);
}
.nav-demo { margin-left: 8px; min-height: 44px; padding: 10px 16px; font-size: 14.5px; }
.mega-sm { width: 340px; }
.mega.mega-prod { width: 300px; }
.mega-logo { width: 42px; height: 42px; border-radius: 12px; object-fit: contain; flex: none; }
.mega-prod .mega-item { align-items: center; }
.mega-prod .mega-item strong { display: flex; align-items: center; gap: 8px; }
.mega-prod .mega-item .tag { margin-top: 0; font-style: normal; font-size: 9.5px; padding: 3px 6px; }
.mega-item[aria-current="page"] { background: var(--cream); }
.mega-swatch svg[viewBox="0 0 32 32"] { width: 26px; height: 26px; }
@media (max-width: 1240px) and (min-width: 1121px) {
  .nav-link { padding: 10px 9px; font-size: 15px; }
  .nav-demo { padding: 10px 12px; }
}

.nav-group { position: relative; }
.nav-trigger .ico-sm { transition: transform var(--t-fast) var(--ease); }
.nav-group.is-open .nav-trigger .ico-sm { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: -12px; width: 380px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 8px;
  box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast) var(--ease);
}
.nav-group.is-open .mega { opacity: 1; visibility: visible; transform: none; }
/* the Company menu sits near the right edge: open it leftwards so it never widens the page */
.mega.mega-sm { left: auto; right: -12px; transform-origin: top right; }
.mega-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 14px; text-decoration: none; }
.mega-item:hover { background: var(--cream); }
.mega-item strong { display: block; font-size: 16px; }
.mega-item small { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; margin-top: 2px; }
.mega-item .tag { margin-top: 6px; }
.mega-swatch { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.mega-swatch svg { width: 22px; height: 22px; }
.sw-violet { background: var(--violet-soft); color: var(--violet-deep); }
.sw-orange { background: var(--orange-soft); color: #C2500F; }
.sw-teal { background: #D7F1EC; color: #0E7C70; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--ink); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--t-med) var(--ease), top var(--t-med) var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 2px;
    max-height: calc(100vh - 76px); overflow: auto;
    background: var(--cream); padding: 12px 16px 24px; border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--t-fast) var(--ease), transform var(--t-med) var(--ease), visibility var(--t-fast) var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-link { padding: 14px 12px; font-size: 18px; justify-content: space-between; }
  .nav-link[aria-current="page"]::after { display: none; }
  .mega { position: static; width: auto; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none; margin: 4px 0 8px; }
  .nav-group.is-open .mega { display: block; }
  .nav-demo { margin: 8px 0 0; min-height: 50px; }
}

/* ---------- sections ---------- */
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section-sm { padding: clamp(56px, 7vw, 90px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .h2 { margin: 14px 0 18px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.band-ink {
  background:
    radial-gradient(60% 55% at 76% 48%, rgba(122, 101, 236, .24), transparent 70%),
    radial-gradient(45% 45% at 18% 85%, rgba(69, 194, 238, .12), transparent 70%),
    var(--ink);
  color: #F4F0FF;
}
.band-ink .lede, .band-ink .muted { color: #B9B2D6; }
.band-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- hero (home) ---------- */
.hero {
  padding: clamp(28px, 4vw, 56px) 0 clamp(60px, 7vw, 100px); position: relative; overflow: hidden;
  background:
    radial-gradient(48% 58% at 75% 44%, rgba(122, 101, 236, .11), transparent 70%),
    radial-gradient(38% 46% at 16% 24%, rgba(242, 106, 31, .07), transparent 68%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(30, 26, 54, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(70% 70% at 62% 45%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 62% 45%, #000 10%, transparent 75%);
}
/* PLAN-14 A2 (Dec 2026): the first section of the homepage. Words on the left: the category, a two-beat headline, one short paragraph
   on what Verbali is building, two buttons. The picture on the right: the Leo circle with a scene for each place
   (version A; version B was removed in PLAN-25). The products themselves come in the next section (#products). */
.hero-eco { padding: clamp(18px, 2.6vw, 40px) 0 clamp(44px, 5vw, 72px); }
.he-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.he-copy { max-width: 590px; }
.hero-eco .eyebrow { display: flex; width: max-content; }
/* PLAN-18: the two lines of the headline at one size (started at the average of round 17's 86px and 43px (64px)
   and set to 60px at 1440px, so "Conversations happen everywhere." takes two lines in the 540px column; scaled down the same way on smaller screens). The serif
   face looks a little smaller at the same size, so its line is nudged up 4%. */
.he-title { font: 800 clamp(29px, 4.17vw, 60px)/.98 var(--f-display); letter-spacing: -.04em; margin: 16px 0 0; text-wrap: balance; }
.he-title .serif { display: block; margin-top: .12em; font-size: 1.04em; line-height: 1.02; letter-spacing: -.01em; }
.he-lede { margin: clamp(18px, 2vw, 26px) 0 0; max-width: 34em; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--ink-2); }
.he-btns { margin-top: clamp(22px, 2.4vw, 32px); }
@media (min-width: 901px) and (max-height: 820px) {
  .hero-eco { padding-top: 8px; padding-bottom: 36px; }
  .he-title { margin-top: 12px; }
  .he-lede { margin-top: 16px; }
  .he-btns { margin-top: 20px; }
}
@media (max-width: 900px) {
  .he-grid { grid-template-columns: 1fr; }
  .he-copy { max-width: 620px; }
  .he-pic { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) { .he-btns .btn { flex: 1 1 auto; } }
/* version A (PLAN-15 A1): the picture is the larger half; the words take a narrower column. Tablets and phones: the picture takes the full width */
/* PLAN-17: the column is wide enough for "Conversations" on one line at the larger headline size, with a clear gap before the picture */
@media (min-width: 1101px) { .hero-va .he-grid { grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 72px; } }
@media (min-width: 901px) and (max-width: 1100px) { .hero-va .he-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 52px; } }
@media (max-width: 900px) { .hero-va .he-pic { max-width: none; } }

/* ---------- homepage version A picture (PLAN-15 A, PLAN-16 A): Leo in the middle of the rings, four places around him ---------- */
/* Leo large in the middle of the rings (one solid, two dashed); the four scenes small at rest, on the outer ring with air between
   them. The scene whose turn it is (or that a visitor points at or focuses, which makes it the turn) grows big into its corner of
   the picture, away from Leo, and its question shows next to it. Only one scene is big at a time.
   Sizes are in cqw (shares of the picture's width) so the layout is the same at every screen size; the unitless --*f values are
   also read by site.js, which draws the rings, the lines to Leo and the travelling dot from them. */
.eco-wrap { position: relative; width: 100%; container-type: inline-size; }
.eco {
  --swf: 30.8; /* a scene at rest (PLAN-18: spread out, larger scenes: about 170px and 260px at 1440px) */
  --gwf: 47;    /* the scene whose turn it is */
  --rxf: 1.6;   /* a scene at rest: from the side of the picture */
  --ryf: 1.6;   /* a scene at rest: from the top or the bottom */
  --sw: calc(var(--swf) * 1cqw); --gw: calc(var(--gwf) * 1cqw); --rx: calc(var(--rxf) * 1cqw); --ry: calc(var(--ryf) * 1cqw);
  --leo: 21cqw;
  position: relative; height: 94cqw;
}
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.eco-ring { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.eco-ring.dash { stroke: #CDBEA4; stroke-dasharray: 2 10; stroke-linecap: round; }
.eco-link { fill: none; stroke: #D9CAAE; stroke-width: 2; stroke-dasharray: 4 8; stroke-linecap: round; transition: stroke .5s var(--ease), stroke-width .5s var(--ease); }
.eco-link.is-active { stroke: var(--violet); stroke-width: 3; stroke-dasharray: 5 7; }
.eco-fx { z-index: 3; }
.eco-dot { fill: var(--violet); stroke: #fff; stroke-width: 3; opacity: 0; filter: drop-shadow(0 0 5px rgba(122, 101, 236, .75)); }

.eco-scene {
  position: absolute; left: var(--rx); top: var(--ry); z-index: 1; width: var(--sw); display: grid; justify-items: center; gap: 8px;
  padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer;
  transition: opacity .6s var(--ease), width .35s var(--ease), left .35s var(--ease), top .35s var(--ease), right .35s var(--ease), bottom .35s var(--ease);
}
.eco-scene[data-who="teacher"], .eco-scene[data-who="slp"] { left: auto; right: var(--rx); }
.eco-scene[data-who="slp"], .eco-scene[data-who="friend"] { top: auto; bottom: var(--ry); }
/* its turn: big, in its corner of the picture, above the others */
.eco-scene.is-active { z-index: 3; width: var(--gw); --rx: 0px; --ry: 0px; }
.eco-pic {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; background: #FFF0DF;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--line-2), 0 12px 24px -16px rgba(30, 26, 54, .4); transition: box-shadow .6s var(--ease), border-radius .35s var(--ease);
}
.eco-pic img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.eco-name {
  display: inline-block; padding: 4px 11px 5px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1.25px var(--line-2);
  font: 600 12.5px/1.2 var(--f-body); color: var(--muted); white-space: nowrap; transition: font-size .35s var(--ease);
}
.eco-name b { font: 800 15px/1.2 var(--f-display); letter-spacing: -.01em; color: var(--ink); transition: font-size .35s var(--ease); }
.eco-scene.is-active .eco-name { padding: 5px 14px 6px; font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--violet); }
.eco-scene.is-active .eco-name b { font-size: 18px; }
/* PLAN-19: no violet frame on the big scene: the white border and a soft shadow, as at rest (its label keeps the violet outline) */
.eco-scene.is-active .eco-pic { border-radius: 20px; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--line-2), 0 24px 40px -18px rgba(30, 26, 54, .45); }
.eco-scene:hover .eco-pic { box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px #CDBEA4, 0 16px 30px -18px rgba(30, 26, 54, .45); }
/* while a turn plays, the other three places fade back a little */
.eco[data-active] .eco-scene:not(.is-active) { opacity: .5; }
.eco-scene:focus { outline: none; }
.eco-scene:focus-visible .eco-pic { outline: 3px solid var(--violet); outline-offset: 7px; }

/* Leo, his app on the side like an app badge */
.eco-leo { position: absolute; left: 50%; top: 50%; z-index: 2; width: var(--leo); aspect-ratio: 1; translate: -50% -50%; }
.eco-leo-img {
  position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #FFF0DF;
  box-shadow: 0 0 0 4px #fff, 0 0 0 7.5px var(--violet), 0 0 0 16px rgba(122, 101, 236, .12), 0 18px 30px -14px rgba(30, 26, 54, .38);
}
.eco-leo-app { position: absolute; right: -6%; top: 0; width: 28%; height: auto; border-radius: 24%; background: #fff; box-shadow: 0 0 0 3px #fff, 0 4px 9px rgba(30, 26, 54, .28); }
.eco-name-leo { position: absolute; left: 50%; top: 100%; translate: -50% 14px; background: var(--ink); color: #CFC8F0; box-shadow: none; padding: 5px 14px 6px; font-size: 14px; }
.eco-name-leo b { color: #fff; font-size: 18px; }

/* the question of a turn (PLAN-17, PLAN-18): a hand-drawn comic speech bubble on the big scene itself, over the wall or the sky, like
   the bubbles in the version B drawings: a soft, slightly uneven oval, white, with an ink outline of the drawing's line weight and a
   short curved pointed tail toward the speaker's mouth. The oval and its tail are one SVG path (home-eco.html), so the outline is one
   line; it is stretched to the box of the text, and the line keeps its weight (non-scaling stroke). It shows only while its scene is
   big. Its place (--x, --y, --w: shares of the picture) is set per drawing; its size follows the picture (cqi of .eco-pic). */
.eco-pic { container-type: inline-size; }
.eco-say {
  position: absolute; left: var(--x); top: var(--y); z-index: 2; width: max-content; max-width: var(--w);
  padding: .62em 1.05em .7em; font: 800 clamp(11px, 5.7cqi, 16px)/1.13 var(--f-body); color: var(--ink); text-align: center; text-wrap: balance;
  opacity: 0; transform: translateY(4px) scale(.92); transform-origin: 20% 100%; transition: opacity .4s var(--ease), transform .5s var(--ease); pointer-events: none;
}
.eco-scene.is-active .eco-say.is-on { opacity: 1; transform: none; }
.eco-say-bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco-say-bg path { fill: #fff; stroke: var(--ink); stroke-width: clamp(1.2px, .6cqi, 2px); stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.eco-say-t { position: relative; display: block; }
/* Home: over the picture frame and the window, tail down to Mom */
.eco-say[data-q="parent"] { --x: 40%; --y: 1.5%; --w: 62%; }
/* Class: over the clock and the right end of the board, so the caterpillar stays in view; tail down-left toward Ms. Rivera */
.eco-say[data-q="teacher"] { --x: 54.5%; --y: 1.2%; --w: 45%; padding-left: .8em; padding-right: .8em; font-size: clamp(11px, 5.05cqi, 15px); }
/* (a small big scene, as on phones: the Class bubble needs a little more width to keep two lines) */
@container (max-width: 212px) { .eco-say[data-q="teacher"] { --x: 48.5%; --w: 51%; padding-left: .6em; padding-right: .6em; } }
/* Therapy: over the wall and the window, tail down to Dana */
.eco-say[data-q="slp"] { --x: 41%; --y: 3%; --w: 58%; }
/* Park: in the sky by the cloud, tail down to Sam */
.eco-say[data-q="friend"] { --x: 29.5%; --y: 2%; --w: 39%; }

/* Leo's answer (PLAN-19): a small tablet in landscape showing the MaTalk AI app, one size for every turn. The body: a slim, even
   dark bezel with rounded outer corners (the screen's corners are the outer radius less the bezel), a faint edge highlight, a camera
   dot in the middle of the top edge and a soft shadow. The screen: the app's cream background (as in the app captures,
   assets/img/shots/), a white top bar with the logo and "MaTalk AI", and the white sentence strip with a light blue edge, where the
   tiles Leo taps appear one after another (white tiles with a coloured edge, the picture above the word, as on his board), left-aligned.
   On wide pictures it stays in one place, right of Leo, in the band between the big scenes above and below, and between turns it
   stays with an empty strip: only the tiles change. On narrow pictures it shows with the answer, under Leo's name or over Leo.
   Every size is a share of --k (1 = the tablet 194px wide), so the tablet keeps its shape at every picture width. */
.eco-tab {
  --k: 1;
  position: absolute; z-index: 4; box-sizing: border-box; width: calc(194px * var(--k)); aspect-ratio: 1.43; padding: calc(6px * var(--k));
  border-radius: calc(18px * var(--k)); background: linear-gradient(160deg, #36333F, #1F1D27 55%, #2A2733);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), inset 0 1px 1px rgba(255, 255, 255, .12), 0 0 0 .5px rgba(30, 26, 54, .5),
    0 24px 34px -18px rgba(30, 26, 54, .5), 0 6px 12px -6px rgba(30, 26, 54, .3);
  pointer-events: none;
}
/* the camera, on the long top edge */
.eco-tab::before {
  content: ""; position: absolute; left: 50%; top: calc(3px * var(--k)); width: calc(3px * var(--k)); height: calc(3px * var(--k));
  translate: -50% 0; border-radius: 50%; background: #4D4960; box-shadow: 0 0 0 .5px #15131C;
}
.eco-tab-scr { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: calc(12px * var(--k)); background: #FBF6EC; }
.eco-tab-head {
  display: flex; flex: none; align-items: center; gap: calc(6px * var(--k)); height: calc(27px * var(--k)); padding: 0 calc(10px * var(--k));
  background: #fff; box-shadow: 0 1px 0 #EEE5D4; font: 800 calc(12.5px * var(--k))/1 var(--f-body); letter-spacing: -.01em; color: var(--ink); white-space: nowrap;
}
.eco-tab-head img { width: calc(17px * var(--k)); height: calc(17px * var(--k)); border-radius: calc(5px * var(--k)); flex: none; }
.eco-tab-strip {
  position: relative; flex: 1; margin: calc(9px * var(--k)) calc(8px * var(--k)); border-radius: calc(10px * var(--k));
  background: #fff; box-shadow: inset 0 0 0 1.5px #A9CBEE, 0 1px 3px rgba(30, 26, 54, .07);
}
/* one answer: the tiles of one turn, all four in the same strip (only the turn's own tiles show) */
.eco-a { position: absolute; inset: 0; display: flex; align-items: center; gap: calc(4px * var(--k)); padding: 0 calc(6px * var(--k)); }
/* picture tiles, as in the app: white, a coloured edge, the picture above the word */
.eco-a .t {
  flex: none; flex-direction: column; gap: calc(3px * var(--k)); min-width: calc(42px * var(--k)); min-height: 0; padding: calc(5px * var(--k)) calc(6px * var(--k)) calc(6px * var(--k));
  border-radius: calc(8px * var(--k)); background: #fff; box-shadow: inset 0 0 0 calc(2px * var(--k)) var(--e), 0 1px 2px rgba(30, 26, 54, .08);
  font-size: calc(13px * var(--k)); line-height: 1.1; white-space: nowrap; text-align: center;
}
.eco-a .t .pic { font-size: calc(26px * var(--k)); line-height: 1; }
/* the taps: each tile comes on in turn; they go together at the end of the turn */
.eco-a .t { opacity: 0; scale: .82; transition: opacity .25s var(--ease), scale .35s var(--spring); }
.eco-a.is-on .t { opacity: 1; scale: 1; transition-delay: .35s; }
.eco-a.is-on .t:nth-child(2) { transition-delay: .85s; }
.eco-a.is-on .t:nth-child(3) { transition-delay: 1.35s; }
/* its place: right of Leo, clear of his app badge, in the middle of the band between the big scenes */
.eco-tab { left: calc(50% + var(--leo) * .56 + 14px); top: 50%; translate: 0 -50%; }

/* a wide picture (PLAN-17: now every picture 480px or wider: the two-column page at 1024px to 1440px, about 550px at 1440px, and the
   tablet width): a taller picture so a big scene keeps clear of Leo, Leo a little higher, a smaller Leo and label, smaller tiles */
@container (min-width: 480px) {
  .eco { --leo: 19cqw; --lu: 2.5cqw; height: 112cqw; } /* PLAN-18: taller (tablets; the two-column page sets its own height below) */
  .eco-leo { top: calc(50% - var(--lu)); }
  .eco-name { font-size: 11px; padding: 3px 8px 4px; }
  .eco-name b { font-size: 13px; }
  .eco-scene.is-active .eco-name { font-size: 12.5px; padding: 4px 11px 5px; }
  .eco-scene.is-active .eco-name b { font-size: 15.5px; }
  .eco-name-leo { translate: -50% 10px; font-size: 12.5px; padding: 4px 11px 5px; }
  .eco-name-leo b { font-size: 15.5px; }
  .eco-name-leo .eco-name-sub { display: none; }
}
/* the tablet at other picture widths: a little smaller on the narrower two-column picture (1024px screens), larger on the wide
   one-column picture (tablets) */
@container (min-width: 480px) and (max-width: 540px) { .eco-tab { --k: .92; } }
@container (min-width: 640px) { .eco-tab { --k: 1.25; } }
/* narrow: the small scenes at the four corners, Leo between them; a big scene takes its corner; its question shows on it, Leo's
   answer on the tablet under or over Leo */
@container (max-width: 479px) {
  .eco { --swf: 31; --gwf: 58; --rxf: 3; --ryf: 2; --leo: 24cqw; height: 185cqw; } /* PLAN-17: the big scene is larger, so its speech bubble (11px text) leaves the faces clear; PLAN-19: taller (160cqw before), so the tablet fits under or over Leo */
  .eco-scene { gap: 5px; }
  .eco-pic { border-radius: 12px; }
  .eco-scene.is-active .eco-pic { border-radius: 14px; }
  .eco-name { padding: 3px 8px 4px; }
  .eco-name b { font-size: 13px; }
  .eco-name .eco-name-sub, .eco-name-sub { display: none; }
  .eco-scene.is-active .eco-name { padding: 4px 10px 5px; font-size: 12.5px; }
  .eco-scene.is-active .eco-name b { font-size: 15.5px; }
  .eco-scene.is-active .eco-name .eco-name-sub { display: inline; }
  .eco-leo { top: calc(50% - 10px); }
  .eco-leo-img { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--violet), 0 0 0 13px rgba(122, 101, 236, .12), 0 14px 24px -12px rgba(30, 26, 54, .38); }
  .eco-leo-app { right: -8%; top: -2%; width: 30%; }
  .eco-name-leo { translate: -50% 10px; padding: 4px 10px 5px; font-size: 12.5px; }
  .eco-name-leo b { font-size: 15.5px; }
  /* the tablet: under Leo's name when the question came from above, over Leo when it came from below; centred */
  /* the tablet (PLAN-19): under Leo's name or over Leo, the same size in every turn; it shows with the answer */
  .eco-tab { --k: .86; left: 50%; translate: -50% 0; opacity: 0; transition: opacity .4s var(--ease); }
  .eco-tab:has(.eco-a.is-on) { opacity: 1; }
  .eco[data-active="parent"] .eco-tab, .eco[data-active="teacher"] .eco-tab { top: calc(50% + var(--leo) / 2 + 33px); }
  .eco[data-active="slp"] .eco-tab, .eco[data-active="friend"] .eco-tab { top: auto; bottom: calc(50% + 10px + var(--leo) / 2 + 19px); }
}
@media (prefers-reduced-motion: reduce) { .eco-scene, .eco-name, .eco-name b, .eco-pic, .eco-say, .eco-tab, .eco-a .t { transition: none; } }
/* PLAN-18: the two-column page. The picture takes the height the pause button used: it is as tall as the screen allows (up to
   116% of its width), so the scenes sit farther from Leo and from each other. On a short screen (1280x720, 1024x768) the scenes
   are a little smaller and Leo a little higher, so a big scene below Leo keeps clear of his label. */
@media (min-width: 901px) {
  .hero-va .eco { height: clamp(104cqw, 100vh - 132px, 116cqw); }
}
@media (min-width: 901px) and (max-height: 820px) {
  .hero-va .eco { --swf: 28.5; --gwf: 43; --lu: 4cqw; }
}


/* scrolled away: every loop in the hero stops */
.motion-held *, .motion-held *::before, .motion-held *::after { animation-play-state: paused !important; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes verbi-sit { 0%,100% { transform: rotate(0); } 8% { transform: rotate(-4deg); } 14% { transform: rotate(3deg); } 20% { transform: rotate(0); } }

/* ---------- trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px 36px; flex-wrap: wrap; }
.trust p { margin: 0; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.trust-logos { display: flex; gap: 14px 34px; flex-wrap: wrap; align-items: center; }
.trust-logos a { text-decoration: none; font: 800 20px/1 var(--f-display); letter-spacing: -.02em; color: var(--ink-2); opacity: .75; transition: opacity var(--t-fast) var(--ease); }
.trust-logos a:hover { opacity: 1; }
/* homepage: three columns with a thin line between them (Partners · Ask for MaTalk AI at · Works on),
   each label above its logos on one baseline; every logo the same grey and about the same height */
.trust-home { padding: 20px 0 22px; }
.trust-home .trust-inner { display: grid; grid-template-columns: auto auto auto; justify-content: space-between; align-items: start; gap: 0; }
.trust-home .trust-group { display: grid; gap: 12px; align-content: start; padding: 0 32px; }
.trust-home .trust-group:first-child { padding-left: 0; }
.trust-home .trust-group:last-child { padding-right: 0; }
.trust-home .trust-group + .trust-group { border-left: 1px solid var(--line); }
.trust-home p { font-size: 13px; line-height: 16px; white-space: nowrap; }
.trust-home .trust-logos { flex-wrap: nowrap; gap: 28px; height: 48px; }
.trust-home .trust-logos .trust-logo { height: 30px; opacity: 1; }
.trust-home .trust-logos .trust-logo img { filter: grayscale(1) brightness(.35); opacity: .78; }
.trust-home .trust-logos .trust-logo img[alt="Cornell Tech"] { height: 32px; }
.trust-home .trust-logos .trust-logo img[alt="AbleNet"] { height: 34px; margin-top: 4px; filter: grayscale(1) brightness(.6) contrast(2.5); }
.trust-home .trust-logos .trust-logo img[alt="RMSpeech"] { height: 38px; }
.trust-home .trust-logos .trust-logo img[alt="Numotion"] { height: 21px; }
.trust-home .trust-logos .trust-word { font: 800 23px/1 var(--f-display); letter-spacing: -.03em; color: #383838; opacity: .78; }
.trust-home .trust-logo:hover img, .trust-home .trust-logos .trust-word:hover { opacity: 1; }
.trust-home .devices { flex-wrap: nowrap; gap: 18px; }
.trust-home .devices li { gap: 2px; }
.trust-home .devices svg { width: 44px; height: 36px; }
.trust-home .devices span { font-size: 12.5px; line-height: 12px; }
/* each group centred in its own equal column; a logo grows a little (and shows its own colours) when pointed at */
.trust-home .trust-inner { grid-template-columns: repeat(3, minmax(max-content, 1fr)); }
.trust-home .trust-group, .trust-home .trust-group:first-child, .trust-home .trust-group:last-child { justify-items: center; padding-left: 20px; padding-right: 20px; }
.trust-home .trust-logos, .trust-home .devices { justify-content: center; }
.trust-home .trust-logo, .trust-home .devices li { transition: transform .35s var(--spring); }
.trust-home .trust-logo:hover, .trust-home .trust-logo:focus-visible, .trust-home .devices li:hover { transform: translateY(-3px) scale(1.14); }
.trust-home .trust-logos .trust-logo img { transition: filter var(--t-med) var(--ease), opacity var(--t-med) var(--ease); }
.trust-home .trust-logos .trust-logo:hover img, .trust-home .trust-logos .trust-logo:focus-visible img { filter: none; opacity: 1; }
.trust-home .trust-logos .trust-word { transition: transform .35s var(--spring), color var(--t-med) var(--ease), opacity var(--t-med) var(--ease); }
.trust-home .trust-logos .trust-word:hover, .trust-home .trust-logos .trust-word:focus-visible { color: var(--ink); opacity: 1; }
@media (max-width: 1120px) {
  .trust-home .trust-inner { grid-template-columns: auto auto; justify-content: center; }
  .trust-home .trust-group:nth-child(2) { padding-right: 0; }
  .trust-home .trust-group.trust-devices { grid-column: 1 / -1; justify-items: center; padding: 16px 0 0; margin-top: 16px; border-left: 0; border-top: 1px solid var(--line); }
  .trust-home .trust-devices p { justify-self: center; }
}
@media (max-width: 620px) {
  .trust-home .trust-inner { grid-template-columns: 1fr; }
  .trust-home .trust-group, .trust-home .trust-group + .trust-group { justify-items: center; padding: 14px 0 0; margin-top: 14px; border-left: 0; border-top: 1px solid var(--line); }
  .trust-home .trust-group:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
  .trust-home .trust-logos { gap: 22px; height: 40px; }
  .trust-home .devices { gap: 12px; }
}
.trust-logos .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .t { font-size: 17px; min-height: 52px; padding: 8px 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }



/* timing viz in problem card */



/* ---------- scroll scenes ("conversations happen everywhere") ---------- */
.scenes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); }
.scene-steps { padding: 10vh 0 30vh; }
.scene-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity var(--t-slow) var(--ease); }
.scene-step.is-active { opacity: 1; }
.scene-step h3 { font: 800 clamp(28px, 3vw, 40px)/1.05 var(--f-display); letter-spacing: -.03em; margin: 0 0 14px; }
.scene-step p { margin: 0 0 18px; color: var(--ink-2); font-size: 18px; max-width: 30em; }
.scene-step .with { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.scene-step .with .dot { width: 10px; height: 10px; border-radius: 50%; }
.scene-stage { position: sticky; top: 12vh; height: 76vh; display: grid; place-items: center; }
.scene-backdrop { position: absolute; inset: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--cream-2); transition: background var(--t-slow) var(--ease); }
.scene-backdrop[data-scene="0"] { background: #FFE9CF; }
.scene-backdrop[data-scene="1"] { background: #E7E1FC; }
.scene-backdrop[data-scene="2"] { background: #DFF1D8; }
.scene-backdrop[data-scene="3"] { background: #FCE0E8; }
.scene-backdrop .big-word {
  position: absolute; left: 6%; bottom: -2%; font: 800 clamp(70px, 9vw, 150px)/.8 var(--f-display); letter-spacing: -.05em;
  color: rgba(30,26,54,.06); white-space: nowrap;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.scene-backdrop .big-word.is-changing { opacity: 0; transform: translateY(16px); }
.scene-screen { position: absolute; inset: 0; opacity: 0; transform: scale(.98); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); pointer-events: none; }
.scene-screen.is-active { opacity: 1; transform: none; pointer-events: auto; }
.scene-screen.is-active .ui-card.pick { animation: tile-tap var(--t-slow) var(--spring) .25s both; }
.scene-screen.is-active .ui-strip .t { animation: pop var(--t-slow) var(--spring) .45s both; }
.scene-screen.is-active .ui-strip .t:nth-child(2) { animation-delay: .6s; }
.scene-screen.is-active .ui-strip .t:nth-child(3) { animation-delay: .75s; }
@keyframes tile-tap {
  0% { transform: scale(1); }
  35% { transform: scale(.92) translateY(2px); }
  70% { transform: scale(1.04) translateY(-1px); }
  100% { transform: scale(1); }
}
/* highlight ring over the part of a real screenshot each step talks about (percent of the image) */
.scene-mscreen { display: none; }
/* phones and small tablets: a swipe carousel, the time dots are the pager */
@media (max-width: 900px) {
  .scenes { grid-template-columns: 1fr; gap: 0; }
  .scene-steps {
    display: flex; gap: 14px; padding: 4px 0 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .scene-steps::-webkit-scrollbar { display: none; }
  .scene-step {
    flex: 0 0 min(86%, 520px); min-height: 0; opacity: 1; justify-content: flex-start; scroll-snap-align: center;
    padding: 16px 16px 20px; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
  }
  .scene-step:first-child { scroll-snap-align: start; }
  .scene-step:last-child { scroll-snap-align: end; }
  .scene-step h3 { font-size: 26px; }
  .scene-step p { font-size: 16px; }
  .scene-mscreen { display: block; position: relative; margin-bottom: 16px; }
  .scene-mscreen .ipad { height: auto !important; }
  .scene-mscreen .ui { font-size: 12px; padding: 10px; gap: 8px; }
  .scene-mscreen .ui-cards { gap: 6px; }
  .scene-mscreen .ui-card { padding: 6px 4px; }
  .scene-mscreen .ui-card .em { font-size: 22px; }
  .scene-mscreen .ipad { padding: 8px; border-radius: 20px; }
  .scene-mscreen .ipad > .shot { border-radius: 13px; }
  .scene-stage { position: static; height: auto; display: block; }
  .scene-backdrop { display: none; }
}

/* ---------- device frames ---------- */
.ipad {
  position: relative; background: #1B1830; border-radius: 26px; padding: 12px;
  box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(255,255,255,.08);
}
.ipad-screen { color: var(--ink); background: #FAFAF7; border-radius: 16px; overflow: hidden; height: 100%; position: relative; }
.browser { color: var(--ink); background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--cream-2); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.browser-bar span { margin-left: 8px; }

/* app UI bits used inside device frames */
.ui { font-size: 13px; padding: 14px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.ui-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 12px; color: var(--muted); }
.summary .ui-top { font-size: 14px; }
.ui-q { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: inset 0 0 0 1px #ECE6DA; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.ui-q .mic { width: 26px; height: 26px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; flex: none; }
.ui-q .mic svg { width: 14px; height: 14px; }
.ui-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; }
.ui-card {
  background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 2px #EADFCB, 0 2px 0 #EADFCB;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: 12px; text-align: center; padding: 6px;
  position: relative;
}
.ui-card .em { font-size: 28px; line-height: 1; }
.ui-card.pick { box-shadow: inset 0 0 0 3px var(--violet), 0 2px 0 var(--violet); background: var(--violet-soft); }
.ui-card.right { box-shadow: inset 0 0 0 3px var(--c-green), 0 2px 0 var(--c-green); background: #E9F7EE; }
.ui-strip { display: flex; gap: 5px; align-items: center; background: #fff; border-radius: 12px; padding: 7px; box-shadow: inset 0 0 0 1px #ECE6DA; min-height: 46px; }
.ui-strip .t { font-size: 12px; min-height: 30px; padding: 3px 9px; }
.ui-strip .spk { margin-left: auto; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.ui-strip .spk svg { width: 16px; height: 16px; }

/* ---------- real screenshots in device frames ---------- */
.shot { display: block; width: 100%; height: auto; background: var(--cream-2); }
.shot-ipad { aspect-ratio: 2420 / 1668; }   /* MaTalk AI, iPad landscape */
.shot-tab { aspect-ratio: 1180 / 820; }     /* MaTalk Class student, iPad-size browser */
.shot-qa { aspect-ratio: 2000 / 1391; }     /* MaTalk AI question and answers (tag) */
.shot-wide { aspect-ratio: 1907 / 887; }    /* MaTalk Class: book page beside the question */
.shot-web { aspect-ratio: 1440 / 900; }     /* desktop browser */
.ipad > .shot { border-radius: 16px; }
.ipad.has-shot, .browser.has-shot { width: 100%; }
.browser .browser-bar + .shot { border-radius: 0; }
.real-shot { margin: 0; }
.real-shot figcaption, .gallery figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.real-tag {
  display: inline-block; margin-right: 6px; padding: 2px 9px; border-radius: 999px;
  background: var(--violet-soft); color: var(--violet-ink); font-size: 14px; font-weight: 800; letter-spacing: .02em;
}
.band-ink .real-shot figcaption { color: #C4BDE0; }

.scene-screen.has-shot { display: grid; place-items: center; }

/* ---------- screenshot gallery + lightbox ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.gallery figure { margin: 0; }
.gallery-open {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--paper);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  transition: transform var(--t-med) var(--spring), box-shadow var(--t-fast) var(--ease);
}
.gallery-open:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.gallery-open .shot { border-radius: 0; }
.lightbox {
  width: min(96vw, 1280px); max-width: none; max-height: 94vh; border: 0; padding: clamp(12px, 2vw, 20px);
  border-radius: var(--r-xl); background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 90px -20px rgba(30, 26, 54, .5);
}
.lightbox[open] { animation: lightbox-in var(--t-med) var(--ease); }
.lightbox::backdrop { background: rgba(30, 26, 54, .75); }
.lightbox figure { margin: 0; display: grid; gap: 12px; }
.lightbox img { display: block; width: 100%; height: auto; max-height: calc(94vh - 120px); object-fit: contain; border-radius: var(--r-sm); background: var(--cream-2); }
.lightbox figcaption { font-size: 15px; color: var(--ink-2); padding-right: 52px; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 26px; line-height: 1; display: grid; place-items: center;
  box-shadow: var(--shadow-1); transition: transform var(--t-fast) var(--spring);
}
.lightbox-close:hover { transform: scale(1.06); }
.lightbox-close:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
@keyframes lightbox-in { from { opacity: 0; transform: scale(.97); } }

/* ---------- product trio ---------- */


/* flow line connecting products */
.flow { margin-top: 28px; display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; justify-items: start; }
}

/* ---------- interactive Q&A demo ---------- */
.demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.demo-prompts { display: flex; flex-direction: column; gap: 10px; margin: 26px 0; }
.demo-prompt {
  text-align: left; border: 0; cursor: pointer; padding: 16px 18px; border-radius: 16px;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: #fff;
  font-weight: 600; font-size: 17px; display: flex; align-items: center; gap: 12px;
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--spring);
}
.demo-prompt:hover { background: rgba(255,255,255,.1); transform: translateX(4px); }
.demo-prompt[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: none; }
.demo-prompt .q { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); flex: none; font-size: 14px; }
.demo-prompt[aria-pressed="true"] .q { background: var(--violet); color: #fff; }
.demo-device {
  aspect-ratio: 4/3;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 36px 80px -24px rgba(0,0,0,.6), 0 0 90px -20px rgba(122,101,236,.38);
}
.demo-device .ui { padding: 18px; gap: 12px; font-size: 14px; }
.demo-listen { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: 13px; min-height: 20px; }
.wave { display: inline-flex; gap: 3px; align-items: center; height: 16px; }
.wave i { width: 3px; height: 100%; background: var(--violet); border-radius: 2px; animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.8s; } .wave i:nth-child(3) { animation-delay: -.6s; } .wave i:nth-child(4) { animation-delay: -.4s; } .wave i:nth-child(5) { animation-delay: -.2s; }
@keyframes wave { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.demo-cards .ui-card { cursor: pointer; border: 0; font: inherit; font-weight: 700; transition: transform var(--t-fast) var(--spring), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease); opacity: 0; transform: translateY(10px) scale(.92); }
.demo-cards .ui-card.in { opacity: 1; transform: none; }
.demo-cards .ui-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--violet), 0 4px 0 var(--violet); }
.demo-cards .ui-card:active { transform: translateY(2px) scale(.98); box-shadow: inset 0 0 0 2px var(--violet), 0 0 0 var(--violet); }
.demo-cards .ui-card .em { font-size: 34px; }
.demo-said { min-height: 46px; }
.demo-said .t { animation: pop var(--t-med) var(--spring); }
.demo-said .spk { position: relative; border: 0; padding: 0; cursor: pointer; transition: transform var(--t-fast) var(--spring), background var(--t-fast) var(--ease); }
.demo-said .spk:hover { transform: scale(1.08); background: var(--violet); }
.demo-said .spk.is-speaking { background: var(--violet); animation: spk-bump .45s var(--spring) infinite alternate; }
.demo-said .spk.is-speaking::before, .demo-said .spk.is-speaking::after {
  content: ""; position: absolute; inset: -3px; border-radius: 12px; border: 2px solid var(--violet);
  animation: spk-ring 1s var(--ease) infinite; pointer-events: none;
}
.demo-said .spk.is-speaking::after { animation-delay: .45s; }
@keyframes spk-bump { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes spk-ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.65); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.demo-note { font-size: 14px; color: #B9B2D6; margin: 0; }
@media (max-width: 960px) { .demo { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .demo-cards .ui-card .em { font-size: 24px; } .demo-device { aspect-ratio: auto; } .demo-device .ui-cards { min-height: 230px; } }

/* ---------- role split ---------- */



.quote-card { background: var(--paper); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); box-shadow: inset 0 0 0 1px var(--line); }
.quote-card blockquote { margin: 0 0 22px; font: 500 clamp(22px, 2.4vw, 30px)/1.3 var(--f-display); letter-spacing: -.02em; }

/* ---------- final CTA ---------- */
.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--violet); color: #fff; padding: clamp(40px, 6vw, 84px); display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: center; }
.cta-band .h2 { color: #fff; }
.cta-band p { color: #E7E2FF; font-size: 19px; margin: 18px 0 30px; max-width: 32em; }
.cta-band .verbi-big { width: min(100%, 240px); justify-self: center; animation: verbi-sit 5s ease-in-out infinite; transform-origin: 50% 90%; filter: drop-shadow(0 20px 30px rgba(30,26,54,.3)); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band .verbi-big { width: 150px; justify-self: start; } }
@media (max-width: 480px) { .cta-band { padding: 36px 24px; } .cta-band .btn { white-space: normal; text-align: center; } }

/* ---------- product pages ---------- */
.p-hero { padding: clamp(36px, 5vw, 70px) 0 clamp(60px, 7vw, 100px); }
.p-hero h1 { margin: 16px 0 22px; }
.p-hero .lede { margin-bottom: 30px; }
.p-hero .fine { font-size: 14px; color: var(--muted); margin-top: 16px; }



.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(80px, 9vw, 130px); }
.split > *, .hero-grid > *{ min-width: 0; }
.split h3, .split h2:not([class]) { font: 800 clamp(28px, 3vw, 40px)/1.05 var(--f-display); letter-spacing: -.03em; margin: 10px 0 16px; }
.split p { color: var(--ink-2); margin: 0 0 16px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 7px;
  background: var(--grn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%232E7D34' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--grn-e);
}

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 26px; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: transform var(--t-med) var(--spring), box-shadow var(--t-fast) var(--ease); }
/* every card that is a link: same lift, same shadow, same press */
a.feat, .gallery-open{ transition: transform var(--t-med) var(--spring), box-shadow var(--t-med) var(--ease), background var(--t-fast) var(--ease); }
a.feat:hover, .gallery-open:hover{ transform: translateY(-4px); box-shadow: var(--ring-hover, inset 0 0 0 1px var(--line-2)), var(--shadow-2); }
a.feat:active, .gallery-open:active{ transform: translateY(-1px) scale(.985); transition-duration: var(--t-fast); }
.band-ink a.feat { --ring-hover: inset 0 0 0 1px rgba(255,255,255,.25); }
.feat h3, .feat h4 { font: 700 20px/1.2 var(--f-display); letter-spacing: -.015em; margin: 14px 0 8px; }
.feat p { margin: 0; color: var(--ink-2); font-size: 16px; }
.feat .t { font-size: 14px; min-height: 30px; padding: 4px 10px; }
.band-ink .feat { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.band-ink .feat p { color: #C4BDE0; }
.feat-grid.four { grid-template-columns: repeat(4, 1fr); }
.feat-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .feat-grid, .feat-grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feat-grid, .feat-grid.four, .feat-grid.two { grid-template-columns: 1fr; } }

/* keyboard polish demo */
.polish { display: grid; gap: 10px; }
.polish-line { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--line); font-size: 17px; font-weight: 600; min-height: 56px; }
.polish-line.before { color: var(--muted); }
.polish-line.after { box-shadow: inset 0 0 0 2px var(--violet); }
.polish-btn { justify-self: start; display: inline-flex; align-items: center; gap: 8px; background: var(--violet-soft); color: var(--violet-ink); font-weight: 800; padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.polish-btn svg { width: 16px; height: 16px; }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1.1em; background: var(--violet); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* setup agent */
.agent { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); padding: 20px; display: grid; gap: 12px; }
.agent-msg { padding: 12px 14px; border-radius: 16px; font-size: 15px; max-width: 88%; }
.agent-msg.me { background: var(--ink); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.agent-msg.ai { background: var(--violet-soft); color: var(--violet-ink); border-bottom-left-radius: 4px; }
.agent-build { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (max-width: 480px) { .agent-build { grid-template-columns: repeat(2, 1fr); } }
.agent-build .t { font-size: 14px; min-height: 44px; white-space: normal; text-align: center; opacity: 0; transform: scale(.7); transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--spring); }
.agent-build .t.in { opacity: 1; transform: none; }
.agent-progress { height: 6px; border-radius: 3px; background: var(--cream-2); overflow: hidden; }
.agent-progress i { display: block; height: 100%; width: 0; background: var(--violet); border-radius: 3px; transition: width var(--t-med) var(--ease); }

/* IEP chart */
.iep { background: #fff; border-radius: 18px; box-shadow: var(--shadow-2), inset 0 0 0 1px #D6E0EB; padding: 22px; color: #1A293D; font-family: -apple-system, "SF Pro Text", var(--f-body); }
.iep-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.iep-head strong { font-size: 17px; }
.iep-head small { display: block; color: #5E738F; font-size: 14px; margin-top: 2px; }
.iep-chip { display: inline-flex; align-items: center; gap: 6px; background: #E5F4EA; color: var(--c-green); font-weight: 700; font-size: 14px; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.iep svg.chart { width: 100%; height: auto; overflow: visible; }
.iep .area { fill: url(#iepFill); opacity: 0; transition: opacity var(--t-slow) var(--ease) .8s; }
.iep .line { fill: none; stroke: var(--c-blue); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.iep .pt { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform var(--t-med) var(--spring); }
.iep .val { font: 700 11px -apple-system, var(--f-body); fill: #1A293D; opacity: 0; transition: opacity var(--t-med) var(--ease); }
.iep .thr { stroke: var(--c-amber); stroke-width: 2; stroke-dasharray: 6 5; }
.iep .gridl { stroke: #E8EEF4; }
.iep .axis { font: 500 11px -apple-system, var(--f-body); fill: #5E738F; }
.is-visible .iep .line, .iep.is-visible .line { animation: draw 2.4s var(--ease) .2s forwards; }
.is-visible .iep .area, .iep.is-visible .area { opacity: 1; }
.is-visible .iep .pt, .iep.is-visible .pt { transform: scale(1); }
.is-visible .iep .val, .iep.is-visible .val { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.iep-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: #5E738F; margin-top: 6px; }
.iep-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.iep-sum { font-size: 14px; color: #5E738F; margin: 10px 0 0; }
.sessions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.sess { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; background: #8496AD; transform: scale(0); transition: transform var(--t-med) var(--spring); }
.sess.ok { background: var(--c-green); }
.is-visible .sess, .iep.is-visible .sess { transform: scale(1); }
.sess svg { width: 14px; height: 14px; }

/* goal-writing card */
.goal-card { background: #fff; border-radius: 18px; padding: 20px; box-shadow: var(--shadow-1), inset 0 0 0 1px #D6E0EB; font-family: -apple-system, var(--f-body); color: #1A293D; }
.goal-card .ai { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 700; color: var(--c-teal); background: #E0F4F1; padding: 5px 9px; border-radius: 999px; }
.goal-card .ai svg { width: 14px; height: 14px; }
.goal-text { margin: 12px 0; padding: 14px; background: #F2F7FA; border-radius: 12px; font-size: 15px; line-height: 1.45; }
.plan-rows { display: grid; gap: 8px; }
.plan-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px #D6E0EB; font-size: 14px; }
.plan-row b { color: var(--c-blue); white-space: nowrap; }

/* class mock */
.cls { padding: 16px; display: grid; gap: 12px; font-size: 13px; }
.stu { padding: 12px; display: grid; gap: 8px; height: 100%; grid-template-rows: auto 1fr auto; }


/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 26px; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.step::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 16px var(--f-display); margin-bottom: 16px; }
.step h3, .step h4 { font: 700 20px/1.2 var(--f-display); margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* qtype */



/* summary mock */
.summary { background: var(--paper); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line); display: grid; gap: 12px; }

/* mini session dots (IEP mock on the homepage) */

/* pairing */
.pair { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }
@media (max-width: 520px) { .pair-arrow { display: none; } }
.pair-qr { width: 120px; height: 120px; background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.pair-qr::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--c-teal); top: 0; animation: scan 2.4s ease-in-out infinite; box-shadow: 0 0 12px var(--c-teal); }
@keyframes scan { 0%,100% { top: 8%; } 50% { top: 88%; } }
.pair-arrow { width: 70px; height: 2px; background: repeating-linear-gradient(90deg, var(--c-teal) 0 6px, transparent 6px 12px); animation: dashx 1s linear infinite; background-size: 24px 2px; }
@keyframes dashx { to { background-position: 24px 0; } }


/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--paper); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); interpolate-size: allow-keywords; overflow: hidden; }
.faq details::details-content { block-size: 0; opacity: 0; transition: block-size var(--t-med) var(--ease), opacity var(--t-med) var(--ease), content-visibility var(--t-med) var(--ease) allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font: 700 18px/1.3 var(--f-display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--ink), var(--ink)) center/14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 14px no-repeat; transition: transform var(--t-med) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); }

/* ---------- role pages ---------- */

.day { display: grid; gap: 10px; }

.stat { padding: 24px; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.stat b { display: block; font: 800 clamp(36px, 4vw, 52px)/1 var(--f-display); letter-spacing: -.04em; color: var(--violet); }
.stat p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }


.privacy-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; list-style: none; padding: 0; margin: 0; }
.privacy-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }
.privacy-list svg { width: 20px; height: 20px; flex: none; color: #9EE6B4; margin-top: 2px; }
@media (max-width: 700px) { .privacy-list { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #D8D2F0; padding: 80px 0 0; margin-top: 0; position: relative; overflow: hidden; }
.site-footer .logo-word { color: #fff; }
.site-footer .logo-word::after { background: var(--orange); }
.footer-top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.footer-line { margin: 18px 0 8px; max-width: 22em; color: #B9B2D6; }
.footer-mail a { color: #fff; font-weight: 700; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h3 { font: 800 14px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 6px 0 16px; }
.footer-cols a { display: block; padding: 6px 0; color: #B9B2D6; text-decoration: none; font-size: 15px; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 32px 0; margin-top: 56px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; color: #8E87AE; }
.footer-bottom p { margin: 0; }
.socials { display: flex; gap: 18px; }
.socials a { color: #B9B2D6; text-decoration: none; }
.socials a:hover { color: #fff; }
.footer-tiles { display: flex; gap: 10px; justify-content: center; padding: 0 16px 0; transform: translateY(30%); flex-wrap: nowrap; opacity: .95; }
.footer-tiles .t {
  font: 800 clamp(22px, 5vw, 64px)/1 var(--f-display); min-height: 0; padding: .35em .5em; border-radius: .3em; letter-spacing: -.03em;
  transition: transform var(--t-med) var(--spring), box-shadow var(--t-fast) var(--ease);
}
.js .footer-tiles .t { transform: translateY(70%); opacity: 0; }
.js .footer-tiles.is-visible .t { transform: translateY(0); opacity: 1; }
.js .footer-tiles.is-visible .t:nth-child(2) { transition-delay: 55ms; }
.js .footer-tiles.is-visible .t:nth-child(3) { transition-delay: 110ms; }
.js .footer-tiles.is-visible .t:nth-child(4) { transition-delay: 165ms; }
.js .footer-tiles.is-visible .t:nth-child(5) { transition-delay: 220ms; }
.js .footer-tiles.is-visible .t:nth-child(6) { transition-delay: 275ms; }
.footer-tiles.is-visible .t:hover { transform: translateY(-16px) rotate(-2deg); transition-delay: 0s; cursor: default; }
.footer-tiles.is-visible .t:nth-child(even):hover { transform: translateY(-16px) rotate(2deg); }
/* phones: the six words fit the width instead of running off both edges */
@media (max-width: 600px) {
  .footer-tiles { gap: clamp(5px, 1.6vw, 10px); padding: 0 10px; }
  .footer-tiles .t { font-size: clamp(14px, 4.3vw, 26px); }
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: 1fr 1fr; } .footer-cols > div:last-child { grid-column: 1 / -1; } }

/* ---------- video showcase ---------- */


/* ---------- company subpages (leadership & news) ---------- */
.leader-list { display: grid; gap: 28px; }
.leader-card {
  display: grid; grid-template-columns: 320px 1fr; gap: clamp(24px, 4vw, 52px); align-items: center;
  background: var(--cream); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 36px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.leader-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; background: var(--paper); box-shadow: var(--shadow-1); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-sub { font: 700 18px/1.35 var(--f-display); color: var(--violet-deep); margin: 0 0 14px; }
.leader-body p { color: var(--ink-2); margin: 0 0 14px; }
.leader-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.leader-stats .t { font-size: 14px; min-height: 32px; padding: 5px 11px; }
@media (max-width: 820px) { .leader-card { grid-template-columns: 1fr; } .leader-photo { max-width: 280px; } }

.news-card {
  background: var(--cream); border-radius: var(--r-xl); padding: clamp(24px, 3.5vw, 38px);
  box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px;
}
.news-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.news-card h2, .news-card h3 { font: 800 clamp(22px, 2.5vw, 30px)/1.12 var(--f-display); letter-spacing: -.025em; margin: 0; }
.news-card p { margin: 0; color: var(--ink-2); }
.news-highlight { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0; }
.news-highlight div { background: var(--paper); border-radius: 14px; padding: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.news-highlight b { display: block; font: 800 28px/1 var(--f-display); color: var(--violet); }
.news-highlight small { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.news-partner img { max-height: 38px; width: auto; }
@media (max-width: 640px) { .news-highlight { grid-template-columns: 1fr; } }

/* ---------- book-a-demo modal ---------- */
.demo-modal {
  width: min(94vw, 820px); max-height: 90vh; border: 0; border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 28px); background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 90px -20px rgba(30, 26, 54, .5);
}
.demo-modal::backdrop { background: rgba(30, 26, 54, .65); backdrop-filter: blur(6px); }
.demo-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; }
.demo-modal-close {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cream-2); color: var(--ink); font-size: 24px; line-height: 1;
  display: grid; place-items: center; transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--spring);
}
.demo-modal-close:hover { background: var(--ink); color: #fff; transform: scale(1.06); }
.demo-modal-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; min-height: 540px; }
.demo-modal-frame iframe { width: 100%; height: 560px; border: 0; display: block; }
.demo-modal-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 14px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-scale { opacity: 0; transform: scale(.94); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: var(--d, 0s); }
.js .reveal-scale.is-visible { opacity: 1; transform: none; }
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform var(--t-slow) var(--ease); transition-delay: min(calc(var(--i) * 25ms), .1s); }
.split-words.is-visible .w > span { transform: none; }

/* ---------- partner logos (trust strip) ---------- */
.trust-logos .trust-logo { display: inline-flex; align-items: center; height: 36px; }
.trust-logos .trust-logo img { height: 100%; width: auto; filter: grayscale(1) brightness(.35); opacity: .8; transition: opacity var(--t-fast) var(--ease); }
.trust-logos .trust-logo:hover img { opacity: 1; }
.trust-logos .trust-logo img[alt="AbleNet"] { height: 42px; filter: grayscale(1) brightness(.6) contrast(2.5); }

/* ---------- proof quote (src/data/proof.json via build.py) ---------- */
.proof { margin: 0; padding: 14px 16px; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); max-width: 36em; }
.proof blockquote { margin: 0; font: 500 16px/1.4 var(--f-display); letter-spacing: -.005em; color: var(--ink); }
.proof figcaption { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.proof figcaption strong { color: var(--ink); }
.proof-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }

/* ---------- founder (Verbi beside the quote) ---------- */


/* ---------- store buttons in a row ---------- */
.store-row { margin-bottom: 6px; }

/* ---------- SLP Portal beta form ---------- */
.beta { align-items: start; }
.beta-form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-xl); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.beta-form .field { display: grid; gap: 6px; }
.beta-form label { font-weight: 700; font-size: 15px; }
.beta-form input, .beta-form select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line-2);
  background: #fff; color: var(--ink); font: 500 16px/1.3 var(--f-body);
}
.beta-form input:focus-visible, .beta-form select:focus-visible { outline: 3px solid var(--violet); outline-offset: 1px; border-color: var(--ink); }
.beta-form .btn { justify-self: start; }
.beta-form .fine { margin: 0; font-size: 14px; }

/* ---------- legal & support pages (verbali-privacy, terms-of-use, data-deletion ...) ---------- */
.legal-page { padding-top: clamp(36px, 5vw, 70px); }
.legal { max-width: 820px; margin: 0 auto; padding: clamp(24px, 5vw, 56px); background: var(--paper); border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); overflow-wrap: anywhere; }
.legal h1 { font: 800 clamp(30px, 4vw, 46px)/1.08 var(--f-display); letter-spacing: -.03em; color: var(--ink); margin: 0 0 10px; overflow-wrap: normal; }
.legal h1 + p { color: var(--muted); font-weight: 600; margin-top: 0; }
.legal h1 + p + p { margin-top: -8px; }
.legal h2 { font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--f-display); letter-spacing: -.015em; color: var(--ink); margin: 40px 0 12px; }
.legal h3 { font: 700 19px/1.3 var(--f-display); color: var(--ink); margin: 26px 0 8px; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal li:has(> .lg-dot) { list-style: none; position: relative; }
.legal .lg-dot { position: absolute; left: -18px; top: .15em; font-size: .7em; color: var(--muted); }
.legal strong { color: var(--ink); }
.legal a { color: var(--violet-ink); text-decoration: underline; text-underline-offset: 2px; }
.legal .table-scroll { overflow-x: auto; margin: 6px 0 20px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--cream-2); color: var(--ink); font-weight: 700; }
.legal tr:last-child td { border-bottom: 0; }
.lg-steps { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.lg-step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; margin: 0 !important; }
.lg-step h3 { margin: 6px 0 4px; }
.lg-step p { margin: 0; }
.lg-step-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet-ink); font: 800 18px/1 var(--f-display); }

/* FAQ page */
.faq .faq-action { padding: 0 22px 20px; margin: -8px 0 0; }
.faq .store-row { padding: 0 22px 20px; margin: 0; }
.faq-more { max-width: 860px; margin: 36px auto 0; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: center; text-align: center; }
.faq-more p { margin: 0; color: var(--ink-2); font-weight: 600; }

/* parental gate (/forgotadminpassword) */
.gate-page { padding-top: clamp(36px, 5vw, 70px); }
.gate { max-width: 420px; margin: 0 auto; padding: clamp(24px, 5vw, 36px); text-align: center; background: var(--paper); border-radius: var(--r-xl); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.gate.is-wrong { animation: gate-shake .4s var(--ease); }
@keyframes gate-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.gate-prompt { font-size: 19px; margin: 14px 0 22px; color: var(--ink-2); }
.gate-prompt strong { color: var(--violet-ink); background: var(--violet-soft); padding: 2px 8px; border-radius: 8px; }
.gate-dots { display: flex; justify-content: center; gap: 14px; margin-bottom: 24px; }
.gate-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--line-2); transition: background-color var(--t-fast) var(--ease); }
.gate-dots i.on { background: var(--violet); }
.gate-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 280px; margin: 0 auto; }
.gate-keys button { aspect-ratio: 1; border-radius: var(--r); border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font: 700 26px/1 var(--f-display); cursor: pointer; transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.gate-keys button:hover { border-color: var(--violet); color: var(--violet-ink); }
.gate-keys button:active { transform: scale(.95); }
.gate-keys button:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.gate-keys .gate-zero { grid-column: 2; }
.gate-code { font: 800 clamp(48px, 12vw, 72px)/1 var(--f-display); letter-spacing: .12em; color: var(--ink); margin: 22px auto; padding: 14px 22px; display: inline-block; background: var(--cream-2); border-radius: var(--r); }
.gate-note { color: var(--ink-2); margin: 0 0 22px; }

/* 404 */
.nf { text-align: center; }
.nf .verbi-big { width: 180px; height: auto; margin: 0 auto 24px; animation: verbi-sit 5s ease-in-out infinite; transform-origin: 50% 90%; }
.nf .btn-row { justify-content: center; margin-top: 28px; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 30px; }

/* ==========================================================================
   Home, round 2: platforms, video card, problem pictures, team, day, founder,
   FAQ and final call to action
   ========================================================================== */

/* ---------- partners + platforms ---------- */
.trust-group { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.devices { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 22px; flex-wrap: wrap; }
.devices li { display: grid; justify-items: center; gap: 4px; }
.devices svg { width: 66px; height: 54px; overflow: visible; transition: transform var(--t-med) var(--spring); }
.devices li:hover svg { transform: translateY(-4px) rotate(-3deg); }
.devices span { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.dv-body { fill: #fff; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.dv-scr { fill: var(--cream); stroke: var(--ink); stroke-width: 1.2; }
.dv-notch, .dv-cam { fill: var(--ink); }
.dv-t { stroke-width: 1; }
.dv-t.y { fill: var(--yel); stroke: var(--yel-e); } .dv-t.g { fill: var(--grn); stroke: var(--grn-e); }
.dv-t.o { fill: var(--org); stroke: var(--org-e); } .dv-t.b { fill: var(--blu); stroke: var(--blu-e); }
.dv-t.p { fill: var(--pnk); stroke: var(--pnk-e); } .dv-t.v { fill: var(--pur); stroke: var(--pur-e); }
.devices.is-visible .dv-t { animation: dv-blink 4.8s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.devices li:nth-child(2) .dv-t { animation-delay: 1.2s; } .devices li:nth-child(3) .dv-t { animation-delay: 2.4s; } .devices li:nth-child(4) .dv-t { animation-delay: 3.6s; }
.devices .dv-t:nth-of-type(odd) { animation-delay: calc(var(--dd, 0s) + .15s); }
@keyframes dv-blink { 0%, 12%, 100% { transform: none; } 5% { transform: scale(.75); } }
@media (max-width: 760px) { .trust-inner { justify-content: center; } .trust-group { justify-content: center; } .devices { gap: 8px 14px; } .devices svg { width: 56px; height: 46px; } }

/* ---------- video card (founder video) ---------- */
.vcard {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden;
  background: #120F24; box-shadow: var(--shadow-2);
}
.vcard video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #120F24; }
.vcard-cover { position: absolute; inset: 0; z-index: 1; border: 0; padding: 0; cursor: pointer; text-align: left; border-radius: inherit; background: #1B1830; }
.vcard-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(18, 15, 36, .72)); border-radius: inherit; }
.vcard-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.vcard-play {
  --pw: clamp(60px, 6.5vw, 84px);
  position: absolute; inset: 0; margin: auto; z-index: 1; width: var(--pw); aspect-ratio: 1;
  border-radius: 50%; color: #fff; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 18%, #A694FF 0%, var(--violet) 46%, #5A45D3 100%); /* lit from the top-left, so the disc reads as raised */
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .45), inset 0 -6px 10px rgba(40, 24, 120, .35), 0 3px 6px rgba(18, 15, 36, .35), 0 20px 36px -10px rgba(18, 15, 36, .65); transition: transform var(--t-med) var(--spring);
}
.vcard-play svg { width: 44%; height: 44%; fill: currentColor; position: relative; z-index: 1; filter: drop-shadow(0 2px 2px rgba(40, 24, 120, .45)); }
.vcard-play::before, .vcard-play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid #fff; animation: play-ring 2.4s var(--ease) infinite; }
.vcard-play::after { animation-delay: 1.2s; }
@keyframes play-ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.vcard-meta { position: absolute; left: 22px; right: 16px; bottom: 18px; z-index: 1; display: grid; gap: 4px; color: #fff; }
.vcard-meta strong { font: 800 clamp(20px, 2.2vw, 28px)/1.05 var(--f-display); letter-spacing: -.02em; }
.vcard-meta span { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .88); }
@media (max-width: 600px) { .vcard-play { --pw: 52px; } .vcard-meta { left: 16px; bottom: 12px; gap: 2px; } .vcard-meta strong { font-size: 18px; } .vcard-meta span { font-size: 13px; } } /* a small video: the centred button stays clear of the name */
.vcard-cover:hover .vcard-play { transform: scale(1.08); }
.vcard-cover:hover .vcard-poster { transform: scale(1.03); }
.vcard-cover:focus-visible { outline: 3px solid var(--violet); outline-offset: -6px; }
.vcard.is-playing .vcard-cover { display: none; }

/* ---------- the problem: animated pictures ---------- */
.section-problem .section-head { max-width: 860px; }
.pz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 40px; } /* PLAN-17: more room between the columns */
.pz-card { display: grid; gap: 4px; align-content: start; }
.pz-card h3 { font: 800 clamp(22px, 2.2vw, 28px)/1.1 var(--f-display); letter-spacing: -.02em; margin: 18px 0 4px; }
.pz-card p { margin: 0; color: var(--ink-2); }
.pz { position: relative; height: 220px; border-radius: var(--r-lg); background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.pz .t { font-size: 14px; min-height: 32px; padding: 4px 10px; }
/* Each picture is one short story. PLAN-14: they no longer loop by themselves. The base styles are one still frame
   that tells the story (its end); .is-playing (set by site.js while a visitor points at or focuses the pair) plays it once. */

/* pair 1 (PLAN-16 B, PLAN-17): the moment itself, in drawings (assets/img/art/pz-ask, pz-play; 16:9, cover). Sam's question in the sky
   between the two, clear of Sam's cap, its tail toward Sam's mouth; the sentence strip on the grass at the bottom edge (never over a
   face). Problem: only pz-ask; Leo taps and the strip fills one tile at a time and stays unfinished (still frame: the question and
   "I want to…"). Answer: MaTalk AI offers two answers, "Yes!" is tapped and the drawing cross-fades to the two playing (still frame:
   playing, "Yes!" tapped). */
.pz-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.pz-img-a { z-index: 1; opacity: 0; } /* the first drawing lies over the second and fades away */
.pz-say { font-weight: 800; font-size: 15px; background: #fff; padding: 8px 12px; border-radius: 14px 14px 14px 4px; box-shadow: inset 0 0 0 1.5px var(--line-2), var(--shadow-1); white-space: nowrap; }
.pz-moment-say { position: absolute; left: calc(50% - 44px); top: 6px; z-index: 2; padding: 5px 10px 6px; font-size: 14px; line-height: 1.15; white-space: normal; width: max-content; max-width: 72px; text-align: center; border-radius: 14px; opacity: 0; }
/* its tail, down and left toward Sam's mouth */
.pz-moment-say::after { content: ""; position: absolute; left: 4px; top: calc(100% - 7px); width: 16px; height: 16px; background: #fff; clip-path: polygon(45% 0, 100% 0, 0 100%); filter: drop-shadow(-1px 0 0 var(--line-2)); }
.pz-moment:not(.is-solved) .pz-moment-say { opacity: 1; }
.pz-strip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2), 0 8px 18px -10px rgba(30, 26, 54, .45); }
.pz-moment-strip { right: 10px; bottom: 10px; }
.pz-moment.is-solved .pz-moment-strip { right: auto; left: 10px; }
.pz-ai-logo { width: 30px; height: 30px; border-radius: 8px; flex: none; box-shadow: 0 0 0 1.5px var(--line); }
.pz-tap { box-shadow: 0 0 0 3px var(--violet); }
.pz-moment.is-solved .pz-strip .t-blu { opacity: .35; }
/* problem: 0-6% Sam asks; tiles at 16, 32, 48%; the strip stays unfinished and the question stays; still from 90% */
.pz-moment.is-playing:not(.is-solved) .pz-moment-say { animation: pzm-say 10s var(--ease) infinite both; }
.pz-moment.is-playing:not(.is-solved) .pz-strip .t:nth-child(1) { animation: pzm-t1 10s var(--ease) infinite both; }
.pz-moment.is-playing:not(.is-solved) .pz-strip .t:nth-child(2) { animation: pzm-t2 10s var(--ease) infinite both; }
.pz-moment.is-playing:not(.is-solved) .pz-strip .t:nth-child(3) { animation: pzm-t3 10s var(--ease) infinite both; }
@keyframes pzm-say { 0% { opacity: 0; transform: translateY(6px); } 6%, 100% { opacity: 1; transform: none; } }
@keyframes pzm-t1 { 0%, 14% { opacity: 0; transform: translateY(6px); } 18%, 100% { opacity: 1; transform: none; } }
@keyframes pzm-t2 { 0%, 30% { opacity: 0; transform: translateY(6px); } 34%, 100% { opacity: 1; transform: none; } }
@keyframes pzm-t3 { 0%, 46% { opacity: 0; transform: translateY(6px); } 50%, 100% { opacity: 1; transform: none; } }
/* answer: 0-6% Sam asks; 12% MaTalk AI offers two answers; 24% the tap on "Yes!"; 30-42% the drawing cross-fades to the two playing */
.pz-moment.is-solved.is-playing .pz-img-a { animation: pzs-a 10s var(--ease) infinite both; }
.pz-moment.is-solved.is-playing .pz-moment-say { animation: pzs-say 10s var(--ease) infinite both; }
.pz-moment.is-solved.is-playing .pz-ai-logo, .pz-moment.is-solved.is-playing .pz-strip .t-blu { animation: pzs-offer 10s var(--ease) infinite both; }
.pz-moment.is-solved.is-playing .pz-tap { animation: pzs-tap 10s var(--ease) infinite both; }
@keyframes pzs-a { 0%, 30% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes pzs-say { 0% { opacity: 0; transform: translateY(6px); } 6%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; } }
@keyframes pzs-offer { 0%, 10% { opacity: 0; transform: translateY(6px); } 14%, 28% { opacity: 1; transform: none; } 34%, 100% { transform: none; } }
@keyframes pzs-tap { 0%, 10% { opacity: 0; transform: translateY(6px); box-shadow: none; } 14%, 22% { opacity: 1; transform: none; box-shadow: none; } 24% { transform: scale(.92); box-shadow: 0 0 0 3px var(--violet); } 27%, 100% { opacity: 1; transform: none; box-shadow: 0 0 0 3px var(--violet); } }

/* 2 (PLAN-15 C4, C5): a board of six large slots. Problem: a hand fills one slot at a time, slowly, and the next slot already asks
   for another word (still frame: three words, the hand on "+ Add word"). Answer: the same six slots, empty; a question arrives,
   a magic wand sweeps the board once and the words appear under it (PLAN-19 C), with the MaTalk AI logo (still frame: the full board). */
.pz-board6 { position: absolute; left: 14px; right: 14px; top: 14px; bottom: 14px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 10px; }
.pz-slot { position: relative; display: grid; border-radius: 14px; background: rgba(255, 255, 255, .55); }
.pz-slot::before { content: ""; position: absolute; inset: 0; border: 2px dashed #D9CAAE; border-radius: inherit; }
.pz-slot > * { position: relative; }
.pz-board6 .t { width: 100%; height: 100%; min-height: 0; flex-direction: column; justify-content: center; gap: 2px; padding: 4px; font-size: 15px; line-height: 1.1; box-shadow: inset 0 0 0 2px var(--e), 0 3px 0 var(--e); }
.pz-board6 .t .pic { font-size: 24px; line-height: 1; }
.pz-add { place-self: start center; margin-top: 12%; font: 800 14px/1 var(--f-body); color: var(--violet-deep); background: var(--violet-soft); padding: 8px 11px; border-radius: 99px; white-space: nowrap; }
.pz-finger { position: absolute; z-index: 3; left: 50%; top: 75%; width: 40px; height: 48px; margin: 4px 0 0 -15px; filter: drop-shadow(0 3px 3px rgba(30, 26, 54, .25)); pointer-events: none; }
.pz-finger path { fill: #FFE2C4; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
/* pair 2 problem (PLAN-16 C, PLAN-17: about half the speed), 17.6s in CSS, 11s as played (site.js plays at 1.6x, to the end):
   "want", "eat", "park" and "juice" are there; the hand adds "help" (0.5-1.25s) and "ball" (1.95-2.75s), each with "+ Add word"
   shown about 0.6s and pressed; a rest; then it organizes twice, one thing moving at a time: it lifts "ball", drags it to the first
   slot of the second row (4.0-5.5s), "juice" and "help" shift on (5.6-6.2s), it drops "ball"; a rest; the same with "park" to the
   first slot (7.6-9.1s), "want" and "eat" shift on (9.1-9.7s). Times are as played.
   The words lie over the slots: --c and --r are a word's first slot; one column step is the word's width + the 10px gap.
   Still frame: the full board, "ball" moved, the hand holding "park" on its way to the first slot. */
.pz-fill .pz-w { position: absolute; z-index: 1; left: calc(var(--c) * (100% + 10px) / 3); top: calc(var(--r) * (100% + 10px) / 2); width: calc((100% - 20px) / 3); height: calc((100% - 10px) / 2); }
.pz-addslot { position: absolute; left: calc(2 * (100% + 10px) / 3); top: 0; width: calc((100% - 20px) / 3); height: calc((100% - 10px) / 2); display: grid; place-items: center; opacity: 0; }
.pz-addslot .pz-add { place-self: center; margin: 0; }
/* the still frame */
.pz-fill .w-juice, .pz-fill .w-help { translate: calc(100% + 10px) 0; }
.pz-fill .w-ball { translate: calc(-2 * (100% + 10px)) 0; }
.pz-fill .w-park { z-index: 2; translate: calc(-.6 * (100% + 10px)) -8px; scale: 1.06; box-shadow: inset 0 0 0 2px var(--e), 0 12px 18px -8px rgba(30, 26, 54, .4); }
.pz-fill .pz-finger { left: calc(92.3% - .6 * (100% + 10px) / 3); top: calc(37% - 8px); } /* it holds a word by its lower right corner, so the word stays readable */
.pz-fill.is-playing .pz-finger { animation: pzo-hand 17.6s var(--ease) infinite both; }
.pz-fill.is-playing .pz-addslot { animation: pzo-add 17.6s var(--ease) infinite both; }
.pz-fill.is-playing .w-want { animation: pzo-want 17.6s var(--ease) infinite both; }
.pz-fill.is-playing .w-eat { animation: pzo-eat 17.6s var(--ease) infinite both; }
.pz-fill.is-playing .w-park { animation: pzo-park 17.6s var(--ease) infinite both; }
.pz-fill.is-playing .w-juice { animation: pzo-juice 17.6s var(--ease) infinite both; }
.pz-fill.is-playing .w-help { animation: pzo-help 17.6s var(--ease) infinite both; }
.pz-fill.is-playing .w-ball { animation: pzo-ball 17.6s var(--ease) infinite both; }
@keyframes pzo-hand {
  0% { left: 104%; top: 110%; opacity: 0; scale: 1; } 5.45% { left: 50%; top: 75%; opacity: 1; scale: 1; }
  7.73% { left: 50%; top: 75%; scale: 1; } 8.64% { left: 50%; top: 75%; scale: .85; } 10% { left: 50%; top: 75%; scale: 1; }
  14.55% { left: 50%; top: 75%; scale: 1; } 19.09% { left: 83.3%; top: 75%; scale: 1; }
  21.36% { left: 83.3%; top: 75%; scale: 1; } 22.27% { left: 83.3%; top: 75%; scale: .85; } 23.64% { left: 83.3%; top: 75%; scale: 1; }
  30% { left: 83.3%; top: 75%; scale: 1; } 34.55% { left: 92.3%; top: 87%; scale: 1; } 36.36% { left: 92.3%; top: calc(87% - 8px); scale: .9; }
  50% { left: 25.7%; top: calc(87% - 8px); scale: .9; } 56.36% { left: 25.7%; top: calc(87% - 8px); scale: .9; } 58.18% { left: 25.7%; top: 87%; scale: 1; }
  62.73% { left: 25.7%; top: 87%; scale: 1; } 67.27% { left: 92.3%; top: 37%; scale: 1; } 69.09% { left: 92.3%; top: calc(37% - 8px); scale: .9; }
  82.73% { left: 25.7%; top: calc(37% - 8px); scale: .9; } 89.09% { left: 25.7%; top: calc(37% - 8px); scale: .9; } 90.91% { left: 25.7%; top: 37%; scale: 1; }
  92.73% { left: 25.7%; top: 37%; opacity: 1; scale: 1; } 98.18%, 100% { left: 97%; top: 93%; opacity: 1; scale: 1; }
}
@keyframes pzo-add {
  0%, 3.64% { opacity: 0; left: calc((100% + 10px) / 3); top: calc((100% + 10px) / 2); } 5%, 9.09% { opacity: 1; left: calc((100% + 10px) / 3); top: calc((100% + 10px) / 2); } 10.45%, 17.27% { opacity: 0; left: calc((100% + 10px) / 3); top: calc((100% + 10px) / 2); }
  17.73% { opacity: 0; left: calc(2 * (100% + 10px) / 3); top: calc((100% + 10px) / 2); } 19.09%, 22.73% { opacity: 1; left: calc(2 * (100% + 10px) / 3); top: calc((100% + 10px) / 2); } 24.09%, 100% { opacity: 0; left: calc(2 * (100% + 10px) / 3); top: calc((100% + 10px) / 2); }
}
@keyframes pzo-want { 0%, 82.73% { translate: 0 0; } 88.18%, 100% { translate: calc(100% + 10px) 0; } }
@keyframes pzo-eat { 0%, 82.73% { translate: 0 0; } 88.18%, 100% { translate: calc(100% + 10px) 0; } }
@keyframes pzo-park {
  0%, 69.09% { scale: 1; translate: 0 0; box-shadow: inset 0 0 0 2px var(--e), 0 3px 0 var(--e); }
  70.91% { scale: 1.06; translate: 0 -8px; box-shadow: inset 0 0 0 2px var(--e), 0 12px 18px -8px rgba(30, 26, 54, .4); }
  82.73%, 89.09% { scale: 1.06; translate: calc(-2 * (100% + 10px)) -8px; box-shadow: inset 0 0 0 2px var(--e), 0 12px 18px -8px rgba(30, 26, 54, .4); }
  90.91%, 100% { scale: 1; translate: calc(-2 * (100% + 10px)) 0; box-shadow: inset 0 0 0 2px var(--e), 0 3px 0 var(--e); }
}
@keyframes pzo-juice { 0%, 50.91% { translate: 0 0; } 56.36%, 100% { translate: calc(100% + 10px) 0; } }
@keyframes pzo-help { 0%, 9.09% { opacity: 0; scale: .85; translate: 0 0; } 11.36%, 50.91% { opacity: 1; scale: 1; translate: 0 0; } 56.36%, 100% { opacity: 1; scale: 1; translate: calc(100% + 10px) 0; } }
@keyframes pzo-ball {
  0%, 22.73% { opacity: 0; scale: .85; translate: 0 0; z-index: 2; box-shadow: inset 0 0 0 2px var(--e), 0 3px 0 var(--e); } 25%, 34.55% { opacity: 1; scale: 1; translate: 0 0; box-shadow: inset 0 0 0 2px var(--e), 0 3px 0 var(--e); }
  36.36% { scale: 1.06; translate: 0 -8px; box-shadow: inset 0 0 0 2px var(--e), 0 12px 18px -8px rgba(30, 26, 54, .4); } 50%, 56.36% { scale: 1.06; translate: calc(-2 * (100% + 10px)) -8px; box-shadow: inset 0 0 0 2px var(--e), 0 12px 18px -8px rgba(30, 26, 54, .4); }
  58.18%, 100% { opacity: 1; scale: 1; translate: calc(-2 * (100% + 10px)) 0; z-index: 2; box-shadow: inset 0 0 0 2px var(--e), 0 3px 0 var(--e); }
}

.pz-qrow { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; align-items: center; gap: 8px; }
.pz-qrow .pz-q { position: static; translate: none; }
.pz-breeze .pz-board6 { top: 58px; bottom: 12px; gap: 8px; }
.pz-breeze .pz-board6 .t { font-size: 13.5px; flex-direction: row; gap: 5px; }
.pz-breeze .pz-board6 .t .pic { font-size: 19px; }
/* PLAN-19 C: the narrower three-column page (about 900-1180px): smaller words, so "monkeys" and "elephant" stay inside their slots */
@media (min-width: 901px) and (max-width: 1180px) { .pz-breeze .pz-board6 .t { font-size: 12px; gap: 3px; padding: 3px; } .pz-breeze .pz-board6 .t .pic { font-size: 16px; } .pz-breeze .pz-q { font-size: 12.5px; padding: 7px 10px; } }

/* PLAN-19 C: the magic wand (assets/img/art/wand2.webp: the tip at 3.4% / 2.6% of the square, the wrist pivot in the grip at about
   80% / 80%). .pz-wand is a point at the wrist pivot, in the board's coordinates (left, top); it turns about that point (rotate),
   like a wrist. The drawing hangs from it, turned so the tip points straight up at rotate 0; .pz-tip is the point at the tip
   (--L from the pivot), carrying the light. --S is the drawing's size: the wand is about as long as the board is tall.
   The still frame (and reduced motion): the full board; the wand resting upright in the right margin of the picture, outside the
   tiles, its tip by the top-right corner beside the question, the light softly pulsing (not with reduced motion). */
.pz-breeze { overflow: visible; }
/* one column (phones, tablets): the card reaches the page's side margin; the turned drawing's box must not make the page scroll sideways */
@media (max-width: 900px) { .pz-breeze { overflow-x: clip; overflow-clip-margin: 8px; } }
.pz-wand {
  --S: 88px; --L: calc(var(--S) * 1.0893);
  position: absolute; z-index: 4; left: calc(100% + 6px); top: 48px; width: 0; height: 0; rotate: -3deg; pointer-events: none;
}
.pz-wand img {
  position: absolute; left: calc(var(--S) * -.8); top: calc(var(--S) * -.8); width: var(--S); height: var(--S); max-width: none;
  transform-origin: 80% 80%; rotate: 44.7deg; filter: drop-shadow(0 4px 4px rgba(30, 26, 54, .22));
}
.pz-tip { position: absolute; left: 0; top: calc(var(--L) * -1); width: 0; height: 0; }
/* the light at the tip: a bright core in a soft golden glow, gently pulsing */
.pz-glow {
  position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 10%, #FFF2C2 20%, rgba(255, 210, 90, .6) 40%, rgba(255, 201, 60, .18) 58%, rgba(255, 201, 60, 0) 70%);
  animation: pzamb-glow 1.8s ease-in-out infinite;
}
/* two or three slow twinkles near the tip */
.pz-tw { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0-9C.6-2.6 2.6-.6 9 0 2.6.6.6 2.6 0 9-.6 2.6-2.6.6-9 0-2.6-.6-.6-2.6 0-9z' fill='%23FFD45C' stroke='%23E59A1A' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; animation: pzamb-tw 2.7s ease-in-out infinite; }
.pz-tw.tw1 { left: -13px; top: -9px; } .pz-tw.tw2 { left: 11px; top: -14px; width: 7px; height: 7px; animation-delay: .9s; } .pz-tw.tw3 { left: 13px; top: 6px; width: 6px; height: 6px; animation-delay: 1.8s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0-9C.6-2.6 2.6-.6 9 0 2.6.6.6 2.6 0 9-.6 2.6-2.6.6-9 0-2.6-.6-.6-2.6 0-9z' fill='%23B8A8FA' stroke='%237A65EC' stroke-width='1.2'/%3E%3C/svg%3E"); }
@keyframes pzamb-glow { 0%, 100% { transform: scale(.88); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes pzamb-tw { 0%, 20%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 70% { opacity: 0; transform: scale(.4) rotate(90deg); } }
/* stardust: born where the tip passes during the swish (each at its angle --a and distance --r from the swish pivot, at its time --t),
   it twinkles, drifts a little and fades in about 0.6s as played */
.pz-dust, .pz-burst { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.pz-dust i {
  position: absolute; left: calc(50% + var(--r) * sin(var(--a))); top: calc(100% - 6px - var(--r) * cos(var(--a)));
  width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0-9C.6-2.6 2.6-.6 9 0 2.6.6.6 2.6 0 9-.6 2.6-2.6.6-9 0-2.6-.6-.6-2.6 0-9z' fill='%23FFD45C' stroke='%23E59A1A' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0;
}
.pz-dust .pz-dust-d { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #FFD45C; box-shadow: 0 0 6px 1px rgba(255, 201, 60, .8); }
.pz-dust .pz-dust-v { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0-9C.6-2.6 2.6-.6 9 0 2.6.6.6 2.6 0 9-.6 2.6-2.6.6-9 0-2.6-.6-.6-2.6 0-9z' fill='%23B8A8FA' stroke='%237A65EC' stroke-width='1.2'/%3E%3C/svg%3E"); }
/* the burst at the final flick, at the tip there */
.pz-burst { inset: auto; left: calc(50% + 90px); top: calc(100% - 45px); width: 0; height: 0; }
.pz-burst i { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0-9C.6-2.6 2.6-.6 9 0 2.6.6.6 2.6 0 9-.6 2.6-2.6.6-9 0-2.6-.6-.6-2.6 0-9z' fill='%23FFD45C' stroke='%23E59A1A' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; }
.pz-burst .pz-b-v { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0-9C.6-2.6 2.6-.6 9 0 2.6.6.6 2.6 0 9-.6 2.6-2.6.6-9 0-2.6-.6-.6-2.6 0-9z' fill='%23B8A8FA' stroke='%237A65EC' stroke-width='1.2'/%3E%3C/svg%3E"); }
.pz-breeze .pz-board6 .t { position: relative; overflow: hidden; }
.pz-breeze .pz-board6 .t::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 236, 170, .95) 50%, transparent 65%) 130% 0 / 250% 100% no-repeat;
}
/* the story (PLAN-19 C, slowed 1.8x at Shay's word): 7.2s in CSS, about 4.5s as played (site.js plays at 1.6x; it was 4s, 2.5s
   as played). As played: the question shows; 0-0.6s the wand lifts from its corner and winds up low at the left; 0.8-2.3s one
   swish from the wrist across the board; 2.3-2.6s a small upward flick and a burst; then it settles at its corner with a soft
   overshoot. The words pop in (about 0.33s each) column by column as the light passes (1.1s, 1.5s, 2.0s as played; the
   top row a little before the bottom), each with a golden shimmer; the stardust lives about 0.9s. */
.pz-breeze.is-playing .pz-q, .pz-breeze.is-playing .pz-ai-logo { animation: pzb-q .5s var(--ease) both; }
.pz-breeze.is-playing .pz-wand { animation: pzb-wand 7.2s both; }
.pz-breeze.is-playing .pz-dust i { animation: pzb-dust 1.45s ease-out var(--t) both; }
.pz-breeze.is-playing .pz-burst i { animation: pzb-burst 1.3s cubic-bezier(.2, .7, .3, 1) 4.05s both; }
.pz-breeze.is-playing .pz-board6 .t { animation: pzb-pop .53s cubic-bezier(.3, 1.3, .5, 1) var(--pt) both; }
.pz-breeze.is-playing .pz-board6 .t::after { animation: pzb-shine .95s ease-out calc(var(--pt) + .15s) both; }
.pz-breeze .pz-slot:nth-child(1) .t { --pt: 1.56s; } .pz-breeze .pz-slot:nth-child(4) .t { --pt: 1.70s; }
.pz-breeze .pz-slot:nth-child(2) .t { --pt: 2.33s; } .pz-breeze .pz-slot:nth-child(5) .t { --pt: 2.47s; }
.pz-breeze .pz-slot:nth-child(3) .t { --pt: 2.99s; } .pz-breeze .pz-slot:nth-child(6) .t { --pt: 3.13s; }
@keyframes pzb-q { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes pzb-wand {
  0% { left: calc(100% + 6px); top: 48px; rotate: -3deg; animation-timing-function: cubic-bezier(.45, 0, .3, 1); }
  14% { left: 50%; top: calc(100% - 6px); rotate: -58deg; animation-timing-function: cubic-bezier(.3, 0, .4, 1); }
  18% { left: 50%; top: calc(100% - 6px); rotate: -64deg; animation-timing-function: cubic-bezier(.4, 0, .5, 1); }
  52% { left: 50%; top: calc(100% - 6px); rotate: 60deg; animation-timing-function: cubic-bezier(.2, .6, .3, 1); }
  57% { left: 50%; top: calc(100% - 12px); rotate: 70deg; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  63% { left: 50%; top: calc(100% - 6px); rotate: 62deg; animation-timing-function: cubic-bezier(.35, 0, .25, 1); }
  85% { left: calc(100% + 6px); top: 48px; rotate: -8deg; animation-timing-function: cubic-bezier(.4, 0, .4, 1); }
  95%, 100% { left: calc(100% + 6px); top: 48px; rotate: -3deg; }
}
@keyframes pzb-dust {
  0% { opacity: 0; transform: translate(0, 0) scale(.2) rotate(0deg); } 15% { opacity: 1; transform: translate(0, 0) scale(1.1) rotate(15deg); }
  45% { opacity: .6; transform: translate(calc(var(--dx) * .4), calc(var(--dy) * .4)) scale(.75) rotate(35deg); }
  60% { opacity: 1; transform: translate(calc(var(--dx) * .6), calc(var(--dy) * .6)) scale(.95) rotate(50deg); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3) rotate(80deg); }
}
@keyframes pzb-burst { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 25% { opacity: 1; transform: translate(calc(var(--bx) * .45), calc(var(--by) * .45)) scale(1.05); } 100% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(.35) rotate(60deg); } }
@keyframes pzb-pop { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes pzb-shine { 0% { opacity: 0; background-position: 130% 0; } 25% { opacity: 1; } 100% { opacity: 0; background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) { .pz-glow, .pz-tw { animation: none; } .pz-tw.tw1, .pz-tw.tw2 { opacity: .8; } }

/* the question bubble */
.pz-q {
  position: absolute; left: 50%; top: 10px; translate: -50% 0; white-space: nowrap; z-index: 2;
  font-weight: 800; font-size: 14px; background: #fff; padding: 8px 13px; border-radius: 16px 16px 16px 4px;
  box-shadow: inset 0 0 0 1.5px var(--line-2), var(--shadow-1);
}

/* name and place labels on the faces */
.pz-tag { display: block; width: max-content; font: 800 11.5px/1 var(--f-body); color: var(--ink-2); background: #fff; padding: 4px 8px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }

/* 3: everyone on their own island */
.pz-isle { position: absolute; width: 96px; height: 70px; display: grid; place-items: center; }
.pz-isle::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; border-radius: 50%; background: #E6DCC7; box-shadow: inset 0 -4px 0 rgba(30, 26, 54, .08); }
.pz-isle img { position: relative; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 14px; object-fit: cover; background: #FAD9C3; box-shadow: 0 0 0 3px #fff, var(--shadow-1); }
/* PLAN-17: the faces in the drawing style of the scenes (assets/img/art/face-*), each on its own flat colour */
.pz-isle.i2 img { background: #CFE3FB; } .pz-isle.i3 img { background: #E3D5F7; }
.pz-paper { position: absolute; right: 4px; top: 6px; width: 22px; height: 28px; border-radius: 3px; background: #fff linear-gradient(var(--line-2), var(--line-2)) 4px 8px / 14px 2px no-repeat; box-shadow: inset 0 0 0 1.5px var(--ink), 0 6px 0 -2px #fff, 0 6px 0 -.5px var(--ink); transform: rotate(8deg); }
.pz-paper::after { content: ""; position: absolute; left: 4px; top: 14px; width: 11px; height: 2px; background: var(--line-2); box-shadow: 0 5px 0 var(--line-2); }
.pz-isle .pz-tag { position: absolute; left: 50%; top: calc(100% + 6px); translate: -50% 0; }
/* spread around the frame (Mom top-left, Ms. Rivera top-right, Dana bottom-centre); the answered card keeps the same places */
.pz-islands .pz-isle.i1 { left: 7%; top: 10px; }
.pz-islands .pz-isle.i2 { left: auto; right: 7%; top: 10px; margin-left: 0; }
.pz-islands .pz-isle.i3 { left: 50%; right: auto; top: calc(100% - 98px); margin-left: -48px; }
@media (max-width: 420px) { .pz-tag { font-size: 10.5px; padding: 3px 6px; } }
.pz-islands.is-playing .pz-isle { animation: pz-bob 4s ease-in-out infinite; }
.pz-islands.is-playing .pz-isle.i2 { animation-delay: -1.3s; } .pz-islands.is-playing .pz-isle.i3 { animation-delay: -2.6s; }
@keyframes pz-bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
.pz-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.pz-net path { fill: none; stroke: var(--violet); stroke-width: 2.5; stroke-dasharray: 5 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pz-hub { position: absolute; left: 50%; top: 36px; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 12px; opacity: 0; transform: scale(.5); }
.pz-hub img { width: 100%; height: 100%; border-radius: 12px; background: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--violet), var(--shadow-1); }
.pz-islands.is-solved .pz-net { opacity: 1; }
.pz-islands.is-solved .pz-hub { opacity: 1; transform: none; }
.pz-islands.is-solved .pz-paper { display: none; }
.pz-islands.is-solved.is-playing .pz-net path { animation: pz-flow 1.2s linear infinite; }
.pz-islands.is-solved.is-playing .pz-net { animation: pz-net-in .7s var(--ease) both; }
.pz-islands.is-solved.is-playing .pz-hub { animation: pz-hub-in .6s var(--spring) .5s both; }
@keyframes pz-net-in { from { opacity: 0; } }
@keyframes pz-hub-in { from { opacity: 0; transform: scale(.4); } }
.pz-islands.is-solved .pz-isle { animation: none !important; }
@keyframes pz-flow { to { stroke-dashoffset: -24; } }

/* the answer under each problem (PLAN-13: problem and answer in one section, as three pairs) */
.pz-pair { display: grid; grid-row: 1 / span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.pz-pair > .pz-card { grid-row: 1; }
.pz-pair > .pz-mini { grid-row: 3; }
.pz-pair:nth-of-type(1) { grid-column: 1; } .pz-pair:nth-of-type(2) { grid-column: 2; } .pz-pair:nth-of-type(3) { grid-column: 3; }
/* PLAN-15 C2: "Verbali's ecosystem solves that." between the problem row and the answer row, one line across the page (it takes
   the middle row of the pairs' grid, so each pair still grows and plays as one). On phones each pair shows it small instead. */
.pz-turn { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 18px; padding: 72px 0; pointer-events: none; }
.pz-turn p { margin: 0; font: 800 clamp(22px, 2.6vw, 32px)/1.15 var(--f-display); letter-spacing: -.02em; text-align: center; color: var(--violet-deep); }
.pz-turn-line { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.pz-sep { display: none; }
.pz-pair .pz-card h3, .pz-pair .pz-mini h3 { margin-top: 24px; }
.pz-mini .pz { height: 180px; background: #fff; box-shadow: inset 0 0 0 2px var(--violet-soft), 0 14px 30px -20px rgba(90, 69, 211, .5); }
.pz-mini h3 { font: 800 clamp(21px, 2vw, 26px)/1.1 var(--f-display); letter-spacing: -.02em; margin: 16px 0 4px; color: var(--violet-deep); }
.pz-mini p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) {
  .pz-grid { grid-template-columns: 1fr; gap: 48px; }
  .pz-pair, .pz-pair:nth-of-type(n) { grid-row: auto; grid-column: auto; grid-template-rows: auto auto auto; }
  .pz-pair > .pz-card, .pz-pair > .pz-mini { grid-row: auto; }
  .pz-turn { display: none; }
  .pz-sep { display: flex; align-items: center; gap: 10px; margin: 24px 0 20px; font: 800 15px/1.2 var(--f-display); color: var(--violet-deep); white-space: nowrap; }
  .pz-sep::before, .pz-sep::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 11px); }
}
/* PLAN-14, PLAN-19 C: still until pointed at. The card (a problem or an answer: picture, title and text) a visitor points at, focuses or
   taps plays; it lifts, its picture gets a shadow, and the other five cards fade back a little. It grows only where there is hover
   and room: three columns, scaled from its outer edge, so it never reaches past the page. */
.pz-hint { margin: 12px 0 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.pz-hint-touch { display: none; }
@media (hover: none) { .pz-hint-hover { display: none; } .pz-hint-touch { display: inline; } }
.pz-pair { position: relative; }
.pz-pair > .pz-card, .pz-pair > .pz-mini {
  position: relative; border-radius: var(--r-lg); transform-origin: 50% 0; cursor: default;
  transition: transform .45s var(--ease), opacity .35s var(--ease), filter .35s var(--ease);
}
.pz-pair:first-of-type > .pz-card, .pz-pair:first-of-type > .pz-mini { transform-origin: 0 0; }
.pz-pair:last-of-type > .pz-card, .pz-pair:last-of-type > .pz-mini { transform-origin: 100% 0; }
.pz-card:focus, .pz-mini:focus { outline: none; }
.pz-card:focus-visible, .pz-mini:focus-visible { outline: 3px solid var(--violet); outline-offset: 8px; }
.pz-pair .pz { transition: box-shadow .35s var(--ease); }
.pz-card.is-active, .pz-mini.is-active { z-index: 2; }
.pz-card.is-active .pz { box-shadow: inset 0 0 0 1px var(--line), 0 26px 50px -26px rgba(30, 26, 54, .45); }
.pz-mini.is-active .pz { box-shadow: inset 0 0 0 2px var(--violet-soft), 0 26px 50px -24px rgba(90, 69, 211, .55); }
.pz-pairs.has-active .pz-card:not(.is-active), .pz-pairs.has-active .pz-mini:not(.is-active) { opacity: .5; filter: saturate(.6); }
@media (hover: hover) and (min-width: 901px) {
  .js .pz-pairs .pz-card.is-active, .js .pz-pairs .pz-mini.is-active { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .pz-hint { display: none; }
  .js .pz-pairs .pz-card.is-active, .js .pz-pairs .pz-mini.is-active { transform: none; }
}

/* ---------- the ecosystem: one card per product (restored from main unchanged, PLAN-14: the second section of the homepage) ---------- */
.tc-class { --tc: var(--orange); --tcs: var(--orange-soft); }
.tc-ai { --tc: var(--violet); --tcs: var(--violet-soft); }
.tc-portal { --tc: #0AA7BC; --tcs: #DDF5F8; }
.eco-map { position: relative; }
.em-lede { max-width: 560px; margin: -8px auto clamp(28px, 4vw, 44px); text-align: center; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.em-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; column-gap: 22px; row-gap: 22px; }
/* every card has the same nine rows, in the same order, and each row lines up across the three cards (one shared set of rows):
   label, logo, name, subtitle, runs on, own content, pairing pill, screenshot, link */
.em-card {
  position: relative; display: grid; grid-row: span 9; grid-template-rows: subgrid; row-gap: 18px; justify-items: center; text-align: center;
  padding: 26px 24px 24px; border-radius: var(--r-xl);
  background: #fff; box-shadow: inset 0 0 0 2px var(--tcs), var(--shadow-1);
  transition: transform var(--t-med) var(--spring), box-shadow var(--t-med) var(--ease);
}
.em-card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 2px var(--tc), var(--shadow-2); }
.em-card:focus-within { box-shadow: inset 0 0 0 2px var(--tc), var(--shadow-2); }
/* the short label on top */
.em-where { padding: 6px 13px; border-radius: 99px; background: var(--tcs); font: 800 12.5px/1.1 var(--f-body); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
/* the logo row: every logo is 96px and starts on the same line; text under the two MaTalk AI icons hangs below */
.em-logo { width: 96px; height: 96px; border-radius: 24px; object-fit: contain; box-shadow: var(--shadow-1); align-self: start; }
/* the SLP Portal logo with Verbi has no tile; Verbi sticks out top right, so the ring is moved onto the card's centre line */
/* the ring is 82% of the picture height and starts 16% from its top: 117px makes the ring 96px, and -19px puts its top on the line */
.em-logo.em-logo-badge { width: auto; height: 117px; border-radius: 0; box-shadow: none; translate: 6% 0; margin: -19px 0 0; }
.em-h { margin: 0; font: 800 clamp(24px, 2.2vw, 28px)/1.05 var(--f-display); letter-spacing: -.025em; color: var(--ink); }
.em-h .tag { font-size: 10px; padding: 4px 7px; vertical-align: 5px; letter-spacing: .04em; }
.em-sub { align-self: start; margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ink); }
/* where it runs: the same small box on every card */
.em-runs { display: flex; align-items: center; justify-content: center; margin: 0; padding: 7px 13px; border-radius: 10px; background: #F5F3F9; font: 700 13.5px/1.3 var(--f-body); color: var(--ink-2); }
.em-runs svg { display: inline-block; width: 15px; height: 15px; margin-right: 5px; vertical-align: -2.5px; fill: currentColor; }
.em-runs-k { color: var(--muted); }
.em-os { margin-left: 12px; white-space: nowrap; color: var(--ink); font-weight: 800; }
.em-body { width: 100%; }
.em-points { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; justify-content: center; gap: 12px; text-align: left; }
.em-points li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 15.5px; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.em-points svg { width: 18px; height: 18px; margin-top: 2px; color: var(--tc); fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* MaTalk AI: the two apps side by side in the logo row, large, each with its plan and who it is for */
/* MaTalk AI: the two app icons side by side, the same size as the other logos; the points below say which is which */
.em-duo { display: flex; justify-content: center; gap: 22px; align-self: start; margin-bottom: -5px; }
.em-app { display: grid; justify-items: center; }
/* two tight caption lines under each icon (about 32px): the name, then the plan in violet; they hang a little into the gap below */
.em-app b { margin-top: 4px; font: 800 12px/1.12 var(--f-display); color: var(--ink); white-space: nowrap; }
.em-app small { font: 700 11.5px/1.12 var(--f-body); color: var(--violet-deep); }
.em-app img { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; box-shadow: var(--shadow-1); }
/* every screenshot has the same size, so they start and end on the same line; the picture fills it from the top */
.em-shot { display: block; width: 100%; aspect-ratio: 800 / 551; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); }
.em-shot .shot { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; }
.em-shot.is-ipad { padding: 6px; background: #1B1830; box-shadow: var(--shadow-1); border-radius: 14px; }
.em-shot.is-ipad .shot { border-radius: 8px; }
/* MaTalk Class and SLP Portal run in the browser: the whole screen in a simple browser window. The bar is sized so the frame
   has the same outer size as the iPad (800 x 551): 551/800 - 500/800 = 6.375% of the width */
.em-shot.is-web { position: relative; padding-top: 6.375%; background: #EFEAF4; }
.em-shot.is-web::before { content: ""; position: absolute; left: 3%; top: 3.19%; width: 34px; height: 8px; translate: 0 -50%;
  background: radial-gradient(circle 4px at 4px 50%, #F28B7C 98%, transparent) , radial-gradient(circle 4px at 17px 50%, #F5C35A 98%, transparent), radial-gradient(circle 4px at 30px 50%, #7FCB8B 98%, transparent); }
.em-shot.is-web .shot { height: auto; aspect-ratio: 800 / 500; }
/* MaTalk Class: the same hero animation as the MaTalk Class page (src/partials/class-hero-scene.html), at card size.
   The 3:2 scene sits centred in the 800 x 551 frame on white; the bubbles keep their minimum text size so they stay readable */
.em-shot.is-anim { display: grid; align-content: center; background: #fff; }
.em-shot.is-anim .hx { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.em-card .link-arrow { margin-top: 2px; color: var(--ink); }
.em-card .link-arrow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.em-card .link-arrow:focus-visible { outline: none; }
.em-card .link-arrow:focus-visible::after { outline: 3px solid var(--tc); outline-offset: 3px; }
.em-pair { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 99px; background: var(--tcs); color: var(--ink); font: 800 12.5px/1.1 var(--f-body); }
.em-pair img { width: 20px; height: 20px; border-radius: 5px; }
.em-sum { max-width: 640px; margin: clamp(32px, 4vw, 48px) auto 0; text-align: center; font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-2); }
.em-sum b { color: var(--ink); }
@media (max-width: 960px) {
  .em-cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

/* ---------- a day with MaTalk: one scene at a time under a sky arc ---------- */
/* the page scroll drives it: the track is tall, the panel sticks inside it (overflow: clip keeps sticky working) */
.section-day { overflow: clip; }
.js .dw-track::after { content: ""; display: block; height: 300vh; }
.js .dw { position: sticky; top: var(--pin, 84px); }
/* scrolling drives the arc and the sky directly, so they must not lag behind with a transition */
.js .dw-arc .dw-arc-fill { transition: none; }
/* the held panel must fit between the header and the bottom of the screen: no arrows (scrolling moves the day), and the sky, drawing and screenshot follow the screen height */
.js .dw-ctrl { display: none; }
.js .dw-sky { max-height: clamp(110px, 18svh, 170px); }
.js .dw-pic > img { max-height: clamp(180px, 100svh - 400px, 380px); }
.js .dw-screen { width: min(100%, clamp(190px, (100svh - 480px) * 1.4, 330px)); }
.dw {
  --sky: #FFE7CC; --ink-on: var(--ink); --sub: var(--ink-2); --acc: var(--orange);
  position: relative; max-width: 1080px; margin: 0 auto; padding: 18px clamp(16px, 3vw, 36px) 26px;
  border-radius: var(--r-xl); color: var(--ink-on); isolation: isolate; overflow: clip;
  background: var(--sky);
  box-shadow: inset 0 0 0 1px rgba(30, 26, 54, .06), var(--shadow-1);
  transition: background-color 1s var(--ease), color var(--t-slow) var(--ease);
}
/* the panel is the sky: one layer per part of the day; site.js sets each layer's opacity from the scroll.
   The evening goes orange (golden hour), pink (the sunset band), violet to indigo (dusk), navy (night), never through grey */
.dw-skies { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; }
.dw-skies > i { position: absolute; inset: 0; opacity: 0; }
.dw-skies [data-sk="morning"]   { opacity: 1; background: radial-gradient(34% 40% at 11% 16%, rgba(255, 244, 214, .95), transparent 70%), linear-gradient(#FFD7AE, #FFE8C6 45%, #FFF6DE); }
.dw-skies [data-sk="midday"]    { background: radial-gradient(30% 36% at 33% 6%, rgba(255, 255, 255, .9), transparent 70%), linear-gradient(#BEE0FF, #E2F1FF 45%, #F4FAFF); }
.dw-skies [data-sk="afternoon"] { background: radial-gradient(34% 40% at 69% 8%, rgba(255, 246, 220, .9), transparent 70%), linear-gradient(#FFC46C, #FFDC9E 45%, #FFEFCB); }
/* golden hour: the whole sky warms, brightest low on the right where the sun goes down */
.dw-skies [data-sk="golden"]    { background: radial-gradient(46% 60% at 88% 34%, rgba(255, 222, 160, .9), transparent 72%), linear-gradient(#FFA766, #FFBE80 42%, #FFD9A4); }
/* the sunset: an orange and pink band rises from the bottom */
.dw-skies [data-sk="dusk"]      { inset: auto 0 0 0; height: 86%; transform: translateY(45%); background: linear-gradient(to top, #FF6390 0%, #FF7E72 24%, rgba(255, 150, 104, .72) 52%, rgba(255, 182, 120, 0) 100%); will-change: transform, opacity; }
/* the top of the sky darkens first: a deep indigo band comes down from above while the sunset rises from below */
.dw-skies [data-sk="zenith"]    { inset: 0 0 auto 0; height: 44%; transform: translateY(-100%); background: linear-gradient(#1F2268 0%, rgba(44, 42, 128, .92) 50%, rgba(84, 64, 160, .5) 76%, rgba(110, 80, 170, 0) 100%); will-change: transform, opacity; }
/* dusk: violet low down, deep indigo at the top, comes in over the sunset */
.dw-skies [data-sk="twilight"]  { background: radial-gradient(60% 46% at 92% 100%, rgba(236, 120, 150, .5), transparent 70%), linear-gradient(#242872 0%, #39348F 32%, #5E44A8 64%, #84509F 90%, #925596 100%); }
.dw-skies [data-sk="evening"]   { background: radial-gradient(70% 44% at 50% 118%, rgba(104, 84, 196, .45), transparent 72%), linear-gradient(#10163F, #192059 46%, #282A72); }
/* when Storytime comes in, the sky deepens a little with it, so the light words can be read at once */
.dw-skies [data-sk="veil"]      { background: #0D1238; transition: opacity .5s var(--ease); }
.dw[data-night] .dw-skies [data-sk="veil"] { opacity: .32; }
/* day: soft clouds drift very slowly, turn peach at golden hour and fade by dusk (--cl and --k come from the scroll) */
.dw-clouds { position: absolute; inset: 0; opacity: var(--cl, 1); --cc: color-mix(in oklab, #FFFFFF, #FFC7A6 calc(var(--k, 0) * 100%)); }
.dw-clouds i {
  position: absolute; width: clamp(120px, 22%, 240px); aspect-ratio: 10 / 3;
  --c1: color-mix(in srgb, var(--cc) 95%, transparent); --c2: color-mix(in srgb, var(--cc) 50%, transparent); --c0: color-mix(in srgb, var(--cc) 0%, transparent);
  background:
    radial-gradient(closest-side, var(--c1), var(--c2) 58%, var(--c0)) 4% 88% / 40% 70% no-repeat,
    radial-gradient(closest-side, var(--c1), var(--c2) 58%, var(--c0)) 36% 14% / 44% 104% no-repeat,
    radial-gradient(closest-side, var(--c1), var(--c2) 58%, var(--c0)) 70% 36% / 40% 90% no-repeat,
    radial-gradient(closest-side, var(--c1), var(--c2) 58%, var(--c0)) 98% 86% / 34% 62% no-repeat;
  animation: dw-drift 90s ease-in-out infinite alternate;
}
.dw-clouds i:nth-child(1) { left: 16%; top: 3%; opacity: .85; }
.dw-clouds i:nth-child(2) { left: 50%; top: 12%; scale: .62; opacity: .7; animation-duration: 120s; animation-delay: -50s; }
.dw-clouds i:nth-child(3) { left: 74%; top: 1%; scale: .82; opacity: .8; animation-duration: 104s; animation-delay: -25s; }
@keyframes dw-drift { from { translate: -30px 0; } to { translate: 40px 0; } }
/* the stars come out a few at a time (--st follows the scroll, --s is when each star shows), then twinkle; a few big ones sparkle */
.dw-stars { position: absolute; inset: 0; width: 100%; height: 100%; fill: #fff; }
.dw-stars circle, .dw-spark { opacity: clamp(0, calc((var(--st, 0) - var(--s, .5) * .85) * 9), .9); transform-box: fill-box; transform-origin: center; animation: dw-twinkle 3.6s ease-in-out infinite; }
.dw-stars circle:nth-child(3n) { animation-duration: 4.4s; animation-delay: -1.3s; }
.dw-stars circle:nth-child(3n+1) { animation-duration: 3.1s; animation-delay: -2.2s; }
@keyframes dw-twinkle { 0%, 100% { scale: 1; } 50% { scale: 1.7; } }
.dw-spark { fill: #F4F2FF; filter: drop-shadow(0 0 2.5px rgba(220, 226, 255, .95)); animation: dw-sparkle 5.5s ease-in-out infinite; }
.dw-stars g:nth-of-type(2n) .dw-spark { animation-duration: 7s; animation-delay: -2.6s; }
@keyframes dw-sparkle { 0%, 100% { scale: .55; rotate: 0deg; } 50% { scale: 1; rotate: 45deg; } }
/* one shooting star each time the full night is reached */
.dw-shoot { position: absolute; left: 70%; top: 7%; width: 140px; height: 2px; border-radius: 2px; background: linear-gradient(to left, rgba(207, 197, 255, 0), rgba(207, 197, 255, .55) 60%, #fff); opacity: 0; transform: rotate(26deg); transform-origin: right center; }
.dw-shoot::after { content: ""; position: absolute; left: -2px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 3px rgba(214, 222, 255, .85); }
.dw-shoot.is-go { animation: dw-shoot 1.4s cubic-bezier(.3, .1, .4, 1) 1 both; }
@keyframes dw-shoot { 0% { opacity: 0; transform: translate(0, 0) rotate(26deg); } 12% { opacity: 1; } 70% { opacity: .9; } 100% { opacity: 0; transform: translate(-320px, 156px) rotate(26deg); } }
/* the text colours follow the scene; the switch to light text happens with the switch to Storytime, when the sky is dark enough */
.dw[data-tod="morning"]   { --sky: #FFE4C4; --acc: #C2500F; }
.dw[data-tod="midday"]    { --sky: #D6ECFF; --acc: var(--c-blue); }
.dw[data-tod="afternoon"] { --sky: #FFDB9A; --acc: #B4470C; }
.dw[data-tod="evening"]   { --sky: #FFDB9A; --acc: #B4470C; }
.dw[data-night]           { --sky: #1A1F55; --ink-on: #FFFDF6; --sub: #EFECFF; --acc: #CFC5FF; }
/* in the Park scene the grey line turns as dark as the title while the sunset comes, so it stays readable (--dk comes from the scroll) */
.dw-scene[data-tod="afternoon"] .dw-line { color: color-mix(in oklab, var(--sub), var(--ink) calc(var(--dk, 0) * 100%)); }
.dw-sky {
  position: relative; aspect-ratio: 1000 / 200; max-height: 170px; margin: 0 auto 26px; max-width: 900px;
  /* the arc and the time labels go from day colours to night colours with the sky (--lb comes from the scroll);
     in the evening the labels first turn darker (--ld), so they stay readable on the sunset */
  --lab: color-mix(in oklab, color-mix(in oklab, #413B5E, #1E1A36 calc(var(--ld, 0) * 100%)), #EEEAFF calc(var(--lb, 0) * 100%));
  --arcc: color-mix(in oklab, var(--acc), #CFC5FF calc(var(--lb, 0) * 100%));
}
.dw-arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dw-arc path { fill: none; stroke: color-mix(in oklab, rgba(30, 26, 54, .2), rgba(255, 255, 255, .34) calc(var(--lb, 0) * 100%)); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dw-arc .dw-arc-fill { stroke: var(--arcc); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--t, 0) * 100); stroke-width: 3.5; transition: stroke-dashoffset var(--t-slow) var(--ease); }
.dw-stops { position: absolute; inset: 0; }
.dw-stop {
  position: absolute; left: var(--x); top: var(--y); translate: -50% 0; margin-top: 32px;
  border: 0; background: none; padding: 6px 8px; cursor: pointer; border-radius: 99px;
  font: 800 13px/1 var(--f-body); color: var(--lab); white-space: nowrap;
}
/* the dot sits on the arc; the label hangs below it, clear of the sun */
.dw-stop::before { content: ""; position: absolute; left: 50%; top: -34px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px var(--arcc); }
/* the current time sits in a pill; it only changes from 4:00 PM to 7:30 PM with the switch to Storytime, so its colours follow that switch */
.dw-stop[aria-current="true"] { color: var(--ink); background: rgba(255, 255, 255, .58); }
.dw[data-night] .dw-stop[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, .16); }
.dw-stop:hover { color: color-mix(in oklab, #1E1A36, #FFFFFF calc(var(--lb, 0) * 100%)); }

/* the sun and the moon: drawn in SVG, no picture files. One round body stays whole the whole time; site.js sets from the scroll:
   --k golden hour, --pale the pale morning sun, --ec sun to moon for the corona (0 to 1),
   --m the moon colour and craters fading in over the sun, --ry the rays, --os the size */
.dw-orb { position: absolute; left: var(--ox, 6%); top: var(--oy, 95%); width: 76px; height: 76px; margin: -38px 0 0 -38px; z-index: 2; border-radius: 50%; cursor: grab; touch-action: none; }
.dw-orb.is-dragging { cursor: grabbing; }
.dw-orb > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: scale(var(--os, 1)); }
/* the corona: warm layers around the sun that cool into a blue-white halo around the moon; both breathe slowly */
.dw-orb::before, .dw-orb::after { content: ""; position: absolute; inset: -22%; z-index: -1; border-radius: 50%; pointer-events: none; animation: dw-breathe 7s ease-in-out infinite; }
.dw-orb::before {
  --w1: color-mix(in oklab, rgba(255, 238, 176, .95), rgba(255, 176, 96, .95) calc(var(--k, 0) * 100%));
  --w2: color-mix(in oklab, rgba(255, 200, 96, .42), rgba(255, 120, 60, .42) calc(var(--k, 0) * 100%));
  background: radial-gradient(closest-side, var(--w1) 34%, var(--w2) 50%, rgba(255, 170, 80, .12) 72%, rgba(255, 170, 80, 0));
  opacity: calc(1 - var(--ec, 0));
}
.dw-orb::after { background: radial-gradient(closest-side, rgba(238, 242, 255, .85) 33%, rgba(186, 200, 255, .36) 48%, rgba(168, 182, 255, .1) 72%, rgba(168, 182, 255, 0)); opacity: var(--ec, 0); animation-duration: 9s; animation-delay: -3s; }
@keyframes dw-breathe { 0%, 100% { scale: .94; } 50% { scale: 1.06; } }
.dw-rays { transform-box: fill-box; transform-origin: center; opacity: var(--ry, 1); transform: scale(calc(.55 + .45 * var(--ry, 1))); animation: dw-turn 80s linear infinite; }
@keyframes dw-turn { to { rotate: 360deg; } }
.dw-ray-a { stop-color: color-mix(in oklab, #FFC23E, #FF6A2C calc(var(--k, 0) * 100%)); stop-opacity: .95; }
.dw-ray-b { stop-color: color-mix(in oklab, #FFE08A, #FF9A5C calc(var(--k, 0) * 100%)); stop-opacity: 0; }
.dw-pale { opacity: var(--pale, 0); }
.dw-hot { opacity: var(--k, 0); }
.dw-moonbody { opacity: var(--m, 0); }
/* a soft glow on the sky follows the orb: warm and biggest at midday, deeper orange at golden hour, a cool glow around the moon */
.dw-glow { position: absolute; left: var(--ox, 6%); top: var(--oy, 95%); width: 200px; height: 200px; margin: -100px 0 0 -100px; z-index: 1; pointer-events: none; border-radius: 50%; transform: scale(var(--gs, .6)); }
.dw-glow::before, .dw-glow::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.dw-glow::before {
  --g1: color-mix(in oklab, rgba(255, 228, 130, .8), rgba(255, 128, 60, .8) calc(var(--k, 0) * 100%));
  background: radial-gradient(closest-side, var(--g1), color-mix(in srgb, var(--g1) 42%, transparent) 45%, transparent);
  opacity: var(--g, .4);
}
.dw-glow::after { background: radial-gradient(closest-side, rgba(200, 210, 255, .42), rgba(180, 190, 255, .14) 50%, transparent); opacity: var(--gm, 0); }

.dw-stage { position: relative; display: grid; outline: none; border-radius: var(--r-lg); touch-action: pan-y; }
.dw-stage:focus-visible { outline: 3px solid var(--violet); outline-offset: 6px; }
/* the old scene's place fades out while the new one fades in; its words go at once */
.js .dw-scene:not(.is-cur) { visibility: hidden; transition: visibility 0s .7s; }
.js .dw-scene:not(.is-cur) .dw-copy { visibility: hidden; }
.js .dw-scene:not(.is-cur) .dw-art { opacity: 0; transition: opacity .7s var(--ease); }
.dw-scene { grid-area: 1 / 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
/* the school scene has a wide screenshot (the book beside the question): a wider, lower frame, no taller than the other tablets */
.dw-art { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(14px, 2.4vw, 26px) clamp(10px, 2vw, 22px) 6px; box-shadow: 0 18px 40px -26px rgba(30, 26, 54, .45); }
.dw-place { position: absolute; inset: 0; width: 100%; height: 100%; }
.dw-pic { position: relative; display: block; width: fit-content; max-width: 100%; margin: 0 auto; }
.m-say {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; width: max-content; max-width: 24%;
  /* the words scale with the drawing (--pw is its width, set in site.js), so they stay inside the bubble at every size */
  font: 800 clamp(7px, calc(var(--pw, 440px) * .034), 15px)/1.15 var(--f-body); color: var(--ink); text-align: center;
}
.dw-pic > img { display: block; width: auto; max-width: 100%; height: auto; max-height: 380px; }
.dw-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.dw-when time { font: 800 14px/1 var(--f-body); letter-spacing: .05em; padding: 7px 11px; border-radius: 99px; background: var(--ink-on); color: var(--sky); }
.dw-when span { font: 800 14px/1 var(--f-body); letter-spacing: .05em; text-transform: uppercase; color: var(--sub); }
.dw-copy h3 { font: 800 clamp(28px, 3.4vw, 44px)/1.02 var(--f-display); letter-spacing: -.03em; margin: 14px 0 8px; }
.dw-line { margin: 0 0 18px; font-size: clamp(17px, 1.5vw, 19px); color: var(--sub); }
.dw-screen { display: block; width: min(100%, 330px); border-radius: 14px; padding: 6px; background: #1B1830; box-shadow: 0 22px 40px -18px rgba(30, 26, 54, .55); rotate: 2deg; }
.dw-screen .shot { border-radius: 9px; }
/* scene parts enter with motion */
.dw-scene.is-in .dw-art { animation: dw-in-art .7s var(--ease) both; }
.dw-scene.is-in .dw-when { animation: dw-in .45s var(--ease) .1s both; }
.dw-scene.is-in h3 { animation: dw-in .5s var(--ease) .18s both; }
.dw-scene.is-in .dw-line { animation: dw-in .5s var(--ease) .26s both; }
.dw-scene.is-in .dw-screen { animation: dw-in-shot .7s var(--spring) .36s both; }
.dw-scene.is-in .m-say { animation: dw-pop .5s var(--spring) .6s both; }
@keyframes dw-in-art { from { opacity: 0; } to { opacity: 1; } }
@keyframes dw-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dw-in-shot { from { opacity: 0; transform: translateY(26px) rotate(-6deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes dw-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
.dw-ctrl { position: relative; display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.dw-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2), var(--shadow-1);
  transition: transform var(--t-fast) var(--spring);
}
.dw-btn:hover { transform: scale(1.06); }
.dw-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .dw-scene { grid-template-columns: 1fr; gap: 14px; align-content: start; }
  .dw-copy { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: start; }
  .dw-when, .dw-copy h3, .dw-line { grid-column: 1 / -1; }
  .dw-screen { width: min(74%, 300px); justify-self: center; grid-column: 1 / -1; }
  .dw-copy h3 { margin-top: 10px; }
  .dw-line { margin-bottom: 14px; }
  .dw-stop { font-size: 11.5px; padding: 5px 4px; margin-top: 22px; }
  .dw-stop::before { top: -24px; }
  .dw-orb { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .dw-glow { width: 150px; height: 150px; margin: -75px 0 0 -75px; }
  .dw-sky { margin-bottom: 34px; }
}
/* phones: the panel must fit under the header while it is held in place, so the arrows go (scrolling moves the day) and the pictures get smaller */
@media (max-width: 900px) {
  .js .dw { padding-bottom: 18px; }
  .js .dw-pic > img { max-height: 190px; }
  .js .dw-screen { width: min(56%, 230px); }
}
@media (max-width: 900px) and (max-height: 720px) {
  .js .dw-pic > img { max-height: 160px; }
  .js .dw-screen { width: min(44%, 180px); }
  .js .dw-sky { margin-bottom: 28px; }
}

/* the words in the bubbles must stay inside the bubble on a phone */
@media (max-width: 600px) { .m-say { line-height: 1.1; max-width: 27%; } }
.m-say-tight { max-width: 23%; }
@media (max-width: 600px) { .m-say-tight { max-width: 24%; } }

/* reduced motion: no breathing, turning, drifting, twinkling or shooting star; the changes tied to the scroll stay */
@media (prefers-reduced-motion: reduce) {
  .dw-stars circle, .dw-spark, .dw-clouds i, .dw-rays, .dw-orb::before, .dw-orb::after { animation: none; }
  .dw-shoot { display: none; }
}

/* ---------- from our founder: video + quote ---------- */
.fv-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.fv-grid .vcard { width: 100%; }
.fv-quote { margin: 0; }
.fv-quote blockquote { margin: 0; font: 700 clamp(22px, 2.4vw, 30px)/1.25 var(--f-display); letter-spacing: -.015em; }
.fv-quote blockquote .serif { color: var(--violet-deep); font-size: 1.1em; }
.fv-quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: var(--muted); font-size: 15px; }
.fv-quote figcaption img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--violet-soft); }
.fv-quote figcaption strong { display: block; color: var(--ink); font-size: 17px; }
.fv-demo { margin-top: 26px; border: 0; background: none; padding: 0; cursor: pointer; font-size: 17px; }
@media (max-width: 900px) { .fv-grid { grid-template-columns: 1fr; } }

/* ---------- final call to action ---------- */
.cta-burst {
  position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 20px;
  padding: clamp(36px, 5vw, 72px) clamp(28px, 5vw, 72px);
  background:
    radial-gradient(60% 80% at 82% 60%, rgba(255, 210, 94, .38), transparent 62%),
    radial-gradient(50% 70% at 10% 110%, rgba(242, 106, 31, .45), transparent 70%),
    linear-gradient(135deg, var(--violet-deep), var(--violet));
}
.cta-burst .h2 { color: #fff; font-size: clamp(36px, 5vw, 64px); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.cta-art { position: relative; display: grid; place-items: center; min-height: 300px; }
.cta-sun { position: absolute; width: min(100%, 380px); aspect-ratio: 1; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 18px rgba(255, 247, 234, .16), 0 0 0 40px rgba(255, 247, 234, .08); }
.cta-art img { position: relative; width: min(100%, 420px); height: auto; transform-origin: 50% 100%; }
.cta-sparks { position: absolute; width: min(125%, 540px); top: -14%; }
.cta-sparks path { fill: none; stroke: #FFD25E; stroke-width: 5; stroke-linecap: round; }
.cta-burst.is-visible .cta-art img { animation: cta-bob 4s ease-in-out infinite; }
.cta-burst.is-visible .cta-sparks path { animation: cta-spark 1.6s var(--ease) infinite; }
.cta-burst.is-visible .cta-sun { animation: cta-sun 4s ease-in-out infinite; }
.cta-sparks path:nth-child(even) { animation-delay: .4s !important; }
@keyframes cta-bob { 0%, 100% { transform: none; } 50% { transform: translateY(-8px) rotate(-1deg); } }
@keyframes cta-spark { 0%, 100% { opacity: .2; transform: scale(.85); } 50% { opacity: 1; transform: none; } }
@keyframes cta-sun { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.cta-sparks path { transform-box: fill-box; transform-origin: center; }
@media (max-width: 760px) {
  .cta-burst { grid-template-columns: 1fr; text-align: left; }
  .cta-art { min-height: 220px; margin-top: 28px; }
  .cta-sun { width: 260px; }
  .cta-art img, .cta-sparks { width: 290px; }
}

/* ---------- round 2: product pages (hero band, moving features, art breaks) ---------- */
.prod-hero { --pc: var(--violet); --pc-soft: var(--violet-soft); --pc-ink: var(--violet-deep);
  position: relative; overflow: hidden; padding: clamp(32px, 5vw, 72px) 0 clamp(64px, 8vw, 112px);
  background: radial-gradient(60% 70% at 78% 40%, var(--pc-soft), transparent 72%), linear-gradient(180deg, var(--pc-soft) 0%, var(--cream) 100%);
}
.page-class { --pc: var(--orange); }
.page-portal { --pc: var(--c-teal); }
.page-ai { --pc: var(--violet); }
.prod-hero + .section { padding-top: clamp(56px, 7vw, 96px); }
.ph-class { --pc: var(--orange); --pc-soft: var(--orange-soft); --pc-ink: #B4470C; }
.ph-portal { --pc: var(--c-teal); --pc-soft: #D7F1EC; --pc-ink: #0E7C70; }
.prod-hero::after { content: ""; position: absolute; right: -8%; top: -18%; width: 46vw; max-width: 640px; aspect-ratio: 1; border-radius: 50%;
  background: var(--pc); opacity: .08; pointer-events: none; }
.ph-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.ph-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line); font: 800 15px/1 var(--f-body); color: var(--pc-ink); }
.ph-badge img { width: 34px; height: 34px; border-radius: 10px; object-fit: contain; }
.ph-badge .tag { margin-left: 2px; }
.prod-hero h1 { margin: 20px 0 18px; }
.ph-line { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 30em; margin: 0 0 26px; }
.btn-pc { --bg: var(--pc); }
.ph-media { position: relative; perspective: 1400px; }
.ph-tilt { animation: ph-in 1.1s var(--ease) both .15s; transform-origin: 30% 50%; }
.ph-float { animation: ph-float 7s ease-in-out infinite alternate 1.3s; }
.ph-sub { position: absolute; width: 42%; left: -6%; bottom: -10%; z-index: 2; animation: ph-sub 1s var(--ease) both .7s; }
.ph-sub .ph-float { animation-duration: 5.5s; animation-delay: 1.6s; }
@keyframes ph-in { from { opacity: 0; transform: translateX(60px) rotateY(-18deg) rotateX(6deg); } to { opacity: 1; transform: rotateY(-7deg) rotateX(3deg); } }
@keyframes ph-float { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@keyframes ph-sub { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }

/* a pulsing highlight ring placed over a real screenshot (left, top, width, height in %) */
.ringed { position: relative; display: block; }
.ring { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 3px var(--pc, var(--violet)); }
.ring::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 3px solid var(--pc, var(--violet));
  animation: ring-pulse 2.4s ease-out infinite; }
@keyframes ring-pulse { 0% { opacity: .7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.12); } }

/* features: short title, one line, a moving picture; sides alternate */
.fx-list { display: grid; gap: clamp(64px, 8vw, 120px); }
.fx { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.fx:nth-child(even) { grid-template-columns: 1.15fr .85fr; }
.fx:nth-child(even) .fx-media { order: -1; }
.fx-copy h3 { font: 800 clamp(26px, 2.6vw, 36px)/1.12 var(--f-display); letter-spacing: -.02em; margin: 14px 0 12px; }
.fx-copy p { font-size: 18px; line-height: 1.55; color: var(--ink-2); margin: 0 0 14px; max-width: 28em; }
.band-ink .fx-copy h3 { color: #fff; }
.band-ink .fx-copy p { color: #C4BDE0; }
.js .fx .fx-media { opacity: 0; transform: translateX(48px) rotate(1.5deg); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.js .fx:nth-child(even) .fx-media { transform: translateX(-48px) rotate(-1.5deg); }
.js .fx.is-visible .fx-media { opacity: 1; transform: none; }
.fx-media .ipad, .fx-media .browser { transition: transform .5s var(--ease); }
.fx-media:hover .ipad, .fx-media:hover .browser { transform: translateY(-4px); }

/* story illustration between sections */
.art-break { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 40px); padding: clamp(24px, 4vw, 48px) 16px 0; }
.art-break img { width: clamp(180px, 24vw, 300px); height: auto; animation: ph-float 6s ease-in-out infinite alternate; }
.art-break p { font: 600 clamp(20px, 2vw, 26px)/1.3 var(--f-display); max-width: 15em; margin: 0; color: var(--ink); }
.art-break p .serif { color: var(--pc, var(--violet)); }

@media (max-width: 960px) {
  .ph-grid { grid-template-columns: 1fr; }
  .ph-media { max-width: 640px; margin: 8px auto 0; width: 100%; }
  .ph-sub { left: -2%; bottom: -12%; width: 40%; }
  .fx, .fx:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .fx:nth-child(even) .fx-media { order: 0; }
  .js .fx .fx-media, .js .fx:nth-child(even) .fx-media { transform: translateY(32px); }
}
@media (max-width: 600px) {
  .art-break { flex-direction: column; text-align: center; }
  .art-break img { width: 200px; }
  .fx-media .ipad[style*="aspect-ratio"] { aspect-ratio: auto !important; }
  .prod-hero::after { width: 90vw; right: -40%; }
}

/* ---------- round 3: MaTalk AI page (price line, schools block, 2-up gallery) ---------- */
.ph-price { margin: 16px 0 0; font-size: 16px; color: var(--ink-2); }
.ph-price a { font-weight: 800; color: var(--violet-deep); }
.gallery.g-2 { grid-template-columns: repeat(2, 1fr); max-width: 980px; }
@media (max-width: 640px) { .gallery.g-2 { grid-template-columns: 1fr; } }
.forever { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-xl); background: radial-gradient(70% 90% at 90% 20%, #fff, transparent 70%), var(--violet-soft); box-shadow: inset 0 0 0 1.5px #D9D0FB; }
.forever .h2 { margin: 12px 0 10px; }
.forever-line { margin: 0 0 16px; font-size: clamp(18px, 1.7vw, 22px); color: var(--ink-2); }
.forever-line b { color: var(--ink); }
.forever-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.forever-list li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.forever-list svg { width: 20px; height: 20px; color: var(--c-green); flex: none; }
.forever-art img { width: 100%; height: auto; border-radius: var(--r-lg); background: #fff; padding: 12px; box-shadow: var(--shadow-1); rotate: 1.5deg; }
@media (max-width: 900px) { .forever { grid-template-columns: 1fr; } .forever-art { max-width: 420px; } }

/* ---------- round 3: MaTalk Class page (art and hero animation from matalkclass.com) ---------- */
.hx { position: relative; margin: 0; border-radius: 28px; overflow: hidden; background: #fff; aspect-ratio: 3 / 2; container-type: inline-size; border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink), var(--shadow-2); }
.hx-scene { position: absolute; inset: 0; transform-origin: 62% 40%; }
.hx.is-visible .hx-scene { animation: hxZoom 20s ease-in-out infinite alternate; }
.hx-img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes hxZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.hx-bubble { position: absolute; transform: translate(-50%, -100%) scale(0); transform-origin: bottom center; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: .6cqw 1.4cqw; font: 700 max(11px, 2.2cqw)/1.2 var(--f-display); white-space: nowrap; box-shadow: 0 3px 0 var(--ink); z-index: 3; }
.hx-teach { left: 45%; top: 17%; background: #FFD166; font-size: max(12px, 2.5cqw); }
.hx-kid { background: var(--orange); color: #fff; }
.hx.is-visible .hx-teach { animation: hxTeach 13s infinite; }
.hx.is-visible .hx-kid { animation: hxKid 13s infinite; animation-delay: var(--d); }
@keyframes hxTeach { 0% { transform: translate(-50%, -100%) scale(0); } 4%, 70% { transform: translate(-50%, -100%) scale(1); } 76%, 100% { transform: translate(-50%, -100%) scale(0); } }
@keyframes hxKid { 0% { transform: translate(-50%, -100%) scale(0); } 5%, 45% { transform: translate(-50%, -100%) scale(1); } 52%, 100% { transform: translate(-50%, -100%) scale(0); } }
.hx-glow { position: absolute; width: 9.6%; height: 12.5%; transform: translate(-50%, -50%); border: 4px solid var(--orange); border-radius: 12px; box-shadow: 0 0 0 6px rgba(242, 106, 31, .25); opacity: 0; z-index: 2; }
.hx.is-visible .hx-glow { animation: hxGlow 13s infinite; }
@keyframes hxGlow { 0%, 48% { opacity: 0; transform: translate(-50%, -50%) scale(1.25); } 54%, 86% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 92%, 100% { opacity: 0; } }
.hx-chip { position: absolute; left: 3%; bottom: 4%; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: .7cqw 1.7cqw; font: 700 max(12px, 2.2cqw)/1.2 var(--f-display); color: #177489; box-shadow: 0 3px 0 var(--ink); transform: scale(0); transform-origin: left bottom; z-index: 3; }
.hx.is-visible .hx-chip { animation: hxPop 13s infinite; }
@keyframes hxPop { 0%, 52% { transform: scale(0); } 57%, 86% { transform: scale(1); } 92%, 100% { transform: scale(0); } }
.cl-role-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cl-role-list li { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 26px 22px; border-radius: var(--r-xl); border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); background: #FFF8E6; }
.cl-role-list .r-class { background: #E3F4F3; } .cl-role-list .r-student { background: #F4F0FF; }
.cl-role-list img { width: 96px; height: 96px; }
.cl-role-list b { font: 800 22px/1.1 var(--f-display); letter-spacing: -.02em; }
.cl-role-list span { color: var(--ink-2); font-size: 16px; }
.cl-pair { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.cl-devices { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cl-devices li { display: grid; justify-items: center; gap: 8px; text-align: center; }
.cl-devices img { width: 100%; max-width: 260px; height: auto; }
.cl-devices b { font: 800 17px/1.2 var(--f-display); }
@media (max-width: 900px) { .cl-pair { grid-template-columns: 1fr; } .cl-pair .real-shot:last-child { max-width: 520px; margin-inline: auto; width: 100%; } .cl-role-list li { padding: 22px 14px; } }
@media (max-width: 640px) { .cl-role-list { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
@media (max-width: 560px) { .cl-devices { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .cl-devices b { font-size: 13px; } }
/* ---------- round 3: pricing ("Who is it for?") ---------- */
.pr-hero { padding-bottom: 36px; }
.both { max-width: 1040px; margin: clamp(36px, 5vw, 56px) auto 0; text-align: center; }
.both-title { font: 800 clamp(22px, 2.4vw, 28px)/1.15 var(--f-display); letter-spacing: -.02em; margin: 0 0 18px; }
.both-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.both-list li { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.both-ico { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--c); }
.both-ico svg { width: 18px; height: 18px; color: var(--c-green); }
.other-rows { list-style: none; max-width: 1040px; margin: clamp(36px, 5vw, 56px) auto 0; padding: 0; display: grid; gap: 12px; }
.other-row { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 16px 20px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.other-row img { width: 44px; height: 44px; object-fit: contain; }
.other-row b { font: 800 19px/1.2 var(--f-display); }
.other-row p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .who { grid-template-columns: 1fr; max-width: 560px; } .both-list { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
@media (max-width: 560px) { .who-card { padding: 24px 20px 26px; } .other-row { grid-template-columns: auto 1fr; } .other-row .btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- round 3: FAQ groups ---------- */
.faq-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 860px; margin: 0 auto 8px; }
.faq-chip { padding: 9px 16px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; transition: transform var(--t-fast) var(--spring), background var(--t-fast) var(--ease); }
.faq-chip:hover { background: #FFD166; transform: translateY(-2px); }
.faq-group { max-width: 860px; margin: 0 auto; padding-top: clamp(28px, 4vw, 44px); scroll-margin-top: 80px; }
.faq-group .faq { margin: 0 auto; }
.faq-group-h { display: flex; align-items: center; gap: 12px; font: 800 clamp(22px, 2.4vw, 28px)/1.15 var(--f-display); letter-spacing: -.02em; margin: 0 0 14px; }
.faq-gi { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--c); display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--ink); }
.faq-gi img { width: 30px; height: 30px; object-fit: contain; }
.faq-gi svg { width: 22px; height: 22px; color: var(--ink); }
.faq-gi-txt { font: 800 22px/1 var(--f-display); }

/* ---------- round 3: About, Mission, News ---------- */
.co-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.co-hero-art { position: relative; margin: 0; }
.co-hero-art img { width: 100%; height: auto; animation: floaty 7s ease-in-out infinite; }
.co-bubble { position: absolute; left: 39%; top: 16%; translate: -50% -50%; width: 22%; text-align: center; font: 800 clamp(13px, 1.5vw, 18px)/1.15 var(--f-display); color: var(--ink); animation: floaty 7s ease-in-out infinite; }
.story { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: st; position: relative; }
.story::before { content: ""; position: absolute; left: 6%; right: 6%; top: 96px; border-top: 3px dashed var(--line-2, #D9CFE9); z-index: 0; }
.story-step { position: relative; z-index: 1; counter-increment: st; display: grid; justify-items: center; align-content: start; text-align: center; gap: 8px; padding: 18px 16px 24px; border-radius: var(--r-xl); background: var(--c); border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.story-step::before { content: counter(st); position: absolute; top: -16px; left: 50%; translate: -50% 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 16px/1 var(--f-display); }
.story-step img { width: auto; max-width: 100%; height: 150px; object-fit: contain; margin-top: 8px; transition: transform var(--t-slow) var(--spring); }
.story-step:hover img { transform: translateY(-6px) rotate(-2deg); }
.story-step b { font: 800 20px/1.15 var(--f-display); letter-spacing: -.02em; }
.story-step span { color: var(--ink-2); font-size: 16px; }
.co-values .feat { background: var(--c); box-shadow: inset 0 0 0 1.5px var(--ink); }
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner { display: grid; gap: 14px; align-content: start; padding: 24px; border-radius: var(--r-xl); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #fff; text-decoration: none; transition: transform var(--t-med) var(--spring), background var(--t-med) var(--ease); }
.partner:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); }
.partner p { margin: 0; color: #CFC9E6; }
.partner-logo { height: 72px; border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 10px 16px; }
.partner-logo img { max-height: 48px; width: auto; }
.partner-word { font: 800 26px/1 var(--f-display); color: var(--ink); letter-spacing: -.02em; }
.mi-hero .say-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 4vw, 44px); }
.say-tiles .t { font: 800 clamp(26px, 4.4vw, 56px)/1 var(--f-display); padding: .32em .5em; min-height: 0; border-radius: 18px; border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform .6s var(--spring), opacity .4s var(--ease); }
.js .say-tiles .t { transform: translateY(40%); opacity: 0; }
.js .say-tiles.is-visible .t { transform: none; opacity: 1; }
.js .say-tiles.is-visible .t:nth-child(2) { transition-delay: 70ms; } .js .say-tiles.is-visible .t:nth-child(3) { transition-delay: 140ms; }
.js .say-tiles.is-visible .t:nth-child(4) { transition-delay: 210ms; } .js .say-tiles.is-visible .t:nth-child(5) { transition-delay: 280ms; }
.js .say-tiles.is-visible .t:nth-child(6) { transition-delay: 350ms; }
.say-tiles.is-visible .t:hover { transform: translateY(-8px) rotate(-2deg); transition-delay: 0s; }
.pillars .pillar { background: var(--c); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pillar-art { width: auto; max-width: 70%; height: 130px; object-fit: contain; display: block; margin: 0 0 14px; }
.nw-hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.nw-hero-art { width: clamp(140px, 16vw, 220px); height: auto; animation: floaty 6s ease-in-out infinite; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.news-grid .news-card { background: var(--c, var(--paper)); box-shadow: inset 0 0 0 1.5px var(--ink); align-content: start; }
.news-grid .news-card h2 { font-size: clamp(20px, 1.9vw, 24px); }
.news-featured { grid-column: 1 / -1; position: relative; background: #fff !important; border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink) !important; }
.news-featured h2 { font-size: clamp(26px, 3vw, 38px) !important; max-width: 22em; }
.news-flag { justify-self: start; padding: 5px 12px; border-radius: 999px; background: var(--orange); color: #fff; font: 800 13px/1.2 var(--f-body); letter-spacing: .07em; text-transform: uppercase; }
.news-grid .news-card .link-arrow { margin-top: auto; }
.news-grid .news-meta { flex-wrap: wrap; gap: 6px 10px; } .news-grid .news-meta .tag { white-space: nowrap; }
@media (max-width: 960px) { .co-hero-grid { grid-template-columns: 1fr; } .co-hero-art { max-width: 520px; } .story { grid-template-columns: 1fr 1fr; row-gap: 34px; } .story::before { display: none; } .news-grid { grid-template-columns: 1fr 1fr; } .partners { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .story { grid-template-columns: 1fr; } .news-grid { grid-template-columns: 1fr; } .nw-hero .wrap { grid-template-columns: 1fr; } .nw-hero-art { display: none; } }

@media (prefers-reduced-motion: reduce) { .js .say-tiles .t { transform: none; opacity: 1; } .co-hero-art img, .nw-hero-art { animation: none; } }

@media (prefers-reduced-motion: reduce) {
  .hx-bubble { animation: none !important; transform: translate(-50%, -100%) scale(1); }
  .hx-chip { animation: none !important; transform: none; }
  .hx-glow { animation: none !important; opacity: 1; transform: translate(-50%, -50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-scale, .js .footer-tiles .t { opacity: 1; transform: none; }
  .split-words .w > span { transform: none; }
  .iep .line { stroke-dashoffset: 0; }
  .pz *, .pz *::before, .pz *::after { animation: none !important; }
  .js .fx .fx-media, .js .fx:nth-child(even) .fx-media { transform: translateY(32px); }
}
@media (max-width: 600px) {
  .art-break { flex-direction: column; text-align: center; }
  .art-break img { width: 200px; }
  .fx-media .ipad[style*="aspect-ratio"] { aspect-ratio: auto !important; }
  .prod-hero::after { width: 90vw; right: -40%; }
}

/* ---------- round 3: MaTalk AI page (price line, schools block, 2-up gallery) ---------- */
.ph-price { margin: 16px 0 0; font-size: 16px; color: var(--ink-2); }
.ph-price a { font-weight: 800; color: var(--violet-deep); }
.gallery.g-2 { grid-template-columns: repeat(2, 1fr); max-width: 980px; }
@media (max-width: 640px) { .gallery.g-2 { grid-template-columns: 1fr; } }
.forever { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-xl); background: radial-gradient(70% 90% at 90% 20%, #fff, transparent 70%), var(--violet-soft); box-shadow: inset 0 0 0 1.5px #D9D0FB; }
.forever .h2 { margin: 12px 0 10px; }
.forever-line { margin: 0 0 16px; font-size: clamp(18px, 1.7vw, 22px); color: var(--ink-2); }
.forever-line b { color: var(--ink); }
.forever-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.forever-list li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.forever-list svg { width: 20px; height: 20px; color: var(--c-green); flex: none; }
.forever-art img { width: 100%; height: auto; border-radius: var(--r-lg); background: #fff; padding: 12px; box-shadow: var(--shadow-1); rotate: 1.5deg; }
@media (max-width: 900px) { .forever { grid-template-columns: 1fr; } .forever-art { max-width: 420px; } }

/* ---------- round 3: MaTalk Class page (art and hero animation from matalkclass.com) ---------- */
.hx { position: relative; margin: 0; border-radius: 28px; overflow: hidden; background: #fff; aspect-ratio: 3 / 2; container-type: inline-size; border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink), var(--shadow-2); }
.hx-scene { position: absolute; inset: 0; transform-origin: 62% 40%; }
.hx.is-visible .hx-scene { animation: hxZoom 20s ease-in-out infinite alternate; }
.hx-img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes hxZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.hx-bubble { position: absolute; transform: translate(-50%, -100%) scale(0); transform-origin: bottom center; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: .6cqw 1.4cqw; font: 700 max(11px, 2.2cqw)/1.2 var(--f-display); white-space: nowrap; box-shadow: 0 3px 0 var(--ink); z-index: 3; }
.hx-teach { left: 45%; top: 17%; background: #FFD166; font-size: max(12px, 2.5cqw); }
.hx-kid { background: var(--orange); color: #fff; }
.hx.is-visible .hx-teach { animation: hxTeach 13s infinite; }
.hx.is-visible .hx-kid { animation: hxKid 13s infinite; animation-delay: var(--d); }
@keyframes hxTeach { 0% { transform: translate(-50%, -100%) scale(0); } 4%, 70% { transform: translate(-50%, -100%) scale(1); } 76%, 100% { transform: translate(-50%, -100%) scale(0); } }
@keyframes hxKid { 0% { transform: translate(-50%, -100%) scale(0); } 5%, 45% { transform: translate(-50%, -100%) scale(1); } 52%, 100% { transform: translate(-50%, -100%) scale(0); } }
.hx-glow { position: absolute; width: 9.6%; height: 12.5%; transform: translate(-50%, -50%); border: 4px solid var(--orange); border-radius: 12px; box-shadow: 0 0 0 6px rgba(242, 106, 31, .25); opacity: 0; z-index: 2; }
.hx.is-visible .hx-glow { animation: hxGlow 13s infinite; }
@keyframes hxGlow { 0%, 48% { opacity: 0; transform: translate(-50%, -50%) scale(1.25); } 54%, 86% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 92%, 100% { opacity: 0; } }
.hx-chip { position: absolute; left: 3%; bottom: 4%; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: .7cqw 1.7cqw; font: 700 max(12px, 2.2cqw)/1.2 var(--f-display); color: #177489; box-shadow: 0 3px 0 var(--ink); transform: scale(0); transform-origin: left bottom; z-index: 3; }
.hx.is-visible .hx-chip { animation: hxPop 13s infinite; }
@keyframes hxPop { 0%, 52% { transform: scale(0); } 57%, 86% { transform: scale(1); } 92%, 100% { transform: scale(0); } }
.cl-role-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cl-role-list li { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 26px 22px; border-radius: var(--r-xl); border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); background: #FFF8E6; }
.cl-role-list .r-class { background: #E3F4F3; } .cl-role-list .r-student { background: #F4F0FF; }
.cl-role-list img { width: 96px; height: 96px; }
.cl-role-list b { font: 800 22px/1.1 var(--f-display); letter-spacing: -.02em; }
.cl-role-list span { color: var(--ink-2); font-size: 16px; }
.cl-pair { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.cl-devices { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cl-devices li { display: grid; justify-items: center; gap: 8px; text-align: center; }
.cl-devices img { width: 100%; max-width: 260px; height: auto; }
.cl-devices b { font: 800 17px/1.2 var(--f-display); }
@media (max-width: 900px) { .cl-pair { grid-template-columns: 1fr; } .cl-pair .real-shot:last-child { max-width: 520px; margin-inline: auto; width: 100%; } .cl-role-list li { padding: 22px 14px; } }
@media (max-width: 640px) { .cl-role-list { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
@media (max-width: 560px) { .cl-devices { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .cl-devices b { font-size: 13px; } }
/* ---------- round 3: pricing ("Who is it for?") ---------- */
.pr-hero { padding-bottom: 36px; }
.both { max-width: 1040px; margin: clamp(36px, 5vw, 56px) auto 0; text-align: center; }
.both-title { font: 800 clamp(22px, 2.4vw, 28px)/1.15 var(--f-display); letter-spacing: -.02em; margin: 0 0 18px; }
.both-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.both-list li { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.both-ico { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--c); }
.both-ico svg { width: 18px; height: 18px; color: var(--c-green); }
.other-rows { list-style: none; max-width: 1040px; margin: clamp(36px, 5vw, 56px) auto 0; padding: 0; display: grid; gap: 12px; }
.other-row { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 16px 20px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.other-row img { width: 44px; height: 44px; object-fit: contain; }
.other-row b { font: 800 19px/1.2 var(--f-display); }
.other-row p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .who { grid-template-columns: 1fr; max-width: 560px; } .both-list { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
@media (max-width: 560px) { .who-card { padding: 24px 20px 26px; } .other-row { grid-template-columns: auto 1fr; } .other-row .btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- round 3: FAQ groups ---------- */
.faq-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 860px; margin: 0 auto 8px; }
.faq-chip { padding: 9px 16px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; transition: transform var(--t-fast) var(--spring), background var(--t-fast) var(--ease); }
.faq-chip:hover { background: #FFD166; transform: translateY(-2px); }
.faq-group { max-width: 860px; margin: 0 auto; padding-top: clamp(28px, 4vw, 44px); scroll-margin-top: 80px; }
.faq-group .faq { margin: 0 auto; }
.faq-group-h { display: flex; align-items: center; gap: 12px; font: 800 clamp(22px, 2.4vw, 28px)/1.15 var(--f-display); letter-spacing: -.02em; margin: 0 0 14px; }
.faq-gi { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--c); display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--ink); }
.faq-gi img { width: 30px; height: 30px; object-fit: contain; }
.faq-gi svg { width: 22px; height: 22px; color: var(--ink); }
.faq-gi-txt { font: 800 22px/1 var(--f-display); }

/* ---------- round 3: About, Mission, News ---------- */
.co-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.co-hero-art { position: relative; margin: 0; }
.co-hero-art img { width: 100%; height: auto; animation: floaty 7s ease-in-out infinite; }
.co-bubble { position: absolute; left: 39%; top: 16%; translate: -50% -50%; width: 22%; text-align: center; font: 800 clamp(13px, 1.5vw, 18px)/1.15 var(--f-display); color: var(--ink); animation: floaty 7s ease-in-out infinite; }
.story { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: st; position: relative; }
.story::before { content: ""; position: absolute; left: 6%; right: 6%; top: 96px; border-top: 3px dashed var(--line-2, #D9CFE9); z-index: 0; }
.story-step { position: relative; z-index: 1; counter-increment: st; display: grid; justify-items: center; align-content: start; text-align: center; gap: 8px; padding: 18px 16px 24px; border-radius: var(--r-xl); background: var(--c); border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.story-step::before { content: counter(st); position: absolute; top: -16px; left: 50%; translate: -50% 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 16px/1 var(--f-display); }
.story-step img { width: auto; max-width: 100%; height: 150px; object-fit: contain; margin-top: 8px; transition: transform var(--t-slow) var(--spring); }
.story-step:hover img { transform: translateY(-6px) rotate(-2deg); }
.story-step b { font: 800 20px/1.15 var(--f-display); letter-spacing: -.02em; }
.story-step span { color: var(--ink-2); font-size: 16px; }
.co-values .feat { background: var(--c); box-shadow: inset 0 0 0 1.5px var(--ink); }
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner { display: grid; gap: 14px; align-content: start; padding: 24px; border-radius: var(--r-xl); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #fff; text-decoration: none; transition: transform var(--t-med) var(--spring), background var(--t-med) var(--ease); }
.partner:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); }
.partner p { margin: 0; color: #CFC9E6; }
.partner-logo { height: 72px; border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 10px 16px; }
.partner-logo img { max-height: 48px; width: auto; }
.partner-word { font: 800 26px/1 var(--f-display); color: var(--ink); letter-spacing: -.02em; }
.mi-hero .say-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 4vw, 44px); }
.say-tiles .t { font: 800 clamp(26px, 4.4vw, 56px)/1 var(--f-display); padding: .32em .5em; min-height: 0; border-radius: 18px; border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform .6s var(--spring), opacity .4s var(--ease); }
.js .say-tiles .t { transform: translateY(40%); opacity: 0; }
.js .say-tiles.is-visible .t { transform: none; opacity: 1; }
.js .say-tiles.is-visible .t:nth-child(2) { transition-delay: 70ms; } .js .say-tiles.is-visible .t:nth-child(3) { transition-delay: 140ms; }
.js .say-tiles.is-visible .t:nth-child(4) { transition-delay: 210ms; } .js .say-tiles.is-visible .t:nth-child(5) { transition-delay: 280ms; }
.js .say-tiles.is-visible .t:nth-child(6) { transition-delay: 350ms; }
.say-tiles.is-visible .t:hover { transform: translateY(-8px) rotate(-2deg); transition-delay: 0s; }
.pillars .pillar { background: var(--c); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pillar-art { width: auto; max-width: 70%; height: 130px; object-fit: contain; display: block; margin: 0 0 14px; }
.nw-hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.nw-hero-art { width: clamp(140px, 16vw, 220px); height: auto; animation: floaty 6s ease-in-out infinite; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.news-grid .news-card { background: var(--c, var(--paper)); box-shadow: inset 0 0 0 1.5px var(--ink); align-content: start; }
.news-grid .news-card h2 { font-size: clamp(20px, 1.9vw, 24px); }
.news-featured { grid-column: 1 / -1; position: relative; background: #fff !important; border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink) !important; }
.news-featured h2 { font-size: clamp(26px, 3vw, 38px) !important; max-width: 22em; }
.news-flag { justify-self: start; padding: 5px 12px; border-radius: 999px; background: var(--orange); color: #fff; font: 800 13px/1.2 var(--f-body); letter-spacing: .07em; text-transform: uppercase; }
.news-grid .news-card .link-arrow { margin-top: auto; }
.news-grid .news-meta { flex-wrap: wrap; gap: 6px 10px; } .news-grid .news-meta .tag { white-space: nowrap; }
@media (max-width: 960px) { .co-hero-grid { grid-template-columns: 1fr; } .co-hero-art { max-width: 520px; } .story { grid-template-columns: 1fr 1fr; row-gap: 34px; } .story::before { display: none; } .news-grid { grid-template-columns: 1fr 1fr; } .partners { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .story { grid-template-columns: 1fr; } .news-grid { grid-template-columns: 1fr; } .nw-hero .wrap { grid-template-columns: 1fr; } .nw-hero-art { display: none; } }

@media (prefers-reduced-motion: reduce) { .js .say-tiles .t { transform: none; opacity: 1; } .co-hero-art img, .nw-hero-art { animation: none; } }

@media (prefers-reduced-motion: reduce) {
  .hx-bubble { animation: none !important; transform: translate(-50%, -100%) scale(1); }
  .hx-chip { animation: none !important; transform: none; }
  .hx-glow { animation: none !important; opacity: 1; transform: translate(-50%, -50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-scale, .js .footer-tiles .t { opacity: 1; transform: none; }
  .split-words .w > span { transform: none; }
  .iep .line { stroke-dashoffset: 0; }
  .js .fx .fx-media { opacity: 1; transform: none; }
  .ring::after { display: none; }
}

/* ---------- homepage flow restored (round 2 order) ---------- */
.section-video { padding-bottom: clamp(60px, 7vw, 100px); }
.vcard-more { margin: 18px 0 0; }
.vcard-more .link-arrow { border: 0; background: none; cursor: pointer; font-size: 17px; padding: 8px; }
.beta-form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); resize: vertical; min-height: 96px; }
.beta-form textarea:focus-visible { outline: 3px solid var(--violet); outline-offset: 1px; border-color: var(--ink); }

/* video switch: founder story or product demo */
.vtabs { display: flex; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto 22px; padding: 6px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-1); }
.vtab { display: flex; align-items: center; gap: 10px; padding: 7px 18px 7px 7px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: inherit; cursor: pointer; text-align: left; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.vtab img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: none; }
.vtab b { display: block; font: 800 16px/1.1 var(--f-display); }
.vtab small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.vtab:hover { background: var(--cream); }
.vtab[aria-selected="true"] { background: var(--violet); color: #fff; }
.vtab[aria-selected="true"] small { color: rgba(255, 255, 255, .85); }
.vtab[aria-selected="true"] img { box-shadow: 0 0 0 2px #fff; }
.vtab:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
@media (max-width: 520px) { .vtab { padding-right: 12px; gap: 8px; } .vtab img { width: 32px; height: 32px; } .vtab b { font-size: 14px; } }

/* the MaTalk Class animation runs only while it is on screen (on its page and on the homepage card) */
.hx.is-paused, .hx.is-paused * { animation-play-state: paused !important; }
/* the AAC user's answer: the purple device speaks, after the three other students and before "Everyone answered" */
.hx-aac { display: inline-flex; align-items: center; gap: .3em; background: #7B4FD6; color: #fff; }
.hx-aac svg { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

/* ---------- round 12: SLP Portal page (hero trust line, closing card in the portal's colours) ---------- */
.ph-notes { display: grid; gap: 10px; margin: 22px 0 22px; max-width: 34em; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ph-notes p { margin: 0; }
.ph-trust { display: flex; align-items: flex-start; gap: 10px; }
.ph-trust .ico { width: 20px; height: 20px; margin-top: 1px; color: var(--pc-ink); }
.ph-trust a { font-weight: 800; color: var(--pc-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; white-space: nowrap; }
.ph-trust a:hover { text-decoration-thickness: 2.5px; }
#trust { scroll-margin-top: 14px; }
/* the screenshots section is gone, so the drawing above Trust gets room before the dark band */
.page-portal .art-break + .band-ink { margin-top: clamp(40px, 5vw, 72px); }

.cta-portal {
  --cp-pad: clamp(36px, 4.6vw, 64px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 40px); align-items: stretch;
  padding: var(--cp-pad);
  background:
    radial-gradient(48% 75% at 98% 100%, rgba(0, 219, 227, .42), transparent 72%),
    radial-gradient(42% 60% at 0% 0%, rgba(215, 185, 248, .26), transparent 70%),
    linear-gradient(128deg, #3F0AB4 0%, #5810E9 52%, #6A26F2 100%);
}
.cta-portal-copy { position: relative; z-index: 1; align-self: center; }
.cta-portal p { color: #EEE6FF; margin: 16px 0 26px; text-wrap: pretty; }
.cta-portal-art { position: relative; min-height: 100%; margin: calc(-1 * var(--cp-pad)) calc(-1 * var(--cp-pad)) calc(-1 * var(--cp-pad)) 0; }
.cta-portal-art .browser { position: absolute; left: 4%; top: 22%; width: 118%; rotate: -5deg; transform-origin: 0 0; box-shadow: 0 30px 60px -20px rgba(22, 6, 74, .55), 0 0 0 1px rgba(255, 255, 255, .25); }
.cta-portal-badge { position: absolute; left: 0; top: 9%; z-index: 2; width: 68px; height: 68px; padding: 9px; border-radius: 50%; background: #fff; box-shadow: 0 10px 24px -8px rgba(22, 6, 74, .5); }
@media (max-width: 760px) {
  .cta-portal { grid-template-columns: 1fr; gap: 0;
    background:
      radial-gradient(90% 38% at 100% 100%, rgba(0, 219, 227, .42), transparent 72%),
      radial-gradient(60% 30% at 0% 0%, rgba(215, 185, 248, .26), transparent 70%),
      linear-gradient(160deg, #3F0AB4 0%, #5810E9 55%, #6A26F2 100%); }
  .cta-portal-art { min-height: 0; height: clamp(150px, 42vw, 230px); margin: 28px calc(-1 * var(--cp-pad)) calc(-1 * var(--cp-pad)) 0; }
  .cta-portal-art .browser { left: 8%; top: 34px; width: 104%; rotate: -4deg; }
  .cta-portal-badge { left: 0; top: 0; width: 56px; height: 56px; padding: 7px; }
}
@media (max-width: 480px) { .cta-portal { --cp-pad: 24px; padding-top: 36px; } }

/* ---------- round 12: MaTalk Class page (free plan line, four tiles, save time section, new screens) ---------- */
.cl-free { display: flex; align-items: flex-start; gap: 10px; }
.cl-free .ico { width: 20px; height: 20px; margin-top: 1px; color: var(--pc-ink); }
.cl-free b { color: var(--ink); }
.cl-role-list { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
.cl-role-list li { align-content: start; }
.cl-role-list .r-work { background: #E6F4FA; }
@media (max-width: 1100px) { .cl-role-list { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; } }
@media (max-width: 640px) { .cl-role-list { grid-template-columns: 1fr; grid-auto-rows: auto; max-width: 460px; } }

.cl-save { padding-top: 0; }
.cl-save-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.cl-save-copy .h2 { margin: 14px 0 18px; }
.cl-save-copy .lede { margin: 0 0 26px; max-width: 30em; }
.cl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cl-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; color: var(--ink); }
.cl-steps b { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font: 800 16px/1 var(--f-display); }
.cl-save-art { display: grid; grid-template-columns: auto auto minmax(0, 380px); align-items: center; justify-content: center; gap: clamp(12px, 2vw, 22px); }
.cl-materials { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cl-materials li { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); font: 800 15px/1 var(--f-display); white-space: nowrap; }
.cl-materials img { width: 38px; height: 38px; }
.cl-save-arrow { width: 34px; height: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 7px, transparent 7px 12px); position: relative; }
.cl-save-arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 8px solid var(--orange); border-right: 0; }
.cl-save-shot .browser { rotate: 1.5deg; }
.cl-save-shot figcaption { text-align: center; }
@media (max-width: 1100px) { .cl-save-grid { grid-template-columns: 1fr; } .cl-save-copy { max-width: 760px; } }
@media (max-width: 900px) {
  .cl-save-art { grid-template-columns: 1fr; justify-items: center; }
  .cl-materials { grid-template-columns: repeat(4, auto); justify-content: center; }
  .cl-save-arrow { width: 2px; height: 30px; background: repeating-linear-gradient(180deg, var(--orange) 0 7px, transparent 7px 12px); }
  .cl-save-arrow::after { right: auto; left: -5px; top: auto; bottom: -2px; border: 6px solid transparent; border-top: 8px solid var(--orange); border-bottom: 0; }
  .cl-save-shot { width: min(100%, 340px); }
}
@media (max-width: 560px) { .cl-materials { grid-template-columns: repeat(2, auto); } }
.cl-pair { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 900px) { .cl-pair { grid-template-columns: 1fr; } }

/* ---------- round 20: MaTalk AI page (one even rhythm, set up joins the light list, compact closing card) ---------- */
.page-ai main > .section, .page-ai main > .section-sm { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }
/* two light sections in a row share one gap, not two */
.page-ai main > .section:not(.band-ink):not(.ai-band) + .section:not(.band-ink):not(.ai-band),
.page-ai main > .section:not(.band-ink):not(.ai-band) + .section-sm,
.page-ai main > .section-sm + .section:not(.band-ink):not(.ai-band) { padding-top: 0; }
/* the drawing between Share and the schools card: one small gap on each side */
.page-ai main > .section:has(+ .art-break) { padding-bottom: clamp(40px, 4.5vw, 64px); }
.page-ai main > .art-break + .section-sm { padding-top: clamp(32px, 3.5vw, 48px); }
.page-ai .fx-list { gap: clamp(56px, 6.7vw, 96px); }
@media (min-width: 961px) { .page-ai .fx, .page-ai .fx:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.page-ai .nowrap { white-space: nowrap; }
/* a shown feature picture sits in place on every row (the narrow-screen and reduced-motion rules for even rows otherwise keep it 32px low) */
.js .page-ai .fx.is-visible:nth-child(n) .fx-media { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .page-ai .fx:nth-child(n) .fx-media { opacity: 1; transform: none; } }
.page-ai .cta-ai {
  --cp-pad: clamp(36px, 4.6vw, 64px);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(20px, 3vw, 40px); align-items: stretch;
  padding: var(--cp-pad);
}
.page-ai .cta-ai-copy { position: relative; z-index: 1; align-self: center; }
.page-ai .cta-ai .h2 { text-wrap: balance; }
.page-ai .cta-ai p { margin: 16px 0 26px; }
@media (max-width: 760px) {
  .page-ai .cta-ai { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) { .page-ai .cta-ai { --cp-pad: 24px; padding-top: 36px; } }

/* ---------- round 21: MaTalk AI page (Q&A, setup agent and IEP board each get a section; two smaller "also in the app" rows; the real word-board video) ---------- */
/* setup agent: a light band under the dark Q&A band, the demo shown large */
.page-ai .ai-setup { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-ai .ai-setup .agent { padding: clamp(20px, 2.4vw, 32px); gap: 16px; }
.page-ai .ai-setup .agent-msg { font-size: clamp(15px, 1.35vw, 18px); line-height: 1.45; padding: 14px 18px; }
.page-ai .ai-setup .agent-build { gap: 8px; }
.page-ai .ai-setup .agent-build .t { font-size: clamp(14px, 1.2vw, 16px); min-height: 52px; }
/* the typed message keeps its full size from the start (an invisible copy holds the space), so nothing moves while it types */
.page-ai .agent-msg.me { display: grid; }
.page-ai .agent-msg.me > span { grid-area: 1 / 1; }
.page-ai .agent-ghost { visibility: hidden; }
.page-ai .agent-ghost::after { content: ""; display: inline-block; width: 4px; }
/* IEP board: a soft blue band (the colours of the IEP chart); goal and chart side by side, then the SLP Portal row */
.page-ai .ai-iep { background: #EDF3FA; border-bottom: 1px solid #D6E0EB; }
.page-ai .ai-iep .section-head { margin-bottom: clamp(28px, 3.5vw, 48px); }
.page-ai .iep-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(16px, 2.2vw, 28px); align-items: stretch; }
.page-ai .iep-row .goal-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 2vw, 28px); }
.page-ai .iep-row .goal-card .ai { align-self: flex-start; }
.page-ai .iep-row .iep { padding: clamp(20px, 2vw, 28px); }
.page-ai .iep-share { margin-top: clamp(56px, 6.7vw, 96px); }
@media (max-width: 960px) { .page-ai .iep-row { grid-template-columns: 1fr; } }
/* keyboard row (round 22: one row, no label), slightly smaller title */
.page-ai .ai-also .fx-copy h3 { font-size: clamp(24px, 2.2vw, 30px); }
/* the real word-board video in the iPad frame, with one play / pause button */
.page-ai .ai-video { position: relative; }
.page-ai .ai-video video { background: #FAFAF7; }
.page-ai .ai-video-btn {
  position: absolute; right: 22px; bottom: 22px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(30, 26, 54, .72); cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--spring);
}
.page-ai .ai-video-btn:hover { background: var(--violet-deep); transform: scale(1.06); }
.page-ai .ai-video-btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.page-ai .ai-video-btn svg { width: 20px; height: 20px; fill: currentColor; }
.page-ai .ai-video .i-play, .page-ai .ai-video.is-paused .i-pause { display: none; }
.page-ai .ai-video.is-paused .i-play { display: block; }
/* held (reduced motion, or paused by the visitor): a large play button in the middle of the poster */
.page-ai .ai-video.is-held .ai-video-btn { right: 50%; bottom: 50%; translate: 50% 50%; width: 76px; height: 76px; background: var(--ink); box-shadow: 0 10px 28px rgba(30, 26, 54, .35); }
.page-ai .ai-video.is-held .ai-video-btn:hover { background: var(--violet-deep); }
.page-ai .ai-video.is-held .ai-video-btn svg { width: 32px; height: 32px; margin-left: 4px; }
html:not(.js) .page-ai .ai-video-btn { display: none; }

/* ---------- round 22 ---------- */
.page-ai [hidden] { display: none !important; } /* the hidden Q&A demo (#try) takes no space */
.page-ai .ai-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* official store badges, unchanged files, same height */
.ai-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ai-badge { display: inline-block; flex: none; line-height: 0; border-radius: 9px; transition: transform var(--t-fast) var(--spring); }
.ai-badge:hover { transform: translateY(-2px); }
.ai-badge:focus-visible { outline: 3px solid var(--violet-deep); outline-offset: 4px; }
.ai-badge img { display: block; width: auto; height: 48px; }
.page-ai .cta-ai .ai-badge:focus-visible { outline-color: #fff; }
.page-ai .ai-cta-row { gap: 14px 20px; }
/* pricing: two compact cards, a pill on the top edge */
.page-ai main > .ai-price { padding-top: clamp(24px, 3vw, 40px); }
.ai-price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 32px); max-width: 1000px; margin: 0 auto; }
.ai-pcard {
  --ac: var(--violet); --ac-soft: var(--violet-soft); --ac-ink: var(--violet-ink);
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(34px, 3.2vw, 42px) clamp(22px, 2.6vw, 36px) clamp(24px, 2.6vw, 32px);
  border-radius: var(--r-lg); background: linear-gradient(180deg, var(--ac-soft) 0, var(--paper) 150px);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
}
.ai-pcard-sch { --ac: var(--c-blue); --ac-soft: #E3EDFC; --ac-ink: #1F4FA8; }
.ai-pill {
  position: absolute; top: 0; left: clamp(22px, 2.6vw, 36px); translate: 0 -50%;
  padding: 5px 14px; border-radius: 999px; background: var(--ac-soft); color: var(--ac-ink);
  font-size: 14px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 40%, transparent);
}
.ai-pcard-head { display: flex; align-items: center; gap: 14px; }
.ai-pcard-head img { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: var(--shadow-1); }
.ai-pcard-head :is(h2, h3) { margin: 0; font: 800 clamp(22px, 2vw, 26px)/1.15 var(--f-display); letter-spacing: -.02em; }
.ai-pbig { margin: 18px 0 6px; font-size: 18px; color: var(--ink-2); }
.ai-pbig b { font: 800 clamp(40px, 4vw, 52px)/1 var(--f-display); letter-spacing: -.03em; color: var(--ink); }
.ai-pline { margin: 0 0 20px; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.ai-pcard .forever-list { margin: 8px 0 22px; font-size: 16px; }
.ai-pcard-act { margin-top: auto; }
.ai-bill { display: inline-flex; margin-top: 18px; padding: 4px; border-radius: 999px; background: var(--cream-2); box-shadow: inset 0 0 0 1px var(--line); }
.ai-bill button {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 700 15px/1 var(--f-body); color: var(--ink-2); transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.ai-bill button:hover { color: var(--ink); }
.ai-bill button[aria-pressed="true"] { background: var(--violet-deep); color: #fff; }
.ai-bill button:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
html:not(.js) .ai-bill { display: none; }
@media (max-width: 860px) {
  .ai-price-grid { grid-template-columns: 1fr; max-width: 560px; gap: 36px; }
}
@media (max-width: 420px) {
  .ai-pcard .ai-badge img, .page-ai .cta-ai .ai-badge img { height: 44px; }
  .ai-pcard .ai-badges, .page-ai .cta-ai .ai-badges { gap: 12px; }
}
.page-ai .ai-kbd .fx-copy h3 { text-wrap: balance; }
/* setup agent: the small on-device note */
.page-ai .ai-note { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.page-ai .ai-note svg { width: 22px; height: 22px; flex: none; padding: 6px; box-sizing: content-box; border-radius: 50%; background: var(--violet-soft); color: var(--violet-deep); }
@media (prefers-reduced-motion: reduce) { .ai-badge, .ai-bill button { transition: none; } .ai-badge:hover { transform: none; } }
.page-ai #schools { scroll-margin-top: 120px; } /* links to /matalk-ai#schools land with the pill clear of the sticky header */
/* pricing cards, centred column with a large app icon on top (round 22, Shay's follow-up) */
.page-ai main > .ai-price { padding-top: clamp(16px, 2vw, 28px); padding-bottom: clamp(28px, 2.8vw, 40px); }
.ai-pcard { align-items: center; text-align: center; padding-top: clamp(30px, 2.8vw, 36px); }
.ai-pill { left: 50%; translate: -50% -50%; }
.ai-pcard-head { flex-direction: column; gap: 10px; }
.ai-pcard-head img { width: 104px; height: 104px; border-radius: 24px; }
.ai-bill { margin-top: 14px; }
.ai-pbig { margin-top: 14px; }
.ai-pcard .forever-list { margin: 6px auto 20px; text-align: left; }
.ai-pcard .ai-badges { justify-content: center; }
@media (max-width: 600px) { .ai-pcard-head img { width: 88px; height: 88px; border-radius: 20px; } }
/* the "2 months free" tag inside the Yearly button, and the Forever card's "One payment" tag in the same slot as the family card's switch, so the two prices sit on one line */
.ai-bill button { display: inline-flex; align-items: center; gap: 8px; }
.ai-bill-save { padding: 3px 8px; border-radius: 999px; background: #D9F5E3; color: #17603A; font: 800 10.5px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ai-bill-one { display: inline-flex; margin: 14px 0 0; padding: 4px; border-radius: 999px; background: var(--cream-2); box-shadow: inset 0 0 0 1px var(--line); max-width: none; }
.ai-bill-one span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--ac-ink); font: 700 15px/1.2 var(--f-body); box-shadow: inset 0 0 0 1px var(--ac-soft); }
/* Participate in conversations: its own soft lavender band (cream pricing above, paper setup below) */
.page-ai .ai-conv { background: #F5F2FF; border-top: 1px solid #E6E0FA; border-bottom: 1px solid #E6E0FA; }
.page-ai .ai-conv .real-tag { background: #E4DDFD; }
/* hero pill: "Patent pending" only (round 22), even padding without the logo */
.page-ai .ai-ph-badge { padding: 8px 16px; }
/* closing card: the dinner-table drawing on a cream panel (round 22; the separate drawing break was removed) */
@media (min-width: 761px) { .page-ai .cta-ai { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
.page-ai .ai-cta-pic { align-self: center; padding: clamp(12px, 1.4vw, 18px); border-radius: var(--r-lg); background: var(--cream); }
.page-ai .ai-cta-pic img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .page-ai .ai-cta-pic { margin-top: 24px; max-width: 520px; } }
.page-ai .shot-zoo { aspect-ratio: 1600 / 1039; } /* MaTalk AI Q&A, the zoo question (round 22) */

/* ---------- round 23 ---------- */
/* pricing cards: shared by /matalk-ai and /pricing (src/partials/price-cards.html), so not page-scoped */
/* partner strip on /matalk-ai: sits between pricing and the conversations band */
.page-ai .trust-home { margin-bottom: 0; }
.page-ai .trust-home + .ai-conv { border-top: 0; }
/* keyboard row: a small eyebrow above the tag */
.page-ai .ai-kbd-eyebrow { display: flex; margin-bottom: 14px; }
/* text in the empty speech bubble of a drawing (round 24). The words are SVG <text> in the picture's own viewBox (picture pixels at
   640 wide), so they scale with the picture and stay in the bubble at every width; no other text style on the page can reach them.
   Round 23 used an HTML <p> here, and ".cta-band p" (pale lavender, 19px) won over the bubble style, so the words spilled out.
   TUNE A BUBBLE HERE: --bx / --by = centre of the words, --bs = text size (all in picture pixels). The narrow-picture block below
   has a second set, plus --rx / --ry for the cream oval drawn behind the words there. */
.art-bubble-wrap { position: relative; container-type: inline-size; }
.art-bubble-wrap > img { display: block; width: 100%; height: auto; }
.art-bubble-wrap > svg.art-bubble { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; pointer-events: none; }
.art-bubble-wrap > svg.art-bubble g { transform: translate(calc(var(--bx) * 1px), calc(var(--by) * 1px)); }
.art-bubble-wrap > svg.art-bubble text { font-family: var(--f-body); font-weight: 700; font-size: calc(var(--bs) * 1px); letter-spacing: -.01em; fill: #1E1A36; stroke: none; text-anchor: middle; }
.art-bubble-wrap > svg.art-bubble ellipse { display: none; cx: 0; cy: 0; rx: calc(var(--rx) * 1px); ry: calc(var(--ry) * 1px); fill: #FFF7EA; stroke: #1E1A36; stroke-width: 3.5; }
.art-bubble-dinner { --bx: 187; --by: 66; --bs: 21; }
.art-bubble-class  { --bx: 179; --by: 55; --bs: 17; }
/* narrow pictures (phones, and the two-column card at tablet width): the drawn bubble is too small for readable words, so the words
   get larger and sit on a cream oval of their own, drawn over the empty one */
@container (max-width: 440px) {
  .art-bubble-wrap > svg.art-bubble ellipse { display: inline; }
  .art-bubble-dinner { --bx: 186; --by: 70; --bs: 25.5; --rx: 124; --ry: 68; }
  .art-bubble-class  { --bx: 184; --by: 64; --bs: 24; --rx: 134; --ry: 63; }
}
/* MaTalk Class: one large student screen (the Pip story) at its own wide shape; the frame hugs the picture, no empty band */
.page-class .cl-one { max-width: 1000px; margin: 0 auto; }
.page-class .cl-shot-pip { aspect-ratio: 800 / 372; }
/* MaTalk Class closing card: the classroom drawing on a cream panel, like the MaTalk AI closing card */
@media (min-width: 761px) { .page-class .cl-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); padding: clamp(36px, 4.6vw, 64px); } }
.page-class .cl-cta-pic { position: relative; align-self: center; padding: clamp(12px, 1.4vw, 18px); border-radius: var(--r-lg); background: var(--cream); }
@media (max-width: 760px) { .page-class .cl-cta { grid-template-columns: 1fr; } .page-class .cl-cta-pic { margin-top: 24px; max-width: 520px; } }
@media (max-width: 480px) { .page-class .cl-cta { padding: 36px 24px 24px; } }

/* ---------- blog (/blog and /blog/post-N, built from src/blog/posts.json) ---------- */
.blog-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { display: grid; gap: 12px; }
.blog-card-pic { display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; background: var(--cream-2); }
.blog-card-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card h2 a { color: inherit; text-decoration: none; }
.blog-card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.blog-card h2 a:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 15px; color: var(--muted); }
.blog-meta strong { color: var(--ink); }
.blog-back { max-width: 820px; margin: 0 auto 16px; }
.blog-back .link-arrow::before { content: "\2190\00a0"; }
.blog-post .blog-hero { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: var(--r-lg); margin: 0 0 28px; }
.legal.blog-post h1 + p.blog-meta { margin: 14px 0 12px; font-weight: 500; }
.legal.blog-post p.blog-tags { margin: 0 0 8px; }
.blog-post > p, .blog-post li { font-size: 18px; line-height: 1.65; }
.blog-fig { margin: 28px auto; max-width: 360px; }
.blog-fig img { display: block; width: 100%; height: auto; border-radius: var(--r-md); }
