/* ==========================================================================
   Synapser — marketing site
   Dark-first identity derived from the app icon: near-black + #FF8000 bolt.
   Light theme + system preference supported via html[data-theme].
   ========================================================================== */

/* ---------- Font ---------- */

@font-face {
  font-family: "Inter var";
  src: url("../assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: dark;

  --bg: #0c0c10;
  --bg-elev: #121218;
  --card: #16161d;
  --card-hover: #1a1a22;
  --border: #26262f;
  --border-strong: #34343f;

  --text: #f4f4f6;
  --text-soft: #c9c9d2;
  --muted: #9d9da9;

  --accent: #ff8000;            /* brand orange — the app icon bolt. Fills only. */
  --accent-bright: #ff9a2e;
  --accent-text: #ffa14d;       /* orange for text — needs 4.5:1 on --bg */
  --accent-glyph: #ff8000;      /* orange for icons — needs 3:1 on --bg */
  --accent-ink: #140b02;        /* text on orange fills */
  --coral: #ff7d70;             /* "pain" accent (problem section) */
  --coral-bg: rgba(255, 107, 107, 0.09);

  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 12px 40px rgba(0, 0, 0, 0.45);
  --phone-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;

  --font: "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 1140px;
  --header-h: 68px;
}

html[data-theme="light"] {
  color-scheme: light;

  --bg: #fbfaf8;
  --bg-elev: #f4f3ef;
  --card: #ffffff;
  --card-hover: #ffffff;
  --border: #e7e5e0;
  --border-strong: #d8d6d0;

  --text: #17171b;
  --text-soft: #3c3c44;
  --muted: #5d5d66;

  --accent: #ff8000;
  --accent-bright: #e97400;
  --accent-text: #a85300;      /* 5.1:1 on --bg */
  --accent-glyph: #c05f00;     /* 4.1:1 on --bg — brand orange itself is only 2.4:1 */
  --accent-ink: #140b02;
  --coral: #c2453a;
  --coral-bg: rgba(214, 79, 66, 0.08);

  --shadow-1: 0 2px 8px rgba(23, 23, 27, 0.06);
  --shadow-2: 0 12px 40px rgba(23, 23, 27, 0.10);
  --phone-shadow: 0 30px 70px rgba(23, 23, 27, 0.22);
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  /* --accent-glyph, not --accent: raw brand orange is 2.4:1 on the light
     background — invisible as a focus ring (WCAG 1.4.11 wants 3:1). */
  outline: 2px solid var(--accent-glyph);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Type ---------- */

h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }

/* Sized for the August 2026 headline — nearly twice the words of the original
   three-liner, so it steps down a size to hold four lines, not seven. */
.display {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 830;
  letter-spacing: -0.038em;
}

.section-title { font-size: clamp(1.9rem, 4vw, 2.75rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}

.eyebrow-sentence {
  letter-spacing: normal;
  text-transform: uppercase;
}

.section-sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 40em;
  margin-top: 16px;
  text-wrap: pretty;
}

.accent { color: var(--accent-text); }
html:not([data-theme="light"]) .accent { color: var(--accent); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text-soft); transform: translateY(-2px); }

.btn-on-accent {
  background: #131318;
  color: #ffffff;
}
.btn-on-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }

/* ---------- App Store button switch ----------
   body[data-store-badge] decides whether the .store-cta slots render — see the
   comment on <body>. The App Store badge is Apple's official artwork, shown
   unmodified and unwrapped (no pill, no border) per Apple's badge guidelines. */

body[data-store-badge="hidden"] .store-cta { display: none !important; }

.app-store-badge { display: inline-flex; align-items: center; }
.app-store-badge:hover { text-decoration: none; }
.app-store-badge img { width: auto; height: 48px; }
.header-cta.app-store-badge img { height: 40px; }
.app-store-badge-hero img { height: 52px; }
.mobile-nav-badge { display: flex; justify-content: center; margin-top: 14px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;          /* Apple HIG tap target — free inside the 68px bar */
  color: var(--text);
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; }

/* V9: the whole banner sits to the right, leaving clear space after the logo
   (#975 PDF; the August 2026 tester round asks for a guaranteed minimum, hence
   the padding on top of the elastic margin). The 28px header gap separates the
   nav from the actions. */
