/* Tap AAC (tapaac.com) design system.
   Brand: the "Tile Bubble" app icon (teal #14829F -> #0B5C76, a yellow #FFC933 tile, white tiles with teal keylines).
   Type: Bricolage Grotesque for headings, Atkinson Hyperlegible Next for everything you read (designed for low-vision
   readers). Both self-hosted, SIL Open Font License (assets/fonts/OFL-*.txt), font-display: optional, not preloaded
   (speed: see tools/site_shell.py). No third-party requests.
   Contrast: body text is AAA (7:1+) in light and dark; small and secondary text is at least AA (4.5:1).
   Every class used by the generated pages (tools/build_*.py) is kept; section styles live in core-words.css,
   aac-guides.css and maker/board-maker.css and use the tokens below. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 600 800; font-style: normal; font-display: optional;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: optional;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-italic.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; font-display: optional;
}
/* Metric-matched fallbacks, so the swap to the web fonts barely moves the text. */
@font-face { font-family: "Atkinson Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; }
@font-face { font-family: "Bricolage Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 98%; ascent-override: 96%; descent-override: 26%; }

:root {
  color-scheme: light dark;

  /* Brand */
  --teal-950: #062C38;
  --teal-900: #08394A;
  --teal-800: #0A4B60;
  --brand-deep: #0B5C76;     /* icon gradient end; links (7.3:1 on --bg) */
  --brand: #0F6E8C;          /* buttons (5.8:1 with white) */
  --brand-bright: #14829F;   /* icon gradient start: fills only */
  --brand-ink: #FFFFFF;
  --accent: #FFC933;         /* the yellow tile: a fill, never text on light */
  --accent-deep: #E5A800;
  --accent-soft: #FFF4D1;

  /* Surfaces and text (light). The LMNOP LABS site kit's light scheme (lmnoplabs.fun), re-tinted to Tap AAC teal. */
  --bg: #F4F8F9;             /* cool paper */
  --bg-alt: #EAF2F4;         /* alternate bands */
  --surface: #FFFFFF;
  --surface-2: #E4F1F4;      /* teal tint */
  --ink: #10212B;            /* 15.8:1 on --bg */
  --ink-2: #44535C;          /* 7.6:1 on --bg */
  --ink-3: #5A6A73;          /* 5.4:1: small print only */
  --line: #DFE7EA;
  --line-cool: #CCDDE3;
  --link: #0B5C76;
  --focus: #0B5C76;
  --on-dark: #FFFFFF;
  --on-dark-2: #CFE3EA;      /* 9:1 on --teal-900 */

  /* Kit surfaces: frosted app bar, ambient glows and grid, gradient display text, tonal tints, cards */
  --appbar-bg: rgba(244, 248, 249, .78);
  --glow-a: rgba(20, 130, 159, .17);
  --glow-b: rgba(255, 201, 51, .16);
  --glow-c: rgba(20, 130, 159, .08);
  --grid-line: rgba(11, 92, 118, .055);
  --grad: linear-gradient(100deg, #0A4B60 0%, #0F6E8C 45%, #14829F 90%);
  --tint: rgba(15, 110, 140, .08);
  --tint-ring: rgba(15, 110, 140, .22);
  --card-bg: linear-gradient(180deg, #FFFFFF, rgba(255, 255, 255, .86));
  --card-ring: rgba(16, 33, 43, .08);
  --card-ring-hover: rgba(15, 110, 140, .28);
  --chip-bg: rgba(255, 255, 255, .78);
  --bezel: #15232A;

  /* Type */
  --font: "Atkinson Hyperlegible Next", "Atkinson Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Bricolage Fallback", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --step--1: clamp(.94rem, .92rem + .1vw, 1rem);
  --step-0: clamp(1.0625rem, 1.03rem + .16vw, 1.1875rem);
  --step-1: clamp(1.2rem, 1.13rem + .35vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.3rem + .75vw, 2rem);
  --step-3: clamp(1.85rem, 1.55rem + 1.5vw, 2.85rem);
  --step-4: clamp(2.25rem, 1.75rem + 2.5vw, 3.9rem);
  --step-5: clamp(2.6rem, 1.85rem + 3.8vw, 5.1rem);

  /* Space, shape, depth */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --section-y: clamp(56px, 4rem + 4vw, 120px);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --tile: 18px 18px 18px 6px;    /* the speech-bubble tile corner, from the icon */
  --tile-lg: 28px 28px 28px 8px;
  --shadow-1: 0 1px 2px rgba(8, 40, 52, .06), 0 1px 1px rgba(8, 40, 52, .04);
  --shadow: 0 1px 2px rgba(8, 40, 52, .05), 0 8px 24px -6px rgba(8, 40, 52, .12);
  --shadow-3: 0 2px 6px rgba(8, 40, 52, .06), 0 28px 60px -18px rgba(8, 40, 52, .32);
  --max: 1200px;
  --prose: 720px;
  --gutter: clamp(16px, 3.2vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* The tile pattern from the app's home screen */
  --tiles-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Crect x='8' y='8' width='72' height='72' rx='18' fill='%230F6E8C' fill-opacity='.06'/%3E%3C/svg%3E");
  --tiles-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Crect x='8' y='8' width='72' height='72' rx='18' fill='%23FFFFFF' fill-opacity='.07'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-soft: #3A3218;
    --bg: #071114;
    --bg-alt: #0B181C;
    --surface: #0E1C21;
    --surface-2: #112A33;
    --ink: #ECF3F5;            /* 16:1 */
    --ink-2: #B4C5CC;          /* 10:1 */
    --ink-3: #93A7AF;          /* 7:1 */
    --line: #1E3139;
    --line-cool: #26404C;
    --link: #8AD6EC;
    --focus: #FFC933;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -8px rgba(0, 0, 0, .55);
    --shadow-3: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 60px -18px rgba(0, 0, 0, .7);
    --tiles-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88'%3E%3Crect x='8' y='8' width='72' height='72' rx='18' fill='%238AD6EC' fill-opacity='.05'/%3E%3C/svg%3E");
    --appbar-bg: rgba(7, 17, 20, .66);
    --glow-a: rgba(20, 130, 159, .26);
    --glow-b: rgba(255, 201, 51, .07);
    --glow-c: rgba(138, 214, 236, .06);
    --grid-line: rgba(255, 255, 255, .035);
    --grad: linear-gradient(100deg, #FFFFFF 5%, #8AD6EC 50%, #FFC933 100%);
    --tint: rgba(138, 214, 236, .10);
    --tint-ring: rgba(138, 214, 236, .24);
    --card-bg: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    --card-ring: rgba(255, 255, 255, .08);
    --card-ring-hover: rgba(138, 214, 236, .3);
    --chip-bg: rgba(255, 255, 255, .03);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--bg); }
body {
  margin: 0; position: relative;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
/* The kit's ambient background: soft teal and yellow glows and a faint grid at the top of every page, fading out. */
body::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: min(1500px, 100%); z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% -8%, var(--glow-a), transparent 62%),
    radial-gradient(700px 420px at 2% 14%, var(--glow-b), transparent 60%),
    radial-gradient(800px 500px at 50% 112%, var(--glow-c), transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 90%);
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (forced-colors: active) { .grad { background: none; color: CanvasText; } }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 750; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.018em; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.026em; line-height: 1.04; }
h2 { font-size: var(--step-3); letter-spacing: -.022em; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2.5px; }
::selection { background: var(--accent); color: #10212B; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-7) 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--brand-deep); color: var(--brand-ink); padding: 12px 18px; border-radius: 12px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons (the kit's Material 3 pills: filled, tonal, outlined) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0;
  background: var(--brand); color: var(--brand-ink); text-decoration: none;
  font-family: var(--font); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; letter-spacing: .005em;
  box-shadow: 0 1px 2px rgba(8, 40, 52, .18), 0 1px 3px 1px rgba(8, 40, 52, .08);
  transition: background-color .15s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--brand-deep); text-decoration: none; box-shadow: 0 1px 2px rgba(8, 40, 52, .2), 0 4px 12px 2px rgba(8, 40, 52, .12); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sun { background: var(--accent); color: #10212B; }
.btn-sun:hover { background: #FFD45C; }
.btn-ghost, .btn-outlined { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1.5px var(--line-cool); }
.btn-ghost:hover, .btn-outlined:hover { background: var(--tint); color: var(--link); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-tonal { background: var(--surface-2); color: var(--brand-deep); box-shadow: none; }
.btn-tonal:hover { background: var(--line-cool); }
@media (prefers-color-scheme: dark) { .btn-tonal { color: var(--link); } }
.btn-on-dark { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px #FFFFFF; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.125rem; }
.btn-link { display: inline-block; font-weight: 700; padding: 10px 0; min-height: 44px; line-height: 1.5; }
.btn-link::after { content: "\2192"; display: inline-block; margin-left: 6px; transition: transform .15s var(--ease); }
.btn-link:hover::after { transform: translateX(3px); }

/* "Coming soon to Google Play" (never Google's badge until the listing is live; see tools/site_config.py) */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px;
  background: #0D1A21; color: #FFFFFF; border: 1px solid #33434C;
  border-radius: 999px; padding: 8px 26px 8px 20px; text-decoration: none; line-height: 1.15;
}
a.store-badge:hover { background: #000000; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; opacity: .92; }
.store-badge strong { display: block; font-size: 1.2rem; font-weight: 700; }
.play-badge img { height: 64px; width: auto; }

/* ---------- Header: the kit's frosted top app bar ----------
   Sticky on screens tall enough for it (not on short or zoomed-in windows, so it never covers the page). */
.site-head {
  position: relative; z-index: 30; background: var(--appbar-bg);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--card-ring);
}
@media (min-height: 560px) { .site-head { position: sticky; top: 0; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-head { background: var(--bg); } }
.site-head .wrap { display: flex; align-items: center; gap: 12px 24px; min-height: 68px; padding-top: 8px; padding-bottom: 8px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em;
}
.brand img { width: 36px; height: 36px; }
.brand:hover { color: var(--ink); }
.site-nav { flex: 1; min-width: 0; display: flex; justify-content: center; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .98rem; white-space: nowrap;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.site-nav a:hover { color: var(--ink); background: var(--tint); }
.site-nav a[aria-current="page"], .site-nav a[aria-current="true"] { color: var(--ink); background: var(--tint); box-shadow: inset 0 0 0 1px var(--tint-ring); }
.head-cta { flex: none; min-height: 42px; padding: 9px 20px; font-size: 1rem; }
/* "Sign in" ends the menu, in the link colour; no Get Tap AAC button in the bar (Chris, 2026-10-23). */
.site-nav .nav-signin { margin-left: 10px; }
.site-nav .nav-signin a { color: var(--link); font-weight: 700; box-shadow: inset 0 0 0 1px var(--line-cool); }

/* The menu folds behind a "Menu" button below 1100px: a <details> toggle, so it works with no JavaScript.
   It opens as a panel under the header, over the page. */
.nav-menu { display: none; }
.nav-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; font-weight: 700; color: var(--ink); background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--line-cool);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover, .nav-menu[open] summary { background: var(--tint); }
.nav-icon { position: relative; width: 18px; height: 2px; border-radius: 1px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.nav-menu[open] .nav-icon { box-shadow: none; transform: rotate(45deg); }
.nav-menu[open] .nav-icon::after { content: ""; position: absolute; inset: 0; background: currentColor; border-radius: 1px; transform: rotate(90deg); }
@media (max-width: 1099px) {
  .site-head .wrap { gap: 10px; }
  .site-nav { order: 3; flex: none; margin-left: auto; }
  .site-nav .nav-signin { margin-left: 0; }
  .head-cta { order: 2; margin-left: auto; }
  .nav-menu { display: block; }
  .site-nav > ul { display: none; }
  .nav-menu[open] + ul {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; position: absolute; z-index: 40; left: 0; right: 0; top: 100%;
    padding: 14px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-3);
  }
  .nav-menu[open] + ul a { display: flex; width: 100%; min-height: 50px; padding: 10px 18px; font-size: 1.08rem; color: var(--ink); background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
  .nav-menu[open] + ul a[aria-current] { background: var(--tint); box-shadow: inset 0 0 0 1px var(--tint-ring); }
}
@media (max-width: 560px) {
  .nav-menu[open] + ul { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
  .site-head .wrap { gap: 8px; min-height: 62px; }
  .brand { font-size: 1.18rem; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .nav-menu summary { padding: 8px 13px; gap: 8px; }
  .head-cta { padding: 8px 14px; font-size: .95rem; min-height: 44px; }
}
@media (max-width: 379px) {
  .head-cta { display: none; }
  .site-nav { margin-left: auto; }
}

/* ---------- Footer: the kit's quiet light footer ---------- */
.site-foot { margin-top: 0; background: var(--surface); color: var(--ink-2); font-size: 1rem; line-height: 1.55; border-top: 1px solid var(--line); }
.site-foot .wrap { display: grid; gap: 40px 32px; padding-top: 64px; padding-bottom: 32px; grid-template-columns: minmax(0, 1fr); }
.site-foot a { color: var(--ink-2); text-decoration-color: var(--line-cool); }
.site-foot a:hover { color: var(--ink); text-decoration-color: var(--brand); }
.foot-brand .brand { color: var(--ink); font-size: 1.4rem; }
.foot-brand .brand img { width: 40px; height: 40px; }
.foot-brand p { margin: 14px 0 0; max-width: 36ch; }
.foot-soon { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px !important; padding: 6px 14px; border-radius: 999px; background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--line-cool); color: var(--ink); font-weight: 600; font-size: .95rem; }
.foot-soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.foot-cols { display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.foot-cols h2 { font-family: var(--font); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-foot li a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; }
.site-foot li a:hover { text-decoration: underline; }
.site-foot li a[aria-current="page"] { font-weight: 700; color: var(--ink); }
.foot-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-3); }
.foot-legal p { margin: 0; }
/* "Follow Tap AAC": one-colour brand icons in round teal-tint buttons (tools/site_shell.py SOCIAL). */
.foot-follow { margin-top: 24px; }
.foot-follow h2 { font-family: var(--font); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; }
.site-foot .social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.site-foot .social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-height: 0; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-cool); color: var(--ink-2); transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease); }
.site-foot .social-links a:hover { background: var(--brand); color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand), 0 0 0 3px var(--accent-soft); text-decoration: none; }
.site-foot .social-links a:focus-visible { border-radius: 50%; }
.site-foot .social-links svg { width: 20px; height: 20px; display: block; }
@media (prefers-reduced-motion: reduce) { .site-foot .social-links a { transition: none; } }
@media (min-width: 900px) {
  .site-foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); }
}

/* ---------- Sections and shared blocks ---------- */
section { padding: var(--section-y) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 32px; padding: 4px 14px 4px 12px; border-radius: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--link); background: var(--tint); box-shadow: inset 0 0 0 1px var(--tint-ring); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 3px 3px 3px 1px; background: var(--accent); flex: none; }
.section-lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 58ch; margin-bottom: var(--space-6); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: .35em; }
.band-alt { background: color-mix(in srgb, var(--bg-alt) 70%, transparent); }
.band-white { background: color-mix(in srgb, var(--surface) 62%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* The kit's elevated card: a soft white face and a hairline ring */
.card {
  background: var(--surface); background-image: var(--card-bg); border: 0; border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 32px);
  box-shadow: inset 0 0 0 1px var(--card-ring), var(--shadow-1);
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.2em; margin: 0 0 1em; }
.card li { margin-bottom: .3em; }
.card h3 { margin-bottom: .4em; }
/* Tap AAC's own pictures as the small art on cards and lists (never stock icons): a white tile, like a button in the app */
.pic {
  display: grid; place-items: center; flex: none; width: 72px; height: 72px; border-radius: 20px 20px 20px 7px; margin-bottom: 20px;
  background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line-cool), 0 2px 6px -2px rgba(8, 40, 52, .12);
}
.pic img { width: 54px; height: 54px; object-fit: contain; }
.pic.sm { width: 52px; height: 52px; border-radius: 15px 15px 15px 5px; margin: 0; }
.pic.sm img { width: 38px; height: 38px; }
.pic.lg { width: 104px; height: 104px; border-radius: 28px 28px 28px 9px; }
.pic.lg img { width: 78px; height: 78px; }
.tile-icon {
  width: 52px; height: 52px; border-radius: 14px 14px 14px 5px; display: grid; place-items: center; flex: none;
  background: var(--accent); color: #10212B; margin-bottom: 18px;
}
.tile-icon svg { width: 26px; height: 26px; }
.tile-icon.teal { background: var(--surface-2); color: var(--brand-deep); }
@media (prefers-color-scheme: dark) { .tile-icon.teal { color: var(--link); } }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 7px 7px 7px 2px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310212B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.note { font-size: 1rem; color: var(--ink-2); }
.after-price { margin-top: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

/* ---------- Home page ---------- */
/* Hero (the kit's): big headline with a gradient accent, chips and pill buttons on the left; on the right the real
   Tap Core screenshot, which /assets/js/hero-3d.js draws on a 3D tablet when WebGL is there. */
.hero { position: relative; padding: clamp(32px, 5vw, 80px) 0 clamp(24px, 3vw, 40px); }
.hero .wrap.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.9rem, 1.4rem + 4.6vw, 5.6rem); line-height: .98; letter-spacing: -.035em; margin: 0 0 .34em; }
.hero h1 .nw { white-space: nowrap; }
.hero .pitch { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 40ch; margin-bottom: 32px; }
.hero .cta-row { gap: 12px; }
.hero-facts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .hero-facts li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px; border-radius: 10px;
  font-size: .92rem; font-weight: 600; color: var(--ink-2); background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--line-cool);
}
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 2px 2px 2px 1px; background: var(--accent); }

