:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #5f6368;
  --line: #e6e3de;
  --accent: #2f6fde;
  --accent-soft: #e8f0fd;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161618;
    --surface: #1f1f22;
    --text: #f2f2f4;
    --muted: #a1a1a8;
    --line: #2e2e33;
    --accent: #6a9cf4;
    --accent-soft: #1e2a40;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161618; --surface: #1f1f22; --text: #f2f2f4; --muted: #a1a1a8;
  --line: #2e2e33; --accent: #6a9cf4; --accent-soft: #1e2a40; 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, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
nav a { margin-left: 20px; color: var(--muted); font-size: 15px; }

.hero { padding-top: 72px; padding-bottom: 48px; text-align: center; }
.hero img.icon { width: 112px; height: 112px; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.hero h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.12; margin: 28px 0 14px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 600px; margin: 0 auto 28px; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600;
}
.button:hover { text-decoration: none; opacity: .92; }
.button.soon { background: var(--accent-soft); color: var(--accent); cursor: default; }
.hero .small { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; }

section { padding: 40px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 26px; margin: 0 0 20px; letter-spacing: -0.01em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.price { display: flex; flex-wrap: wrap; gap: 16px; }
.price .card { flex: 1 1 240px; }
.price .amount { font-size: 30px; font-weight: 700; margin: 4px 0 8px; color: var(--text); }

footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

/* Policy pages */
.doc { padding: 48px 0 24px; }
.doc h1 { font-size: 36px; margin: 0 0 6px; letter-spacing: -0.02em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.summary { background: var(--accent-soft); border-radius: 14px; padding: 18px 22px; }
.summary ul { margin: 6px 0 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