.main-nav { display: flex; gap: 4px; margin-left: auto; padding-left: 20px; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;          /* Apple HIG tap target — iPad landscape shows this nav */
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 550;
  padding: 9px 11px;
  border-radius: 8px;
  white-space: nowrap;       /* never a two-line label — the 1180px cutoff hides the nav first */
}
.main-nav a:hover { color: var(--text); text-decoration: none; }
/* Set by the scroll spy in main.js — the section currently under the header. */
.main-nav a[aria-current="true"] { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }
/* Below 1180px the .main-nav hides (six items no longer fit beside the logo,
   switcher and CTA), so the actions reclaim the right edge. */
@media (max-width: 1180px) { .header-actions { margin-left: auto; } }
.header-actions .btn { min-height: 44px; padding: 9px 20px; font-size: 0.95rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--bg-elev); }
.icon-btn svg { width: 19px; height: 19px; }

.nav-toggle { display: none; }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  /* Above the consent sheet while open: on short screens the sheet otherwise
     covers the final navigation links. Closing the menu reveals it again. */
  z-index: 160;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 24px max(24px, env(safe-area-inset-bottom));
}
.mobile-nav.open { display: block; }
/* :not(.btn) — otherwise this wins over .btn-primary's ink and the CTA
   renders white-on-orange (2.3:1). :not(.app-store-badge) — the badge slot is
   a centred flex row, not a bordered nav item. */
.mobile-nav a:not(.btn):not(.app-store-badge) {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:not(.btn):last-of-type { border-bottom: 0; }
.mobile-nav .btn { width: 100%; margin-top: 14px; }

/* ---------- Hero ---------- */

/* The independent sections below the hero need layout only as they approach
   the viewport. Remember their measured heights for subsequent scrolling.
   Keep FAQ's collapsed answers and the newsletter form outside containment. */
main > section:not(.hero):not(#faq):not(#download) {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 1000px;
}

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) 0 clamp(64px, 8vw, 110px);
  overflow: clip;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy .display { margin: 14px 0 22px; }
/* The orange sentence always starts its own line: on the stacked hero the old
   <br class="pdf-br"> disappeared and the accent ran on mid-line (#1192). */
.hero-copy .display .accent { display: block; }

/* The lede keeps the PDF's two hard line breaks (V9, #975): size to the column
   so each segment stays one line on desktop. */
.hero-lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  text-wrap: pretty;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Hero assurance pills ported from v12, on v9's tokens. */
.hero-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
  padding: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  line-height: 1.4;
}
.chip svg {
  width: 0.95rem;
  height: 0.95rem;
  /* Paths carry fill="currentColor", so color (not fill) is what lands. */
  color: var(--accent-glyph);
  fill: var(--accent-glyph);
  flex: none;
}

/* ---------- AI suggestions: the #1192 flow — mail screen → icon → suggestions ---------- */

.stage-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 660;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.section-body { margin-top: clamp(40px, 5vw, 64px); }

/* Captions share the top grid row; the two screenshots, the app icon, and the
   orange connector lines sit centred on the row below. Stacked (≤1020px) the
   items follow DOM order, which reads as the story. */
.connect-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(28px, 4vw, 72px) auto clamp(28px, 4vw, 72px) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(0.6rem, 0.3rem + 1vw, 1.25rem);
}
.connect-label-in { grid-area: 1 / 1; }
.connect-shot-in { grid-area: 2 / 1; }
.connect-line-a { grid-area: 2 / 2; }
.connect-label-core { grid-area: 1 / 3; text-align: center; }
.connect-line-b { grid-area: 2 / 4; }
.connect-label-out { grid-area: 1 / 5; }
.connect-shot-out { grid-area: 2 / 5; }
.connect-stage .stage-label { align-self: end; margin-bottom: 0.85rem; }

.connect-shot {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--bg-elev);
  box-shadow: var(--shadow-2);
}
.connect-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-m); }
/* Orders and Share: full-resolution crops in the AI section's card, beside the copy. */
.life-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.life-feature .ticks { margin: 24px 0 0; }
.life-capture { width: 100%; max-width: 460px; justify-self: center; }
.share-steps { display: grid; justify-items: center; text-align: center; }
.share-steps .connect-shot { width: 100%; }
.share-steps .connect-line { width: 2px; height: 44px; margin-block: 1.1rem; }
@media (max-width: 760px) { .life-feature { grid-template-columns: 1fr; } }
html[data-theme="light"] .connect-shot .shot-dark,
html:not([data-theme="light"]) .connect-shot .shot-light { display: none; }

