/* Shared by the public pages (site/). The palette matches webapp/public/privacy.html so
   the policy and the website look like one product. */
:root {
  --bg: #ffffff; --text: #16181d; --muted: #5d636e; --border: #e2e4e8; --accent: #2458e6;
  --note: #f3f5f9; --accent-text: #ffffff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171b; --text: #e8eaee; --muted: #9aa0ab; --border: #30343c; --accent: #7d9bf7;
    --note: #1e2127; --accent-text: #15171b;
  }
}
:root[data-theme="dark"] {
  --bg: #15171b; --text: #e8eaee; --muted: #9aa0ab; --border: #30343c; --accent: #7d9bf7;
  --note: #1e2127; --accent-text: #15171b;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
.muted { color: var(--muted); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* Header and footer, on every page. */
header.site {
  border-bottom: 1px solid var(--border); padding: 16px 0;
  position: sticky; top: 0; background: var(--bg); z-index: 1;
}
header.site .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { font-weight: 650; font-size: 18px; color: var(--text); text-decoration: none; }
header.site nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
footer.site {
  border-top: 1px solid var(--border); margin-top: 56px; padding: 28px 0 48px;
  color: var(--muted); font-size: 15px;
}
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }

/* Headings and body copy. */
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.01em; }
h2 { font-size: 22px; margin: 44px 0 10px; }
h3 { font-size: 17px; margin: 22px 0 4px; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }
li { margin: 5px 0; }
section { scroll-margin-top: 76px; }

/* Landing page. */
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 40px; max-width: 18em; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 34em; margin-bottom: 24px; }
.cta {
  display: inline-block; background: var(--accent); color: var(--accent-text);
  text-decoration: none; font-weight: 600; padding: 11px 20px; border-radius: 8px;
}
.cta.secondary { background: transparent; color: var(--accent); border: 1px solid var(--border); }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.card h3 { margin: 0 0 4px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.step { counter-increment: step; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { display: flex; gap: 14px; margin: 0 0 16px; }
.steps .n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--note);
  border: 1px solid var(--border); display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
}
.price { border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; background: var(--note); }
.price .amount { font-size: 32px; font-weight: 650; }
.price .amount span { font-size: 17px; font-weight: 400; color: var(--muted); }
.note {
  background: var(--note); border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 18px; margin: 20px 0;
}
.note :last-child { margin-bottom: 0; }

/* Legal pages: tighter, with rules between sections. */
.legal main { max-width: 760px; }
.legal h2 {
  font-size: 20px; margin: 36px 0 8px; padding-top: 12px; border-top: 1px solid var(--border);
}
main.wrap { padding-top: 32px; padding-bottom: 8px; }

@media (max-width: 560px) {
  .hero { padding-top: 8px; }
  .hero h1 { font-size: 31px; }
  h1 { font-size: 28px; }
}
