/* =========================================================
   Scribbler — Web Tokens (mirror of Scribbler Design System)
   Sourced from docs/handoff/v1_claude_design_handoff/theme.css
   and ios/Scribbler/Scribbler/DesignSystem/ScribblerColor.swift.
   Hosted on Firebase. Used by index.html, privacy.html, terms.html, 404.html.
   ========================================================= */

:root {
  /* COLOR — paper (warm-tinted near-white) */
  --paper:       #fbfaf7;
  --paper-2:     #f3f1eb;
  --paper-3:     #e8e5dd;
  --paper-elev:  #ffffff;

  /* COLOR — ink */
  --ink:    #14140f;
  --ink-2:  #3d3b35;
  --ink-3:  #76736a;
  --ink-4:  #a6a39a;

  /* COLOR — accent (rust) */
  --accent:       #c44d2e;
  --accent-soft:  #c44d2e1a;     /* 10% */
  --accent-ink:   #fffefb;
  --accent-strong: #a83d22;

  /* Semantic mapping (for the site CSS that thinks in surface/border/fg) */
  --bg:        var(--paper);
  --surface:   var(--paper-elev);
  --surface-2: var(--paper-2);
  --border:    var(--paper-3);
  --border-strong: #d8d4c7;
  --fg:        var(--ink);
  --fg-muted:  var(--ink-2);
  --fg-soft:   var(--ink-3);
  --accent-on: var(--accent-ink);

  /* Spacing — 8pt grid */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px;  --s-7: 32px; --s-8: 40px;
  --s-9: 48px; --s-10: 64px; --s-11: 80px; --s-12: 96px;
  --s-13: 128px;

  /* Radii */
  --r-xs: 6px;  --r-sm: 10px; --r-md: 14px;
  --r-lg: 20px; --r-xl: 28px; --r-2xl: 36px;
  --r-full: 9999px;

  /* Shadows — warm-tinted */
  --sh-1: 0 1px 2px rgba(20, 20, 15, 0.05), 0 1px 1px rgba(20, 20, 15, 0.04);
  --sh-2: 0 4px 12px rgba(20, 20, 15, 0.06), 0 1px 2px rgba(20, 20, 15, 0.04);
  --sh-3: 0 12px 32px rgba(20, 20, 15, 0.08), 0 2px 4px rgba(20, 20, 15, 0.04);
  --sh-4: 0 24px 60px rgba(20, 20, 15, 0.10), 0 4px 8px rgba(20, 20, 15, 0.05);

  /* Type — Geist (sans + mono) with system fallback */
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Monaco, monospace;

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Layout */
  --max: 1200px;
  --max-narrow: 760px;
}

/* Dark theme — toggled via [data-theme="dark"] on <html> */
[data-theme="dark"] {
  --paper:       #131311;
  --paper-2:     #1c1c19;
  --paper-3:     #2a2a26;
  --paper-elev:  #1e1e1b;
  --ink:         #f3f1eb;
  --ink-2:       #c9c6bc;
  --ink-3:       #8a877d;
  --ink-4:       #5a5750;
  --accent-ink:  #131311;
  --border-strong: #383530;
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-2: 0 4px 12px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
  --sh-3: 0 12px 32px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.3);
  --sh-4: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
  line-height: 1.5;
  transition: background 0.3s ease, color 0.3s ease;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

/* ============================================================
   Type
   ============================================================ */
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.022em; line-height: 1.1; font-weight: 600; }
h1 { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.024em; }
h3 { font-size: 22px; letter-spacing: -0.016em; }
h4 { font-size: 17px; letter-spacing: -0.008em; }
p  { margin: 0; }

.eyebrow {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 999px; background: var(--accent);
  margin-right: 8px; vertical-align: 1px;
}

.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--fg-muted);
  line-height: 1.55;
  max-width: 56ch;
}

/* ============================================================
   Layout
   ============================================================ */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--s-7); }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--s-7); }

section { padding: var(--s-10) 0; }
section.tight { padding: var(--s-9) 0; }