.connect-core-icon {
  grid-area: 2 / 3;
  width: clamp(84px, 9vw, 128px);
  height: clamp(84px, 9vw, 128px);
  border-radius: 24%;
  justify-self: center;
  box-shadow: var(--shadow-1);
}

/* The connectors keep the orange recipe of the old Why-Synapser convergence
   band (#1192 asks for that exact style): a calm mixed-orange rail with the
   pure-accent pulse, the second line half a beat behind the first. Opacity
   only — it composites off the main thread. */
.connect-line {
  position: relative;
  height: 2px;
  border-radius: 1px;
  background: color-mix(in srgb, var(--accent) 55%, var(--border));
}
.connect-line::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  opacity: 0;
  animation: connect-pulse 2.6s ease-in-out infinite;
}
.connect-line-b::after { animation-delay: 0.5s; }
@keyframes connect-pulse {
  0%, 100% { opacity: 0; }
  45%, 60% { opacity: 0.85; }
}
/* Reduce Motion keeps the still rails; only the travelling pulse goes. */
@media (prefers-reduced-motion: reduce) {
  .connect-line::after { animation: none; opacity: 0; }
}

/* --- Tick lists (v12) --- */
.ticks { display: grid; gap: 0.7rem; list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 2.05rem;
  color: var(--text-soft);
  font-size: 0.9875rem;
  line-height: 1.55;
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-text);
  font-weight: 800;
}
.ticks strong { color: var(--text); font-weight: 600; }

@media (max-width: 1020px) {
  .connect-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .connect-stage > * { grid-area: auto; }
  .connect-stage .stage-label { align-self: auto; margin-bottom: 0.85rem; text-align: center; }
  .connect-shot { width: 100%; max-width: 520px; }
  /* The connectors turn vertical between the stacked elements. */
  .connect-line { width: 2px; height: 44px; margin-block: 1.1rem; }
}


/* ---------- Phone frames ---------- */

.phone-wrap { position: relative; display: flex; justify-content: center; }

.phone {
  position: relative;
  width: min(310px, 78vw);
  background: #1a1a22;
  border: 1px solid var(--border-strong);
  border-radius: 52px;
  padding: 11px;
  box-shadow: var(--phone-shadow);
}
.phone::after {                       /* side button */
  content: "";
  position: absolute;
  right: -3px;
  top: 19%;
  width: 3px;
  height: 64px;
  border-radius: 2px;
  background: var(--border-strong);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 1434;
  border-radius: 42px;
  overflow: hidden;
  background: #000;
}
.phone-screen video,
.phone-screen img.poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-control {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #fff;
  border-radius: 42px;
}
.video-control .play-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.62);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.video-control .play-badge svg { width: 24px; height: 24px; }
/* The badge reads the real state: a pause glyph while the clip plays (it is
   now visible on hover, #1215), a play glyph while it is paused. */
.video-control[data-state="playing"] .glyph-play,
.video-control[data-state="paused"] .glyph-pause { display: none; }
/* Controls (#1215): nothing floats over a playing clip. The badge and the
   scrub bar come forward for a hovering pointer, for keyboard focus inside the
   phone (.has-focus is JS-managed from :focus-visible; the per-control
   :focus-visible rules are the fallback), while the clip is paused, and for a
   moment after a touch (.controls-shown, JS-timed — touch has no hover). Hover
   is scoped to hover-capable pointers only: a :hover that sticks after a tap
   is exactly what the August 2026 tester round complained about on iOS. */
[data-video].is-paused .play-badge,
[data-video].has-focus .play-badge,
[data-video].controls-shown .play-badge,
.video-control:focus-visible .play-badge { opacity: 1; transform: scale(1); }
@media (hover: hover) {
  [data-video] .phone:hover .play-badge { opacity: 1; transform: scale(1); }
  [data-video] .phone:hover .video-scrub { opacity: 1; pointer-events: auto; }
}
[data-video].is-paused .video-scrub,
[data-video].has-focus .video-scrub,
[data-video].controls-shown .video-scrub,
.video-scrub:focus-visible { opacity: 1; pointer-events: auto; }
html.no-motion .video-control .play-badge,
html.no-motion .video-scrub { transition: none; }

