/* Formfoto site: "the measuring desk" from docs/design.md. Cool paper-white ground, white cards with
   1px hairlines, one Ink accent for actions, pass green only for checks, Anek Devanagari for words and
   DM Mono for every measured value, fine millimetre rulers as the signature motif.
   Fonts are bundled (no external requests): Latin subsets as WOFF; the full OFL TTFs load only when a
   page shows Devanagari. No scripts and no inline styles anywhere (the CSP forbids both). */

@font-face { font-family: "Anek Devanagari"; font-weight: 400; font-display: swap;
  src: url("fonts/AnekDevanagari-Regular-latin.woff") format("woff");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20B9, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anek Devanagari"; font-weight: 400; font-display: swap;
  src: url("fonts/AnekDevanagari-Regular.ttf") format("truetype");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Anek Devanagari"; font-weight: 500; font-display: swap;
  src: url("fonts/AnekDevanagari-Medium-latin.woff") format("woff");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20B9, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anek Devanagari"; font-weight: 500; font-display: swap;
  src: url("fonts/AnekDevanagari-Medium.ttf") format("truetype");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Anek Devanagari"; font-weight: 600; font-display: swap;
  src: url("fonts/AnekDevanagari-SemiBold-latin.woff") format("woff");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20B9, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anek Devanagari"; font-weight: 600; font-display: swap;
  src: url("fonts/AnekDevanagari-SemiBold.ttf") format("truetype");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Anek Devanagari Expanded"; font-weight: 600; font-display: swap;
  src: url("fonts/AnekDevanagariExpanded-SemiBold-latin.woff") format("woff");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20B9, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anek Devanagari Expanded"; font-weight: 600; font-display: swap;
  src: url("fonts/AnekDevanagariExpanded-SemiBold.ttf") format("truetype");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+25CC, U+A830-A839, U+A8E0-A8FF; }
