:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand: #2f5bea;
  --brand-dark: #1e3fb0;
  --radius: 14px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-alt: #121a2e;
    --text: #e8edf7;
    --muted: #9aa8c2;
    --line: #1f2a44;
    --brand: #6b8cff;
    --brand-dark: #8ea7ff;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--text); display: flex; align-items: center; gap: 10px; }
.logo:hover { text-decoration: none; color: var(--text); }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #8b5cf6);
  display: grid; place-items: center; color: #fff; font-size: 0.95rem; font-weight: 800;
}
nav.main { display: flex; gap: 22px; font-size: 0.95rem; }
nav.main a { color: var(--muted); }
nav.main a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { nav.main { gap: 14px; font-size: 0.88rem; } nav.main .hide-sm { display: none; } }

/* Hero */
.hero { padding: 96px 0 80px; }
.eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 20px; max-width: 820px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 0 32px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 0.98rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); margin-left: 10px; }
.btn-ghost:hover { text-decoration: none; background: var(--bg-alt); color: var(--text); }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); letter-spacing: -0.02em; margin: 0 0 14px; line-height: 1.2; }
.section-lead { color: var(--muted); max-width: 640px; margin: 0 0 44px; font-size: 1.05rem; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
section:not(.alt) .card { background: var(--bg-alt); }
.card h3 { margin: 14px 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.icon svg { width: 22px; height: 22px; }

.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.facts { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.facts li { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 0.96rem; }
.facts li:last-child { border-bottom: none; }
.facts span:first-child { color: var(--muted); }
.facts span:last-child { text-align: right; font-weight: 500; }

.contact-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; background: var(--bg-alt); }
.contact-box p { margin: 0 0 10px; }
.contact-box .big { font-size: 1.35rem; font-weight: 700; }

/* Legal pages */
.legal { padding: 64px 0 80px; max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.6rem); letter-spacing: -0.02em; margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 36px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 40px 0; font-size: 0.9rem; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer.site .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site .links a { color: var(--muted); }
footer.site strong { color: var(--text); }

/* ---------- v2 additions ---------- */
.nav-cta { background: var(--brand); color: #fff !important; padding: 7px 14px; border-radius: 8px; }
.nav-cta:hover { background: var(--brand-dark); }
.grad { background: linear-gradient(90deg, var(--brand), #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero { padding: 80px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .btn-ghost { margin-left: 0; }
.hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 0.92rem; }
.hero-points li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 8px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { display: none; } }

.hero-visual { position: relative; height: 460px; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 35%, transparent), transparent 70%); filter: blur(10px); }
.phone { position: relative; width: 220px; height: 440px; border-radius: 36px; background: #0f172a; padding: 10px; box-shadow: 0 30px 60px -20px rgba(15,23,42,.45); border: 1px solid #334155; }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 70px; height: 20px; border-radius: 12px; background: #000; z-index: 2; }
.phone-screen { height: 100%; border-radius: 28px; background: #f8fafc; padding: 44px 14px 14px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.ui-bar { height: 14px; width: 55%; border-radius: 6px; background: #cbd5e1; }
.ui-card { border-radius: 14px; }
.ui-a { height: 96px; background: linear-gradient(135deg, #2f5bea, #8b5cf6); }
.ui-b { height: 64px; background: #e2e8f0; }
.ui-row { display: flex; align-items: center; gap: 10px; }
.ui-dot { width: 28px; height: 28px; border-radius: 8px; background: #dbe4ff; flex: none; }
.ui-line { height: 10px; border-radius: 5px; background: #cbd5e1; flex: 1; }
.ui-line.short { flex: 0 0 55%; }
.ui-tabbar { position: absolute; bottom: 0; left: 0; right: 0; height: 46px; background: #fff; border-top: 1px solid #e2e8f0; display: flex; justify-content: space-around; align-items: center; }
.ui-tabbar span { width: 18px; height: 18px; border-radius: 5px; background: #cbd5e1; }
.ui-tabbar span:first-child { background: #2f5bea; }
.float-card { position: absolute; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: 0 12px 30px -12px rgba(15,23,42,.3); font-size: 0.82rem; display: flex; flex-direction: column; }
.float-card span { color: var(--muted); }
.fc-1 { top: 70px; left: 0; }
.fc-2 { bottom: 70px; right: 0; }

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding: 22px 20px; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; font-size: 0.95rem; }

.kicker { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand); margin-bottom: 10px; }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(15,23,42,.35); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 36px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: none; }
.steps li { border-top: 3px solid var(--brand); padding-top: 20px; }
.steps h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.step-n { font-size: 0.85rem; font-weight: 700; color: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.chips span { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 14px; font-size: 0.9rem; font-weight: 500; }

.value { padding: 4px 0 4px 18px; border-left: 2px solid var(--line); }
.value h3 { margin: 0 0 6px; font-size: 1.08rem; }
.value p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.faq-wrap { max-width: 820px; }
.faq-wrap h2 { margin-bottom: 28px; }
details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 0 20px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; color: var(--muted); }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 44px; border-radius: 20px; background: linear-gradient(135deg, #2f5bea, #7c3aed); color: #fff; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; opacity: .9; max-width: 520px; }
.btn-light { background: #fff; color: #1e3fb0; }
.btn-light:hover { background: #eef2ff; color: #1e3fb0; text-decoration: none; }
.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
.contact-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg-alt); }
.contact-item h3 { margin: 0 0 8px; font-size: 1rem; }
.contact-item p { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .cta-band { padding: 30px 24px; } }

.footer-grid { display: grid !important; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-grid h4 { color: var(--text); margin: 4px 0 12px; font-size: 0.92rem; }
.footer-grid a:not(.logo) { display: block; color: var(--muted); margin-bottom: 8px; }
.footer-grid p { margin: 10px 0 0; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 22px !important; display: block !important; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

.support-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 28px 0 8px; }
