/* Repose site. Tokens mirror Shared/DesignTokens.swift and the brand kit (source/design-tokens.json). */
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-Variable.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
:root {
  --paper: #F7F5EF; --card: #FFFFFF; --ink: #172923; --forest: #0E382B; --on-forest: #F7F5EF;
  --sage: #AAC8AD; --ochre: #DCA04E; --wall: #F5EBCE; --muted: rgba(23, 41, 35, 0.62); --line: rgba(23, 41, 35, 0.13);
  --scrim: rgba(23, 41, 35, 0.35);
  --space-hair: 2px; --space-xs: 4px; --space-s: 8px; --space-m: 12px; --space-l: 16px; --space-xl: 24px; --space-xxl: 32px; --space-xxxl: 48px; --space-hero: 96px;
  --radius-control: 12px; --radius-card: 16px; --radius-tile: 20px; --radius-hero: 28px;
  --width-column: 740px; --width-page: 1180px;
  --sans: "Instrument Sans", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0F1C16; --card: #1A2A23; --ink: #F6F4EF; --forest: #AAC8AC; --on-forest: #0E382A; --muted: rgba(246, 244, 239, 0.66); --line: rgba(246, 244, 239, 0.16); --scrim: rgba(15, 28, 22, 0.45); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; font-kerning: normal; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: var(--space-s); background: var(--card); padding: var(--space-s) var(--space-m); border-radius: var(--radius-control); }
.skip:focus { left: var(--space-s); z-index: 10; }

/* Type roles */
h1, h2, h3 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(38px, 5.6vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 36px); }
h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
.lead { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 34ch; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.caption { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Page frame */
.page { width: min(100% - 2 * var(--space-xl), var(--width-page)); margin-inline: auto; }
.column { width: min(100% - 2 * var(--space-xl), var(--width-column)); margin-inline: auto; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-l); padding: var(--space-l) 0; }
.brand { display: inline-flex; align-items: center; gap: var(--space-m); }
.brand .mark { width: 36px; height: 36px; }
.brand .word { height: 22px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-xl); font-size: 16px; }
.nav a { color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-s); min-height: 58px; padding: var(--space-m) var(--space-xl); border-radius: 999px; background: var(--forest); color: var(--on-forest); font-weight: 600; font-size: 17px; border: 0; }
.button:hover { text-decoration: none; filter: brightness(1.06); }
.button.quiet { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.button[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.pill { display: inline-flex; align-items: center; min-height: 34px; padding: var(--space-xs) var(--space-l); border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }

/* Sections */
section { padding: var(--space-hero) 0; }
section + section { padding-top: 0; }
.section-head { display: grid; gap: var(--space-m); max-width: 60ch; margin-bottom: var(--space-xxl); }
.hero { display: grid; gap: var(--space-xxl); align-items: center; padding-top: var(--space-xxl); }
.hero .copy { display: grid; gap: var(--space-xl); }
.hero .actions { display: flex; flex-wrap: wrap; gap: var(--space-m); align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 5fr 6fr; gap: var(--space-xxxl); padding-top: var(--space-xxxl); } }

/* Before/after */
.compare { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-hero); overflow: hidden; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare img.after { clip-path: inset(0 0 0 var(--split, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.compare .knob { position: absolute; top: 50%; left: var(--split, 50%); width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; color: var(--forest); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.18); pointer-events: none; font-size: 20px; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare .tag { position: absolute; bottom: var(--space-l); padding: var(--space-xs) var(--space-m); border-radius: 999px; background: var(--scrim); color: #fff; font-size: 14px; backdrop-filter: blur(8px); }
.compare .tag-before { left: var(--space-l); } .compare .tag-after { right: var(--space-l); }

/* Steps */
.steps { display: grid; gap: var(--space-l); counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-tile); padding: var(--space-xl); display: grid; gap: var(--space-m); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }

/* Tools grid */
.tools { display: grid; gap: var(--space-l); grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) { .tools { grid-template-columns: repeat(3, 1fr); } }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-tile); overflow: hidden; }
.tool img { aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.tool .label { display: grid; gap: var(--space-xs); padding: var(--space-m) var(--space-l) var(--space-l); font-weight: 600; font-size: 16px; }
.tool .detail { font-weight: 400; font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 719px) { .tools { gap: var(--space-m); } .tool .label { font-size: 14px; padding: var(--space-m); } .tool .detail { font-size: 13px; } }

/* Feature trio with screens */
.features { display: grid; gap: var(--space-xl); }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { display: grid; gap: var(--space-l); align-content: start; }
.feature .screen { border-radius: var(--radius-hero); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.feature .screen img { width: 100%; display: block; }
.feature .text { display: grid; gap: var(--space-s); }
/* On a phone, a full-width phone screenshot reads as the app itself. Keep it a small picture beside its text. */
@media (max-width: 899px) {
  .feature { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); align-items: center; gap: var(--space-l); }
  .feature .screen { border-radius: var(--radius-card); }
  .feature .text h3 { font-size: 20px; }
}

/* Privacy strip */
.strip { background: var(--forest); color: var(--on-forest); border-radius: var(--radius-hero); padding: var(--space-xxl); display: grid; gap: var(--space-xl); }
.strip h2, .strip a { color: inherit; }
.strip .section-head { margin-bottom: 0; }
.strip .eyebrow { color: inherit; opacity: 0.75; }
.strip .facts { display: grid; gap: var(--space-l); }
@media (min-width: 720px) { .strip { padding: var(--space-xxxl); } .strip .facts { grid-template-columns: repeat(3, 1fr); } }
.strip .fact { display: grid; gap: var(--space-xs); padding-top: var(--space-l); border-top: 1px solid rgba(255,255,255,0.22); }
.strip .fact strong { font-weight: 600; }
.strip .fact span { opacity: 0.8; font-size: 15px; }

/* Beta */
.beta { display: grid; gap: var(--space-l); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-tile); padding: var(--space-xxl); }
.beta .row { display: flex; flex-wrap: wrap; gap: var(--space-m); align-items: center; }
.beta .lead { max-width: none; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: var(--space-xxl) 0 var(--space-xxxl); }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-l); align-items: center; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-xl); }
footer .brand .mark { width: 30px; height: 30px; }
footer .brand .word { height: 18px; }
footer .caption { margin-top: var(--space-l); }

/* Documents (privacy, terms) */
.doc { padding: var(--space-xxl) 0 var(--space-hero); }
.doc header { display: grid; gap: var(--space-m); margin-bottom: var(--space-xxl); }
.doc h2 { font-size: 24px; margin-top: var(--space-xxl); margin-bottom: var(--space-m); }
.doc p, .doc li { margin-bottom: var(--space-l); }
.doc ul { padding-left: 1.2em; }
.doc .lede { font-size: 19px; color: var(--muted); }
.doc h3 { font-size: 19px; margin-top: var(--space-xl); margin-bottom: var(--space-s); }
.doc .table { overflow-x: auto; margin-bottom: var(--space-l); }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: var(--space-s) var(--space-m) var(--space-s) 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; }
.doc code { font-family: var(--mono); font-size: 0.92em; }