/* Scrub bar (#1326). It sits above .video-control so a tap on the strip seeks
   instead of toggling playback, and it is 44px tall for the touch target while
   the visible track stays 4px. The colours are literals, not theme tokens: this
   floats over the recorded app screen, which can be light while the page is
   dark, so the track has to read on both. Brand orange on a neutral grey does;
   white on white would not, which is why the elapsed fill is not white. */
.video-scrub {
  --progress: 0%;
  opacity: 0;                 /* revealed by the rules above .video-control */
  pointer-events: none;       /* hidden: a tap on the strip toggles playback */
  transition: opacity 0.2s ease;
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  z-index: 4;
  width: calc(100% - 36px);
  height: 44px;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.video-scrub::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, #ff8000 var(--progress), rgba(128, 128, 128, 0.55) var(--progress));
}
.video-scrub::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(128, 128, 128, 0.55); }
.video-scrub::-moz-range-progress { height: 4px; border-radius: 999px; background: #ff8000; }
.video-scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: #ff8000;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.video-scrub::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #ff8000;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.video-scrub:focus-visible { outline: 3px solid #ff9a2e; outline-offset: -2px; border-radius: 8px; }

.feature-phone .phone { width: min(272px, 72vw); }

/* ---------- Sections ---------- */

/* In-page anchors have to clear the fixed header, same as .legal-body h2 does.
   Most sections' padding hides this, but #download's heading lands right on
   the header edge without it. */
section[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

.section-alt { background: var(--bg-elev); }

/* ---------- Why Synapser: the three pillar blocks (#1192) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(44px, 6vw, 64px);
}
.pillar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 30px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pillar:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: var(--shadow-2);
}
.pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: var(--accent-glyph);
  margin-bottom: 20px;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar .kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 8px;
}
.pillar h3 { font-size: 1.3rem; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Feature showcases ---------- */

.feature-media { display: flex; justify-content: center; }

.feature-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
/* The feature panels use v12's tick bullets (August 2026 tester round). */
.product-panel-copy .ticks { margin-top: 22px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; color: var(--text-soft); }
.feature-list svg { width: 20px; height: 20px; flex: none; color: var(--accent-glyph); margin-top: 2px; }

/* ---------- Integrations ---------- */

.provider-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(36px, 5vw, 56px);
}
.provider-col {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 26px 24px;
}
.provider-col h3 {
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.provider-list { list-style: none; display: grid; gap: 10px; }
.provider-list li { display: flex; }

/* Provider names are text marks set in Synapser's own type — we hold no licence for vendor
   product icons, and vendor guidelines require official, unmodified artwork. The chip is the
   mark: it carries the row weight the old logo tiles used to. See ATTRIBUTIONS.md. */
.provider-mark {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--text) 4%, var(--card));
  font-weight: 620;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.provider-mark svg { width: 17px; height: 17px; flex: none; color: var(--accent-glyph); }

.provider-note {
  margin-top: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; margin: clamp(32px, 4vw, 48px) auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 650;
  padding: 22px 4px;
}
.faq-q .chevron {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.25s ease;
}
.faq-q[aria-expanded="true"] .chevron { transform: rotate(180deg); color: var(--accent); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  /* visibility as well: 0fr only size-clips, so without it screen readers
     still read every collapsed answer against aria-expanded="false". The
     delay holds the text visible for the collapse transition. */
  visibility: hidden;
  transition: grid-template-rows 0.3s ease, visibility 0s 0.3s;
}
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--muted); padding: 0 4px 22px; max-width: 62em; }
.faq-a p:not(:last-child) { padding-bottom: 12px; }
.faq-item.open .faq-a {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.3s ease, visibility 0s;
}

/* ---------- Forms ---------- */