/* The stage: the <img> first (for everyone), the canvas fades in over it once the 3D tablet has drawn. */
.stage-figure { margin: 0; display: grid; gap: 10px; }
.stage { position: relative; height: clamp(520px, 74vh, 720px); }
.stage::before { /* a soft teal glow behind the tablet, also under the plain picture */
  content: ""; position: absolute; inset: 6% 4%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(20, 130, 159, .22), rgba(255, 201, 51, .08) 60%, transparent);
}
.stage-img { position: absolute; inset: 0; transition: opacity .6s var(--ease); }
.stage-img img {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-2deg); height: 82%; width: auto; max-width: none;
  border-radius: 26px; background: var(--bezel); box-shadow: 0 0 0 9px var(--bezel), var(--shadow-3), 0 30px 80px -20px rgba(11, 92, 118, .45);
}
.stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab;
  opacity: 0; transition: opacity .6s var(--ease);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.stage canvas:active { cursor: grabbing; }
.stage.is-3d canvas { opacity: 1; }
.stage.is-3d .stage-img { opacity: 0; pointer-events: none; }
.stage-hint { font-size: .95rem; text-align: center; color: var(--ink-2); padding: 0 16px; margin: 0; }
.stage-hint .drag { display: none; }
.stage.is-3d + .stage-hint .drag { display: inline; }
@media (max-width: 899px) {
  .hero-copy { text-align: left; }
  .stage { height: 500px; margin-top: 12px; }
}
@media (max-width: 480px) {
  .stage { height: 440px; }
}
@media (min-width: 900px) {
  .hero .wrap.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 3vw, 48px); }
  .stage-figure { margin-right: calc(-1 * var(--gutter)); }
}
.hero-photo { margin: 0; border-radius: var(--tile-lg); overflow: hidden; box-shadow: var(--shadow-3); background: var(--teal-900); }
.hero-photo img { width: 100%; height: auto; }