.section-head {
  display: flex; flex-direction: column; gap: var(--s-4);
  max-width: 720px;
  margin-bottom: var(--s-9);
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(251, 250, 247, 0.78);
  border-bottom: 1px solid rgba(232, 229, 221, 0.6);
}
[data-theme="dark"] .site-header {
  background: rgba(19, 19, 17, 0.78);
  border-bottom: 1px solid rgba(42, 42, 38, 0.6);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  color: var(--fg); text-decoration: none;
}
.logomark {
  width: 28px; height: 28px; border-radius: 9px;
  background: var(--accent);
  display: inline-grid; place-items: center;
  box-shadow: 0 0 0 4px var(--accent-soft);
  position: relative;
  flex: none;
}
.logomark::after {
  content: "";
  width: 12px; height: 2px; border-radius: 1px;
  background: var(--accent-ink);
  box-shadow: 0 4px 0 var(--accent-ink), 0 -4px 0 var(--accent-ink);
}
.nav-links {
  display: flex; align-items: center; gap: var(--s-7);
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--fg-muted); text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--fg); }
.nav-actions {
  display: flex; align-items: center; gap: var(--s-3);
}

/* Language switch */
.lang {
  display: inline-flex; padding: 3px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px;
}
.lang button {
  appearance: none; border: none; background: transparent;
  padding: 6px 10px; border-radius: 999px; cursor: pointer;
  color: var(--fg-soft); letter-spacing: 0.04em;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}
.lang button[aria-pressed="true"] {
  background: var(--surface); color: var(--fg);
  box-shadow: var(--sh-1);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  appearance: none; border: none; cursor: pointer;
  font-family: inherit; font-weight: 500; letter-spacing: -0.005em;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
  transition: transform 0.06s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.985); }
.btn .ic { width: 18px; height: 18px; flex: none; }

.btn.lg { height: 52px; padding: 0 22px; border-radius: var(--r-md); font-size: 16px; }
.btn.md { height: 44px; padding: 0 18px; border-radius: var(--r-md); font-size: 14px; }
.btn.sm { height: 36px; padding: 0 14px; border-radius: var(--r-sm); font-size: 13px; }

.btn.primary {
  background: var(--ink); color: var(--paper);
  box-shadow: var(--sh-2);
}
.btn.primary:hover { background: var(--ink-2); }

.btn.accent {
  background: var(--accent); color: var(--accent-on);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 4px 14px rgba(196, 77, 46, 0.25);
}
.btn.accent:hover { background: var(--accent-strong); }

.btn.secondary {
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border);
}
.btn.secondary:hover { background: var(--surface-2); border-color: var(--border-strong); }

.btn.ghost {
  background: transparent; color: var(--fg);
}
.btn.ghost:hover { background: var(--surface-2); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: var(--s-12) 0 var(--s-13);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 80% -10%, rgba(196, 77, 46, 0.14), transparent 60%),
    radial-gradient(50% 50% at 0% 30%, rgba(196, 77, 46, 0.06), transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-a {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-10);
  align-items: center;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--accent-strong);
}
.hero-copy h1 em::after {
  content: "";
  display: inline-block; width: 10px; height: 10px; border-radius: 999px;
  background: var(--accent);
  margin-left: 10px; vertical-align: 0.3em;
  box-shadow: 0 0 0 6px var(--accent-soft);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(196, 77, 46, 0.5); }
  60%  { box-shadow: 0 0 0 18px rgba(196, 77, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 77, 46, 0); }
}

.hero-copy .lede { margin-top: var(--s-5); }
.hero-cta {
  display: flex; gap: var(--s-3); margin-top: var(--s-7);
  flex-wrap: wrap;
}

.hero-stage {
  position: relative;
  height: 580px;
}

/* ============================================================
   iPhone Mockup
   ============================================================ */