.field {
  width: 100%;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field::placeholder { color: var(--muted); }
.field:focus-visible { outline-offset: 0; }
textarea.field { resize: vertical; min-height: 96px; }

.form-status { font-size: 0.95rem; font-weight: 600; margin-top: 4px; }
.form-status.ok { color: var(--accent-text); }
.form-status.err { color: var(--coral); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ---------- Final CTA band ---------- */

.newsletter {
  background: var(--accent);
  color: #140b02;
  padding: clamp(64px, 9vw, 110px) 0;
  color-scheme: light; /* band is always light */
}
.newsletter .section-head { max-width: 640px; margin: 0 auto; text-align: center; }
.newsletter h2 { color: #140b02; }
.newsletter .lead {
  margin-top: 14px;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 650;                     /* bolder subtitle per #881 */
  color: rgba(20, 11, 2, 0.82);
  text-wrap: pretty;
}

.newsletter-store { margin-top: 30px; display: flex; justify-content: center; }
.newsletter-store .app-store-badge img { height: 56px; }

.newsletter-form { margin-top: 32px; display: grid; gap: 14px; justify-items: center; }
.newsletter-row {
  display: flex;
  gap: 10px;
  width: min(520px, 100%);
}
.newsletter-row .btn { flex: 1 1 0; min-width: 0; }
.newsletter-row .field {
  flex: 1 1 0;
  min-width: 0;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(20, 11, 2, 0.25);
  color: #140b02;
}
.newsletter-row .field::placeholder { color: rgba(20, 11, 2, 0.55); }
.newsletter-row .field:focus-visible { outline-color: #140b02; }
.newsletter .btn-on-accent:focus-visible { outline-color: #140b02; }

.newsletter .form-status.ok { color: #140b02; }
.newsletter .form-status.err { color: #5e1207; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: clamp(48px, 7vw, 72px) 0 40px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 26em; }
.footer-col h3 {
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;          /* Apple HIG tap target — the list gap pays for the extra height */
  color: var(--text-soft);
  font-weight: 550;
}
.footer-col a:hover { color: var(--text); }

/* A page marks its own footer link. This keys off aria-current — the same
   attribute assistive tech reads — instead of three per-page classes, so the
   Service Providers and User Guide entries are highlighted too and the footer
   markup can stay identical across pages (#1345). */
.footer-col a[aria-current="page"] { color: var(--accent-text); }

.footer-legal a { color: var(--text-soft); }
.footer-legal a:hover { color: var(--text); }
.footer-legal .footer-trademarks { color: var(--muted); font-size: 0.78rem; }

.footer-legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  display: grid;
  gap: 6px;
}

/* ---------- Legal pages ---------- */

.legal-page { padding: calc(var(--header-h) + 48px) 0 clamp(64px, 8vw, 96px); }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: 10px; }
.legal-meta { color: var(--muted); font-weight: 600; margin-bottom: 8px; }
/* Emitted by the {{#REVISIONS}} block in scripts/legal-templates/root.html —
   currently no document exposes a revisions line, but the template can. */
.legal-revisions {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-s);
  padding: 16px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 22px 0 40px;
}

.legal-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 24px 28px;
  margin-bottom: 8px;
}
.legal-toc h2 {
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.legal-toc ul {
  columns: 2;
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;          /* section titles carry their own numbers */
  font-size: 0.95rem;
}
.legal-toc li { break-inside: avoid; color: var(--muted); }
.legal-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;          /* Apple HIG tap target */
  color: var(--text-soft);
  font-weight: 550;
}
.legal-toc a:hover { color: var(--accent-text); }

@media (max-width: 640px) {
  .legal-toc ul { columns: 1; }
}
.legal-body h2 {
  font-size: 1.5rem;
  margin: 44px 0 16px;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal-body h3 { font-size: 1.15rem; margin: 30px 0 12px; }
.legal-body p { margin: 14px 0; color: var(--text-soft); }
.legal-body ul { margin: 14px 0 14px 26px; color: var(--text-soft); }
.legal-body li { margin: 8px 0; }
.legal-body ul ul { margin-top: 8px; }
.legal-body strong { color: var(--text); }
.legal-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}
/* Underlined at rest: in legal prose the accent colour alone is under the
   3:1 link-vs-text ratio that colour-only distinction needs (WCAG 1.4.1). */
.legal-body a { overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.legal-cookie-settings-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.legal-cookie-settings-btn:hover { color: var(--text); }

/* ---------- Reveal animations ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
}
[data-reveal].revealed { opacity: 1; transform: none; }

html.no-motion [data-reveal] { opacity: 1; transform: none; transition: none; }

/* ---------- No JavaScript ----------
   The demo videos, theme toggle, menu and forms are all JS-driven. Without it:
   show the poster stills, expand every FAQ answer, and hide the dead controls.
   The theme stays dark — the light theme is attribute-driven, and the FOUC
   guard that sets that attribute is itself script. */

html.no-js [data-reveal] { opacity: 1; transform: none; }
html.no-js .phone-screen video:not([poster]),
html.no-js .video-control,
html.no-js .theme,
html.no-js .theme-cycle,
html.no-js .nav-toggle,
html.no-js .newsletter-form { display: none; }
html.no-js .faq-a { grid-template-rows: 1fr; visibility: visible; }
html.no-js .faq-q { cursor: default; }
html.no-js .faq-q .chevron { display: none; }

.noscript-note {
  margin-top: 18px;
  font-weight: 600;
}
.newsletter .noscript-note a { color: #140b02; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .phone-wrap { margin-top: 16px; }
}

@media (max-width: 1180px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
}

@media (max-width: 880px) {
  .feature-list,
  .product-panel-copy .ticks { max-width: 420px; margin-left: auto; margin-right: auto; }

  .pillars, .provider-cols { grid-template-columns: 1fr; }
  .provider-cols { max-width: 460px; margin-left: auto; margin-right: auto; }


  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .newsletter-row { flex-direction: column; }
  .newsletter-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 404 page ---------- */

.notfound { min-height: 72vh; display: grid; place-items: center; text-align: center; }
.notfound-logo { border-radius: 16px; margin-inline: auto; }
.notfound h1 { margin-top: 22px; }
.notfound .section-sub { margin-inline: auto; }
.notfound-back { margin-top: 28px; }

/* ---------- Print (legal pages) ---------- */

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .legal-page { padding-top: 0; }
}


/* Theme switch (#975): inline three-way System / Light / Dark segmented control */
/* Theme switcher ported from v12. Track/checked use v12's surface values —
   v9's own bg-elev/card steps are too close for the checked chip to read. */
.theme {
  --switch-track: #202026;
  --switch-checked: #141417;
  --switch-shadow: 0 1px 2px rgb(0 0 0 / 0.5);
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 4px;
  border: 1px solid var(--border);
  background: var(--switch-track);
  border-radius: 999px;
}
html[data-theme="light"] .theme {
  --switch-track: #f2f2f5;
  --switch-checked: #ffffff;
  --switch-shadow: 0 1px 2px rgb(16 16 20 / 0.05), 0 1px 1px rgb(16 16 20 / 0.04);
}
.theme__btn {
  /* 2.5rem chips + 4px gap put adjacent centres 44px apart, so the ::after
     halo below can reach the full 44px Apple HIG target without adjacent
     targets overlapping (the halo fills the half-gap exactly). */
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  position: relative;
  border: 0;
  background: none;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
}
.theme__btn::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; }
.theme__btn svg { width: 1rem; height: 1rem; }
.theme__btn:hover { color: var(--text); }
.theme__btn[aria-checked="true"] {
  background: var(--switch-checked);
  color: var(--text);
  box-shadow: var(--switch-shadow);
}
.theme__btn:focus-visible {
  /* --accent-glyph, not --accent — see :focus-visible at the top. */
  outline: 2px solid var(--accent-glyph);
  outline-offset: 2px;
}

/* A compact three-state control preserves the theme choice at the 320px
   reflow width. The full radiogroup would push the menu or legal-page back
   button beyond the viewport even if its individual targets were reduced. */
.theme-cycle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--switch-track, var(--bg-elev));
  color: var(--text);
  cursor: pointer;
}
.theme-cycle svg { display: none; width: 18px; height: 18px; }
html[data-theme-mode="system"] .theme-cycle [data-theme-icon="system"],
html[data-theme-mode="light"] .theme-cycle [data-theme-icon="light"],
html[data-theme-mode="dark"] .theme-cycle [data-theme-icon="dark"] { display: block; }

@media (max-width: 480px) {
  .site-header .container { padding-inline: 16px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .site-header .theme { display: none; }
  .site-header .theme-cycle { display: grid; }
  .header-actions .btn { padding-inline: 12px; }
}

/* ==========================================================================
   V7 — PDF-directed composition (#975)
   ========================================================================== */

[hidden] { display: none !important; }

.download-note {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 550;
}

/* Hero: upright overview video surrounded by the five product areas. */
.hero-device {
  width: min(520px, 100%);
  min-height: 650px;
  align-items: center;
  margin-inline: auto;
  isolation: isolate;
}

/* The orbit icons and backdrop rings behind the phone were removed in the
   August 2026 tester round; the chapter list below the phone went in #1192. */
.hero-device .phone {
  width: min(300px, 72vw);
}

.v7-solution .pillars { margin-top: clamp(40px, 6vw, 64px); }

/* V4's tabbed feature frame, expanded to all five product areas. */
.product-showcase {
  margin-top: clamp(36px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--card);
  box-shadow: var(--shadow-2);
}

.product-tabs {
  display: flex;
  gap: 8px;
  padding: 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  scrollbar-width: thin;
}

.product-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 720;
}

/* v12's tab icons (August 2026 tester round). */
.product-tabs button svg { width: 17px; height: 17px; flex: none; }

.product-tabs button:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.product-tabs button[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.product-panel {
  display: grid;
  min-height: 680px;
  align-items: center;
  gap: clamp(40px, 7vw, 92px);
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
}

.product-panel[hidden] { display: none; }

.product-panel-copy h3 {
  margin: 12px 0 16px;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1.08;
}

.product-panel-copy > p {
  max-width: 35em;
  color: var(--muted);
  text-wrap: pretty;
}

.product-panel-media .phone { width: min(275px, 72vw); }

.no-js .product-tabs { display: none; }
.no-js .product-panels { display: grid; gap: 24px; padding: 24px; }
.no-js .product-panel,
.no-js .product-panel[hidden] {
  display: grid !important;
  min-height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}

/* V4's privacy composition, reskinned in V7's palette. */
.privacy-panel {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--card);
  box-shadow: var(--shadow-2);
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.privacy-intro {
  padding: clamp(34px, 6vw, 70px);
  border-right: 1px solid var(--border);
}

.privacy-intro h2 {
  margin: 12px 0 16px;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.privacy-intro > p { color: var(--muted); }

.privacy-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 18px;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

.privacy-points {
  display: grid;
  align-content: center;
  padding: clamp(20px, 4vw, 48px);
}

.privacy-points article {
  display: grid;
  align-items: start;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  grid-template-columns: 46px 1fr;
}

.privacy-points article:last-child { border-bottom: 0; }

.privacy-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--accent-glyph);
}

.privacy-icon svg { width: 21px; height: 21px; }
.privacy-points h3 { margin-bottom: 4px; font-size: 1.04rem; }
.privacy-points p { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 880px) {
  .hero-device { min-height: 590px; }

  .product-panel {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .product-panel-copy { text-align: center; }
  .product-panel-copy > p { margin-inline: auto; }
  .product-panel-copy .ticks {
    max-width: 450px;
    margin-inline: auto;
    text-align: left;
  }

  .privacy-panel { grid-template-columns: 1fr; }
  .privacy-intro { border-right: 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 700px) {
  .product-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    padding: 12px;
  }
  .product-tabs button {
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
  }
  .product-tabs button:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 4px);
  }
}

