/* =================================================================
   KindAbilities — "The Kind Interface" design system
   Display: Fraunces (warm optical serif) · Body: Atkinson Hyperlegible
   (designed by the Braille Institute for low-vision readers — the medium
   IS the message). Ink on warm paper. The site is itself an assistive
   interface: the Kind Bar (text size · motion · contrast) actually bends
   the page to the reader. WCAG 2.2 AA minimum, AAA contrast targets,
   a celebrated focus ring, honest motion, genuine dark + high-contrast.
   All fonts self-hosted OFL woff2 — ZERO external requests.
   ================================================================= */

/* ---------- self-hosted fonts (OFL, subset woff2 in /assets/fonts) ---------- */
@font-face {
  font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/assets/fonts/atkinson-regular.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-2193, U+2713;
}
@font-face {
  font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("/assets/fonts/atkinson-bold.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-2193, U+2713;
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 400 800;
  font-display: swap; src: url("/assets/fonts/fraunces-roman.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-2193, U+2713;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 500 700;
  font-display: swap; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-2193, U+2713;
}

:root {
  /* — LIGHT: one paper neutral, one ink, warm accents — */
  --paper:        #f5efe3;   /* warm paper */
  --paper-2:      #efe7d7;   /* recessed panel */
  --paper-3:      #e7dcc7;   /* deeper card */
  --ink:          #211d16;   /* near-black, warm ~15:1 AAA */
  --ink-2:        #4a4338;   /* secondary ~8.5:1 AAA body */
  --ink-3:        #5c5445;   /* muted meta ~6.6:1 (≥16px only) */
  --rule:         #d7cbb2;   /* hairlines */
  --hairline-ink: #b6a888;   /* non-text borders needing ≥3:1 */

  --accent:       #b8553a;   /* terracotta — FILL/DECOR only */
  --accent-strong:#9a3f29;   /* TEXT/links/buttons — AA on paper */
  --accent-soft:  #f0d9cb;   /* tint wash */
  /* ability accents — bright (decor) + strong (AA text & white-on-fill) */
  --gold:         #c98a2b;   --gold-strong:  #6f4a0e;
  --sage:         #5f7a5a;   --sage-strong:  #415b3a;
  --teal:         #2f6f6b;   --teal-strong:  #245a56;
  --indigo:       #4a4e84;   --indigo-strong:#3c4076;
  --plum:         #7b4f86;   --plum-strong:  #5a3466;
  --steel:        #3d6382;   --steel-strong: #2f4f68;
  --ok:           #3f6f4a;

  /* fixed-dark surfaces (stay dark in every scheme) */
  --footer-bg:    #211d16;
  --footer-ink:   #e8e0d2;
  --footer-ink-2: #b9ad99;
  --footer-link:  #f3ddcf;
  --footer-rule:  #3a342b;
  --ink-card:     #211d16;
  --ink-card-ink: #efe7d7;
  --ink-card-eyebrow:#e2a98f;
  --grain-opacity: 0.025;

  /* per-section accent — set on each page via inline <body style>.
     --section-accent = bright/decorative; --section-strong = AA text+button. */
  --section-accent: var(--accent);
  --section-strong: var(--accent-strong);

  /* — type scale (fluid). Body-affecting steps carry the Kind Bar multiplier. — */
  --type-mult: 1;
  --step--1: calc(clamp(0.86rem, 0.82rem + 0.2vw, 0.96rem) * var(--type-mult));
  --step-0:  calc(clamp(1.05rem, 1.00rem + 0.3vw, 1.20rem) * var(--type-mult));
  --step-1:  calc(clamp(1.30rem, 1.15rem + 0.7vw, 1.65rem) * var(--type-mult));
  --step-2:  calc(clamp(1.65rem, 1.35rem + 1.4vw, 2.40rem) * var(--type-mult));
  --step-3:  calc(clamp(2.10rem, 1.55rem + 2.6vw, 3.60rem) * var(--type-mult));
  --step-4:  clamp(2.70rem, 1.70rem + 4.6vw, 5.50rem);  /* hero — uncapped by mult */
  --step-5:  clamp(3.20rem, 1.80rem + 6.6vw, 7.30rem);

  --measure: 64ch;
  --gutter: clamp(1.2rem, 4vw, 4rem);
  --maxw: 1180px;

  --radius: 14px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgba(33,29,22,.05), 0 12px 34px -18px rgba(33,29,22,.28);
  --shadow-lg: 0 2px 6px rgba(33,29,22,.06), 0 40px 80px -36px rgba(33,29,22,.40);

  --ease: cubic-bezier(.2,.7,.2,1);
  --ring-w: 3px;
}

/* ---------- Kind Bar text-size multiplier ---------- */
html[data-text="large"] { --type-mult: 1.14; }
html[data-text="xl"]    { --type-mult: 1.30; }

/* ---------- warm DARK mode (prefers-color-scheme) — token remap only ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --paper:  #1b1813; --paper-2: #232019; --paper-3: #2b2720;
    --rule:   #3a342b; --hairline-ink: #4a4132;
    --ink:    #efe7d9; --ink-2: #c9bfae; --ink-3: #9a8f7c;
    --accent: #d9724f; --accent-strong: #ec9d76; --accent-soft: #3a2a22;
    --gold:   #d99a3a; --gold-strong: #e2ad55;
    --sage:   #7fa178; --sage-strong: #9fc199;
    --teal:   #3f8f89; --teal-strong: #5bb3ab;
    --indigo: #6b6fb0; --indigo-strong: #9498d8;
    --plum:   #a983b3; --plum-strong: #c6a3d1;
    --steel:  #6b95b8; --steel-strong: #8fb4d1;
    --ok:     #7fbf8f;
    --footer-bg: #100d08; --ink-card: #14110b;
    --grain-opacity: 0.015;
  }
}

/* ---------- HIGH-CONTRAST (Kind Bar / prefers-contrast) — layers on top ---------- */
html[data-contrast="high"] {
  --ink: #17130c; --ink-2: #2e2820; --ink-3: #2e2820;
  --rule: #b6a888; --hairline-ink: #8a7d5f;
  --accent-strong: #7d3220; --teal-strong: #1d4a46;
  --gold-strong: #5a3c0b; --sage-strong: #344a2f; --indigo-strong: #313463;
  --plum-strong: #43254c; --steel-strong: #24405a;
  --grain-opacity: 0;
  --ring-w: 4px;
}
@media (prefers-color-scheme: dark) {
  html[data-contrast="high"] {
    --ink: #fbf6ec; --ink-2: #e7ddcb; --ink-3: #e7ddcb;
    --rule: #6a5f4b; --hairline-ink: #7d7156;
    --accent-strong: #ffb08a; --teal-strong: #78c9c1;
    --gold-strong: #f0bd6e; --sage-strong: #b6d3b0; --indigo-strong: #b0b3e6;
    --plum-strong: #dcc2e6; --steel-strong: #a8cbe6;
    --grain-opacity: 0;
  }
}
html[data-contrast="high"] a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html[data-motion="reduced"] { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in oklab, var(--paper) 70%, #ffffff) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
html[data-contrast="high"] body { background-image: none; }

h1,h2,h3,h4 { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: var(--step-4); line-height: 1.05; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1.1em; max-width: var(--measure); }
a { color: var(--accent-strong); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
strong { font-weight: 700; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--paper); }

/* ---------- the celebrated focus ring (signature) ---------- */
:focus-visible {
  outline: var(--ring-w) solid var(--section-strong);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--section-strong) 22%, transparent);
}
html[data-motion="reduced"] :focus-visible, .exp :focus-visible { transition: none; }

/* skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: .7rem 1rem; z-index: 300; border-radius: 0 0 10px 0; font-weight: 700; }
.skip:focus { left: 0; }

/* ---------- layout ---------- */
.wrap { width: min(var(--maxw), 100% - 2*var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(74ch, 100% - 2*var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 8rem); }
.eyebrow {
  font-family: "Atkinson Hyperlegible", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em; font-size: var(--step--1);
  color: var(--section-strong); margin: 0 0 1.2rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content:""; width: 26px; height: 2px; background: var(--section-accent); display:inline-block; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 58ch; }

/* ---------- top nav + Kind Bar shell ---------- */
.nav { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--rule); }
.nav__in { display: flex; align-items: center; gap: 1rem; padding-block: .7rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family:"Fraunces",serif; font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; margin-right: auto; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.nav__links { display: flex; gap: clamp(.5rem,1.6vw,1.3rem); align-items: center; }
.nav__links a { color: var(--ink-2); text-decoration: none; font-size: var(--step--1); font-weight: 700; }
.nav__links a:hover { color: var(--accent-strong); }
.nav__links a[aria-current="page"], .nav__links a[aria-current="true"] { color: var(--section-strong); }
.soon-tag { font-size: .62em; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold-strong); border: 1px solid var(--gold-strong); border-radius: 999px; padding: .04em .4em; margin-left: .3em; vertical-align: middle; }

/* nav + comfort disclosure toggles (mobile) */
.nav__toggle, .comfort__toggle {
  display: none; align-items: center; gap: .45rem;
  min-height: 44px; min-width: 44px; padding: .4rem .8rem;
  font-family: "Atkinson Hyperlegible", sans-serif; font-weight: 700; font-size: var(--step--1);
  background: var(--paper-2); color: var(--ink); border: 1px solid var(--rule); border-radius: 999px; cursor: pointer;
}
.nav__toggle svg, .comfort__toggle svg { width: 20px; height: 20px; }

/* ---------- the Kind Bar ---------- */
.kindbar { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.kb-group { display: inline-flex; align-items: center; gap: .35rem; }
.kb-group__label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.kb-seg { display: inline-flex; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 999px; padding: 2px; gap: 2px; }
.kb-seg button {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: "Atkinson Hyperlegible", sans-serif; font-weight: 700; font-size: .8rem;
  color: var(--ink-2); background: transparent; border: 0; border-radius: 999px;
  padding: .32rem .6rem; min-height: 34px; cursor: pointer; line-height: 1;
}
.kb-seg button svg { width: 15px; height: 15px; flex: none; }
.kb-seg button[aria-pressed="true"] {
  background: var(--section-strong); color: var(--paper);
  box-shadow: inset 0 -2px 0 color-mix(in oklab, #000 22%, var(--section-strong));
}
.kb-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 900px) {
  .nav__toggle, .comfort__toggle { display: inline-flex; }
  .comfort__toggle { order: 3; }
  /* JS present: collapse behind buttons */
  .js .nav__links { display: none; width: 100%; order: 5; flex-direction: column; align-items: stretch; gap: .2rem; padding: .4rem 0 .2rem; }
  .js .nav__links[data-open="true"] { display: flex; }
  .js .nav__links a { padding: .8rem .4rem; min-height: 48px; display: flex; align-items: center; font-size: var(--step-0); border-top: 1px solid var(--rule); }
  .js .kindbar { display: none; width: 100%; order: 6; padding: .5rem 0 .3rem; border-top: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: .7rem; }
  .js .kindbar[data-open="true"] { display: flex; }
  .js .kb-group { justify-content: space-between; }
  /* no JS: keep everything reachable, controls just wrap */
  .no-js .nav__toggle, .no-js .comfort__toggle { display: none; }
  .no-js .nav__links { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .kb-seg button { font-size: .78rem; padding: .32rem .5rem; }
}

/* ---------- buttons ---------- */
.btn { display:inline-flex; align-items:center; gap:.55rem; font-weight:700; font-family:"Atkinson Hyperlegible",sans-serif;
  padding:.8rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent; cursor:pointer; font-size: var(--step-0);
  text-decoration:none; min-height: 44px; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--section-strong); color: var(--paper); box-shadow: inset 0 -2px 0 color-mix(in oklab, #000 20%, var(--section-strong)); }
.btn--primary:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--stop { background: #8a1f12; color:#fff; }
.btn--store { background: var(--section-strong); color: var(--paper); }
.btn[aria-disabled="true"] { pointer-events: none; }

/* ---------- cards / app grid ---------- */
.grid { display:grid; gap: clamp(1rem, 2.4vw, 1.8rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px){ .cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .cols-2, .cols-3 { grid-template-columns: 1fr; } }

.appcard { position: relative; display:flex; flex-direction:column; gap:.6rem;
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: clamp(1.3rem,2.5vw,1.9rem); text-decoration:none; color: var(--ink);
  overflow:hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.appcard::after { content:""; position:absolute; inset:0 0 auto 0; height:4px; background: var(--card-accent, var(--accent)); transform: scaleX(0); transform-origin:left; transition: transform .4s var(--ease); }
.appcard:hover, .appcard:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.appcard:hover::after, .appcard:focus-within::after { transform: scaleX(1); }
.appcard :is(h2,h3) { font-size: var(--step-1); margin:.2rem 0 0; }
.appcard .for { font-size: var(--step--1); font-weight:700; letter-spacing:.04em; text-transform:uppercase; color: var(--card-strong, var(--accent-strong)); }
.appcard p { font-size: var(--step-0); color: var(--ink-2); margin:0; }
.appcard .more { margin-top:auto; padding-top:.8rem; font-weight:700; color: var(--ink); }
.appcard--thread { background: var(--ink-card); color: var(--ink-card-ink); border-color: transparent; }
.appcard--thread :is(h2,h3) { color: #fff; }
.appcard--thread .for { color: var(--ink-card-eyebrow); }
.appcard--thread p { color: color-mix(in oklab, var(--ink-card-ink) 82%, transparent); }
/* card store row */
.card-cta { display:flex; flex-wrap:wrap; gap:.55rem; margin-top:auto; padding-top:.9rem; align-items:center; }
.card-cta .more { margin:0; padding:0; }

/* ---------- editorial figure / screenshots ---------- */
.shots { display:flex; gap: clamp(.8rem,2vw,1.4rem); flex-wrap:wrap; }
.shot { border-radius: 28px; box-shadow: var(--shadow-lg); border: 6px solid #0d0c0a; background:#0d0c0a; width: clamp(170px, 22vw, 250px); aspect-ratio: 9/19.5; overflow:hidden; }
.shot img { width:100%; height:100%; object-fit: cover; }

/* ---------- app-UI echo (decorative, aria-hidden) ---------- */
.echo { border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper-2); padding: clamp(1rem,2.4vw,1.6rem); width: 100%; max-width: 360px; }
.echo__cap { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .8rem; }
.echo-tiles { display:grid; grid-template-columns: repeat(3,1fr); gap:.5rem; }
.echo-tile { aspect-ratio: 1; border-radius: 12px; display:grid; place-items:center; gap:.2rem; background: var(--paper); border:1px solid var(--rule); font-size:.72rem; font-weight:700; color: var(--ink-2); text-align:center; padding:.3rem; }
.echo-tile .g { font-size:1.4rem; line-height:1; }
.echo-word { display:inline-flex; align-items:center; gap:.5rem; font-family:"Fraunces",serif; font-size: var(--step-1); background: var(--paper); border:1px solid var(--rule); border-radius:999px; padding:.4rem .9rem; }
.echo-judge { display:flex; gap:.4rem; margin-top:.9rem; flex-wrap:wrap; }
.echo-judge span { font-size:.8rem; font-weight:700; border-radius:999px; padding:.3rem .7rem; border:1px solid var(--rule); background: var(--paper); color: var(--ink-2); }
.echo-judge span.is-on { background: var(--section-strong); color: var(--paper); border-color: transparent; }
.echo-view { aspect-ratio: 4/3; border-radius: 14px; background: linear-gradient(160deg, #2a2f45, #14161f); position:relative; overflow:hidden; display:grid; place-items:center; }
.echo-view__frame { position:absolute; inset:14px; border:2px solid rgba(255,255,255,.55); border-radius:8px; }
.echo-view__frame::before, .echo-view__frame::after { content:""; position:absolute; width:14px; height:14px; border:2px solid #fff; }
.echo-view__frame::before { top:-2px; left:-2px; border-right:0; border-bottom:0; }
.echo-view__frame::after { bottom:-2px; right:-2px; border-left:0; border-top:0; }
.echo-view__cap { position:relative; z-index:1; color:#fff; font-size:.82rem; font-weight:700; background:rgba(0,0,0,.45); padding:.3rem .6rem; border-radius:8px; }
.echo-presence { display:flex; align-items:center; gap:.6rem; font-weight:700; color: var(--section-strong); }
.echo-dot { width:14px; height:14px; border-radius:50%; background: var(--section-accent); }

/* ---------- pull quote / empathy passage ---------- */
.feelquote { font-family:"Fraunces",serif; font-weight:500; font-style: italic;
  font-size: var(--step-3); line-height: 1.18; letter-spacing:-.01em; color: var(--ink);
  max-width: 22ch; }
.feelquote .hl { background: linear-gradient(transparent 62%, color-mix(in oklab, var(--section-accent) 34%, transparent) 62%); }
.feelcite { font-style: normal; font-family:"Atkinson Hyperlegible",sans-serif; font-size: var(--step--1); font-weight:700; color: var(--ink-2); margin-top:1.4rem; letter-spacing:.04em; }

/* ---------- stat ---------- */
.stat { border-top: 2px solid var(--section-accent); padding-top: .8rem; }
.stat b { font-family:"Fraunces",serif; font-size: var(--step-3); display:block; line-height:1; color: var(--ink); }
.stat span { font-size: var(--step--1); color: var(--ink-2); }
.stat a { color: var(--ink-2); }

/* ---------- honest capability slots ---------- */
.slots { display:grid; gap: clamp(1rem,2.4vw,1.6rem); grid-template-columns: repeat(3,1fr); margin-top: 2rem; }
@media (max-width: 820px){ .slots { grid-template-columns: 1fr; } }
.slot { border: 1px solid var(--rule); border-left: 3px solid var(--section-accent); border-radius: var(--radius); background: var(--paper-2); padding: clamp(1.1rem,2.4vw,1.6rem); }
.slot h3 { font-size: var(--step-1); margin: 0 0 .5rem; }
.slot p { font-size: var(--step--1); color: var(--ink-2); margin: 0; }
.slot--limit { border-left-color: var(--hairline-ink); }

/* ---------- the interactive "experience" module ---------- */
.exp { border: 2px solid var(--ink); border-radius: var(--radius-lg); background: var(--paper-2); overflow:hidden; }
.exp__head { padding: clamp(1.1rem,2.4vw,1.7rem); display:flex; flex-wrap:wrap; gap:1rem; align-items:flex-start; justify-content:space-between; border-bottom: 2px solid var(--ink); }
.exp__head :is(h2,h3) { margin:0; font-size: var(--step-2); }
.exp__warn { font-size: var(--step--1); color: var(--ink-2); display:flex; gap:.5rem; align-items:center; max-width: 46ch; }
.exp__stage { position: relative; min-height: 320px; display:grid; place-items:center; padding: clamp(1.2rem,3vw,2.4rem); text-align:center; overflow:hidden; }
.exp__controls { display:flex; gap:.8rem; flex-wrap:wrap; justify-content:center; }
.exp__live { position:absolute; left:1rem; bottom:1rem; font-size:var(--step--1); color:var(--ink-3); }
.exp__note { font-size: var(--step--1); color: var(--ink-3); padding: .9rem clamp(1.1rem,2.4vw,1.7rem); border-top:1px dashed var(--rule); }
.badge-haptic { font-size:.7rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--section-accent); border:1px solid var(--section-accent); border-radius:999px; padding:.15rem .5rem; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: var(--step--1); color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current="page"] { color: var(--ink-3); }

/* ---------- footer ---------- */
.foot { background: var(--footer-bg); color: var(--footer-ink); padding-block: clamp(3rem,6vw,5rem); }
.foot a { color: var(--footer-link); }
.foot a:hover { color: #fff; }
.foot h2, .foot h4 { color:#fff; font-size: var(--step-1); font-weight: 700; margin: 0 0 .3em; }
.foot .fine { color: var(--footer-ink-2); font-size: var(--step--1); }
.foot .cols { display:grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap:2rem; }
@media (max-width:980px){ .foot .cols { grid-template-columns:1fr 1fr; } }
@media (max-width:720px){ .foot .cols { grid-template-columns:1fr; } }

/* ---------- reveal-on-scroll (reduced-motion safe) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* JS-off safety: content must be visible whenever the Kind Bar can't run,
   regardless of the OS reduced-motion preference. This applies unconditionally
   while .no-js is present; when JS is on, the boot script swaps .no-js -> .js
   before paint, so these rules stop matching and reveal.js animates elements
   in, after which data-motion (below) drives motion honestly. */
.no-js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
.no-js .appcard, .no-js .btn { transition: none; }
/* Kind Bar motion=off — full fallback, catches per-page keyframes too */
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}
html[data-motion="reduced"] .reveal { opacity: 1 !important; transform: none !important; }

/* utility */
.tagrow { display:flex; gap:.5rem; flex-wrap:wrap; }
.tag { font-size: var(--step--1); border:1px solid var(--rule); border-radius:999px; padding:.25rem .7rem; color: var(--ink-2); background: var(--paper); }
.split { display:grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem,4vw,4rem); align-items:center; }
/* WCAG 1.4.10 reflow at 320px: grid items default to min-width:auto, so a long
   word in a large hero h1/feelquote inflates the track past the viewport.
   min-width:0 lets tracks shrink; break-word handles the long word itself. */
.split > * { min-width: 0; }
.split h1, .split h2, .feelquote { overflow-wrap: break-word; hyphens: none; -webkit-hyphens: none; }
@media (max-width: 860px){ .split { grid-template-columns:1fr; } }

/* data tables: 2D scroll region is the sanctioned 1.4.10 pattern */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline: 3px solid var(--section-strong, var(--ink)); outline-offset: 3px; border-radius: 4px; }
.table-scroll > table { margin: 0; }

/* ---------- app-page hero: keep the store CTA above the fold on desktop ----------
   The right column holds two tall phone mock-ups. Centre-aligning the short text
   column against them pushed the Download button well below the fold at 1440-wide.
   On two-column widths we top-align the columns, tame the headline, tighten the
   eyebrow rhythm, and keep both phones on one shorter row so the CTA + a full
   screenshot land on first paint. Mobile (≤860, single column) is untouched. */
@media (min-width: 861px){
  .split.app-hero { align-items: start; }
  .app-hero h1 { font-size: clamp(2.4rem, 1.5rem + 2.6vw, 3.6rem); }
  .app-hero .eyebrow { margin-bottom: .7rem; }
  .app-hero .shots { flex-wrap: nowrap; }
  .app-hero .shot { width: clamp(150px, 16vw, 205px); }
}
.center { text-align:center; } .mxauto{ margin-inline:auto; }
.sr-only { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.mt0{margin-top:0}.mb0{margin-bottom:0}

/* decorative focus-ring watermark motif (aria-hidden) */
.ring-mark { position:absolute; border:2px solid color-mix(in oklab, var(--section-accent) 26%, transparent); border-radius: 40px; pointer-events:none; z-index:0; }
.hero-wm { position:relative; }
.hero-wm > * { position:relative; z-index:1; }