/* A tablet or phone frame around app screenshots */
.device {
  position: relative; margin: 0; background: #0D1A21; border-radius: 30px; padding: clamp(10px, 1.2vw, 16px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, var(--shadow-3); max-width: 760px; justify-self: center; width: 100%;
}
.device img { border-radius: 18px; width: 100%; background: #0D1A21; }
.device.phone { max-width: 330px; border-radius: 40px; padding: 12px; }
.device.phone img { border-radius: 28px; }
.device figcaption, .shot figcaption { font-size: .95rem; color: var(--ink-2); margin-top: 14px; text-align: center; }
.shot { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; }
.shot.portrait img { max-width: 360px; margin: 0 auto; }
.shots { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }

/* How it works: three steps, then the real screen */
.how-shot { margin: clamp(40px, 5vw, 72px) auto 0; max-width: 880px; }
.how-shot .shot-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.how-shot figcaption { text-align: center; color: var(--ink-2); font-size: .95rem; margin-top: 14px; }
.how { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); counter-reset: how; list-style: none; padding: 0; margin: 0; }
.how > li { counter-increment: how; position: relative; background: var(--surface); background-image: var(--card-bg); border-radius: var(--radius-lg); padding: 32px 30px 30px; box-shadow: inset 0 0 0 1px var(--card-ring), var(--shadow-1); }
.how > li::before {
  content: counter(how); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 13px 13px 13px 4px; background: var(--brand-deep); color: #FFFFFF; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
}
.how h3 { font-size: var(--step-1); }
.how p { color: var(--ink-2); margin: 0; }
.how-demo { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 78px)); gap: 8px; }
.how-tile {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2px; width: 100%; height: 96px; padding: 7px 4px 6px;
  background: #FFFFFF; border: 2px solid #C9D7DD; border-radius: 12px 12px 12px 4px; font-weight: 700; font-size: .92rem; color: #10212B; line-height: 1.1;
}
.how-tile img { width: 100%; max-width: 50px; height: 56px; object-fit: contain; }
.how-tile.y { background: #FFE58A; border-color: #E5B400; }
.how-tile.g { background: #A8EFA0; border-color: #4DBB43; }
.how-tile.o { background: #FFD3A1; border-color: #E99A45; }
.how-sentence { margin-top: 18px; display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line-cool); border-radius: 16px; padding: 10px 10px 10px 16px; font-weight: 700; font-size: 1.1rem; }
.how-sentence span { flex: 1; }
.how-sentence .play { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.how-sentence .play svg { width: 15px; height: 15px; fill: var(--bg); margin-left: 2px; }

/* Feature grid */
.features { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); list-style: none; padding: 0; margin: 0; }
.features > li { display: flex; flex-direction: column; }
.features > li .more { margin-top: auto; padding-top: 10px; }
.feature-split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-split .shot img, .feature-split .device { box-shadow: var(--shadow-3); }
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 20px; background: var(--surface); background-image: var(--card-bg); box-shadow: inset 0 0 0 1px var(--card-ring), var(--shadow-1); }
.feature-list li > svg { width: 28px; height: 28px; color: var(--brand); margin-top: 2px; }
@media (prefers-color-scheme: dark) { .feature-list li > svg { color: var(--link); } }
.feature-list strong { display: block; font-size: 1.1rem; }
.feature-list span { color: var(--ink-2); }

/* Bella */
.voice-band { color: var(--on-dark-2); }
.voice-band > .wrap {
  position: relative; overflow: hidden; display: grid; gap: 40px; align-items: center; max-width: calc(var(--max) - 2 * var(--gutter));
  padding: clamp(32px, 5vw, 72px); border-radius: 36px;
  background: radial-gradient(700px 380px at 100% 0%, rgba(255, 201, 51, .16), transparent 65%), linear-gradient(150deg, var(--brand-bright), var(--brand-deep) 55%, var(--teal-900));
  box-shadow: var(--shadow-3);
}
.voice-band > .wrap::before { content: ""; position: absolute; inset: 0; background: var(--tiles-dark) 0 0 / 88px 88px; opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000); mask-image: linear-gradient(90deg, transparent 35%, #000); pointer-events: none; }
.voice-band > .wrap > * { position: relative; }
.voice-band p:not(.eyebrow) { color: #E3F1F5; font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }
.voice-band .eyebrow { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }
@media (max-width: 640px) { .voice-band > .wrap { border-radius: 28px; margin: 0 var(--gutter); padding: 32px 22px; } }
.voice-band h2, .voice-band h3 { color: #FFFFFF; }
.voice-band .eyebrow { color: #FFFFFF; }
.voice-band a:not(.btn) { color: #FFFFFF; }
.voice-band :focus-visible { outline-color: var(--accent); }
.voice-quote { font-family: var(--font-display); font-weight: 750; font-size: var(--step-3); line-height: 1.1; color: #FFFFFF; letter-spacing: -.02em; margin: 0 0 18px; }
.voice-card { background: rgba(255, 255, 255, .08); border-radius: var(--radius-lg); padding: clamp(20px, 2.6vw, 28px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.voice-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.voice-card li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; color: #E3F1F5; }
.voice-card .pic { box-shadow: none; }
.voice-pic { margin: 0 0 24px; }
.voice-card strong { color: #FFFFFF; }
.wave { display: flex; align-items: center; gap: 5px; height: 56px; margin: 0 0 24px; }
.wave i { display: block; width: 6px; border-radius: 3px; background: var(--accent); }

/* Word Guesses highlight */
.wg-band { position: relative; overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 75%, transparent), color-mix(in srgb, var(--surface-2) 35%, transparent)); border-top: 1px solid var(--line-cool); border-bottom: 1px solid var(--line-cool); }
.wg-band::before { content: ""; position: absolute; inset: 0 0 0 50%; opacity: .55; background: var(--tiles-light) 0 0 / 66px 66px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); pointer-events: none; }
.wg-band .wrap { position: relative; display: grid; gap: 40px clamp(32px, 5vw, 72px); align-items: center; }
.wg-band h2 { max-width: 18ch; }
.wg-band p { font-size: var(--step-0); }
.wg-points { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.wg-points li { position: relative; padding-left: 34px; color: var(--ink-2); }
.wg-points li strong { color: var(--ink); }
.wg-points li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 6px 6px 6px 2px; background: var(--accent); }
.wg-shot { margin: 0; justify-self: center; }
.wg-shot img { max-width: 380px; width: 100%; border-radius: 24px; box-shadow: 0 0 0 9px var(--bezel), var(--shadow-3); }
@media (min-width: 900px) { .wg-band .wrap { grid-template-columns: 1.15fr .85fr; } }

/* People: families, therapists, adults */
.people { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.person-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--card-ring), var(--shadow-1); }
.person-card .pc-top { padding: 0 28px; display: flex; align-items: flex-end; gap: 16px; }
.person-card .pc-top h3 { margin: 0 0 8px; }
.person-card .pc-body { padding: 16px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.person-card ul { padding-left: 1.1em; color: var(--ink-2); margin: 0 0 18px; }
.person-card li { margin-bottom: .35em; }
.person-card .btn-link { margin-top: auto; }
.person-card img.pc-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.person-card .pc-photo + .pc-top .pic { margin: -40px 0 0; position: relative; box-shadow: 0 0 0 4px var(--surface), var(--shadow); }

/* Sharing with a therapist */
.share-split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.share-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; counter-reset: share; }
.share-steps li { counter-increment: share; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.share-steps li::before { content: counter(share); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px 10px 10px 3px; background: var(--accent); color: #10212B; font-weight: 800; }
.roles { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 0 0 20px; }
.role { background: var(--surface); border-radius: 18px; padding: 16px 18px; box-shadow: inset 0 0 0 1px var(--card-ring), var(--shadow-1); }
.role strong { display: block; }
.role span { color: var(--ink-2); font-size: 1rem; }

/* Free resources */
.res-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); list-style: none; padding: 0; margin: 0; }
.res-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--card-ring), var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.res-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--card-ring-hover), var(--shadow-3); }
.res-card .res-img { background: var(--surface-2); background-image: var(--tiles-light); background-size: 44px 44px; aspect-ratio: 4 / 3; display: grid; place-items: end center; overflow: hidden; padding: 20px 20px 0; }
.res-card .res-img img { width: 78%; border-radius: 8px 8px 0 0; box-shadow: var(--shadow); background: #FFFFFF; }
.res-card .res-body { padding: 20px 22px 24px; }
.res-card h3 { margin: 0 0 6px; }
.res-card p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.res-card:hover h3 { color: var(--link); }

/* Features page: a heading column beside a grid of features */
.feat-section { padding: clamp(56px, 7vw, 104px) 0; scroll-margin-top: 8px; }
.feat-layout { display: grid; gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.feat-side h2 { font-size: var(--step-3); }
.feat-intro { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }
.feat-side .shot { margin-top: 28px; }
.feat-side .shot.portrait img { max-width: 340px; margin: 0; }
.feat-side .shot.portrait figcaption { text-align: left; }
.feat-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.feat-grid > li { background: var(--surface); background-image: var(--card-bg); border-radius: 22px; padding: 22px 24px; box-shadow: inset 0 0 0 1px var(--card-ring), var(--shadow-1); display: flex; flex-direction: column; }
.feat-grid h3 { font-size: 1.15rem; margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.feat-grid p { margin: 0; color: var(--ink-2); font-size: 1.02rem; line-height: 1.55; }
.feat-grid .feat-where { margin-top: auto; padding-top: 12px; font-size: .9rem; font-weight: 600; color: var(--ink-3); }
.feat-tag { font-family: var(--font); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-deep); background: var(--surface-2); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .feat-tag { color: var(--link); } }
.feat-grid-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 1000px) {
  .feat-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .feat-side { position: sticky; top: 24px; }
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 12px; }
.roles-table { min-width: 560px; }
.roles-table tbody th { text-align: left; font-weight: 600; font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--ink); background: transparent; }
.roles-table td { font-weight: 600; }
.roles-table td:first-child { font-weight: 600; }
.faq-narrow { max-width: 820px; margin: 0 auto; }

/* The two screens beside "Bring the speech therapist into the book" */
.share-shots { display: grid; gap: 28px; }
.share-shots .shot figcaption { text-align: left; }
.access-shot { justify-self: center; }
.access-shot img { max-width: 380px; border-radius: 22px; box-shadow: var(--shadow-3); }

/* Popular boards under the resources */
.popular { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.popular h3 { font-size: 1.1rem; margin: 0; }
.popular p { margin: 0; flex-basis: 100%; }
.chip-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 18px; border-radius: 999px; background: var(--chip-bg); box-shadow: inset 0 0 0 1px var(--line-cool); color: var(--ink); font-weight: 600; text-decoration: none; }
.chip-links a:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--link); background: var(--tint); }

/* Pricing */
.price-wrap { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.price { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.price .card { position: relative; }
.price .step { font-weight: 700; color: var(--ink-2); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.price .big { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; margin: 6px 0 14px; }
.price .big .note { font-family: var(--font); font-size: 1.05rem; letter-spacing: 0; font-weight: 600; }
.price .featured { box-shadow: inset 0 0 0 2px var(--brand), var(--shadow-3); }
.price .featured::before { content: ""; position: absolute; top: -2px; left: 26px; width: 56px; height: 8px; border-radius: 0 0 6px 6px; background: var(--accent); }
.price-promise { background: var(--tint); box-shadow: inset 0 0 0 1px var(--tint-ring); border-radius: 20px; padding: 18px 22px; margin-top: 20px; }
.price-promise p { margin: 0; }

/* FAQ (no FAQPage markup: Google retired FAQ rich results) */
.faq details { background: var(--surface); background-image: var(--card-bg); border-radius: 20px; margin-bottom: 12px; box-shadow: inset 0 0 0 1px var(--card-ring), var(--shadow-1); transition: box-shadow .15s; }
.faq details:hover { box-shadow: inset 0 0 0 1px var(--card-ring-hover), var(--shadow-1); }
.faq summary {
  cursor: pointer; list-style: none; position: relative; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 1.12rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 20px; }
.faq details > div { padding: 0 22px 18px; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }
.faq details[open] summary { color: var(--link); }

/* Closing call to action: the kit's CTA card, a light panel with a glow from the top */
.final-cta { text-align: center; }
.final-cta > .wrap {
  position: relative; overflow: hidden; max-width: calc(var(--max) - 2 * var(--gutter)); padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 48px);
  border-radius: 36px; background: radial-gradient(640px 320px at 50% 0%, rgba(20, 130, 159, .2), transparent 70%), radial-gradient(500px 260px at 50% 110%, rgba(255, 201, 51, .18), transparent 70%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--card-ring), var(--shadow);
}
.final-cta h2 { font-size: var(--step-4); max-width: 16ch; margin: 0 auto .3em; }
.final-cta p { color: var(--ink-2); font-size: var(--step-1); max-width: 46ch; margin: 0 auto 28px; }
.final-cta .cta-row { justify-content: center; }
.final-cta img.final-mark { width: 72px; height: 72px; margin: 0 auto 24px; }
@media (max-width: 640px) { .final-cta > .wrap { border-radius: 28px; margin: 0 var(--gutter); } }

/* Old home-page pieces still used elsewhere */
.privacy-band { background: var(--brand-deep); color: #FFFFFF; }
.privacy-band .eyebrow { color: #FFFFFF; }
.privacy-band a { color: #FFFFFF; }
.privacy-band .wrap { display: grid; gap: 24px; }
.privacy-band p { font-size: 1.2rem; max-width: 62ch; }
.hero-title { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.pitch-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; }
.pitch-tags li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.home-boards { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Text pages: page heads, prose ---------- */
.page-head {
  position: relative; overflow: hidden; background: transparent; padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 4vw, 48px);
}
.page-head::before {
  content: ""; position: absolute; inset: 0 0 0 45%; background: var(--tiles-light) 0 0 / 66px 66px; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.page-head .wrap { position: relative; }
@media (max-width: 699px) {
  .page-head::before { inset: 0 0 auto 55%; height: 132px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 75%); mask-image: linear-gradient(200deg, #000, transparent 75%); }
  .page-head .answer { font-size: 1.125rem; }
}
.page-head h1 { font-size: clamp(2.3rem, 1.6rem + 2.9vw, 4.2rem); letter-spacing: -.03em; line-height: 1.02; margin-bottom: 18px; max-width: 22ch; }
.page-head p { color: var(--ink-2); margin: 0; max-width: 70ch; }
.page-head .answer { color: var(--ink); }
.prose { max-width: calc(var(--prose) + 2 * var(--gutter)); padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(48px, 6vw, 80px); line-height: 1.68; }
.prose h2 { font-size: var(--step-2); margin-top: 1.9em; margin-bottom: .55em; scroll-margin-top: 16px; }
.prose h3 { font-size: var(--step-1); margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brand); }
@media (prefers-color-scheme: dark) { .prose li::marker { color: var(--link); } }
.prose blockquote { margin: 0 0 1.4em; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--ink-2); }
.prose table { font-size: 1rem; }
.prose.prose-end { padding-top: 8px; }
.board-top + .prose > :first-child, .page-head + .prose > :first-child { margin-top: 0; }
.contact-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 8px 0 24px; }
.contact-cards .card a { font-size: 1.25rem; font-weight: 700; }
.contact-cards .card h2 { font-family: var(--font); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; color: var(--ink-2); }

.center-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 72px 0; }
.center-page img { margin: 0 auto 20px; width: 96px; height: 97px; }
.center-page h1 { margin-left: auto; margin-right: auto; }
.center-page .cta-row { justify-content: center; }

/* ---------- Free printable boards and guides ---------- */
.crumbs { font-size: .95rem; color: var(--ink-2); margin-bottom: 16px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--ink-3); }
.crumbs a { color: var(--link); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }
.board-top { position: relative; background: transparent; padding: clamp(32px, 5vw, 72px) 0 clamp(36px, 5vw, 64px); }
.board-top .wrap { display: grid; gap: 28px; align-items: start; }
.board-top h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.9rem); letter-spacing: -.03em; line-height: 1.03; margin-bottom: 18px; }
.answer { font-size: var(--step-1); line-height: 1.5; max-width: 60ch; }
.dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 24px 0 8px; }
.btn-dl { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 24px; font-size: 1.1rem; }
.btn-dl svg { width: 22px; height: 22px; flex: none; }
.mini-facts { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mini-facts li { display: inline-flex; align-items: center; gap: 8px; background: var(--chip-bg); border: 0; box-shadow: inset 0 0 0 1px var(--line-cool); border-radius: 10px; padding: 4px 14px; font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.mini-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 2px 2px 2px 1px; background: var(--accent); }
.board-fig { margin: 0; }
.board-fig a { display: block; }
.board-fig img, .guide-fig img { background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); width: 100%; }
.board-fig img { box-shadow: var(--shadow-3); }
.board-fig a:hover img, .guide-fig a:hover img { border-color: var(--brand); }
.board-fig figcaption, .guide-fig figcaption { font-size: .95rem; color: var(--ink-2); margin-top: 12px; }
.board-fig + .board-fig { margin-top: 24px; }
.guide-fig { margin: 12px 0 32px; max-width: 560px; }
.guide-fig.portrait { max-width: 400px; }
.callout { background: var(--accent-soft); border-left: 6px solid var(--accent); border-radius: 0 16px 16px 0; padding: 18px 22px; margin: 0 0 24px; }
.callout p:last-child { margin-bottom: 0; }
.callout > strong:first-child { display: block; margin-bottom: 4px; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; margin: 0 0 1.4em; }
.steps > li { counter-increment: step; position: relative; padding-left: 56px; margin-bottom: 18px; min-height: 38px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -3px; width: 38px; height: 38px;
  border-radius: 11px 11px 11px 3px; background: var(--accent); color: #10212B; font-weight: 800;
  display: grid; place-items: center; font-size: 1.05rem; font-family: var(--font-display);
}
.word-chips { list-style: none; padding: 0 !important; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: 8px; }
.word-chips li { margin: 0 !important; background: var(--surface); border: 1px solid var(--line-cool); border-radius: 10px 10px 10px 3px; padding: 3px 12px; font-weight: 600; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -1px; margin-right: 6px; border: 2px solid var(--c); background: var(--t); }
.simple-table { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: 1.02rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.simple-table th, .simple-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.simple-table tr:last-child td { border-bottom: 0; }
.simple-table th { font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); background: var(--bg-alt); }
.simple-table td:first-child { font-weight: 700; }