.iphone {
  width: 320px;
  background: var(--surface);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--sh-4);
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.iphone-screen {
  background: var(--bg);
  border-radius: 26px;
  overflow: hidden;
  min-height: 580px;
  display: flex; flex-direction: column;
}
.iphone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px 6px;
  font-size: 13px; font-weight: 600;
}
.iphone-status .pills {
  display: inline-flex; gap: 4px; align-items: center; font-size: 11px;
}

.hero-a .iphone-tilted {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
}
.hero-a .iphone-tilted::after {
  content: "";
  position: absolute; inset: -40px;
  background: radial-gradient(closest-side, rgba(196, 77, 46, 0.18), transparent 70%);
  z-index: -1; filter: blur(20px);
}

/* ============================================================
   Mock screen — Scribble (transcript document)
   ============================================================ */
.mock-doc-head {
  padding: 4px 18px 12px;
  border-bottom: 1px solid var(--paper-3);
}
.mock-doc-head .mock-doc-eyebrow {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: 6px;
}
.mock-doc-head .mock-doc-title {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--fg);
}
.mock-doc-head .mock-doc-meta {
  display: flex; gap: 10px; align-items: center;
  font: 500 11px/1 var(--mono);
  color: var(--fg-soft);
  margin-top: 8px;
}
.mock-doc-head .mock-doc-meta .ddot {
  width: 3px; height: 3px; border-radius: 999px; background: var(--ink-4);
}

.mock-segments {
  display: flex; flex-direction: column;
  padding: 14px 0 8px;
  gap: 16px;
  overflow: hidden;
}
.mock-segment {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 0 18px;
  align-items: baseline;
}
.mock-segment .ts {
  font: 500 11px/1.6 var(--mono);
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.mock-segment .seg-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.mock-segment .seg-text .word {
  display: inline-block;
  animation: wordIn 320ms var(--ease) both;
  white-space: pre;
}
@keyframes wordIn {
  from { opacity: 0; transform: translateY(2px); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0); }
}
.write-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--accent);
  vertical-align: -0.16em;
  margin-left: 2px;
  animation: cursorBlink 900ms steps(2, end) infinite;
  border-radius: 1px;
}
@keyframes cursorBlink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.2; }
}

/* Bottom tab bar mock */
.mock-tabbar {
  margin-top: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 10px 0 24px;
  border-top: 1px solid var(--paper-3);
  background: var(--paper-elev);
}
.mock-tabbar .tab {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  color: var(--ink-3);
  font: 500 10.5px/1 var(--sans);
  letter-spacing: 0.01em;
}
.mock-tabbar .tab.active { color: var(--ink); }
.mock-tabbar .tab svg { width: 18px; height: 18px; }

/* Floating action button on mock */
.mock-fab {
  position: absolute; right: 14px; bottom: 78px;
  width: 52px; height: 52px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(196, 77, 46, 0.4), 0 0 0 4px rgba(196, 77, 46, 0.12);
}
.mock-fab svg { width: 22px; height: 22px; }

