:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-text: #ffffff;
  --soft: #eff6ff;
  --hero-a: #1d4ed8;
  --hero-b: #0ea5e9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --panel: #111827;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --border: #1f2937;
    --accent: #3b82f6;
    --soft: #172554;
    --hero-a: #1e3a8a;
    --hero-b: #0369a1;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--border); background: var(--panel); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-header nav { display: flex; gap: 18px; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 28px 0; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.button {
  display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; background: var(--accent); color: var(--accent-text);
}
.button.secondary { background: transparent; color: var(--accent); border-color: currentColor; }
.button.light { background: #fff; color: #1d4ed8; }
.button.ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); }
.button[aria-disabled="true"] { opacity: .75; cursor: default; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--hero-a), var(--accent) 50%, var(--hero-b)); color: #fff; padding: 64px 0 0; overflow: hidden; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em; max-width: 760px; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 21px); margin: 0 0 28px; max-width: 640px; opacity: .95; }
.hero code { background: rgba(255, 255, 255, .18); color: #fff; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hero .note { font-size: 14px; opacity: .85; margin: 0 0 40px; }
.hero .shot { border-radius: 12px 12px 0 0; box-shadow: 0 20px 60px rgba(15, 23, 42, .45); }

/* Sections */
section { padding: 64px 0 0; }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.section-lead { color: var(--muted); font-size: 18px; margin: 0 0 32px; max-width: 640px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); }

.gallery { display: grid; gap: 28px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 10px; border: 1px solid var(--border); }
.gallery figcaption { color: var(--muted); font-size: 15px; margin-top: 8px; }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plan { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); }
.plan h3 { margin: 0; font-size: 20px; }
.plan .price { font-size: 38px; font-weight: 800; margin: 10px 0 0; letter-spacing: -.02em; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .per { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.plan ul { padding-left: 20px; margin: 0 0 24px; flex: 1; }
.plan li { margin-bottom: 6px; }
.plan .button { text-align: center; }

.privacy-band { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.privacy-band ul { margin: 0; padding-left: 20px; }
.privacy-band li { margin-bottom: 6px; }

.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Policy pages */
.policy { padding-top: 40px; }
.policy .card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 32px clamp(20px, 5vw, 40px); }
.policy h1 { font-size: clamp(26px, 4vw, 32px); line-height: 1.25; margin: 0 0 4px; }
.policy .updated { color: var(--muted); margin: 0 0 28px; font-size: 14px; }
.policy h2 { font-size: 19px; margin: 28px 0 6px; }
.policy p, .policy ul { margin: 0 0 12px; }
.policy ul { padding-left: 22px; }
.policy li { margin-bottom: 4px; }
.summary { border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; font-size: 17px; }
