:root {
  --bg: #ffffff;
  --bg-soft: #f5f7ff;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #526078;
  --line: #e3e8f4;
  --primary: #4f74f0;
  --primary-strong: #3a5bd0;
  --primary-soft: #e8eeff;
  --accent: #14b8a6;
  --warn: #f59e0b;
  --shadow: 0 20px 50px -20px rgba(45, 72, 160, 0.35);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-soft: #10172c;
    --surface: #131b33;
    --text: #eef2ff;
    --muted: #9aa8c7;
    --line: #232d4d;
    --primary: #7b9bff;
    --primary-strong: #93adff;
    --primary-soft: #1a2547;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
section { padding: 88px 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--primary); outline-offset: 2px;
}
.btn-primary { background: var(--primary-strong); color: #fff; box-shadow: 0 10px 24px -10px var(--primary-strong); }
.btn-primary:hover { background: var(--primary); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #0b1020; } }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--bg-soft); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.links { display: flex; align-items: center; gap: 28px; }
.links a:not(.btn) { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none;
  }
  .nav.open .links { display: flex; }
  .links a:not(.btn) { padding: 12px 4px; }
  .links .btn { margin-top: 8px; }
}

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1000px 500px at 80% -10%, var(--primary-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-strong); font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: block; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--primary-strong), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: var(--muted); font-size: 1.18rem; margin: 22px 0 30px; max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

/* Dashboard mockup */
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
}
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi small { color: var(--muted); font-size: 0.72rem; display: block; }
.kpi b { font-size: 1.15rem; display: block; margin-top: 2px; }
.kpi .up { color: #16a34a; font-size: 0.72rem; font-weight: 600; }
.chart-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 8px; }
.chart-card header { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }
.chart-card header b { color: var(--text); }
.chart-card svg { width: 100%; height: 120px; }
.rows { display: grid; gap: 8px; }
.row { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.tag { font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #dcfce7; color: #166534; }
.tag.due { background: #fef3c7; color: #92400e; }
.mock-caption { text-align: center; font-size: 0.75rem; color: var(--muted); margin-top: 10px; }

/* Strip */
.strip { padding: 28px 0; border-block: 1px solid var(--line); background: var(--bg-soft); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.strip span::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 800; }

/* Features */
.grid { display: grid; gap: 20px; }
.grid.f { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .grid.f { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.f { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-strong);
  display: grid; place-items: center; margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* Split sections */
.soft { background: var(--bg-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-text { order: 2; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.rev .split-text { order: 0; } }
.split-text h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 16px; }
.split-text > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-strong); font-size: 0.8rem; font-weight: 800; margin-top: 1px;
}

/* Bill preview / store preview */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.bill h4 { margin: 0 0 2px; font-size: 1.05rem; }
.bill .sub { color: var(--muted); font-size: 0.8rem; margin-bottom: 14px; }
.bill table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.bill th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .05em; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bill td { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.bill td:last-child, .bill th:last-child { text-align: right; }
.bill .tot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.bill .tot.big { color: var(--text); font-weight: 800; font-size: 1.1rem; border-top: 2px solid var(--line); padding-top: 10px; }
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.p { border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 0.78rem; }
.p .img { height: 64px; border-radius: 8px; background: linear-gradient(135deg, var(--primary-soft), var(--bg-soft)); margin-bottom: 8px; }
.p b { display: block; }
.p span { color: var(--muted); }
.store-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 700; }
.store-top small { font-weight: 500; color: var(--muted); }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; margin-bottom: 16px;
  background: var(--primary-strong); color: #fff; font-weight: 800;
}
@media (prefers-color-scheme: dark) { .step::before { color: #0b1020; } }
.step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { color: var(--muted); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 820px; margin-inline: auto; }
.pricing.single { grid-template-columns: 1fr; max-width: 440px; }
@media (max-width: 700px) { .pricing { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 34px 30px; display: flex; flex-direction: column; position: relative; }
.plan.pop { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary-strong); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 4px 14px; border-radius: 999px;
}
@media (prefers-color-scheme: dark) { .plan .badge { color: #0b1020; } }
.plan h3 { font-size: 1.3rem; }
.plan .desc { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.price { margin: 20px 0; font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
.price sup { font-size: 1.3rem; vertical-align: top; position: relative; top: 8px; margin-right: 2px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .checks { margin-bottom: 28px; flex: 1; }
.plan .btn { width: 100%; }
.price-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 24px; }

/* FAQ */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 18px; }

/* CTA */
.cta {
  border-radius: 28px; padding: 64px 32px; text-align: center; color: #fff;
  background: radial-gradient(600px 300px at 90% 0%, rgba(20, 184, 166, .45), transparent 70%), linear-gradient(135deg, #2f4bb8, #4f74f0);
}
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta p { margin: 14px auto 28px; max-width: 560px; opacity: .92; font-size: 1.1rem; }
.cta .cta-row { justify-content: center; }
.cta .btn-primary { background: #fff; color: #2f4bb8; box-shadow: none; }
.cta .btn-primary:hover { background: #eef2ff; }
.cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 32px; color: var(--muted); font-size: 0.93rem; }
.foot { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.foot .brand { color: var(--text); margin-bottom: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a:hover { color: var(--text); }
.copy { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.85rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
@media (max-width: 600px) { section { padding: 64px 0; } .kpis { grid-template-columns: 1fr 1fr; } .kpis .kpi:last-child { display: none; } }

/* ---- Product deep-dive additions ---- */
.checks.cols { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
@media (max-width: 700px) { .checks.cols { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.chip.on { background: var(--primary-soft); color: var(--primary-strong); border-color: transparent; }
.mods { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto 44px; }
.mods a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9rem; color: var(--muted); }
.mods a:hover { color: var(--text); border-color: var(--primary); }
.split-text h3 { font-size: 1.05rem; margin: 22px 0 10px; }
.mini { width: 100%; border-collapse: collapse; font-size: .82rem; }
.mini th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.mini td { padding: 9px 8px 9px 0; border-bottom: 1px dashed var(--line); }
.mini .low { color: #d97706; font-weight: 700; }
.mini .ok { color: #16a34a; font-weight: 600; }
.tabs-mock { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tabs-mock span { font-size: .75rem; font-weight: 600; padding: 6px 11px; border-radius: 8px; background: var(--bg-soft); color: var(--muted); }
.tabs-mock span.on { background: var(--primary-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .tabs-mock span.on { color: #0b1020; } }
.bars { display: grid; gap: 10px; }
.bar { font-size: .78rem; }
.bar div { height: 8px; border-radius: 6px; background: var(--primary-soft); margin-top: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: 6px; }
.bar.g i { background: var(--accent); }
.bar span { display: flex; justify-content: space-between; color: var(--muted); }
.widgets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.widget { border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: .78rem; color: var(--muted); }
.widget b { display: block; color: var(--text); font-size: 1.05rem; margin-top: 2px; }
.more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 920px) { .more { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .more { grid-template-columns: 1fr; } }
.more div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.more b { display: block; margin-bottom: 4px; }
.more span { color: var(--muted); font-size: .9rem; }
