:root {
  --bg: #ffffff;
  --bg-soft: #f6f5fb;
  --text: #1d1633;
  --muted: #5f5a73;
  --line: #e6e3f0;
  --accent: #6b5ce7;
  --accent-2: #e25aab;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(60, 40, 140, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13101f;
    --bg-soft: #1a1629;
    --text: #f2effc;
    --muted: #a9a3c2;
    --line: #2b2540;
    --accent: #9a8cff;
    --accent-2: #f07fc0;
    --card: #1d1830;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { 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", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.site { display: flex; white-space: nowrap; }
nav.site a {
  color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px;
}
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero .icon {
  width: 120px; height: 120px; border-radius: 27px;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(34px, 6vw, 52px); line-height: 1.1; letter-spacing: -0.03em;
  margin: 28px 0 14px;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  max-width: 620px; margin: 0 auto 28px;
  font-size: 20px; color: var(--muted);
}
.pill {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 600; text-decoration: none; font-size: 16px;
}
.pill.ghost {
  background: transparent; color: var(--text); border: 1px solid var(--line);
}
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Sections */
section { padding: 48px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.2; }
h3 { font-size: 19px; margin: 28px 0 6px; letter-spacing: -0.01em; }
.sub { color: var(--muted); margin: 0 0 28px; }

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.plan { text-align: center; }
.plan .price { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0; }
.plan .per { color: var(--muted); font-size: 14px; }
.plan .tag { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--accent); font-weight: 600; }

.fine { color: var(--muted); font-size: 14px; }

/* Document pages (privacy, support) */
main.doc { padding: 48px 0 72px; }
main.doc h1 { font-size: clamp(30px, 5vw, 40px); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 6px; }
main.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
main.doc h2 { font-size: 22px; margin: 40px 0 8px; }
main.doc p, main.doc li { max-width: 70ch; }
main.doc ul { padding-left: 22px; }
main.doc li { margin: 6px 0; }
.callout {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 20px; margin: 20px 0;
}
.callout p { margin: 0; }
table.data {
  border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px;
}
table.data th, table.data td {
  text-align: left; vertical-align: top; padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
table.data th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.table-scroll { overflow-x: auto; }

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

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

@media (max-width: 400px) {
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  nav.site a { margin-left: 12px; font-size: 14px; }
}

@media (max-width: 560px) {
  .hero { padding: 48px 0 40px; }
  nav.site a { margin-left: 14px; }
}