/* ============================================================
   Features grid
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  display: flex; flex-direction: column;
  gap: var(--s-4);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  border-color: var(--border-strong);
}
.feature .icon-wrap {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: var(--r-md);
  display: grid; place-items: center;
}
.feature .icon-wrap svg { width: 22px; height: 22px; }
.feature h3 { margin: 0; }
.feature p { color: var(--fg-muted); font-size: 15px; line-height: 1.55; }

/* ============================================================
   How it works (steps)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  position: relative;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  display: flex; flex-direction: column;
  gap: var(--s-4);
  position: relative;
}
.step-num {
  font: 500 12px/1 var(--mono);
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 6px 10px; border-radius: 6px;
  align-self: flex-start;
  letter-spacing: 0.04em;
}
.step h3 { font-size: 20px; }
.step p { color: var(--fg-muted); font-size: 14.5px; line-height: 1.55; }
.step-illu {
  height: 160px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  margin-top: var(--s-3);
  display: grid; place-items: center;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: var(--s-5) 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s-5);
  font-size: 18px; font-weight: 600; letter-spacing: -0.012em;
  padding: var(--s-2) 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font: 400 22px/1 var(--mono);
  color: var(--fg-muted);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex: none;
  transition: transform 0.2s, background 0.2s;
}
.faq details[open] summary::after {
  content: "−";
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: transparent;
}
.faq details > p,
.faq details > div {
  margin-top: var(--s-3);
  color: var(--fg-muted);
  font-size: 15.5px; line-height: 1.6;
  max-width: 70ch;
}

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  position: relative;
  border-radius: var(--r-xl);
  padding: var(--s-12) var(--s-10);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(196, 77, 46, 0.28), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(196, 77, 46, 0.12), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}
.cta-banner h2 { max-width: 22ch; margin: 0 auto; }
.cta-banner .lede { margin: var(--s-4) auto 0; }
.cta-banner .hero-cta { justify-content: center; margin-top: var(--s-7); }
.cta-note {
  margin: var(--s-6) 0 0;
  font-size: 13.5px;
  color: var(--fg-muted);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--s-12);
  padding: var(--s-9) 0 var(--s-7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-8);
  margin-bottom: var(--s-8);
}
.footer-brand p {
  color: var(--fg-muted); font-size: 14px; line-height: 1.5;
  margin-top: var(--s-3); max-width: 36ch;
}
.footer-col h4 {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--s-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col a {
  text-decoration: none; color: var(--fg);
  font-size: 14.5px; transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent-strong); }
.footer-bottom {
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font: 500 12px/1 var(--mono);
  color: var(--fg-soft);
}

/* ============================================================
   404 — minimal centered card
   ============================================================ */
.fourohfour {
  min-height: calc(100vh - 72px);
  display: grid; place-items: center;
  padding: var(--s-9) var(--s-5);
}
.fourohfour-card {
  text-align: center;
  max-width: 480px;
}
.fourohfour-card .eyebrow { display: inline-flex; }
.fourohfour-card h1 {
  font-size: clamp(56px, 8vw, 96px);
  margin: var(--s-4) 0 var(--s-3);
  color: var(--accent-strong);
}
.fourohfour-card p { color: var(--fg-muted); margin-bottom: var(--s-7); }

/* ============================================================
   Doc pages (privacy / terms)
   ============================================================ */
.doc-hero {
  padding: var(--s-12) 0 var(--s-7);
  border-bottom: 1px solid var(--border);
}
.doc-hero h1 { font-size: clamp(36px, 5vw, 56px); }
.doc-hero .meta-line {
  display: flex; gap: var(--s-5); margin-top: var(--s-5);
  font: 500 13px/1 var(--mono);
  color: var(--fg-muted);
  flex-wrap: wrap;
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s-9);
  padding: var(--s-9) 0 var(--s-12);
}
.toc {
  position: sticky; top: 96px;
  align-self: start;
  font-size: 13px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.toc h4 {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--s-4);
}
.toc ol {
  list-style: none; padding: 0; margin: 0;
  counter-reset: tc;
  display: flex; flex-direction: column; gap: 6px;
  border-left: 1px solid var(--border);
  padding-left: var(--s-4);
}
.toc li { counter-increment: tc; }
.toc a {
  display: block;
  text-decoration: none; color: var(--fg-muted);
  padding: 6px 0;
  font-size: 13.5px; line-height: 1.4;
  transition: color 0.15s;
}
.toc a::before {
  content: counter(tc, decimal-leading-zero) "  ";
  font: 500 11px/1 var(--mono); color: var(--fg-soft);
  margin-right: 4px;
}
.toc a:hover { color: var(--fg); }
.toc a.active { color: var(--accent-strong); font-weight: 600; }

