:root {
  --navy: #102451;
  --blue: #315ed8;
  --ink: #152443;
  --muted: #64748b;
  --line: #e4eaf4;
  --pale: #f4f7fc;
  --white: #fff;
  --green: #24a37a;
  --shadow: 0 24px 70px rgba(18, 39, 82, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1160px, calc(100% - 44px)); margin: 0 auto; }

.topbar { position: sticky; z-index: 20; top: 0; height: 78px; border-bottom: 1px solid rgba(228, 234, 244, .75); background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); }
.topbar-inner, .brand, .nav, .nav-actions, .btn { display: flex; align-items: center; }
.topbar-inner { height: 100%; justify-content: space-between; gap: 24px; }
.brand { gap: 11px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: linear-gradient(145deg, #3769ed, #17387f); color: #fff; font: 700 27px/1 Georgia, serif; box-shadow: 0 7px 18px #315ed83b; }
.brand small { display: block; margin-top: 1px; color: #8391aa; font-size: 9px; letter-spacing: .19em; }
.nav { gap: 30px; color: #53617b; font-size: 13px; font-weight: 650; }
.nav a:hover, .footer a:hover { color: var(--blue); }
.nav-actions { gap: 12px; }
.btn { justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 11px; padding: 12px 18px; font-size: 13px; font-weight: 750; transition: .18s ease; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: white; box-shadow: 0 8px 20px #315ed834; }
.btn-primary:hover { background: #234fc5; }
.btn-outline { border-color: #d7e0f0; background: white; color: #273c69; }
.btn-white { background: white; color: var(--navy); box-shadow: 0 8px 24px #06194430; }

.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 88% 15%, #3159af 0, #1a3673 32%, transparent 65%), linear-gradient(115deg, #102451 0%, #152e65 64%, #1d3978 100%); color: white; }
.hero::before, .hero::after { position: absolute; top: -200px; right: -120px; width: 550px; height: 550px; border: 1px solid #ffffff14; border-radius: 50%; content: ""; pointer-events: none; }
.hero::after { top: -120px; right: -30px; width: 390px; height: 390px; }
.hero-grid { position: relative; z-index: 1; display: grid; min-height: 585px; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; padding: 78px 0 70px; }
.eyebrow { color: #b9c9ef; font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { max-width: 650px; margin: 18px 0; font-size: clamp(42px, 5.4vw, 68px); line-height: 1.03; letter-spacing: -.055em; }
.hero h1 em { color: #92b5ff; font-style: normal; }
.hero-copy { max-width: 550px; color: #d0daf0; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 30px 0 20px; }
.hero-note { color: #b7c6e6; font-size: 12px; }
.proof-points { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; color: #d7e2f8; font-size: 12px; }
.proof-points span::before { display: inline-grid; width: 19px; height: 19px; place-items: center; margin-right: 8px; border-radius: 50%; background: #ffffff1e; color: #79e0ba; content: "✓"; font-weight: 900; }
.dashboard-card { position: relative; max-width: 490px; margin-left: auto; padding: 18px; transform: rotate(1deg); border-radius: 19px; background: white; color: var(--ink); box-shadow: 0 35px 80px #07173666; }
.mock-top, .mock-bottom { display: flex; justify-content: space-between; align-items: center; }
.mock-top { padding: 3px 2px 14px; border-bottom: 1px solid var(--line); }
.mock-title { font-size: 12px; font-weight: 800; }
.mock-status { padding: 5px 9px; border-radius: 99px; background: #e9f7f2; color: #188566; font-size: 9px; }
.mock-caption { margin: 15px 0 8px; color: #8390a6; font-size: 10px; }
.mock-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-metric { padding: 12px; border: 1px solid var(--line); border-radius: 11px; }
.mock-metric small { display: block; color: #7a879e; font-size: 9px; }
.mock-metric b { font-size: 18px; letter-spacing: -.04em; }
.mock-chart { position: relative; overflow: hidden; height: 125px; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #f7f9fe, #fff); }
.mock-chart svg { width: 100%; height: 100%; }
.mock-bottom { margin-top: 12px; color: #73819a; font-size: 9px; }
.mock-pill { padding: 6px 9px; border-radius: 99px; background: #eef3ff; color: #315ed8; }

.strip { border-bottom: 1px solid var(--line); background: #fff; }
.strip-inner { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 24px 0; color: #71809a; font-size: 12px; }
.strip-inner b { color: #20385f; font-size: 12px; }
.strip-items { display: flex; flex-wrap: wrap; gap: 24px; }
.section { padding: 92px 0; }
.section-pale { background: var(--pale); }
.section-head { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.kicker { color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .19em; text-transform: uppercase; }
.section h2 { margin: 12px 0; color: var(--navy); font-size: clamp(30px, 4vw, 43px); line-height: 1.1; letter-spacing: -.045em; }
.section-head p { max-width: 590px; margin: 12px auto 0; color: var(--muted); font-size: 15px; }
.feature-grid, .audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.feature { min-height: 195px; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 5px 20px #112b5a06; }
.feature-icon { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 17px; border-radius: 12px; background: #edf2ff; color: var(--blue); font-size: 19px; }
.feature h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -.02em; }
.feature p { margin: 0; color: var(--muted); font-size: 13px; }
.workflow { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.workflow-card { padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.flow-row { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.flow-row:last-child { border-bottom: 0; }
.flow-num { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: #edf2ff; color: var(--blue); font-size: 12px; font-weight: 850; }
.flow-row b, .flow-row small { display: block; }
.flow-row b { font-size: 13px; }
.flow-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.benefits { display: grid; gap: 18px; margin-top: 24px; }
.benefit { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.benefit .check { color: var(--green); font-size: 18px; font-weight: 900; }
.benefit b { font-size: 14px; }
.benefit p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.pricing-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 14px; }
.plan { position: relative; padding: 27px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.plan.featured { transform: translateY(-8px); border: 2px solid var(--blue); box-shadow: 0 18px 48px #315ed81f; }
.popular { position: absolute; top: 17px; right: 17px; padding: 5px 9px; border-radius: 99px; background: #edf2ff; color: var(--blue); font-size: 9px; font-weight: 850; }
.plan-name { font-size: 15px; font-weight: 850; }
.plan-desc { min-height: 39px; margin: 7px 0 20px; color: var(--muted); font-size: 12px; }
.price-was { display: block; margin-bottom: 8px; color: #8793a7; font-size: 14px; font-weight: 650; letter-spacing: 0; text-decoration: line-through; }
.price { color: var(--navy); font-size: 35px; font-weight: 850; line-height: 1; letter-spacing: -.055em; }
.price small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.plan-limit { margin: 12px 0 18px; color: #4d5d77; font-size: 12px; }
.plan .btn { width: 100%; margin: 4px 0 20px; }
.plan ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.plan li { color: #586782; font-size: 12px; }
.plan li::before { margin-right: 9px; color: var(--green); content: "✓"; font-weight: 900; }
.pricing-note { margin-top: 24px; color: var(--muted); font-size: 11px; text-align: center; }
.audience { padding: 22px; border-left: 3px solid var(--blue); border-radius: 0 13px 13px 0; background: #fff; }
.audience h3 { margin: 0 0 7px; font-size: 15px; }
.audience p { margin: 0; color: var(--muted); font-size: 12px; }
.faq { display: grid; max-width: 760px; gap: 10px; margin: auto; }
.faq details { padding: 17px 20px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.faq summary { cursor: pointer; font-size: 13px; font-weight: 750; }
.faq p { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.final-cta { padding: 70px 0; background: linear-gradient(120deg, #102451, #254b9c); color: white; text-align: center; }
.final-cta h2 { max-width: 680px; margin: 12px auto; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.045em; }
.final-cta p { max-width: 590px; margin: 12px auto 24px; color: #d1ddf6; font-size: 14px; }
.footer { padding: 27px 0; background: #0d1e40; color: #aebcda; font-size: 11px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer .brand { color: white; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a:hover { color: white; }
.demo-grid { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:44px; }
.demo-copy { max-width:500px; color:var(--muted); font-size:14px; }
.demo-field { display:block; max-width:420px; margin:18px 0; color:var(--ink); font-size:12px; font-weight:700; }
.demo-field select,.demo-field input { display:block; width:100%; margin-top:7px; padding:12px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--ink); font:inherit; }
.demo-invoice { padding:28px; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:var(--shadow); }
.demo-invoice h3 { margin:18px 0; font-size:21px; }
.demo-invoice-row,.demo-total { display:flex; justify-content:space-between; gap:16px; padding:16px 0; border-bottom:1px solid var(--line); font-size:13px; }
.demo-total { margin-top:8px; border:0; font-size:16px; }
.demo-invoice small { color:var(--muted); font-size:11px; }
.referral-promo { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:38px; padding:36px; border:1px solid var(--line); border-radius:20px; background:linear-gradient(135deg,#f8faff,#fff); box-shadow:var(--shadow); }
.referral-promo h2 { margin:12px 0; color:var(--navy); font-size:clamp(27px,3vw,38px); line-height:1.1; }
.referral-promo p { color:var(--muted); font-size:14px; }
.referral-steps { display:grid; gap:12px; }
.referral-steps div { display:grid; gap:4px; padding:15px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.referral-steps span,.referral-steps small { color:var(--muted); font-size:12px; }
.referral-example { display:grid; gap:5px; padding:15px; border:1px solid #dbe5ff; border-radius:11px; background:#eef3ff; }
.referral-example b { color:var(--navy); }
.referral-panel { margin:18px 0; }
.referral-panel h2 { margin:6px 0; }
.referral-panel .panel-head p { max-width:700px; }
.referral-share { display:grid; grid-template-columns:1fr 2fr auto; gap:12px; align-items:end; margin:16px 0; }
.referral-share label { display:block; color:var(--muted); font-size:11px; font-weight:700; }
.referral-share input { display:block; width:100%; margin-top:6px; padding:10px; border:1px solid var(--line); border-radius:8px; background:#f8faff; color:var(--ink); }
.referral-stats { display:flex; flex-wrap:wrap; gap:10px 22px; margin:18px 0; color:var(--muted); font-size:12px; }
.import-summary { margin-bottom:10px; }
.import-summary .error-state { margin-left:8px; }
.success-state { color:#13835f; }
@media (max-width:700px) { .demo-grid,.referral-promo { grid-template-columns:1fr; gap:24px; } .referral-promo { padding:22px; } .referral-share { grid-template-columns:1fr; } }

@media (max-width: 900px) {
  .nav { gap: 16px; }
  .hero-grid { gap: 30px; }
  .hero h1 { font-size: 52px; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .plan { padding: 22px; }
}
@media (max-width: 700px) {
  .wrap { width: min(100% - 32px, 520px); }
  .topbar { height: 68px; }
  .nav, .nav-actions .btn-outline { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 35px; padding: 60px 0 48px; }
  .hero h1 { font-size: 45px; }
  .hero-copy { font-size: 15px; }
  .dashboard-card { margin: 0; transform: none; }
  .strip-inner { align-items: flex-start; flex-direction: column; }
  .strip-items { gap: 12px 18px; }
  .section { padding: 68px 0; }
  .feature-grid, .pricing-grid, .audience-grid { grid-template-columns: 1fr; }
  .feature { min-height: unset; }
  .workflow { grid-template-columns: 1fr; gap: 30px; }
  .plan.featured { transform: none; }
  .plan-desc { min-height: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .final-cta { padding: 58px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