@media (max-width: 560px) {
  .hero-device { min-height: 530px; }
  .hero-device .phone { width: min(238px, 62vw); }

  .product-panel { padding: 30px 22px 40px; }
  .privacy-intro, .privacy-points { padding: 28px 22px; }
}

/* ================= V9 (#975 PDF) ================= */

/* The privacy "never" list: the assurance-strip treatment with orange ✗ marks. */
.privacy-nots {
  display: grid;
  gap: 9px;
  margin: 18px 0 4px;
  padding: 0;
  list-style: none;
}
.privacy-nots li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
}
.privacy-nots svg {
  width: 14px;
  height: 14px;
  flex: none;
  align-self: center;
  color: var(--accent-glyph);
}

/* The PDF's hard line breaks describe the desktop composition; below the
   single-column breakpoint phones wrap naturally, as v7 did. */
@media (max-width: 1020px) { .pdf-br { display: none; } }
/* Keeps hyphenated coinages like "double-book" on one line (#1326). */
.nowrap { white-space: nowrap; }
@media (max-width: 1020px) {
  .hero-ctas .download-note { flex-basis: 100%; justify-content: center; text-align: center; }
}


/* ==========================================================================
   V9 iteration — unified search, cookie consent, footer settings button
   ========================================================================== */

/* ---------- Unified search ---------- */

