/* Shared by support.html, privacy.html and delete-account.html: the home page's colors, header and footer
   (copied from index.html, which keeps its own copy inline), plus the page layout. */
/* ---------- Tokens (same colors as the app: app/src/app/globals.css) ---------- */
:root {
  --paper: #f3f0e8;
  --paper-2: #ebe6da;
  --card: #ffffff;
  --ink: #1a1c1e;
  --ink-2: #4a4d50;
  --muted: #5c5f62;
  --line: #e2ddd2;
  --divider: #efebe3;
  --sand: #e7e2d7;
  --slate: #1e2a33;
  --slate-2: #2a3945;
  --on-slate: #f3f0e8;
  --on-slate-muted: #b9c3cb;
  --orange: #e8743f;
  --deep: #c8511f;
  --link: #b8431a;
  --tint: #fbeee8;
  --warn-bg: #fbebc8;
  --warn-ink: #6e4700;
  --warn-strong: #d08a00;
  --ok-bg: #e3efe6;
  --ok-ink: #1f4d2e;
  --ok-strong: #2f7d4a;
  --blue-bg: #e4ecf6;
  --blue-ink: #244e7a;
  --bad-bg: #fce4e1;
  --danger: #9a1f16;
  /* Website-only surfaces */
  --band: #1e2a33;
  --band-2: #2a3945;
  --band-ink: #f3f0e8;
  --band-muted: #b9c3cb;
  --band-accent: #f3a77f;
  --btn: #b8431a;
  --btn-hover: #9c3814;
  --btn-ink: #ffffff;
  --shadow: 0 1px 2px rgba(30, 42, 51, .06), 0 8px 24px -12px rgba(30, 42, 51, .18);
  --phone-shadow: 0 40px 80px -30px rgba(30, 42, 51, .55), 0 18px 36px -18px rgba(30, 42, 51, .35);
  --display: 'Barlow Condensed', 'Public Sans', system-ui, sans-serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121416;
    --paper-2: #181b1e;
    --card: #1c1f22;
    --ink: #ecebe7;
    --ink-2: #c7cacd;
    --muted: #a5a9ad;
    --line: #34383c;
    --divider: #2a2e32;
    --sand: #2a2e32;
    --slate: #dcd6ca;
    --slate-2: #c5bfb2;
    --on-slate: #1a1c1e;
    --on-slate-muted: #4a5560;
    --link: #f08a57;
    --tint: #3a2418;
    --warn-bg: #3a2e12;
    --warn-ink: #f2c76b;
    --warn-strong: #e0a020;
    --ok-bg: #1d3325;
    --ok-ink: #b7e0c2;
    --ok-strong: #3f9a5e;
    --blue-bg: #1b2a3b;
    --blue-ink: #9cc3ec;
    --bad-bg: #3b1f1c;
    --danger: #ff9a8c;
    --band: #1b252d;
    --band-2: #24313b;
    --band-ink: #ecebe7;
    --band-muted: #a9b4bd;
    --band-accent: #f3a77f;
    --btn: #e8743f;
    --btn-hover: #f08a57;
    --btn-ink: #1a1c1e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --phone-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 18px 36px -18px rgba(0, 0, 0, .6);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -.2px; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--card); color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 14px;
  background: var(--btn); color: var(--btn-ink);
  font: 700 17px/1 var(--sans); text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 18px -10px rgba(184, 67, 26, .7);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn svg { transition: transform .15s ease; }
.btn:hover svg { transform: translateX(2px); }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand svg { border-radius: 9px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: .2px; white-space: nowrap; }
.top .btn.small { white-space: nowrap; }
@media (max-width: 400px) { .xs-hide { display: none; } }
.nav { display: none; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--sand); color: var(--ink); }
@media (min-width: 900px) { .nav { display: flex; } }
@media (max-width: 380px) { .top .btn.small { padding: 0 12px; font-size: 14px; } .brand span { font-size: 23px; } }

.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--link); font-weight: 700; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 14px; }
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--orange); }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 15px; color: var(--muted); }
footer .wrap { display: grid; gap: 22px; }
@media (min-width: 800px) { footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
footer .brand span { font-size: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer nav a { color: var(--ink-2); font-weight: 600; text-decoration: none; padding: 6px 0; }
footer nav a:hover { color: var(--link); text-decoration: underline; }
footer .made { margin-top: 10px; }

/* ---------- Pages: support, privacy, delete your account ---------- */
.doc-head { position: relative; overflow: hidden; padding: 44px 0 4px; }
.doc-head::before {
  content: ""; position: absolute; inset: -55% -15% auto auto; width: 760px; height: 760px; max-width: 150vw;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--orange) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.doc-head .wrap { position: relative; }
@media (min-width: 980px) { .doc-head { padding: 76px 0 8px; } }
.doc-head h1 { font-size: clamp(50px, 9vw, 84px); line-height: .94; letter-spacing: -.6px; }
.doc-head .meta { margin-top: 16px; font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); max-width: 52ch; line-height: 1.5; }
.doc-col, .doc { max-width: 780px; }
.doc { padding: 28px 0 88px; }
.doc > * + * { margin-top: 16px; }
.doc h2 { margin-top: 56px; font-size: clamp(32px, 4.6vw, 42px); }
.doc h2 + * { margin-top: 14px; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); font-weight: 700; }
.doc ul, .doc ol { margin-bottom: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.doc ul > li { position: relative; padding-left: 24px; }
.doc ul > li::before { content: ""; position: absolute; left: 5px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.doc ol { counter-reset: step; gap: 12px; }
.doc ol > li { counter-increment: step; position: relative; padding-left: 46px; min-height: 32px; padding-top: 3px; }
.doc ol > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 10px;
  background: var(--tint); color: var(--link); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center;
}

/* The short version, on the dark band like the home page's "Never lose a record". */
.band { padding: 22px 24px; border-radius: 22px; background: var(--band); color: var(--band-muted); font-size: 17.5px; line-height: 1.55; }
@media (min-width: 720px) { .band { padding: 26px 30px; } }
.doc .band strong { color: var(--band-accent); }
.band a { color: var(--band-accent); }

.card { padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .card { padding: 24px 26px; } }
.card > * + * { margin-top: 12px; }
.card .btn { margin-top: 18px; }

/* What we collect: a table on wide screens; each row stacks on a phone (what on top, why underneath). */
.table-card { padding: 6px 22px; }
@media (min-width: 720px) { .table-card { padding: 8px 26px; } }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 14px 10px 14px 0; border-bottom: 1px solid var(--divider); color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
th { font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); padding-top: 16px; }
td:first-child { width: 44%; padding-right: 22px; }
@media (max-width: 640px) {
  table, tbody, tr, td { display: block; width: auto; }
  tr:first-child { display: none; }
  tr { padding: 16px 0; border-bottom: 1px solid var(--divider); }
  tr:last-child { border-bottom: 0; }
  td, td:first-child { border: 0; padding: 0; width: auto; }
  td + td { margin-top: 6px; color: var(--muted); }
}

/* Support questions: one card each. */
.qs { display: grid; gap: 12px; }
.q { padding: 18px 20px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
@media (min-width: 720px) { .q { padding: 20px 24px 22px; } }
.q h3 { font-family: var(--sans); font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: 0; color: var(--ink); }
.q p { margin-top: 8px; font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
