/*
  Shared styles for every page on backflash.app (the temporary static site).
  Same colour tokens as the old holding page: a warm off-white canvas in light
  mode, a warm near-black in dark mode, following the phone's or computer's
  setting. No web fonts, no scripts, no tracking.

  Contrast (WCAG AA, 4.5:1 or better for text):
    light  --fg #1b1a18 on --bg #faf7f2  ~16.5:1   --muted #6b665e on --bg  ~5.3:1
    dark   --fg #f3efe8 on --bg #141312  ~16.4:1   --muted #a39d93 on --bg  ~7.0:1
  --line is decorative only (borders), never text.
*/
:root {
  --bg: #faf7f2;
  --fg: #1b1a18;
  --muted: #6b665e;
  --line: #e4ddd2;
  --card: #f3eee6;
  --note-bg: #f6ead2;
  --note-fg: #4a3a12;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --fg: #f3efe8;
    --muted: #a39d93;
    --line: #2e2b28;
    --card: #1d1b19;
    --note-bg: #2f2716;
    --note-fg: #f1dfb4;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* One centred column; 16px side gutter on phones. */
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 60rem; }

a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Top bar: the wordmark plus two links. */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; }
.top nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.top nav a { text-decoration: none; color: var(--muted); padding: 10px 0; display: inline-block; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--fg); text-decoration: underline; }

main { padding: 40px 0 56px; }
h1 { font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 0.4em; }
h2 { font-size: 1.4rem; line-height: 1.3; letter-spacing: -0.01em; margin: 2em 0 0.5em; }
h3 { font-size: 1.1rem; line-height: 1.35; margin: 1.6em 0 0.4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin: 0 0 0.4em; }
.lead { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }
small, .small { font-size: 0.92rem; }

/* "Draft — under legal review" banner at the top of Terms and Privacy. */
.draft {
  background: var(--note-bg); color: var(--note-fg);
  border-radius: 10px; padding: 12px 16px; margin: 0 0 28px; font-size: 0.98rem;
}
.draft strong { display: block; }
.tbc { font-style: italic; }

/* Landing page hero. */
.hero { text-align: center; padding: 24px 0 8px; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 4rem); margin-bottom: 0.25em; }
.hero .lead { max-width: 32rem; margin: 0 auto 0.8em; }
.badge {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 0.95rem; color: var(--muted);
}

/* Feature and price cards. */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 0 0 8px; padding: 0; list-style: none; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border-radius: 14px; padding: 18px 18px 6px; margin: 0; }
.card h3 { margin-top: 0; }
.price { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.2em; }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); }

/* Contact block on Support. */
.contact { background: var(--card); border-radius: 14px; padding: 18px; margin: 0 0 8px; }
.contact p { margin: 0 0 0.4em; }

/* Long legal pages: a short contents list. */
.toc { border-left: 3px solid var(--line); padding-left: 16px; margin: 0 0 24px; }
.toc ol { margin: 0; padding-left: 1.2em; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.95rem; }
.foot ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--muted); display: inline-block; padding: 6px 0; }
.foot a:hover { color: var(--fg); }
.foot p { margin: 0; }