.search-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

/* Decorative mock of the app's search overlay, in this site's own tokens —
   field, scope chips, and a blended flat result list (the app shows one list,
   not grouped sections). */
.search-demo {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: clamp(18px, 2.5vw, 26px);
  box-shadow: var(--shadow-2);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text);
  font-weight: 600;
}
.search-field svg { width: 18px; height: 18px; color: var(--accent-glyph); flex: none; }
.search-query::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--accent);
}

/* #1326: the demo types its query and the results land as they're found.
   JS drives it only when motion is allowed and the demo scrolls into view;
   the default (no-JS / .no-motion) state is the finished search below. */
.search-demo.is-searching .search-query::after { animation: search-caret 1s steps(1) infinite; }
@keyframes search-caret { 50% { opacity: 0; } }
.search-demo.is-live .search-result { opacity: 0; transform: translateY(6px); }
.search-demo.is-live .search-result.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.no-motion .search-demo.is-live .search-result { opacity: 1; transform: none; transition: none; }

.search-scopes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.search-scope {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 620;
}
.search-scope.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.search-results { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: color-mix(in srgb, var(--text) 3%, var(--card));
}
.search-result-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  color: var(--accent-glyph);
}
.search-result-icon svg { width: 17px; height: 17px; }
.search-result-text { display: grid; gap: 1px; min-width: 0; }
.search-result-text strong {
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-text em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-points { margin-top: 0; gap: 18px; }
.search-points strong { color: var(--text); }
.search-points code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}
.search-note { margin-top: 22px; color: var(--muted); font-size: 0.92rem; }

