:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1c1a21;
  --muted: #605c6b;
  --line: #e6e3ea;
  --accent: #6d3fc4;
  --accent-soft: #f1ebfb;
  --accent-text: #ffffff;
  --radius: 12px;
  --max: 1040px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141218;
    --surface: #1c1a22;
    --text: #eeecf4;
    --muted: #a8a4b5;
    --line: #2e2a36;
    --accent: #a585ee;
    --accent-soft: #261f36;
    --accent-text: #17131f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* hero */
.hero { padding-top: 72px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 18px; max-width: 16ch; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 54ch; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--surface);
}
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.small { font-size: 14px; color: var(--muted); }

/* flow */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 48px; }
.flow .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: 15px; }
.flow .box strong { display: block; margin-bottom: 2px; }
.flow .arrow { color: var(--muted); font-size: 22px; text-align: center; }
@media (max-width: 720px) {
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); }
}

section { padding: 56px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 30px; letter-spacing: -0.01em; margin: 0 0 8px; }
section > .wrap > p.sub { color: var(--muted); margin: 0 0 32px; max-width: 60ch; }

.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: var(--radius); padding: 20px; }
.card h3 { font-size: 17px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

ol.steps { padding-left: 20px; margin: 0; max-width: 62ch; }
ol.steps li { margin-bottom: 10px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 760px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.plan.pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan h3 { margin: 0; font-size: 18px; }
.price { font-size: 40px; font-weight: 700; margin: 8px 0 2px; letter-spacing: -0.02em; }
.price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 20px; margin: 16px 0 24px; flex: 1; }
.plan li { margin-bottom: 6px; font-size: 15px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 14px 0; max-width: 760px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* legal pages */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 36px; margin: 0 0 4px; }
.legal h2 { font-size: 21px; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0; }
.legal th, .legal td { text-align: left; border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.legal .table-scroll { overflow-x: auto; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--muted); }
.brand { white-space: nowrap; }
@media (max-width: 480px) {
  .top nav { gap: 14px; font-size: 14px; }
}