/* The call to action at the end of content pages */
.cta-card {
  position: relative; overflow: hidden; background: linear-gradient(160deg, var(--brand-bright), var(--brand-deep) 75%); color: #FFFFFF;
  border-radius: 32px; padding: clamp(28px, 4vw, 48px); margin: 48px 0 8px; box-shadow: var(--shadow-3);
}
.cta-card::before { content: ""; position: absolute; inset: 0 0 0 55%; background: var(--tiles-dark) 0 0 / 66px 66px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.cta-card > * { position: relative; }
.cta-card h2 { margin-top: 0 !important; color: #FFFFFF; font-size: var(--step-2); }
.cta-card p { max-width: 60ch; color: #E8F3F6; }
.cta-card a:not(.store-badge):not(.btn) { color: #FFFFFF; }
.cta-card .note { color: #D4E7ED; }
.cta-card .cta-row { margin-top: 20px; }
.cta-card :focus-visible { outline-color: var(--accent); }

.board-cards { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.related-wrap { padding-top: 8px; padding-bottom: 8px; }
.related-wrap h2 { font-size: var(--step-2); }
.board-cards li { margin: 0 !important; }
.board-card {
  display: flex; flex-direction: column; height: 100%; background: var(--surface); border-radius: 20px;
  padding: 12px; box-shadow: inset 0 0 0 1px var(--card-ring), var(--shadow-1); text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.board-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--card-ring-hover), var(--shadow-3); }
.board-card img { background: #FFFFFF; border: 1px solid var(--line); border-radius: 8px; aspect-ratio: 480 / 621; object-fit: contain; width: 100%; }
.board-card strong { display: block; margin-top: 12px; font-size: 1.08rem; color: var(--link); line-height: 1.3; }
.board-card span { display: block; font-size: .98rem; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }
.hub-cards { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.hub-card { display: flex; flex-direction: column; }
.hub-card .thumb { display: block; border-radius: 10px; }
.hub-card img { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; aspect-ratio: 480 / 621; object-fit: contain; width: 100%; transition: border-color .2s; }
.hub-card .thumb:hover img { border-color: var(--brand); }
.hub-card h2, .hub-card h3 { font-size: 1.28rem; margin: 18px 0 6px !important; }
.hub-card h2 a, .hub-card h3 a { color: var(--ink); text-decoration: none; }
.hub-card h2 a:hover, .hub-card h3 a:hover { color: var(--link); text-decoration: underline; }
.hub-card p { color: var(--ink-2); }
.hub-card .links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0 8px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; }
/* Tap targets of at least 44 x 44 px (WCAG 2.2 asks for 24): the short "A4" and "PDF" links most of all. */
.hub-card .links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 6px; }
.hub-card .links a:first-child { padding-left: 0; justify-content: flex-start; }
.guide-list { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.guide-list a { font-weight: 700; font-size: 1.1rem; }
.guide-list span { display: block; color: var(--ink-2); font-size: 1rem; }
.fine-print { font-size: .98rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 36px; }
/* Board pages: on a phone the picture comes right after the PDF downloads (intro, picture, the rest);
   on a wide screen the picture sits on the right, beside both. */
.board-intro .dl-alt { margin-bottom: 0; }
@media (min-width: 900px) {
  .board-top .wrap { grid-template-columns: 1.05fr .95fr; grid-template-areas: "intro fig" "more fig"; grid-template-rows: auto 1fr; gap: 0 56px; }
  .board-top.wide-fig .wrap { grid-template-columns: .9fr 1.1fr; }
  .board-intro { grid-area: intro; }
  .board-top .board-fig { grid-area: fig; }
  .board-more { grid-area: more; padding-top: 6px; }
}
.prose + .related-wrap { margin-top: -32px; }

/* Printables round 2: A4 link, hub groups, see-all link */
.dl-alt { font-size: 1rem; color: var(--ink-2); margin: 0 0 6px; }
.see-all { margin: 20px 0 4px; font-weight: 700; }
.hub-wrap { padding-top: 8px; }
.hub-group { font-size: var(--step-2); margin: 48px 0 8px; scroll-margin-top: 16px; }
.hub-intro { color: var(--ink-2); max-width: 62ch; margin-bottom: 20px; }
.hub-jump { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hub-jump a { display: inline-flex; align-items: center; min-height: 40px; background: var(--chip-bg); border: 0; box-shadow: inset 0 0 0 1px var(--line-cool); border-radius: 999px; padding: 4px 16px; font-weight: 600; font-size: 1rem; text-decoration: none; color: var(--ink); }
.hub-jump a:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--link); background: var(--tint); }
.hub-wrap + .prose { padding-top: 48px; }
.hub-wrap .hub-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* "Add to Tap AAC" board files (.obz) on the board and core-word-of-the-week pages: one line, under the PDFs */
.tap-dl { font-size: 1rem; color: var(--ink-2); margin: 0 0 6px; max-width: 62ch; }
.tap-dl .note { font-size: inherit; }

/* Topic pages (tools/theme_boards_content.py): a section per board. On a phone: heading, words, sheet, downloads;
   wider, the sheet sits to the left of the rest. */
.topic-board { border-top: 1px solid var(--line); margin-top: 28px; padding: 4px 0 0; scroll-margin-top: 16px; }
.topic-board h2 { margin-top: .9em; }
.topic-board .guide-fig { max-width: 300px; margin: 12px 0 8px; }
.topic-board .dl-row { margin-top: 12px; }
@media (min-width: 720px) {
  .topic-board { display: grid; grid-template-columns: 240px 1fr; grid-template-areas: "fig head" "fig text" "fig dl"; grid-template-rows: auto auto 1fr; gap: 0 28px; align-items: start; }
  .topic-board h2 { grid-area: head; }
  .topic-board > p { grid-area: text; }
  .topic-board .topic-figs { grid-area: fig; }
  .topic-board .topic-dl { grid-area: dl; }
  .topic-board .guide-fig { max-width: 240px; margin: 20px 0 8px; }
}

/* ---------- Layout breakpoints ---------- */
@media (min-width: 900px) {
  .hero .wrap:not(.hero-grid) { grid-template-columns: 1fr 1.1fr; }
  .shots { grid-template-columns: 1fr 1.6fr; }
  .privacy-band .wrap { grid-template-columns: 1fr 1fr; align-items: center; }
  .feature-split, .share-split, .voice-band .wrap, .price-wrap { grid-template-columns: 1fr 1fr; }
  .feature-split.flip > :first-child { order: 2; }
}
@media (max-width: 480px) {
  body { font-size: 1.0625rem; }
  .hero-bubble { left: 10px; bottom: -18px; font-size: 1rem; }
  .roles { grid-template-columns: 1fr; }
  .store-badge { min-height: 52px; }
}
/* ---------- Adaptive rules: the Tap AAC app's window size classes (ADAPTIVE.md), on the web ----------
   Width: compact < 600 | medium 600-839 | expanded 840-1199 | large 1200-1599 | extra large 1600+.
   Height: short < 480 (a phone on its side, or a laptop zoomed to 200%).
   - Content stops growing at --max (1200px) and stands in the middle from large up (the app's board stops at 1280dp).
   - Touch (a coarse pointer): every control at least 48px tall. Mouse (hover): hover tints and lifts.
   - A foldable held open like a book: two-column parts split at the fold, no control across it.
   - The 3D tablet in the hero only loads on medium and up, never short, never low-power (assets/js/hero-3d.js). */

/* Short windows: the hero's words and the tablet side by side, both on the first screen; less space between parts. */
@media (max-height: 479px) {
  :root { --section-y: clamp(36px, 2rem + 3vw, 64px); }
  html { scroll-padding-top: 16px; }
  .site-head .wrap { min-height: 56px; padding-top: 4px; padding-bottom: 4px; }
  .hero { padding-top: 16px; }
  .hero h1 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.6rem); }
  .hero .pitch { margin-bottom: 20px; }
  .hero-facts { margin-top: 18px; }
  .page-head, .board-top { padding-top: 20px; }
  .page-head h1, .board-top h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
  .stage { height: max(300px, calc(100vh - 32px)); margin-top: 0; }
  .feat-side { position: static; }
  .nav-menu[open] + ul { max-height: calc(100vh - 64px); overflow-y: auto; }
}
@media (max-height: 479px) and (min-width: 600px) {
  .hero .wrap.hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: 20px; }
  .stage-figure { margin-right: 0; }
}

/* Touch: controls at least 48px tall (Android's touch target), with no gaps that make neighbours overlap. */
@media (pointer: coarse) {
  .brand, .site-nav a, .nav-menu summary, .btn, .btn-link, .chip-links a, .hub-jump a, .hub-card .links a,
  .site-foot li a, .crumbs a, .faq summary { min-height: 48px; }
  .brand, .crumbs a { display: inline-flex; align-items: center; }
  .crumbs a { padding: 0 2px; }
  .site-foot ul { gap: 0; }
  .site-foot .social-links { gap: 8px; }
  .site-foot .social-links a { width: 48px; height: 48px; }
}
/* Lifts on hover only where there is a mouse; a finger would leave the card lifted. */
@media (hover: none) {
  .res-card:hover, .board-card:hover { transform: none; }
}

/* A foldable open like a book (two screen segments side by side): the hero's words on one side and the tablet on
   the other, two-column parts split evenly so the gap sits on the fold, centred buttons moved off it. */
@media (horizontal-viewport-segments: 2) {
  .hero .wrap.hero-grid {
    max-width: none; padding: 0;
    grid-template-columns: env(viewport-segment-width 0 0) env(viewport-segment-width 1 0);
    column-gap: calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0));
  }
  .hero-copy { padding: 0 var(--gutter); }
  .stage-figure { margin-right: 0; }
  .feature-split, .share-split, .voice-band .wrap, .price-wrap, .wg-band .wrap, .feat-layout,
  .board-top .wrap, .board-top.wide-fig .wrap, .site-foot .wrap { grid-template-columns: 1fr 1fr; }
  .final-cta .cta-row, .center-page .cta-row { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; }
  /* The top menu would run across the fold: the Menu button instead, its panel in two columns that meet at the fold. */
  .site-head .wrap { max-width: none; }
  .site-nav { order: 3; flex: none; margin-left: auto; }
  .site-nav .nav-signin { margin-left: 0; }
  .nav-menu { display: block; }
  .site-nav > ul { display: none; }
  .nav-menu[open] + ul {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0) + 2 * var(--gutter));
    position: absolute; z-index: 40; left: 0; right: 0; top: 100%;
    padding: 14px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-3);
  }
  .nav-menu[open] + ul a { display: flex; width: 100%; min-height: 50px; padding: 10px 18px; font-size: 1.08rem; color: var(--ink); background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .btn, .store-badge, .card, .board-card, .res-card { border: 2px solid ButtonText; }
  .site-nav a[aria-current="page"]::after { background: Highlight; }
}
@media print {
  .site-nav, .skip, .cta-row, .head-cta, .site-foot, .cta-card { display: none; }
  html, body { background: #FFFFFF; color: #000000; }
  body::before { display: none; }
  .page-head, .board-top { background: none; }
  .page-head::before { display: none; }
}
