:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --fg: #111113;
  --muted: #5f5f66;
  --line: #e6e4df;
  --accent: #2f45d8;
  --radius: 14px;
  --wrap: 760px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --surface: #151518;
    --fg: #ededef;
    --muted: #9a9aa3;
    --line: #26262b;
    --accent: #8fa0ff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--fg); text-decoration: none; font-weight: 650; letter-spacing: -0.01em;
}
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--fg); }

/* Sections */
section { padding: 64px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}

h1, h2, h3 { letter-spacing: -0.022em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 700; }
h2 { font-size: clamp(26px, 4vw, 32px); font-weight: 680; margin-bottom: 14px; }
h3 { font-size: 20px; font-weight: 650; }

.lead { font-size: 19px; color: var(--muted); max-width: 600px; margin: 20px 0 0; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--fg);
}
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-ghost { color: var(--fg); border-color: var(--line); }
.btn:hover { text-decoration: none; opacity: 0.88; }

/* Product card */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tag {
  font-size: 12px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.card p { color: var(--muted); margin-top: 12px; }

.list { list-style: none; padding: 0; margin: 18px 0 0; }
.list li { padding: 8px 0 8px 22px; position: relative; }
.list li::before {
  content: ""; position: absolute; left: 2px; top: 17px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--fg); opacity: 0.35;
}

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.plan b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.plan span { font-size: 14px; color: var(--muted); }
.fineprint { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Key/value rows */
.rows { margin: 8px 0 0; border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 180px 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.row dt { color: var(--muted); font-size: 15px; }
.row dd { margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.grid-3 h3 { font-size: 17px; margin-bottom: 6px; }
.grid-3 p { color: var(--muted); font-size: 15px; margin: 0; }

/* Legal pages */
.legal { padding: 56px 0 72px; }
.legal h1 { font-size: clamp(30px, 5vw, 40px); }
.legal .updated { color: var(--muted); font-size: 15px; margin: 12px 0 36px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal ul { padding-left: 20px; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.callout {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
  padding: 18px 20px; margin: 0 0 24px;
}
.callout p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 16px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  section { padding: 48px 0; }
  .hero { padding: 56px 0 48px; }
  .card { padding: 22px; }
  .plans { grid-template-columns: 1fr; }
  .plan { display: flex; align-items: baseline; justify-content: space-between; }
  .row { grid-template-columns: 1fr; gap: 2px; }
  .grid-3 { grid-template-columns: 1fr; gap: 18px; }
}
