/* Shared styles for the public pages (front page and policies). */
:root {
  --bg: #f6f5f1; --surface: #ffffff; --ink: #1d1f22; --muted: #5d6167; --line: #dcd9d1;
  --accent: #1f5f4a; --accent-ink: #ffffff; --accent-soft: #e3efe9;
  --radius: 14px; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141517; --surface: #1d1f22; --ink: #ecebe7; --muted: #a3a6ab; --line: #34373b;
    --accent: #6fbf9f; --accent-ink: #0f1a16; --accent-soft: #1e2d27; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }

header.site { padding: max(20px, env(safe-area-inset-top)) 0 0; }
header.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
nav.top { display: flex; gap: 10px; align-items: center; }

.button { display: inline-block; border: 0; border-radius: 10px; padding: 11px 18px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button--quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button--small { padding: 8px 14px; font-size: 0.95rem; }

.hero { padding: 64px 0 40px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; max-width: 18ch; }
.hero p.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 56ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .small { color: var(--muted); font-size: 0.9rem; }

section.block { padding: 40px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: 1.5rem; letter-spacing: -0.01em; margin: 0 0 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.step-num { display: inline-flex; width: 28px; height: 28px; border-radius: 99px; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }

.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.97rem; }
.compare th, .compare td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.compare th { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.compare td.ok { color: var(--accent); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.scroll-x { overflow-x: auto; }

.pricing { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.price { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 2px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.card ul { margin: 12px 0 18px; padding-left: 20px; color: var(--muted); }
.card--featured { border: 2px solid var(--accent); }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--muted); margin: 10px 0 0; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 max(28px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 0.9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer.site a { color: var(--muted); }

/* Policy pages */
.legal { padding: 40px 0 56px; }
.legal h1 { font-size: 2rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal .box { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