.doc-body {
  max-width: 720px;
}
.doc-body h2 {
  font-size: 26px; font-weight: 600;
  letter-spacing: -0.02em;
  margin: var(--s-9) 0 var(--s-4);
  scroll-margin-top: 96px;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 {
  font-size: 17px; font-weight: 600; letter-spacing: -0.005em;
  margin: var(--s-6) 0 var(--s-3);
}
.doc-body p {
  font-size: 16px; line-height: 1.65;
  color: var(--fg);
  margin: 0 0 var(--s-4);
}
.doc-body ul, .doc-body ol {
  font-size: 16px; line-height: 1.65;
  color: var(--fg);
  padding-left: var(--s-5);
  margin: 0 0 var(--s-4);
}
.doc-body li { margin-bottom: 6px; }
.doc-body strong { color: var(--fg); font-weight: 600; }
.doc-body a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

.doc-body .callout {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin: var(--s-5) 0;
  font-size: 14.5px; color: var(--fg-muted);
  line-height: 1.55;
}
.doc-body .callout ul { margin: 8px 0 0; padding-left: 18px; font-size: 14.5px; }

/* Technical-draft callout used at the top of privacy.html / terms.html. */
.draft-callout {
  margin: var(--s-7) 0 var(--s-5);
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-lg);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent-strong);
  color: var(--fg);
}
.draft-callout .draft-callout-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: var(--s-2);
}
.draft-callout .draft-callout-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg);
  margin: 0;
}

/* ============== Bilingual content blocks (privacy/terms) ============== */
/* Inline parallel paragraphs use [data-lang="en"] / [data-lang="it"];
   the html[lang] attribute (set by app.js) drives visibility.
   The :not(button) matters: the language switcher is two buttons that
   carry data-lang too, so without it the rule hides the button for the
   language you are not in — which is the only one worth clicking. The
   switch then looks like a single inert chip. */
html[lang="en"] [data-lang="it"]:not(button) { display: none; }
html[lang="it"] [data-lang="en"]:not(button) { display: none; }

/* ============================================================
   Trust strip (between FAQ and final CTA on landing)
   ============================================================ */
.trust-strip-section {
  padding: var(--s-6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-strip {
  text-align: center;
  margin: 0;
  font-size: 13.5px;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  section { padding: var(--s-9) 0; }
  .hero { padding: var(--s-9) 0; }
  .hero-a { grid-template-columns: 1fr; gap: var(--s-9); }
  .hero-stage { height: auto; min-height: 540px; }
  .hero-a .iphone-tilted { position: relative; left: auto; top: auto; transform: rotate(-2deg); margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .doc-layout { grid-template-columns: 1fr; gap: var(--s-6); }
  .toc { position: relative; top: auto; max-height: none; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .wrap, .wrap-narrow { padding: 0 var(--s-5); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--s-3); align-items: flex-start; }
  .nav { height: 60px; }
  .nav-actions .btn.lg { display: none; }
  .cta-banner { padding: var(--s-9) var(--s-5); }
}

/* ============================================================
   App Store badge (official artwork, EN/IT swapped by app.js)
   ============================================================ */
.store-badge { display: inline-flex; align-items: center; }
.store-badge img { height: 52px; width: auto; }

/* ============================================================
   Press kit
   ============================================================ */
.press-facts {
  width: 100%; border-collapse: collapse;
  font-size: 15px; line-height: 1.55;
  margin: 0 0 var(--s-6);
}
.press-facts th, .press-facts td {
  text-align: left; vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
}
.press-facts th { width: 28%; font-weight: 600; color: var(--fg); }
.press-facts td { color: var(--fg-muted); }
.press-facts a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.asset-note { font-size: 14.5px; color: var(--fg-muted); margin: 0 0 var(--s-3); }
.asset-row { display: flex; gap: var(--s-6); align-items: center; flex-wrap: wrap; margin: 0 0 var(--s-6); }
.asset-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--sh-2); }
.asset-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: var(--s-3); margin: var(--s-3) 0 var(--s-7);
}
.asset-grid a {
  display: block; overflow: hidden;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.2s, box-shadow 0.2s;
}
.asset-grid a:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.asset-grid img { width: 100%; height: auto; display: block; }
.download-list { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.download-list a { font-family: var(--mono); font-size: 13.5px; color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.download-list span { color: var(--fg-muted); }
@media (max-width: 960px) { .asset-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .asset-grid { grid-template-columns: repeat(2, 1fr); } .press-facts th { width: 36%; } }