/* DM Mono has no Devanagari; it is only ever used for numbers and units. */
@font-face { font-family: "DM Mono"; font-weight: 400; font-display: swap;
  src: url("fonts/DMMono-Regular-latin.woff") format("woff"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-display: swap;
  src: url("fonts/DMMono-Medium-latin.woff") format("woff"); }

/* ---------------------------------------------------------------- tokens (docs/design.md) */
:root {
  color-scheme: light dark;
  --ground: #F6F7F9;
  --surface: #FFFFFF;
  --surface-alt: #EEF1F5;
  --ink: #0F1724;
  --muted: #5A6477;
  --faint: #8B94A5;
  --hairline: #E2E6EC;
  --grid: #E8ECF2;
  --tick: #A9B1BE;          /* ruler ticks on the page (a step darker than grid so they read) */
  --accent: #2B48D6;
  --on-accent: #FFFFFF;
  --accent-tint: #E8ECFC;
  --pass: #0F7F59;
  --pass-tint: #E1F4EB;
  --warn: #A86200;
  --warn-tint: #FDF1DC;
  --fail: #C2313C;
  --fail-tint: #FCE7E8;
  --float: 0 8px 24px rgba(15, 23, 36, 0.08);
  --float-line: #E2E6EC;
  --stage: #141A24;         /* photos are judged on the dark set in both themes */
  --gutter: 16px;
  --r-chip: 6px;
  --r-card: 12px;
  --r-sheet: 20px;
  --sans: "Anek Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Anek Devanagari Expanded", "Anek Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0B0F16;
    --surface: #141A24;
    --surface-alt: #1B2230;
    --ink: #ECF0F7;
    --muted: #98A3B6;
    --faint: #6B7689;
    --hairline: #252E3E;
    --grid: #1E2635;
    --tick: #46516A;
    --accent: #8197FF;
    --on-accent: #0B0F16;
    --accent-tint: #1C2550;
    --pass: #38C98D;
    --pass-tint: #0F2E22;
    --warn: #F0B04A;
    --warn-tint: #33270F;
    --fail: #FF7078;
    --fail-tint: #3A161A;
    --float: none;
    --float-line: #2F3A4D;   /* dark mode lifts with a lighter hairline instead of a shadow */
    --stage: #0B0F16;
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
.mono, code { font-family: var(--mono); font-weight: 500; font-size: 0.92em; }
code { background: var(--surface-alt); border-radius: 4px; padding: 0.05em 0.35em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 24px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--r-card); font-weight: 500; text-decoration: none; }
.skip:focus { left: 16px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- rulers (signature motif) */
/* Ticks every 4px (1 mm at the drawing's scale), longer every 20px (5 mm), baseline hairline. */
.ruler {
  height: 10px;
  background:
    linear-gradient(var(--tick), var(--tick)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(to right, var(--tick) 0 1px, transparent 1px 20px) left bottom / 100% 10px no-repeat,
    repeating-linear-gradient(to right, var(--tick) 0 1px, transparent 1px 4px) left bottom / 100% 5px no-repeat;
}
.ruler-edge {
  height: 9px;
  border-top: 1px solid var(--hairline);
  background:
    repeating-linear-gradient(to right, var(--tick) 0 1px, transparent 1px 20px) left top / 100% 9px no-repeat,
    repeating-linear-gradient(to right, var(--grid) 0 1px, transparent 1px 4px) left top / 100% 5px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .ruler-edge { background:
    repeating-linear-gradient(to right, var(--tick) 0 1px, transparent 1px 20px) left top / 100% 9px no-repeat,
    repeating-linear-gradient(to right, #2A3344 0 1px, transparent 1px 4px) left top / 100% 5px no-repeat; }
}

/* ---------------------------------------------------------------- header */
.site-header { background: var(--ground); border-bottom: 1px solid var(--hairline); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.site-nav a:hover { color: var(--ink); background: var(--surface-alt); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.nav-wide { display: none; }
@media (min-width: 760px) { .nav-wide { display: block; } }
@media (max-width: 380px) { .site-nav a { padding: 0 7px; font-size: 0.875rem; } .brand { font-size: 1.125rem; } }

/* ---------------------------------------------------------------- type helpers */
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--mono); font-weight: 400;
  font-size: 0.8125rem; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; flex: none; width: 41px; height: 10px;
  background:
    linear-gradient(var(--tick), var(--tick)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(to right, var(--tick) 0 1px, transparent 1px 20px) left bottom / 100% 10px no-repeat,
    repeating-linear-gradient(to right, var(--tick) 0 1px, transparent 1px 4px) left bottom / 100% 5px no-repeat; }
.display { font-family: var(--display); font-weight: 600; font-size: clamp(2.25rem, 1.35rem + 3.6vw, 3.5rem);
  line-height: 1.06; letter-spacing: -0.02em; }
.title { font-family: var(--display); font-weight: 600; font-size: clamp(1.625rem, 1.25rem + 1.6vw, 2.375rem);
  line-height: 1.14; letter-spacing: -0.015em; }
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--muted); max-width: 38em; }
.title + .lede { margin-top: 14px; }
.note { font-size: 0.9375rem; color: var(--muted); }

/* ---------------------------------------------------------------- buttons, pills */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: var(--r-card); background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
  font-weight: 500; font-size: 1rem; line-height: 1; text-decoration: none; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--hairline); }
.btn-quiet:hover { filter: none; border-color: var(--tick); }
.btn svg { width: 18px; height: 18px; flex: none; }
.soon { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--muted); font-size: 0.9375rem; }
.soon svg { width: 18px; height: 18px; flex: none; color: var(--accent); }

/* ---------------------------------------------------------------- check rows */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border-radius: var(--r-chip);
  background: var(--pass-tint); color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 0.8125rem;
  line-height: 1.35; white-space: nowrap; }
.check svg { width: 16px; height: 16px; flex: none; color: var(--pass); }
.check .rule { color: var(--muted); font-weight: 400; }
.check.word { font-family: var(--sans); font-size: 0.875rem; }
.check.fail { background: var(--fail-tint); }
.check.fail svg { color: var(--fail); }
@media (prefers-reduced-motion: no-preference) {
  .checks.draw .check svg path { stroke-dasharray: 1; animation: tick-draw 220ms cubic-bezier(0.33, 1, 0.68, 1) both; animation-delay: 420ms; }
  .checks.draw .check:nth-child(2) svg path { animation-delay: 480ms; }
  .checks.draw .check:nth-child(3) svg path { animation-delay: 540ms; }
  .checks.draw .check:nth-child(4) svg path { animation-delay: 600ms; }
  .checks.draw .check:nth-child(5) svg path { animation-delay: 660ms; }
}
@keyframes tick-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- cards */
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 20px; }
.card h3 { font-size: 1.125rem; line-height: 1.3; margin-bottom: 6px; }
.card p { color: var(--muted); }
@media (min-width: 720px) { .card { padding: 24px; } }