@media (max-width: 1020px) {
  .search-grid { grid-template-columns: 1fr; }
  .search-demo { width: 100%; max-width: 520px; margin-inline: auto; }
}

/* ---------- Footer "Cookie settings" (a button in link's clothing) ---------- */

.footer-link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;          /* Apple HIG tap target, like the links beside it */
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-soft);
  font: inherit;
  font-weight: 550;
  cursor: pointer;
}
.footer-link-btn:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cookie consent banner ---------- */

.consent-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 150;
  background: var(--card);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
}
.consent-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.consent-text { flex: 1 1 32ch; color: var(--text-soft); font-size: 0.92rem; max-width: 62em; }
.consent-text strong { color: var(--text); }
.consent-text a { text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 8px; margin-left: auto; }
.consent-btn { min-height: 44px; padding: 8px 16px; font-size: 0.95rem; }

@media (max-width: 560px) {
  .consent-actions { width: 100%; margin-left: 0; }
  .consent-btn { flex: 1; }
}

@media (max-width: 360px) {
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .consent-text { line-height: 1.5; }
}

@media (orientation: landscape) and (max-width: 640px) and (max-height: 480px) {
  .consent-inner { flex-wrap: nowrap; align-items: flex-start; }
  .consent-text { flex-basis: auto; font-size: 0.875rem; line-height: 1.5; }
  .consent-actions { flex: 0 0 148px; flex-direction: column; width: auto; }
  .consent-btn { width: 100%; }
}

/* No JS ⇒ no analytics can load, so there is no choice to make. */
html.no-js .consent-banner { display: none; }

/* While the banner is up, keep keyboard-focus scrolls clear of its measured
   height (WCAG 2.4.11). A fixed estimate fails at narrow widths and text zoom. */
/* Only the root uses this measurement. Do not invalidate every descendant's
   inherited styles when the banner appears, wraps, or is dismissed. */
@property --consent-banner-height {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
html.consent-banner-visible {
  scroll-padding-block-end: calc(var(--consent-banner-height, 0px) + 12px);
}

/* The app's round "Find tasks and events" button, inline in copy (#1953). */
.ai-button-glyph {
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  /* Negative block margins keep the line height of the surrounding text unchanged. */
  margin: -0.3em 0.1em;
  vertical-align: middle;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
}
.ai-button-glyph svg { width: 0.9em; height: 0.9em; }

/* Official social directory. */
.social-page { padding: 128px 0 88px; }
.social-page h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -.045em; line-height: 1.1; margin: 12px 0 24px; }
.social-intro { max-width: 650px; font-size: 1.125rem; line-height: 1.65; color: var(--muted); margin-bottom: 40px; }
.social-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.social-card { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-elev); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.social-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.social-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.social-card-name { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.15rem; font-weight: 650; }
.social-card-name span { color: var(--accent-glyph); }
.social-card-handle { color: var(--muted); font-size: .95rem; }
.social-blog { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.social-blog h2 { font-size: 1.35rem; margin: 0 0 8px; }
.social-blog p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .social-page { padding: 104px 0 56px; } .social-grid { grid-template-columns: 1fr; } .social-blog { align-items: flex-start; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .social-card { transition: none; } .social-card:hover { transform: none; } }
