:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #121826;
  --muted: #5b6474;
  --border: #dde3ea;
  --accent: #1f6fe0;
  --accent-ink: #ffffff;
  --accent-soft: #e5efff;
  --good: #1a8a4c;
  --good-soft: #e3f5ea;
  --warn: #b26b00;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(18, 24, 38, .05), 0 8px 24px rgba(18, 24, 38, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #171b22;
    --surface-2: #1f252e;
    --text: #eef1f5;
    --muted: #9aa4b2;
    --border: #2a313c;
    --accent: #5b9bff;
    --accent-ink: #0b1220;
    --accent-soft: #1b2a44;
    --good: #4cc384;
    --good-soft: #15301f;
    --warn: #f0b04d;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
nav.main { margin-left: auto; display: flex; gap: 20px; font-size: 15px; }
nav.main a { color: var(--muted); text-decoration: none; }
nav.main a:hover { color: var(--text); }
@media (max-width: 720px) { nav.main a:not(.cta) { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; border: 0; cursor: pointer;
  font-size: 16px;
}
.btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
nav.main a.cta { color: var(--accent); font-weight: 600; }

/* Hero */
.hero { padding: 72px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; margin: 10px 0 18px; letter-spacing: -.02em; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Phone mockup */
.phone {
  width: 300px; max-width: 100%; margin: 0 auto; border-radius: 42px; padding: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.screen { border-radius: 30px; background: var(--bg); padding: 22px 16px 16px; }
.screen .title { font-size: 26px; font-weight: 800; margin: 0; }
.screen .date { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.card.accent { background: var(--accent-soft); border-color: transparent; }
.card .k { font-size: 12px; color: var(--muted); }
.card .big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.card .row { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); }
.actions-mini { display: flex; justify-content: space-between; padding: 6px 4px 2px; }
.actions-mini span { display: grid; justify-items: center; gap: 4px; font-size: 11.5px; }
.actions-mini i { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-style: normal; font-weight: 700; color: var(--accent); }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
.section-lead { color: var(--muted); max-width: 40em; margin: 0 0 32px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
section.alt .feature { background: var(--bg); }
.feature .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 20px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 22px 22px 22px 70px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 22px; top: 22px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.step h3 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Calculators */
.calcs { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 880px) { .calcs { grid-template-columns: 1fr; } }
.calc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
section.alt .calc { background: var(--bg); }
.calc h3 { margin: 0 0 4px; }
.calc .hint { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select {
  font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); width: 100%;
}
.inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle label { flex: 1; min-width: 140px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-weight: 500; cursor: pointer; }
.result { margin-top: 6px; padding: 16px; border-radius: 12px; background: var(--good-soft); }
.result .big { font-size: 30px; font-weight: 800; color: var(--good); letter-spacing: -.02em; }
.result .breakdown { font-size: 14px; color: var(--muted); margin-top: 4px; }
.warn { color: var(--warn); font-size: 14px; margin-top: 8px; }

/* Pricing */
.pricing { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; max-width: 820px; }
@media (max-width: 720px) { .pricing { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.plan.pro { border: 2px solid var(--accent); }
.plan .price { font-size: 34px; font-weight: 800; margin: 6px 0 2px; }
.plan .per { color: var(--muted); font-size: 14px; }
.plan ul { padding-left: 20px; margin: 16px 0 0; }
.plan li { margin: 6px 0; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
section.alt details { background: var(--bg); }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 2px; }

/* Legal pages */
.legal { max-width: 780px; padding: 48px 20px 72px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--border); }
.legal th { background: var(--surface-2); }
.legal li { margin: 6px 0; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
footer.site .copy { margin-left: auto; }

[hidden] { display: none !important; }
.field input[type=radio], .field input[type=checkbox] { width: auto; padding: 0; margin: 0; accent-color: var(--accent); flex: none; }
.toggle label { justify-content: flex-start; text-align: left; line-height: 1.3; }
