:root {
  --bg: #07111f;
  --bg-2: #0e1a2e;
  --line: #1e2c44;
  --text: #e8eef6;
  --muted: #9fb0c6;
  --accent: #38bdf8;
  --accent-2: #7dd3fc;
  --ink: #04121c;
  --critical: #e5484d;
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent); }
a:hover { color: var(--accent-2); }

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

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .5px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

.site-footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Landing */
.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--accent-2); font-weight: 800; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; margin: 0 0 20px; letter-spacing: -1px; }
.lede { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(320px, 70vw); border-radius: 22%; box-shadow: 0 30px 80px rgba(56, 189, 248, .18); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 14px; font-weight: 700; text-decoration: none; border: 0; font-size: 16px; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-2); color: var(--ink); }
.btn-secondary { background: var(--bg-2); color: var(--text); border: 1px solid var(--line); }
.btn[disabled] { opacity: .5; cursor: default; }
.note { color: var(--muted); font-size: 14px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 8px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font-size: 28px; color: #fff; }
.stat span { color: var(--muted); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .ico { font-size: 22px; margin-bottom: 10px; display: block; }

.section-title { font-size: 28px; margin: 72px 0 8px; }
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; max-width: 640px; }
.price b { font-size: 32px; color: #fff; }
.badge { display: inline-block; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 800; border-radius: 6px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }

/* Documents */
.doc { padding: 48px 0 0; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { font-size: 22px; margin: 40px 0 8px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: #cdd8e6; }
.doc .updated { color: var(--muted); margin-top: -8px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 700; white-space: nowrap; }
.callout { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
details { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; }

/* Unsubscribe */
.center-card { max-width: 480px; margin: 72px auto 0; text-align: center; }
.center-card .btn { width: 100%; margin-top: 16px; }
#status { min-height: 1.6em; margin-top: 16px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { order: -1; justify-content: flex-start; }
  .hero-art img { width: 120px; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .nav a.hide-sm { display: none; }
}
