/* heraldjournal.app (step 10.27, boards A–K of the Herald Website canvas, D212). Herald's own tokens: warm off-white,
   magenta for the mark and actions only, Comfortaa headings, Nunito body; no red, no sharp corners, no charts.
   Motion is calm: things fade and rise into place on one decelerating curve, never bounce, and all of it stops under
   Reduce Motion. Nothing flashes. */
@font-face { font-family: "Comfortaa"; src: url("/fonts/Comfortaa-Variable.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito-Variable.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --page: #FBF8F6; --card: #FEFEFE; --sunken: #F6F1EE; --line: #EDE6E2; --line-strong: #DED5D0;
  --ink: #282122; --body: #3B3133; --muted: #6E6164; --subtle: #8E8184;
  --accent: #C32AA6; --accent-text: #A5228C; --accent-press: #7F1A6C; --accent-soft: #FDF3FA; --accent-line: #F1C6E8; --on-accent: #FEFEFE;
  --calm: #2F5A47; --calm-dot: #5C9B7F; --calm-soft: #E6F0EA;
  --rest: #2F5263; --rest-soft: #E6EFF3; --rest-line: #C9DCE4;
  --attn: #9E6D1C; --attn-dot: #DFA33F;
  --night: #1F1A1B; --night-ink: #FBF7F7; --night-body: #D9CFD1; --night-accent: #E59CD7;
  --badge: #282122; --on-badge: #FEFEFE;
  --shadow: 0 1px 2px rgba(40, 33, 34, .05), 0 8px 24px rgba(40, 33, 34, .08);
  --shadow-accent: 0 6px 20px rgba(195, 42, 166, .22);
  --display: "Comfortaa", "Avenir Next Rounded", ui-rounded, system-ui, sans-serif;
  --text: "Nunito", ui-rounded, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #171314; --card: #1F1A1B; --sunken: #292223; --line: #342C2E; --line-strong: #423739;
    --ink: #FBF7F7; --body: #E2D9DB; --muted: #B0A3A6; --subtle: #9A8E90;
    --accent: #C32AA6; --accent-text: #E59CD7; --accent-press: #E59CD7; --accent-soft: rgba(214, 98, 192, .14); --accent-line: #7F1A6C; --on-accent: #FFFFFF;
    --calm: #A9CDB9; --calm-dot: #A9CDB9; --calm-soft: rgba(169, 205, 185, .14);
    --rest: #A8C7D4; --rest-soft: rgba(168, 199, 212, .14); --rest-line: #3A4D55;
    --attn: #F0CE8C; --attn-dot: #F0CE8C;
    --night: #241E1F; --night-ink: #FBF7F7; --night-body: #D9CFD1; --night-accent: #E59CD7;
    --badge: #FBF7F7; --on-badge: #171314;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-accent: 0 6px 20px rgba(195, 42, 166, .34);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 19px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--accent-press); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--accent); color: var(--on-accent); padding: 12px 20px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.eyebrow { font: 800 13px/1.3 var(--text); letter-spacing: .9px; text-transform: uppercase; color: var(--accent-text); }
.lede { font-size: 21px; color: var(--body); }
.body { color: var(--body); }
.small { font-size: 16px; line-height: 1.55; color: var(--muted); }
.path { font-weight: 700; color: var(--ink); white-space: nowrap; }
@media (max-width: 520px) { .path { white-space: normal; } }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; border-radius: 14px; }
.brand svg { width: 36px; height: 35px; }
.brand .word { font: 700 23px/1 var(--display); color: var(--accent); letter-spacing: -.3px; }
.nav { display: flex; gap: 4px; }
.nav a { white-space: nowrap; font: 700 16px/1 var(--text); color: var(--body); text-decoration: none; padding: 13px 15px; border-radius: 999px; transition: background-color 180ms var(--ease), color 180ms var(--ease); }
.nav a:hover { background: var(--sunken); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }
.menu-button { display: none; min-width: 48px; height: 48px; padding: 0 16px; border-radius: 24px; border: 0; background: var(--sunken); color: var(--ink); font: 800 15px var(--text); cursor: pointer; }
.menu-panel { display: none; }

/* The App Store badge: Apple's own artwork goes here (see the build script); until then a stand-in of the same size. */
.badge { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-radius: 12px; background: var(--badge); color: var(--on-badge); text-decoration: none; font: 700 15px/1.15 var(--text); transition: transform 180ms var(--ease); white-space: nowrap; }
.badge:hover { color: var(--on-badge); }
.badge:active { transform: scale(.97); }
.badge small { display: block; font: 600 11px/1.1 var(--text); opacity: .8; }
.badge svg { width: 22px; height: 22px; flex: none; }
.beta-badge { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-accent); border-radius: 999px; padding: 0 22px 0 8px; }
.beta-badge:hover { color: var(--on-accent); background: #A5228C; }
.beta-badge svg { width: 36px; height: 36px; padding: 6px; border-radius: 18px; background: #FEFEFE; }
.beta-badge small { opacity: .9; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 800 17px var(--text); text-decoration: none; box-shadow: var(--shadow-accent); transition: transform 180ms var(--ease), background-color 180ms var(--ease); }
.button:hover { color: var(--on-accent); background: #A5228C; }
.button:active { transform: scale(.97); box-shadow: none; }
.downloads { display: flex; flex-wrap: wrap; gap: 12px; }
.downloads .button { padding: 10px 22px; font-size: 16px; line-height: 1.25; text-align: center; }
.pill-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--accent-text); font: 800 15px var(--text); text-decoration: none; }

/* Sections */
section { padding-top: 64px; padding-bottom: 64px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 36px; }
.h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.08; letter-spacing: -1.4px; }
.h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.2; letter-spacing: -.7px; }
.h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.3px; }
.divided { border-top: 1px solid var(--line); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card.tint-accent { background: var(--accent-soft); border-color: var(--accent-line); }
.card.tint-rest { background: var(--rest-soft); border-color: var(--rest-line); }
a.card { text-decoration: none; color: inherit; transition: transform 180ms var(--ease), border-color 180ms var(--ease); }
a.card:hover { border-color: var(--accent-line); color: inherit; }
a.card:active { transform: scale(.985); }
.card .more { font: 700 16px var(--text); color: var(--accent-text); }
.tint-rest .eyebrow, .tint-rest .more { color: var(--rest); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.shot { width: 100%; max-width: 300px; border-radius: 30px; box-shadow: var(--shadow); background: var(--card); }
.watch-shot { width: 150px; border-radius: 36px; }
.calm-note { background: var(--calm-soft); border-radius: 20px; padding: 16px 18px; font: 600 17px/1.5 var(--text); color: var(--calm); }
.plus-chip { display: inline-block; align-self: flex-start; padding: 5px 13px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font: 800 12px/1.3 var(--text); letter-spacing: .6px; text-transform: uppercase; }
.chip { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font: 700 16px/1 var(--text); color: var(--body); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; color: var(--body); font-size: 18px; line-height: 1.55; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--body); font-size: 18px; }
.ticks .tick { flex: none; width: 24px; height: 24px; border-radius: 12px; background: var(--calm-soft); color: var(--calm); display: inline-flex; align-items: center; justify-content: center; margin-top: 3px; }
.ticks .tick svg { width: 14px; height: 14px; }

.card.center { align-items: center; text-align: center; }
.free { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 40px; }
.free-col { display: flex; flex-direction: column; gap: 16px; justify-content: center; }

/* Home: the hero and its park, drawn in */
.hero { text-align: center; padding-top: 72px; padding-bottom: 24px; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero .lede { max-width: 720px; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 6px; }
.park { width: 100%; max-width: 1100px; margin: 36px auto 0; border-radius: 36px; background: var(--accent-soft); overflow: hidden; aspect-ratio: 840 / 300; }
.park svg { width: 100%; height: 100%; display: block; }

/* The check-in, filling in its three taps */
.checkin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 56px; align-items: center; }
.demo { background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.demo-row { display: flex; flex-direction: column; gap: 10px; }
.demo-row b { font: 700 17px var(--display); }
.dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.dots span { height: 48px; border-radius: 16px; background: var(--sunken); border: 1.5px solid var(--line); transition: background-color 420ms var(--ease), border-color 420ms var(--ease), transform 420ms var(--ease); }
.dots span.on { background: var(--accent); border-color: var(--accent); }
.saved { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--calm-soft); color: var(--calm); font: 700 16px var(--text); }
.saved svg { width: 20px; height: 20px; flex: none; }

/* The dark privacy band */
.night { background: var(--night); color: var(--night-ink); }
.night .h2 { color: var(--night-ink); }
.night .eyebrow { color: var(--night-accent); }
.night p { color: var(--night-body); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: center; }

/* Features: alternating rows, a magenta line drawn down the side as you read */
.features { position: relative; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: center; padding-top: 60px; padding-bottom: 60px; border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: 300px minmax(0, 1fr); }
.feature.flip > :first-child { order: 0; }
.feature .text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.feature .pics { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.feature .pair { display: flex; gap: 14px; max-width: 100%; min-width: 0; }
.feature .pair img { flex: 0 1 143px; min-width: 0; max-width: 143px; height: auto; border-radius: 20px; }
.trail { position: absolute; top: 0; left: -96px; width: 56px; height: 100%; pointer-events: none; overflow: visible; }
.trail path { stroke: var(--accent); stroke-width: 3.5; fill: none; stroke-linecap: round; opacity: .7; vector-effect: non-scaling-stroke; }
.trail-dot { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 7px; background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); pointer-events: none; transition: opacity 280ms var(--ease); }
.report-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.report-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--body); }

