/* Fovea website.
   Calm light ground with the app's dark graphite Lens elements on it.
   Body type is the system stack; display type is Source Serif 4, self-hosted
   (SIL OFL, see fonts/LICENSE). Nothing loads off-site. No red anywhere. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Page */
  --ground: #F4F2EE;
  --surface: #FBFAF8;
  --ink: #1C1C1E;
  --muted: #55555C;
  --hairline: #DEDAD2;
  --code-bg: #EAE7E1;
  --accent-ink: #7A4E00;      /* amber, darkened for text on the light ground */
  --focus: #2A64B8;
  --btn-bg: #1E1E20;
  --btn-ink: #F2F2F2;
  --shadow: 0 30px 60px -30px rgba(28, 28, 30, 0.45);
  --shadow-sm: 0 14px 30px -18px rgba(28, 28, 30, 0.45);

  /* The Lens (the app's own visual language) */
  --lens: rgba(30, 30, 32, 0.94);
  --lens-solid: #1E1E20;
  --lens-raised: rgba(255, 255, 255, 0.07);
  --lens-line: rgba(255, 255, 255, 0.10);
  --lens-ink: #F2F2F2;
  --lens-muted: #B9B9C0;
  --amber: #F2B544;
  --teal: #6FD3C4;
  --blue: #8EC5FF;
  --track: rgba(255, 255, 255, 0.14);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #141416;
    --surface: #1B1B1D;
    --ink: #F2F2F2;
    --muted: #B9B9C0;
    --hairline: #2C2C30;
    --code-bg: #232326;
    --accent-ink: #F2B544;
    --focus: #8EC5FF;
    --btn-bg: #F2F2F2;
    --btn-ink: #1C1C1E;
    --lens-line: rgba(255, 255, 255, 0.14);
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
    --shadow-sm: 0 14px 30px -18px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }

