/* StillProof site. One stylesheet, no scripts. Palette from the app (App/Sources/Theme/Theme.swift)
   and the approved plan (docs/design/plan.html): copper on the dark bench ground, cream by day. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #F5EFE2; --surface: #FBF8F0; --sunk: #EFE7D2; --line: #D7CDB8;
  --ink: #241E17; --muted: #5C5347; --copper: #8A5218; --copper-soft: #F1E2CF;
  --frame: #0C0A08;
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130F; --surface: #221C16; --sunk: #2C251D; --line: #3A3027;
    --ink: #F5EFE6; --muted: #B5A995; --copper: #D4924A; --copper-soft: #33261A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--f-body);
  padding: 0 var(--gutter) 48px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.05; }
h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.25; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header and footer */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 22px; }
.brand svg { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.nav { display: flex; gap: 20px; font-size: 15.5px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 2px; text-underline-offset: 6px; }

.foot { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 24px; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot p { max-width: 72ch; }

/* Home: hero */
.hero { display: grid; gap: 32px; padding: 24px 0 8px; align-items: center; }
.hero-copy { display: grid; gap: 18px; }
.lede { font-size: clamp(18px, 2.4vw, 20px); color: var(--muted); max-width: 40ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.soon { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--copper); color: var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 16px; }
.price-note { font-size: 15px; color: var(--muted); max-width: 34ch; }
.phone { background: var(--frame); padding: 7px; border-radius: 44px; box-shadow: 0 1px 0 #3a332b inset, 0 18px 40px rgba(20, 14, 8, .28); width: min(300px, 100%); justify-self: center; }
.phone img { border-radius: 37px; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr .85fr; padding-top: 40px; }
}

/* Sections */
.section { padding-top: 64px; display: grid; gap: 20px; }
.section > p { max-width: 64ch; }

/* The worked example: an HTML copy of the app's result card and its "Show your work" lines. */
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: grid; gap: 14px; max-width: 520px; }
.ticket .big { font-family: var(--f-display); font-weight: 600; font-size: clamp(56px, 12vw, 76px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ticket .big small { font-family: var(--f-body); font-weight: 400; font-size: 20px; letter-spacing: 0; color: var(--muted); margin-left: 8px; }
.ticket ol { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 14.5px; display: grid; gap: 4px; }
.ticket .work { color: var(--copper); }
.worked { display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .worked { grid-template-columns: 1fr 1fr; } }

/* Free and Pro */
.tiers { display: grid; gap: 16px; }
@media (min-width: 760px) { .tiers { grid-template-columns: 1fr 1fr; } }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 14px; align-content: start; }
.tier.pro { border-color: var(--copper); }
.tier header { display: grid; gap: 4px; }
.tier ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tier li { padding-left: 22px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }
.tier li b { font-weight: 600; }

/* Screens: a row that scrolls sideways on a phone, a grid on wider screens. The page itself never scrolls sideways. */
.screens { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin: 0; }
.screens figure { margin: 0; display: grid; gap: 12px; scroll-snap-align: start; align-content: start; }
.screens .phone { width: 100%; padding: 5px; border-radius: 34px; }
.screens .phone img { border-radius: 29px; }
.screens figcaption { font-size: 15px; color: var(--muted); }
.screens figcaption b { color: var(--ink); font-weight: 600; }
@media (min-width: 860px) {
  .screens { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; overflow: visible; }
  .screens figure { justify-items: center; }
  .screens .phone, .screens figcaption { width: 100%; max-width: 260px; }
}
.tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--copper); color: var(--copper); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }

/* Tables and sources */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0; }
.facts div { background: var(--surface); padding: 14px 16px; display: grid; gap: 2px; }
.facts dt { font-family: var(--f-display); font-weight: 600; font-size: 19px; }
.facts dd { margin: 0; font-family: var(--f-mono); font-size: 13.5px; color: var(--muted); }
.note { font-size: 15px; color: var(--muted); max-width: 64ch; }

/* Privacy promise */
.promise { background: var(--sunk); border-radius: 20px; padding: 24px; display: grid; gap: 14px; }
.promise p { max-width: 64ch; }
.label { display: inline-flex; align-items: center; gap: 8px; justify-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: 15px; }
.label svg { width: 16px; height: 16px; color: var(--copper); }

/* Privacy and support pages */
.doc { max-width: 68ch; display: grid; gap: 16px; padding-top: 24px; }
.doc h1 { font-size: clamp(34px, 6vw, 48px); }
.doc h2 { font-size: 24px; margin-top: 20px; }
.doc h3 { font-size: 19px; margin-top: 8px; }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.doc .meta { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 6px; }
.contact .addr { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
code { font-family: var(--f-mono); font-size: .88em; background: var(--sunk); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }

/* Pro price, in the display face like the app's big numbers */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-family: var(--f-display); font-weight: 600; font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price span { font-family: var(--f-body); font-weight: 400; font-size: 15px; line-height: 1.4; color: var(--muted); }

/* About */
.about-body { display: grid; gap: 18px; max-width: 68ch; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.timeline li { display: grid; gap: 6px; padding: 4px 0 20px 20px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--copper); }
.timeline .year { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--copper); }
.timeline div { display: grid; gap: 6px; }
.timeline p { color: var(--muted); }