/* ---------------------------------------------------------------- hero */
.hero { padding: 44px 0 52px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero .lede { margin-top: 18px; }
@media (min-width: 940px) {
  .hero { padding: 72px 0 84px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; }
}
.desk { margin: 0; background: var(--surface); border: 1px solid var(--float-line); border-radius: var(--r-sheet);
  padding: 16px; box-shadow: var(--float); }
@media (min-width: 720px) { .desk { padding: 20px; } }
.desk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding: 2px 4px 14px; }
.desk-head strong { font-size: 1.0625rem; }
.desk-head span { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.desk .checks { margin-top: 16px; }
.desk figcaption { margin-top: 14px; padding: 0 4px; font-size: 0.875rem; color: var(--muted); }

/* the dark stage with the print between rulers (fixed colours: a photo is judged on the dark set) */
.stage { background: var(--stage); border-radius: var(--r-card); padding: 18px 12px 12px; }
.stage svg { width: 100%; max-width: 360px; height: auto; margin: 0 auto; }
.st-minor { fill: none; stroke: #4A5568; stroke-width: 1; }
.st-major { fill: none; stroke: #8B94A5; stroke-width: 1; }
.st-num { fill: #8B94A5; font-family: var(--mono); font-weight: 400; font-size: 9px; }
.st-num-x { text-anchor: middle; }
.st-num-y { text-anchor: end; }
.st-dim { fill: none; stroke: #98A3B6; stroke-width: 1; }
.st-label { fill: #ECF0F7; font-family: var(--mono); font-weight: 500; font-size: 12px; text-anchor: middle; }
.st-print { fill: #FFFFFF; }
.st-cloth { fill: #5A6477; }
.st-neck { fill: #BAC3CF; }
.st-head { fill: #CBD2DD; }
.st-hair { fill: #8E99AA; }
.st-eye { fill: #2B48D6; fill-opacity: 0.14; }
.st-eyeline { fill: none; stroke: #2B48D6; stroke-width: 1; stroke-opacity: 0.55; }
.st-guide { fill: none; stroke: #2B48D6; stroke-width: 1.75; stroke-dasharray: 7 5; }
.st-empty { fill: none; stroke: #6B7689; stroke-width: 1; stroke-dasharray: 6 5; }
.st-big { fill: #6B7689; font-family: var(--mono); font-weight: 500; font-size: 56px; text-anchor: middle; }
.lost .st-guide { stroke: #8197FF; stroke-opacity: 0.7; }

/* ---------------------------------------------------------------- sections */
.section { padding: 56px 0; }
@media (min-width: 940px) { .section { padding: 72px 0; } }
.section-head { max-width: 48rem; margin-bottom: 32px; }
.section-head .lede { margin-top: 14px; }
.section-foot { margin-top: 28px; max-width: 48rem; color: var(--muted); }

/* line drawings ("spec drawings": hairlines in ink/muted, one accent element each) */
.art { display: block; width: 100%; height: auto; }
.art-well { background: var(--surface-alt); border-radius: 8px; padding: 10px; margin-bottom: 18px; }
.art .ln { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.art .ln-ink { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.art .ln-soft { fill: none; stroke: var(--tick); stroke-width: 1; }
.art .ln-accent { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.art .ln-pass { fill: none; stroke: var(--pass); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.art .band-pass { fill: none; stroke: var(--pass); stroke-opacity: 0.22; stroke-width: 10; }
.art .dash { stroke-dasharray: 3 3; }
.art .paper { fill: var(--surface); stroke: var(--hairline); stroke-width: 1; }
.art .paper-strong { fill: var(--surface); stroke: var(--tick); stroke-width: 1; }
.art .print { fill: #FFFFFF; stroke: #D5DBE3; stroke-width: 0.75; }
.art .head { fill: #CBD2DD; }
.art .cloth { fill: #8E99AA; }
.art .cam { fill: #141A24; }
.art .cam-head { fill: #3A4558; }
.art .cam-guide { fill: none; stroke: #FFFFFF; stroke-opacity: 0.85; stroke-width: 1.25; stroke-dasharray: 3 2.5; }
.art .cam-eye { fill: #8197FF; fill-opacity: 0.35; }
.art .fill-accent { fill: var(--accent); }
.art .fill-accent-tint { fill: var(--accent-tint); }
.art .fill-pass { fill: var(--pass); }
.art .fill-ink { fill: var(--ink); }
.art .fill-white { fill: #FFFFFF; }
.art .on-dark { fill: none; stroke: #FFFFFF; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.art .on-pass { fill: none; stroke: var(--surface); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art text { font-family: var(--mono); font-weight: 400; font-size: 9.5px; fill: var(--muted); }
.art .t-name { font-family: var(--sans); font-weight: 600; font-size: 11px; fill: var(--ink); }
.art .t-word { font-family: var(--sans); font-weight: 500; font-size: 10px; fill: var(--muted); }
.art .t-ink { fill: var(--ink); font-weight: 500; }
.art .t-big { fill: var(--ink); font-weight: 500; font-size: 20px; }
.art .t-accent { fill: var(--accent); font-weight: 500; }
.art .mid { text-anchor: middle; }
.art .o16 { fill-opacity: 0.16; }
.art .fill-pass-tint { fill: var(--pass-tint); stroke: var(--pass); stroke-width: 1; }
.art .sig { fill: none; stroke: #1F2D5C; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step-num { display: block; margin-bottom: 8px; font-family: var(--mono); font-weight: 500; font-size: 0.8125rem; color: var(--accent); }
.steps-checks { margin-top: 20px; }

/* preset library */
.presets-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 980px) { .presets-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; } }
.groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 620px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.group h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px;
  border-radius: var(--r-chip); background: var(--accent-tint); color: var(--accent); font-family: var(--mono);
  font-weight: 500; font-size: 0.75rem; letter-spacing: 0.02em; }
.names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.names li { padding: 3px 9px; border-radius: var(--r-chip); background: var(--surface-alt); font-weight: 500;
  font-size: 0.875rem; line-height: 1.5; color: var(--ink); }
.names .val { font-family: var(--mono); font-size: 0.8125rem; }
.group .note { margin-top: 12px; }

.sheet { margin: 0; }
.sheet-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.sheet-head svg { width: 54px; height: auto; flex: none; }
.sheet-head small { display: block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sheet-head strong { display: block; font-size: 1.125rem; line-height: 1.3; }
.spec { margin: 0; }
.spec div { display: grid; grid-template-columns: minmax(7.5em, 0.9fr) minmax(0, 1.4fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.spec dt { color: var(--muted); font-size: 0.9375rem; }
.spec dd { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 0.875rem; line-height: 1.6; color: var(--ink); }
.spec dd.words { font-family: var(--sans); font-size: 0.9375rem; }
.swatch { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border-radius: 3px;
  background: #FFFFFF; border: 1px solid var(--tick); }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: var(--r-chip);
  background: var(--surface-alt); color: var(--ink); font-size: 0.9375rem; font-weight: 500; line-height: 1.45; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--muted); }

/* tools */
.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tools .art { max-width: 360px; margin: 0 auto; }
@media (min-width: 720px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* widgets */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 940px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.split .note { margin-top: 18px; }
.ticks svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--pass); }
.homescreen { margin: 0; background: var(--surface-alt); border: 1px solid var(--hairline); border-radius: var(--r-sheet); padding: 18px;
  display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 520px) { .homescreen { grid-template-columns: 176px minmax(0, 1fr); padding: 22px; } }
.widget { background: var(--surface); border: 1px solid var(--float-line); border-radius: var(--r-sheet); padding: 14px; box-shadow: var(--float); }
.widget-label { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.w-small { display: flex; flex-direction: column; gap: 8px; }
.w-small .w-row { display: flex; gap: 10px; align-items: center; }
.w-small svg { width: 34px; height: auto; flex: none; }
.w-small strong { display: block; font-size: 0.9375rem; line-height: 1.25; }
.w-small .mono { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.w-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-weight: 500; font-size: 0.875rem; }
.w-btn svg { width: 15px; height: 15px; }
.recents { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.recents li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.recents .thumb { width: 100%; max-width: 70px; aspect-ratio: 35 / 45; display: flex; align-items: center; justify-content: center;
  background: var(--stage); border-radius: 8px; padding: 6px; }
.recents .thumb svg { width: 100%; height: 100%; }
.kb { font-family: var(--mono); font-weight: 500; font-size: 0.75rem; line-height: 1.2; color: var(--ink); text-align: center; }
.kb small { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.75rem; color: var(--muted); }
.w-lock { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px;
  border: 1px solid var(--float-line); background: var(--surface); font-size: 0.875rem; }
.w-lock svg { width: 22px; height: 22px; flex: none; color: var(--ink); }
.w-lock .mono { font-size: 0.8125rem; }
.w-lock span span { color: var(--muted); }

/* privacy promise */
.promise { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sheet);
  padding: 28px 20px; }
@media (min-width: 720px) { .promise { padding: 44px 48px; } }
.promise-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; margin-bottom: 18px;
  border-radius: var(--r-card); background: var(--accent-tint); color: var(--accent); }
.promise-icon svg { width: 24px; height: 24px; }
.promise .lede { margin-top: 10px; color: var(--ink); font-weight: 500; }
.promise .ticks { margin-top: 22px; color: var(--muted); }
.promise > p:last-child { margin-top: 22px; }

/* coming soon */
.download { display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .download { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; } }
.download h2 { font-size: 1.5rem; margin-bottom: 8px; }
.stores { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.stores li { display: flex; flex-direction: column; justify-content: center; min-width: 140px; min-height: 54px; padding: 8px 18px;
  border-radius: var(--r-card); background: var(--ink); color: var(--ground); line-height: 1.15; }
.stores small { font-size: 0.75rem; opacity: 0.8; }
.stores span { font-weight: 600; font-size: 1.125rem; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px;
  cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--muted), var(--muted)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center / 1.5px 14px no-repeat; }
.faq details[open] summary::after { background: linear-gradient(var(--muted), var(--muted)) center / 14px 1.5px no-repeat; }
.faq details[open] summary { border-bottom: 1px solid var(--hairline); }
.faq .answer { padding: 14px 20px 18px; color: var(--muted); }
.faq-more { margin-top: 20px; color: var(--muted); }

/* ---------------------------------------------------------------- documents (privacy, terms, support) */
.doc-wrap { max-width: 860px; }
.doc-hero { padding: 44px 0 24px; }
@media (min-width: 720px) { .doc-hero { padding: 64px 0 28px; } }
.doc-meta { margin-top: 12px; font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.doc { margin-bottom: 64px; }
.doc h2 { font-size: 1.3125rem; line-height: 1.3; margin: 34px 0 10px; padding-top: 26px; border-top: 1px solid var(--hairline); }
.doc h3 { font-size: 1.0625rem; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc ul, .doc ol { margin: 0 0 1em; padding-left: 1.25em; }
.doc li { margin: 0.3em 0; }
.doc li::marker { color: var(--faint); }
.doc .summary { padding: 16px 18px; border-radius: var(--r-card); background: var(--accent-tint); color: var(--ink); }
.doc .summary + h2 { margin-top: 30px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 0.9375rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--hairline); }
.doc th { font-weight: 600; color: var(--muted); font-size: 0.875rem; }
.toc { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--r-chip);
  background: var(--surface-alt); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.toc a:hover { background: var(--accent-tint); color: var(--accent); }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 8px;
  padding: 16px 18px; border-radius: var(--r-card); border: 1px solid var(--hairline); background: var(--surface-alt); }
.contact p { margin: 0; }
.doc .notice { margin: 14px 0 0; }

/* ---------------------------------------------------------------- 404 */
.lost { padding: 56px 0 88px; display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .lost { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 56px; padding: 88px 0 112px; } }
.lost .stage { max-width: 300px; width: 100%; margin: 0 auto; }
.lost .checks { margin-top: 18px; }
.lost .lede { margin-top: 14px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--surface); padding: 0 0 28px; }
.site-footer .ruler-edge { margin-bottom: 40px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 56px; } }
.studio { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.studio-credit { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: var(--ink); text-decoration: none; }
.studio-credit:hover { text-decoration: none; }
.studio-credit img { width: 64px; height: auto; }
.studio-credit span { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.studio-credit small { display: block; font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.footer-links li { display: flex; align-items: center; }
.footer-links li + li::before { content: "·"; color: var(--faint); padding: 0 2px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.footer-links li:first-child a { padding-left: 0; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.more h2 { margin-bottom: 12px; font-family: var(--mono); font-weight: 400; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 560px) { .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.apps a { display: block; height: 100%; padding: 10px 14px; border-radius: var(--r-card); border: 1px solid var(--hairline);
  background: var(--ground); color: var(--ink); text-decoration: none; }
.apps a:hover { border-color: var(--tick); }
.apps strong { display: block; font-size: 0.9375rem; }
.apps span { display: block; font-size: 0.875rem; line-height: 1.4; color: var(--muted); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 36px; padding-top: 18px;
  border-top: 1px solid var(--hairline); color: var(--muted); font-size: 0.875rem; }
.legal p { margin: 0; }