.text-block { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.closing { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding-bottom: 24px; }
.closing .lede { max-width: 640px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps .card::before { counter-increment: s; content: counter(s); width: 42px; height: 42px; border-radius: 21px; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; font: 800 18px var(--text); }

/* Support and FAQ */
.support-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.mail-card .address { font: 800 22px/1.3 var(--text); color: var(--ink); user-select: all; overflow-wrap: break-word; }
.qa { padding: 24px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.qa h3 { font-size: 21px; line-height: 1.35; }
.qa p { max-width: 760px; color: var(--body); font-size: 18px; }

/* Legal pages */
.doc-layout { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 56px; padding-bottom: 80px; }
.toc { flex: 1 1 240px; max-width: 280px; position: sticky; top: 24px; align-self: flex-start; }
.toc a { display: block; padding: 7px 0; font: 600 15px/1.4 var(--text); color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--accent-text); }
.toc-title { font: 800 12px/1.3 var(--text); letter-spacing: .9px; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.doc { flex: 999 1 560px; min-width: 0; max-width: 720px; }
.doc h2 { margin: 44px 0 12px; font-size: 26px; line-height: 1.3; letter-spacing: -.4px; scroll-margin-top: 24px; }
.doc p { margin: 0 0 16px; color: var(--body); font-size: 19px; line-height: 1.65; }
.doc .short { background: var(--accent-soft); border-radius: 24px; padding: 24px 26px 10px; margin-top: 28px; }
.doc .short h2 { margin-top: 0; }
.translation-note { border: 1.5px dashed var(--line-strong); border-radius: 20px; padding: 14px 18px; margin-top: 20px; font-size: 16px; color: var(--body); }

/* Press facts */
.fact { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--body); font-size: 18px; }
.fact b { flex: none; width: 150px; color: var(--ink); }

/* Page parts */
.split-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: center; }
.split-wide .section-head { margin-bottom: 0; }
.shots-pair { display: flex; gap: 20px; justify-content: flex-end; }
.shots-pair .shot { max-width: 250px; }
.strong { font-weight: 800; color: var(--ink); }
.wide-gap { gap: 56px; }
.watch-row { display: flex; gap: 18px; align-items: center; padding-top: 6px; }
.watch-row .watch-shot { width: 110px; border-radius: 26px; }
.eyebrow-rest { color: var(--rest); }
.dashed { border: 1.5px dashed var(--line-strong); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.faq { padding-top: 16px; }
.faq-title { margin-bottom: 12px; }
.chips-calm .chip { background: var(--calm-soft); border-color: transparent; color: var(--calm); }
.facts-title { margin-bottom: 12px; }
.placeholder { color: var(--subtle); font-style: italic; }
.nothing { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding-top: 40px; padding-bottom: 40px; }
.nothing-ring { width: 88px; height: 88px; border-radius: 44px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.nothing-ring svg { width: 46px; height: 45px; }
.doc-title { font-size: clamp(34px, 5vw, 48px); margin-bottom: 10px; }
.lang-later { color: var(--subtle); font-size: 16px; }

/* The public beta (/beta, boards L and M) */
.beta-card .link-text { overflow-wrap: anywhere; user-select: all; }
.beta-qr { display: flex; align-items: center; gap: 18px; padding: 14px; border-radius: 20px; background: var(--sunken); }
.beta-qr .qr { width: 112px; height: 112px; flex: none; border-radius: 10px; background: #FFFFFF; }
.beta-watch { margin-top: 20px; }
.devices { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.devices li { flex: 1 1 150px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.devices .i { width: 28px; height: 28px; color: var(--accent-text); }
.devices strong { font: 700 19px/1.3 var(--display); color: var(--ink); }
.devices + .small { margin-top: 20px; }
.beta-full .section-head { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--sunken); border-top: 1px solid var(--line); margin-top: 24px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 28px; }
.footer-cols { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-cols h2 { font: 800 12px/1.3 var(--text); letter-spacing: .9px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-cols ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-cols a { color: var(--body); text-decoration: none; font-size: 16px; }
.footer-cols a:hover { color: var(--accent-text); }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.languages-title { font: 800 12px/1.3 var(--text); letter-spacing: .9px; text-transform: uppercase; color: var(--muted); }
.languages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 14px 18px; border-radius: 18px; background: var(--page); }
.languages a { color: var(--body); text-decoration: none; font-size: 16px; }
.languages a[aria-current="true"] { color: var(--accent-text); font-weight: 800; }
.fine { border-top: 1px solid var(--line-strong); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.fine p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.fine p:first-child { color: var(--body); font-size: 15px; }

/* Delays for things that come in one after another (no inline styles: the site's content policy forbids them). */
.d1 { --delay: 120ms; } .d2 { --delay: 240ms; } .d3 { --delay: 360ms; } .d4 { --delay: 520ms; } .d5 { --delay: 700ms; } .d6 { --delay: 900ms; } .d7 { --delay: 1100ms; } .d8 { --delay: 1300ms; }

/* Calm motion, only when the script runs and the device allows motion. Without the script everything simply shows. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 800ms var(--ease), transform 1000ms var(--ease); transition-delay: var(--delay, 0ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  /* If the script stops halfway, the page shows itself anyway. */
  .js [data-reveal]:not(.in) { animation: show-anyway 0s 4s forwards; }
  @keyframes show-anyway { to { opacity: 1; transform: none; } }

  .js .park .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .park .fill { fill-opacity: 0; }
  .js .park.in .draw { animation: draw 2400ms var(--ease) forwards; animation-delay: var(--delay, 0ms); }
  .js .park.in .fill { animation: draw 2400ms var(--ease) forwards, fill-in 900ms var(--ease) forwards; animation-delay: var(--delay, 0ms), calc(var(--delay, 0ms) + 700ms); }
  .js .park.in .signal { animation: draw 1200ms var(--ease) forwards, breathe 4200ms ease-in-out 3200ms infinite; animation-delay: 1900ms, 3200ms; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes fill-in { to { fill-opacity: 1; } }
  @keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

  .js .demo .dots span.on { transform: scale(1.04); }
  .js .demo .saved { opacity: 0; transform: translateY(8px); transition: opacity 600ms var(--ease), transform 700ms var(--ease); }
  .js .demo.done .saved { opacity: 1; transform: none; }
}

/* Narrower screens: one column, text first */
@media (max-width: 920px) {
  .grid-3, .steps { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .split, .split-wide, .checkin, .support-top, .free { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature.flip > :first-child { order: 2; }
  .feature .pics { align-items: flex-start; }
  .split img { max-width: 260px; }
  .shots-pair { justify-content: flex-start; }
  .shots-pair .shot { max-width: 46%; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trail, .trail-dot { display: none; }
  .beta-qr { display: none; }
}
@media (max-width: 1330px) { .trail, .trail-dot { display: none; } }
/* A phone or tablet opens the link itself: the QR code is for reading on a computer. */
@media (pointer: coarse) { .beta-qr { display: none; } }
/* The header's four links and the badge need up to 970px in the longest languages (French, German, Portuguese): below
   980px the menu button takes their place, so the links never wrap onto two lines. */
@media (max-width: 980px) {
  .nav, .site-header .badge { display: none; }
  .menu-button { display: inline-flex; align-items: center; }
  .menu-panel[data-open="true"] { display: flex; flex-direction: column; padding: 4px 24px 22px; border-bottom: 1px solid var(--line); }
  .menu-panel a.item { padding: 16px 4px; font: 700 20px/1 var(--display); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .menu-panel .badge { margin-top: 18px; align-self: flex-start; }
}
@media (max-width: 760px) {
  body { font-size: 18px; }
  section { padding-top: 48px; padding-bottom: 48px; }
  .hero { padding-top: 44px; }
  .park { aspect-ratio: 4 / 3; border-radius: 28px; }
  .shot { max-width: 230px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-width: none; }
  .fact { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* The demos (step 10.27, owner: "animated demos … with a more accurate design as the actual apps"): Herald's own screens,
   drawn in HTML with the app's words, icons (HeraldUI's Lucide glyphs) and colours, played by site.js while in view.
   Under Reduce Motion each shows its last moment, still. */
.phone {
  --a-bg: #FBF8F6; --a-card: #FEFEFE; --a-sunken: #F6F1EE; --a-line: #EDE6E2; --a-ink: #282122; --a-body: #3B3133; --a-muted: #6E6164;
  --a-accent: #C32AA6; --a-accent-text: #A5228C; --a-accent-soft: #FDF3FA; --a-accent-line: #F1C6E8;
  --a-rest: #5E8FA3; --a-rest-soft: #E6EFF3; --a-calm: #5C9B7F; --a-calm-text: #2F5A47; --a-calm-soft: #E6F0EA; --a-attn: #9E6D1C; --a-slate: #3C6273;
  position: relative; width: min(290px, 100%); aspect-ratio: 290 / 600; margin: 0 auto; border-radius: 44px; overflow: hidden;
  background: var(--a-bg); border: 1px solid var(--a-line); box-shadow: var(--shadow); color: var(--a-ink); font-family: var(--text); text-align: left;
}
@media (prefers-color-scheme: dark) {
  .phone {
    --a-bg: #171314; --a-card: #1F1A1B; --a-sunken: #292223; --a-line: #342C2E; --a-ink: #FBF7F7; --a-body: #E2D9DB; --a-muted: #B0A3A6;
    --a-accent: #C32AA6; --a-accent-text: #E59CD7; --a-accent-soft: rgba(214, 98, 192, .16); --a-accent-line: #7F1A6C;
    --a-rest: #A8C7D4; --a-rest-soft: rgba(168, 199, 212, .16); --a-calm: #A9CDB9; --a-calm-text: #A9CDB9; --a-calm-soft: rgba(169, 205, 185, .16); --a-attn: #F0CE8C; --a-slate: #A8C7D4;
  }
}
.phone .i { width: 18px; height: 18px; flex: none; }
.ph-screen { position: absolute; inset: 0; padding: 20px 16px; }
.ph-sheet { position: absolute; inset: 0; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; transition: opacity 420ms var(--ease), transform 600ms var(--ease); }
.ph-bar { display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; text-align: center; }
.ph-bar b { font: 700 14px var(--display); }
.ph-round { width: 30px; height: 30px; border-radius: 15px; background: var(--a-sunken); display: inline-flex; align-items: center; justify-content: center; color: var(--a-body); }
.ph-round .i { width: 14px; height: 14px; }
.ph-h { margin: 4px 0 0; font: 700 23px/1.2 var(--display); letter-spacing: -.4px; color: var(--a-ink); }
.ph-h-md { font-size: 18px; margin: 2px 0 0; }
.ph-sub { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--a-muted); }
.ph-eyebrow { margin: 0; font: 800 10.5px/1.3 var(--text); letter-spacing: .8px; text-transform: uppercase; color: var(--a-accent-text); }
.ph-eyebrow.muted { color: var(--a-muted); }
.ph-choices { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.ph-choice { position: relative; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 18px; background: var(--a-card); border: 1.5px solid var(--a-line); transition: border-color 280ms var(--ease), background-color 280ms var(--ease), transform 180ms var(--ease); }
.ph-ic { flex: none; width: 34px; height: 34px; border-radius: 17px; background: var(--a-sunken); display: inline-flex; align-items: center; justify-content: center; color: var(--a-slate); }
.ph-ic.seizure { color: var(--a-accent); } .ph-ic.aura { color: var(--a-attn); } .ph-ic.note { color: var(--a-slate); } .ph-ic.rest { color: var(--a-rest); }
.ph-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ph-t b { font: 700 14px/1.3 var(--display); }
.ph-t b em { font: 600 11px var(--text); font-style: normal; color: var(--a-muted); margin-left: 4px; }
.ph-t small { font-size: 11px; line-height: 1.35; color: var(--a-muted); }
/* History's rows keep one line each, cut with an ellipsis as iOS lists do, so longer languages don't push the last row under the tab bar. */
.ph-row .ph-t b, .ph-row .ph-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-time { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--a-sunken); font-size: 12px; color: var(--a-body); }
.ph-time .i { width: 15px; height: 15px; color: var(--a-muted); }
.ph-time span { flex: 1; }
.ph-time em { font-style: normal; font-weight: 800; font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--a-accent-soft); color: var(--a-accent-text); }
.ph-foot { position: absolute; left: 16px; right: 16px; bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ph-cta { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 44px; border-radius: 999px; background: var(--a-accent); color: #FEFEFE; font: 800 14px var(--text); opacity: .45; transition: opacity 280ms var(--ease); }
.ph-cta .i { width: 15px; height: 15px; }
.ph-cta.ready, .phone.s2 .ph-cta { opacity: 1; }
.ph-link { position: relative; font: 800 12.5px var(--text); color: var(--a-accent-text); padding: 2px 8px; border-radius: 999px; }
.ph-toast { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 20px; background: var(--a-card); border: 1px solid var(--a-line); box-shadow: 0 6px 24px rgba(40, 33, 34, .14); transform: translateY(140%); opacity: 0; transition: transform 600ms var(--ease), opacity 420ms var(--ease); }
.ph-toast b { display: block; font: 700 13.5px/1.3 var(--display); }
.ph-toast small { font-size: 11px; color: var(--a-muted); }
.ph-ok { flex: none; width: 30px; height: 30px; border-radius: 15px; background: var(--a-calm-soft); color: var(--a-calm-text); display: inline-flex; align-items: center; justify-content: center; }
.ph-ok .i { width: 15px; height: 15px; }
/* A tap: a soft ring that spreads from the middle of what was tapped. */
.tapped::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--a-accent); opacity: 0; animation: tap 620ms var(--ease); pointer-events: none; }
@keyframes tap { 0% { opacity: .28; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.8); } }
.phone .tapped { transform: scale(.985); }

/* Logging */
.phone[data-demo="log"].s1 .pick { border-color: var(--a-accent); border-width: 2px; background: var(--a-accent-soft); }
.phone[data-demo="log"].s3 .ph-sheet { opacity: .55; transform: scale(.985); }
.phone[data-demo="log"].s3 .ph-toast, .phone[data-demo="checkin"].s6 .ph-toast { transform: none; opacity: 1; }

/* The check-in */
.ph-dots { display: flex; justify-content: center; gap: 5px; }
.ph-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--a-line); transition: width 420ms var(--ease), background-color 420ms var(--ease); }
.phone[data-demo="checkin"] .ph-dots i:nth-child(1), .phone.s2 .ph-dots i:nth-child(2), .phone.s4 .ph-dots i:nth-child(3) { width: 22px; background: var(--a-accent); }
.phone.s2 .ph-dots i:nth-child(1), .phone.s4 .ph-dots i:nth-child(2) { width: 6px; background: var(--a-accent-line); }
.phone[data-demo="checkin"] .ph-sheet { overflow: hidden; }
.ph-window { margin: 0 -16px; overflow: hidden; flex: 1 0 auto; display: flex; }
.ph-track { display: flex; width: 300%; min-width: 0; flex: 1 0 auto; align-self: flex-start; transition: transform 700ms var(--ease); }
.phone.s2 .ph-track { transform: translateX(-33.333%); }
.phone.s4 .ph-track { transform: translateX(-66.666%); }
.ph-q { flex: 0 0 33.333%; width: 33.333%; min-width: 0; padding: 10px 18px 0; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 6px; --tone: var(--a-rest); --tone-soft: var(--a-rest-soft); }
.ph-q.accent { --tone: var(--a-accent); --tone-soft: var(--a-accent-soft); }
.ph-q.calm { --tone: var(--a-calm); --tone-soft: var(--a-calm-soft); }
.ph-qic { width: 40px; height: 40px; border-radius: 20px; background: var(--tone-soft); color: var(--tone); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.ph-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; align-items: end; padding-top: 14px; }
.ph-scale i { position: relative; height: 40px; border-radius: 12px; background: var(--a-card); border: 1.5px solid var(--a-line); transition: background-color 280ms var(--ease), border-color 280ms var(--ease); }
.ph-scale i:nth-child(2) { height: 43px; } .ph-scale i:nth-child(3) { height: 46px; } .ph-scale i:nth-child(4) { height: 49px; } .ph-scale i:nth-child(5) { height: 52px; }
.ph-scale i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--a-line-strong, #DED5D0); }
.ph-scale i.on { background: var(--tone); border-color: var(--tone); }
.ph-scale i.on::before { background: #FEFEFE; }
.ph-ends { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--a-muted); }

/* The heads-up */
.ph-count { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; transition: opacity 500ms var(--ease); }
.ph-ring { width: 120px; height: 120px; border-radius: 60px; border: 3px solid var(--a-accent); display: flex; align-items: center; justify-content: center; }
.ph-n { font: 700 54px/1 var(--display); color: var(--a-accent); }
.ph-cancel { margin-top: 8px; padding: 10px 26px; border-radius: 999px; background: var(--a-sunken); font: 800 13px var(--text); color: var(--a-ink); }
.ph-live { position: absolute; inset: 0; padding: 20px 16px 18px; display: flex; flex-direction: column; gap: 7px; opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease), transform 700ms var(--ease); }
.phone[data-demo="headsup"].s1 .ph-count { opacity: 0; }
.phone[data-demo="headsup"].s1 .ph-live, .phone[data-demo="supporter"].s2 .ph-live { opacity: 1; transform: none; }
.ph-timer { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; }
.ph-timer b { font: 700 40px/1 var(--display); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.ph-timer span { font-size: 11px; color: var(--a-muted); }
.ph-progress { height: 5px; border-radius: 3px; background: var(--a-line); overflow: hidden; }
.ph-progress i { display: block; height: 100%; width: 0; background: var(--a-accent); border-radius: 3px; transition: width 1000ms linear; }
.ph-meta { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--a-muted); }
.ph-card { background: var(--a-card); border: 1px solid var(--a-line); border-radius: 18px; padding: 11px 12px; display: flex; flex-direction: column; gap: 6px; }
.ph-card > b { font: 700 14px var(--display); }
.ph-card p { margin: 0; display: flex; gap: 8px; font-size: 11.5px; line-height: 1.4; color: var(--a-body); }
.ph-card p i, .ph-plan > i { flex: none; width: 19px; height: 19px; border-radius: 10px; background: var(--a-accent-soft); color: var(--a-accent-text); font: 800 10px/19px var(--text); font-style: normal; text-align: center; }
.ph-card strong { color: var(--a-ink); }
.ph-knows { display: flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 12px; border-radius: 999px; background: var(--a-calm-soft); color: var(--a-calm-text); font: 800 12px var(--text); opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease), transform 600ms var(--ease); }
.ph-knows .i { width: 14px; height: 14px; }
.phone.s2 .ph-knows { opacity: 1; transform: none; }
.ph-live .ph-foot { bottom: 16px; }

/* History and Patterns */
.ph-page { display: flex; flex-direction: column; gap: 9px; padding-top: 26px; }
.ph-title { margin: -4px 0 2px; font: 700 26px/1.15 var(--display); letter-spacing: -.5px; }
.ph-stats > div { display: grid; grid-template-columns: repeat(3, minmax(max-content, 1fr)); gap: 6px; }
.ph-stats span { display: flex; flex-direction: column; font-size: 10.5px; color: var(--a-muted); white-space: nowrap; }
.ph-stats b { font: 700 24px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.ph-stats b.seizure { color: var(--a-accent); } .ph-stats b.aura { color: var(--a-attn); } .ph-stats b.calmc { color: var(--a-calm-text); }
.ph-chips { display: flex; gap: 5px; flex-wrap: nowrap; overflow: hidden; }
.ph-chips span { flex: none; }
.ph-chips span { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--a-line); background: var(--a-card); font: 700 10.5px var(--text); color: var(--a-body); }
.ph-chips span.on { background: var(--a-accent); border-color: var(--a-accent); color: #FEFEFE; }
.ph-day { margin: 4px 0 -2px; font: 700 16px var(--display); }
.ph-row { display: flex; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 16px; background: var(--a-card); border: 1px solid var(--a-line); opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease), transform 600ms var(--ease); }
.ph-row .ph-ic { width: 30px; height: 30px; }
.ph-row .i { width: 15px; height: 15px; }
.phone.s1 .r1, .phone.s2 .r2, .phone.s3 .r3, .phone.s4 .r4 { opacity: 1; transform: none; }
.ph-section { margin-top: 4px; }
.ph-stretch { background: var(--a-accent-soft); border-color: var(--a-accent-line); }
.ph-big { margin: 0; display: flex; align-items: baseline; gap: 4px; font-size: 13px; color: var(--a-muted); }
.ph-big b { font: 700 32px/1 var(--display); color: var(--a-accent); font-variant-numeric: tabular-nums; margin-right: 2px; }
.ph-small { margin: 0; font-size: 10.5px; line-height: 1.4; color: var(--a-muted); }
.ph-say { margin: 0; font-size: 13px; line-height: 1.45; color: var(--a-ink); }
.s-one, .s-two { opacity: 0; transform: translateY(8px); transition: opacity 600ms var(--ease), transform 700ms var(--ease); }
.phone.s1 .s-one, .phone.s2 .s-two { opacity: 1; transform: none; }

/* A supporter's Lock Screen */
.phone.lock .ph-lock { position: absolute; inset: 0; background: #2A2223; color: #FBF7F7; display: flex; flex-direction: column; align-items: center; padding: 40px 14px 0; transition: opacity 600ms var(--ease); }
.ph-lockdate { margin: 0; font: 700 13px var(--text); opacity: .85; }
.ph-locktime { margin: 0 0 22px; font: 700 64px/1 var(--text); letter-spacing: -1px; }
.ph-activity { position: relative; width: 100%; padding: 12px 13px; border-radius: 22px; background: rgba(254, 254, 254, .94); color: #282122; display: flex; flex-direction: column; gap: 7px; transform: translateY(-30px); opacity: 0; transition: transform 700ms var(--ease), opacity 500ms var(--ease); }
.ph-activity p { margin: 0; font-size: 12px; color: #3B3133; }
.ph-activity .ph-progress { background: #EDE6E2; }
.ph-act-top { display: flex; align-items: center; gap: 8px; }
.ph-act-top b { flex: 1; font: 700 13px var(--display); }
.ph-act-mark { width: 26px; height: 26px; border-radius: 13px; background: #C32AA6; color: #FEFEFE; display: inline-flex; align-items: center; justify-content: center; }
.ph-act-mark .i { width: 14px; height: 14px; }
.ph-act-clock { font: 700 17px var(--display); font-variant-numeric: tabular-nums; color: #A5228C; }
.phone.s1 .ph-activity { transform: none; opacity: 1; }
.phone.s2 .ph-lock { opacity: 0; }
.ph-plan { flex-direction: row; align-items: flex-start; gap: 9px; }
.ph-plan b { display: block; font: 700 13px var(--display); }
.ph-plan small { font-size: 11px; color: var(--a-muted); }

/* Where demos sit */
.demo-pair { display: flex; gap: 20px; justify-content: flex-end; align-items: flex-start; }
.demo-pair .phone, .demo-pair .shot { margin: 0; width: min(250px, 48%); }
.card .phone { width: min(270px, 100%); }
@media (max-width: 920px) { .demo-pair { justify-content: center; } }
@media (max-width: 760px) { .demo-pair { flex-direction: column; align-items: center; } .demo-pair .phone, .demo-pair .shot { width: min(290px, 100%); } }

/* The app's Log bar and tab bar, at the foot of History and Patterns */
.ph-dock { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.ph-logbar { display: flex; gap: 6px; align-items: center; }
.ph-bell { width: 40px; height: 40px; border-radius: 20px; background: var(--a-accent-soft); color: var(--a-accent-text); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ph-bell .i { width: 16px; height: 16px; }
.ph-logpill { flex: 1; height: 40px; border-radius: 999px; background: color-mix(in srgb, var(--a-card) 88%, transparent); border: 1px solid var(--a-line); display: flex; align-items: center; justify-content: center; gap: 6px; font: 800 13px var(--text); color: var(--a-accent-text); box-shadow: 0 4px 14px rgba(40, 33, 34, .08); }
.ph-logpill .i { width: 14px; height: 14px; }
.ph-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px; border-radius: 26px; background: color-mix(in srgb, var(--a-card) 92%, transparent); border: 1px solid var(--a-line); box-shadow: 0 4px 14px rgba(40, 33, 34, .08); }
.ph-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 0; border-radius: 20px; color: var(--a-ink); }
.ph-tabbar span .i { width: 16px; height: 16px; }
.ph-tabbar em { font: 700 9px var(--text); font-style: normal; }
.ph-tabbar span.on { background: var(--a-sunken); color: var(--a-accent-text); }