h1, h2, h3 { font-family: var(--serif); font-optical-sizing: auto; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.3rem); font-weight: 600; margin: 0 0 0.45em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 600; margin: 0 0 0.6em; }
h3 { font-size: 1.2rem; font-weight: 600; margin: 1.4em 0 0.3em; }
p { margin: 0.6em 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-ink); }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--code-bg); padding: 0.1em 0.38em; border-radius: 4px; }
pre { margin: 0; }
pre code { background: none; padding: 0; font-size: 0.86rem; }
kbd {
  font-family: var(--sans); font-size: 0.82em; background: var(--surface);
  border: 1px solid var(--hairline); border-bottom-width: 2px; border-radius: 5px;
  padding: 0.02em 0.4em; white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: 66rem; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* ---------- Navigation ---------- */
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.wordmark img { width: 28px; height: 28px; border-radius: 7px; }
.site-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; }
.site-nav ul a { text-decoration: none; font-size: 0.95rem; color: var(--muted); }
.site-nav ul a:hover { color: var(--ink); }
.site-nav ul a.btn { color: var(--btn-ink); }
@media (max-width: 720px) { .site-nav .secondary { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  background: var(--btn-bg); color: var(--btn-ink); text-decoration: none;
  padding: 11px 20px; border-radius: 12px; font-weight: 600; line-height: 1.25;
  border: 1px solid transparent; min-height: 44px;
}
.btn:hover { color: var(--btn-ink); opacity: 0.9; }
.btn .sub { font-weight: 400; font-size: 0.8rem; opacity: 0.8; margin-top: 2px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn.ghost:hover { color: var(--ink); border-color: var(--muted); }
.btn.small { padding: 6px 14px; min-height: 36px; font-size: 0.92rem; border-radius: 10px; }
.btn.large { padding: 14px 26px; font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px 0 72px; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 16px 0 56px; } }
.lede { font-size: 1.14rem; color: var(--muted); max-width: 34em; }
.lede strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.cta-note { font-size: 0.92rem; color: var(--muted); margin-top: 14px; }

/* The faux desktop the hero Lens sits on */
.desk {
  position: relative; margin: 0; border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, #C9D8D3 0%, transparent 60%),
    radial-gradient(90% 90% at 0% 100%, #E1D3BD 0%, transparent 65%),
    #D8D6CF;
  box-shadow: var(--shadow); width: 100%; aspect-ratio: 16 / 10.5; min-height: 250px;
}
@media (prefers-color-scheme: dark) {
  .desk {
    background:
      radial-gradient(120% 90% at 85% 0%, #2C3B38 0%, transparent 60%),
      radial-gradient(90% 90% at 0% 100%, #3A3328 0%, transparent 65%),
      #232326;
  }
}
.desk-menubar { height: 22px; background: rgba(255, 255, 255, 0.45); display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 12px; }
@media (prefers-color-scheme: dark) { .desk-menubar { background: rgba(0, 0, 0, 0.35); } }
.desk-menubar span { width: 26px; height: 6px; border-radius: 3px; background: rgba(28, 28, 30, 0.25); }
@media (prefers-color-scheme: dark) { .desk-menubar span { background: rgba(255, 255, 255, 0.25); } }
.desk-menubar svg { width: 13px; height: 13px; }
.desk-window {
  position: absolute; left: 7%; right: 7%; top: 30%; bottom: -6%;
  background: rgba(255, 255, 255, 0.72); border-radius: 10px; padding: 34px 26px 0;
  box-shadow: 0 20px 40px -20px rgba(28, 28, 30, 0.35);
}
@media (prefers-color-scheme: dark) { .desk-window { background: rgba(48, 48, 52, 0.85); } }
.desk-window::before {
  content: ""; position: absolute; top: 12px; left: 14px; width: 42px; height: 9px;
  background: radial-gradient(circle at 4.5px 4.5px, rgba(28, 28, 30, 0.22) 4px, transparent 4.5px) 0 0 / 15px 9px repeat-x;
}
@media (prefers-color-scheme: dark) {
  .desk-window::before { background: radial-gradient(circle at 4.5px 4.5px, rgba(255, 255, 255, 0.22) 4px, transparent 4.5px) 0 0 / 15px 9px repeat-x; }
}
.desk-window i { display: block; height: 8px; border-radius: 4px; background: rgba(28, 28, 30, 0.12); margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .desk-window i { background: rgba(255, 255, 255, 0.10); } }
.desk-window i:nth-child(1) { width: 46%; height: 12px; margin-bottom: 18px; }
.desk-window i:nth-child(2) { width: 88%; }
.desk-window i:nth-child(3) { width: 80%; }
.desk-window i:nth-child(4) { width: 64%; }
.desk-lens { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2; }
.figcap { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }

/* State legend under the hero pill (decorative, synced with the animation) */
.legend { display: flex; gap: 6px; padding: 4px; background: rgba(30, 30, 32, 0.8); border-radius: 999px; font-size: 0.7rem; color: #F2F2F2; }
.legend span { padding: 2px 9px; border-radius: 999px; opacity: 0.6; }
.legend .s1 { background: rgba(242, 181, 68, 0.28); opacity: 1; }
.legend .s2, .legend .s3 { background: transparent; }

/* ---------- The Lens: pill ---------- */
.pill {
  position: relative; width: 260px; height: 36px; flex: none;
  display: flex; align-items: center; gap: 10px; padding: 0 8px 0 9px;
  background: var(--lens); color: var(--lens-ink); border-radius: 18px;
  border: 1px solid var(--lens-line);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.55);
  font-family: var(--sans); font-size: 13px; line-height: 1.2; text-align: left;
}
.ring { width: 20px; height: 20px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring .track { stroke: var(--track); }
.ring .arc { stroke: var(--amber); stroke-linecap: round; stroke-dasharray: 100 100; }
.ring .arc.teal { stroke: var(--teal); }
.ring .arc.blue { stroke: var(--blue); }
.ring-dot { fill: var(--amber); }
.pill-text { flex: 1; min-width: 0; position: relative; height: 100%; }
.pill-line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-text > .state { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.pill-text .small { font-size: 11px; }
.muted-l { color: var(--lens-muted); }
.amber { color: var(--amber); }
.teal { color: var(--teal); }
.blue { color: var(--blue); }
.ring-stack { position: relative; width: 20px; height: 20px; flex: none; }
.ring-stack > .state { position: absolute; inset: 0; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px;
  border-radius: 11px; background: var(--lens-raised); color: var(--lens-muted); font-size: 11.5px; font-variant-numeric: tabular-nums;
}
.chip svg { width: 12px; height: 12px; }
.chip.badge { background: rgba(142, 197, 255, 0.16); color: var(--blue); }
.mini-btn {
  flex: none; height: 22px; padding: 0 9px; border-radius: 11px; display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 600; background: var(--amber); color: #1E1E20;
}
.mini-btn.ghost { background: var(--lens-raised); color: var(--lens-ink); font-weight: 500; }

/* Hero cycle: working -> next surfaced -> break. 15 s loop, static when Reduce Motion is on. */
.cycle .s2, .cycle .s3 { opacity: 0; }
.cycle .s1 { animation: lens-s1 15s ease-in-out infinite; }
.cycle .s2 { animation: lens-s2 15s ease-in-out infinite; }
.cycle .s3 { animation: lens-s3 15s ease-in-out infinite; }
.cycle .arc.p1 { stroke-dashoffset: 36; animation: lens-p1 15s linear infinite; }
.cycle .arc.p2 { stroke-dashoffset: 18; }
.cycle .arc.p3 { stroke-dashoffset: 30; animation: lens-p3 15s linear infinite; }
.legend.cycle .s1 { animation: legend-s1 15s ease-in-out infinite; }
.legend.cycle .s2 { opacity: 0.6; animation: legend-s2 15s ease-in-out infinite; }
.legend.cycle .s3 { opacity: 0.6; animation: legend-s3 15s ease-in-out infinite; }
@keyframes lens-s1 { 0%, 30% { opacity: 1; } 33.3%, 96.7% { opacity: 0; } 100% { opacity: 1; } }
@keyframes lens-s2 { 0%, 30% { opacity: 0; } 33.3%, 63.3% { opacity: 1; } 66.7%, 100% { opacity: 0; } }
@keyframes lens-s3 { 0%, 63.3% { opacity: 0; } 66.7%, 96.7% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lens-p1 { 0% { stroke-dashoffset: 36; } 33.3% { stroke-dashoffset: 22; } 100% { stroke-dashoffset: 22; } }
@keyframes lens-p3 { 0%, 63.3% { stroke-dashoffset: 30; } 100% { stroke-dashoffset: 92; } }
@keyframes legend-s1 { 0%, 30% { background: rgba(242, 181, 68, 0.28); opacity: 1; } 33.3%, 96.7% { background: transparent; opacity: 0.6; } 100% { background: rgba(242, 181, 68, 0.28); opacity: 1; } }
@keyframes legend-s2 { 0%, 30% { background: transparent; opacity: 0.6; } 33.3%, 63.3% { background: rgba(242, 181, 68, 0.28); opacity: 1; } 66.7%, 100% { background: transparent; opacity: 0.6; } }
@keyframes legend-s3 { 0%, 63.3% { background: transparent; opacity: 0.6; } 66.7%, 96.7% { background: rgba(111, 211, 196, 0.28); opacity: 1; } 100% { background: transparent; opacity: 0.6; } }

/* Hyperfocus guard: slow breathing */
.breathing { animation: breathe 6s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(242, 181, 68, 0); }
  50% { box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.55), 0 0 0 5px rgba(242, 181, 68, 0.22); }
}

/* ---------- The Lens: card and panels ---------- */
.lens-card {
  width: 100%; max-width: 320px; background: var(--lens); color: var(--lens-ink);
  border: 1px solid var(--lens-line); border-radius: 16px; padding: 16px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6); font-size: 14px; line-height: 1.35; text-align: left;
}
.lens-card .row { display: flex; align-items: center; gap: 12px; }
.lens-card .ring.big { width: 44px; height: 44px; }
.lens-card .ring.big circle { stroke-width: 3.2; }
.lens-card .title { font-weight: 600; font-size: 15px; color: var(--lens-ink); }
.lens-card .meta { font-size: 12px; color: var(--lens-muted); margin-top: 2px; }
.lens-card .rule { height: 1px; background: var(--lens-line); margin: 14px 0 12px; }
.lens-card .label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lens-muted); }
.lens-card .next { margin-top: 3px; color: var(--lens-ink); }
.lens-card .src { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--lens-muted); }
.lens-card .src::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--lens-muted); opacity: 0.8; }
.lens-card .actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.lens-card .act {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 8px;
  background: var(--lens-raised); color: var(--lens-ink); font-size: 12.5px; border: 1px solid var(--lens-line);
}
.lens-card .act kbd { background: transparent; border: none; color: var(--lens-muted); padding: 0; font-size: 11px; }
.lens-card .act.primary { background: var(--amber); color: #1E1E20; border-color: transparent; font-weight: 600; }
.lens-card .act.primary kbd { color: rgba(30, 30, 32, 0.7); }
.lens-card .done-line { display: flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 600; }
.lens-card .done-line svg { width: 18px; height: 18px; flex: none; }
.lens-card dl { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; }
.lens-card dt { color: var(--lens-muted); }
.lens-card dd { margin: 0; color: var(--lens-ink); }
.lens-card .field {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(242, 181, 68, 0.55); color: var(--lens-ink); font-size: 13px;
}
.caret { display: inline-block; width: 1.5px; height: 15px; background: var(--amber); vertical-align: middle; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.lens-card .hint { font-size: 11.5px; color: var(--lens-muted); margin-top: 6px; }
.lens-card .question { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(142, 197, 255, 0.10); border: 1px solid rgba(142, 197, 255, 0.35); }
.lens-card .question .who { color: var(--blue); font-size: 12px; font-weight: 600; }

/* Illustration stage: the pale tile that holds Lens elements */
.stage {
  margin: 0; border-radius: 16px; padding: 32px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(160deg, #E6E2DA, #D9DED9); min-height: 260px;
}
@media (prefers-color-scheme: dark) { .stage { background: linear-gradient(160deg, #1F1F22, #1B2321); } }
.stage .tag { font-size: 0.78rem; color: var(--muted); margin: -10px 0 0; text-align: center; }
@media (prefers-color-scheme: light) { .stage .tag { color: #4A4A50; } }
.screenshot-slot:empty { display: none; }

/* ---------- Sections ---------- */
section { padding: 64px 0; border-top: 1px solid var(--hairline); scroll-margin-top: 12px; }
.section-intro { max-width: 40em; color: var(--muted); font-size: 1.08rem; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin: 0 0 10px; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.feature.flip > :first-child { order: 2; }
@media (max-width: 860px) { .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 28px; } .feature.flip > :first-child { order: 0; } }
.feature ul, .plain-list { padding-left: 1.15em; margin: 0.8em 0; }
.feature li, .plain-list li { margin: 0.45em 0; }
.feature li::marker, .plain-list li::marker { color: var(--accent-ink); }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
@media (max-width: 860px) { .three { grid-template-columns: minmax(0, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 20px 22px; }
.tile h3 { margin-top: 0; }
.tile p { color: var(--muted); margin-bottom: 0; }
.tile .num { font-family: var(--serif); color: var(--accent-ink); font-size: 1.4rem; font-weight: 600; line-height: 1; display: block; margin-bottom: 8px; }

.name-note { max-width: 42em; font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; margin: 0; }
.name-note em { font-style: italic; }

/* Principles table */
.principles { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 1rem; table-layout: fixed; }
.principles th, .principles td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--hairline); }
.principles thead th { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-top: 0; }
.principles tbody th { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; }
.principles thead th:first-child { width: 34%; }
.principles td { color: var(--muted); }
@media (max-width: 600px) {
  .principles thead { display: none; }
  .principles, .principles tbody, .principles tr, .principles th, .principles td { display: block; width: 100%; }
  .principles tr { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  .principles th, .principles td { border: none; padding: 0; }
  .principles tbody th { width: 100%; margin-bottom: 2px; }
}

/* Code blocks */
.code {
  position: relative; background: var(--lens-solid); color: var(--lens-ink); border-radius: 12px;
  padding: 14px 16px; margin: 12px 0 0; overflow-x: auto; max-width: 100%;
}
.code .prompt { color: var(--lens-muted); user-select: none; }
.code .cm { color: #9A9AA2; }
.code .str { color: var(--amber); }
.code .key { color: var(--teal); }
.code-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.code-head h3 { margin: 0; font-size: 1.05rem; }
.code-head p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.copy-row { display: flex; gap: 8px; align-items: stretch; margin-top: 10px; }
.copy-row .code { margin: 0; flex: 1; min-width: 0; display: flex; align-items: center; }
.copy-btn {
  flex: none; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink);
  border-radius: 10px; padding: 0 14px; font: inherit; font-size: 0.9rem; cursor: pointer; min-height: 44px;
}
.copy-btn:hover { border-color: var(--muted); }
.copy-btn[hidden] { display: none; }
.agents-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; margin-top: 12px; }
@media (max-width: 860px) { .agents-grid { grid-template-columns: minmax(0, 1fr); } }

/* Later list */
.later { columns: 2; column-gap: 40px; padding-left: 1.15em; color: var(--muted); }
.later li { break-inside: avoid; margin: 0.3em 0; }
@media (max-width: 600px) { .later { columns: 1; } }

/* Privacy */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 860px) { .privacy { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.facts li:first-child { padding-top: 0; }
.facts strong { display: block; }
.facts span { color: var(--muted); }

/* Download block */
.download {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px;
  padding: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: start;
}
@media (max-width: 860px) { .download { grid-template-columns: minmax(0, 1fr); padding: 26px 20px; } }
.download h2 { margin-bottom: 0.3em; }
.download .req { color: var(--muted); margin: 14px 0 0; font-size: 0.95rem; }
.download .more { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 16px; font-size: 0.95rem; }
.download .more a { color: var(--accent-ink); }
.download h3 { margin-top: 0; font-size: 1.05rem; }
.download .note { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }

/* Footer */
footer { border-top: 1px solid var(--hairline); padding: 36px 0 48px; color: var(--muted); font-size: 0.92rem; }
footer .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px 18px; flex-wrap: wrap; }
footer p { margin: 0.3em 0; max-width: 40em; }

/* Simple pages: success, 404 */
.page { max-width: 44rem; margin: 0 auto; padding: 24px 24px 64px; }
@media (max-width: 480px) { .page { padding: 16px 16px 48px; } }
.page h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-top: 24px; }
.page h2 { font-size: 1.35rem; margin-top: 1.8em; }
.page ol { padding-left: 1.3em; }
.page ol li { margin: 0.5em 0; }
.page .legal { color: var(--muted); font-size: 0.88rem; margin-top: 40px; }
.page .callout { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
main:focus { outline: none; }
.after-download {
  margin-top: 14px; padding: 10px 14px; border-radius: 10px; font-size: 0.95rem;
  background: rgba(111, 211, 196, 0.16); border: 1px solid rgba(14, 111, 100, 0.35);
}
.after-download[hidden] { display: none; }
.stage.short { min-height: 236px; padding: 24px 16px; }
