/* formfill.apprevolt.io. The extension's own look (extension/src/panel/panel.css):
   AppRevolt blue as the one accent, the computer's light or dark setting.
   Spacing (root CLAUDE.md, "vertical spacing"): containers space their
   children with gap; no element brings its own outer margin. */

:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #16181d;
  --muted: #5d6470;
  --line: #e2e5ea;
  --accent: #3b6fb5;
  --accent-2: #4a90d9;
  --accent-text: #ffffff;
  --accent-soft: #e8f0fb;
  --ok: #1f7a3d;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --r: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171c;
    --card: #1f2229;
    --text: #eceef2;
    --muted: #a3a9b5;
    --line: #313641;
    --accent: #4a90d9;
    --accent-2: #6aa7e6;
    --accent-text: #0b1220;
    --accent-soft: #1d2d44;
    --ok: #5cc97f;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
a { color: var(--accent); }
code { font: 500 0.92em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }

.top {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.top-inner {
  max-width: 920px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 32px; height: 32px; }
.brand small { color: var(--muted); font-weight: 500; font-size: 14px; }
.top nav { display: flex; gap: var(--s2); font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }

main {
  max-width: 920px; margin: 0 auto;
  padding: var(--s5) 22px;
  display: flex; flex-direction: column; gap: var(--s5);
}
section { display: flex; flex-direction: column; gap: var(--s2); }

.hero { gap: var(--s3); }
h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.08; letter-spacing: -0.02em; max-width: 15em; }
h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 18px; line-height: 1.3; }
.lead { color: var(--muted); font-size: 20px; max-width: 34em; }
.pill {
  align-self: flex-start; border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 6px 14px; font-size: 14px; color: var(--muted);
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s2); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; display: flex; flex-direction: column; gap: var(--s1);
}
.card p, .muted { color: var(--muted); }
/* A card that stands alone as a section of the page gets a section's room inside. */
.card.feature, .toc { padding: 36px 32px; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}

.never { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s1) var(--s3); padding: 0; list-style: none; }
.never li { display: flex; gap: 10px; align-items: flex-start; }
.never li::before { content: '✕'; color: var(--accent); font-weight: 700; }

.address { display: flex; gap: var(--s1); align-items: stretch; flex-wrap: wrap; }
.address code {
  flex: 1 1 280px; min-width: 0; overflow-wrap: anywhere; background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; display: flex; align-items: center;
}
button.copy {
  font: inherit; font-weight: 600; font-size: 15px; border: 0; border-radius: 10px; padding: 12px 18px; cursor: pointer;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-text);
}

/* Long-form pages: help, privacy, terms */
.doc { max-width: 720px; gap: var(--s4); }
.doc-head { display: flex; flex-direction: column; gap: var(--s1); }
.doc section { gap: 12px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.toc ol { gap: 4px; }

footer { border-top: 1px solid var(--line); }
.foot-inner {
  max-width: 920px; margin: 0 auto; padding: var(--s3) 22px calc(var(--s3) + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); justify-content: space-between;
  color: var(--muted); font-size: 14px;
}
.foot-inner nav { display: flex; gap: var(--s2); flex-wrap: wrap; }
.foot-inner a { color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  main { padding: var(--s4) 18px; gap: var(--s4); }
  .lead { font-size: 18px; }
  .card.feature, .toc { padding: 28px 22px; }
  .address code { font-size: 13px; padding: 12px; }
}
