@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Manrope:wght@400;500;600&display=swap');
:root {
  --primary: #5E2B9A;
  --primary-dark: #4D237E;
  --primary-darker: #3A1B5F;
  --primary-light: #ECE6F3;
  --primary-glass: rgba(94, 43, 154, .08);

  --success: #1C882D;
  --success-light: #E4F1E6;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --purple: #5E2B9A;
  --orange: #E56200;

  --text: #1A1A1F;
  --text-secondary: #55555c;
  --text-muted: #86868f;

  --bg: #F7F6F3;
  --bg-card: #ffffff;

  --border: #E4E2DC;
  --border-strong: #CFCCC3;

  --r-xs: 4px;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --sh: 0 4px 6px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --sh-lg: 0 10px 25px rgba(0,0,0,.09), 0 4px 8px rgba(0,0,0,.04);

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  --font-heading: 'Space Grotesk', var(--font);
  --font-mono: 'Consolas', 'SF Mono', 'Fira Code', monospace;
}
* , *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--font-heading); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--r-sm); font-weight: 700; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; transition: all .15s;
  font-family: var(--font); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(94,43,154,.28); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 18px rgba(94,43,154,.36); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary-darker); }
.btn-white:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; flex-wrap: wrap; row-gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; font-family: var(--font-heading); }
.brand-logo-bg { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: var(--r-sm); padding: 4px 8px; }
.brand-icon { width: 52px; height: 52px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-nav { padding: 9px 16px; }
.cta-short { display: none; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ── Hero: ledger-lines instead of blurred blobs, diagonal cut instead of a straight seam ── */
.hero {
  position: relative; overflow: visible;
  background: linear-gradient(160deg, var(--primary-darker) 0%, var(--primary) 62%, #6E3AAE 100%);
  color: #fff; padding: 64px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 1px, transparent 1px, transparent 46px);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
.hero-diagonal {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 64px;
  background: var(--bg); clip-path: polygon(0 100%, 100% 40%, 100% 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: var(--r-xs);
  font-size: 12px; font-weight: 700; letter-spacing: .3px; margin-bottom: 20px;
}
.hero h1 { font-size: 39px; line-height: 1.16; margin: 0 0 18px; font-weight: 700; letter-spacing: -.5px; }
.hero h1 .accent { color: #D9C7EC; }
.hero p.lead { font-size: 17px; color: rgba(255,255,255,.88); margin: 0 0 30px; max-width: 560px; }
.hero-trial {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  background: rgba(229,98,0,.22); border: 1px solid rgba(255,178,102,.5); color: #FFD9B3;
  padding: 8px 14px; border-radius: var(--r-xs); font-size: 13px; font-weight: 700;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.8); }
.hero-trust span { display: flex; align-items: center; gap: 6px; }

/* Console mockup — mirrors the real app's own chrome (topbar/stat cells/insight cards) instead
   of a generic illustrated "dashboard" graphic, so it reads as the actual product. */
.console { background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-lg); overflow: hidden; color: var(--text); }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: #f6f5f2; border-bottom: 1px solid var(--border); }
.console-dot { width: 8px; height: 8px; border-radius: 50%; }
.console-url { margin-left: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.console-body { padding: 18px 18px 20px; }
.console-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.console-stat { background: var(--bg); border-radius: var(--r); padding: 10px 12px; }
.console-stat b { display: block; font-size: 16px; font-weight: 800; font-family: var(--font-mono); }
.console-stat span { font-size: 10.5px; color: var(--text-muted); }
.console-ins { display: flex; flex-direction: column; gap: 8px; }
.c-ins { display: flex; gap: 9px; padding: 9px 11px; border-radius: var(--r-sm); border-left: 3px solid; font-size: 12px; line-height: 1.45; background: var(--bg); }
.c-ins b { flex-shrink: 0; font-weight: 800; }
.c-ins-crit { border-color: var(--danger); } .c-ins-crit b { color: var(--danger); }
.c-ins-warn { border-color: var(--warning); } .c-ins-warn b { color: var(--warning); }
.c-ins-opp  { border-color: var(--success); } .c-ins-opp  b { color: var(--success); }

/* ── Sections ── */
.section { padding: 84px 0; }
.section-alt { background: #fff; }
.eyebrow { color: var(--primary); font-weight: 800; font-size: 12.5px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: 30px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 14px; }
.section-sub { color: var(--text-secondary); font-size: 15.5px; max-width: 680px; margin: 0 0 32px; }

/* compact icon cards — competitive-advantages grid */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; transition: box-shadow .15s, transform .15s; }
.feature-card:hover { box-shadow: var(--sh); transform: translateY(-2px); }
.feature-icon { width: 38px; height: 38px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.feature-card h3 { font-size: 14.5px; margin: 0 0 6px; }
.feature-card p { font-size: 13px; color: var(--text-secondary); margin: 0; }
.ic-blue { background: var(--primary-light); color: var(--primary); }
.ic-green { background: var(--success-light); color: var(--success); }
.ic-orange { background: var(--danger-light); color: var(--danger); }
.ic-amber { background: var(--warning-light); color: var(--warning); }

/* insights spotlight */
.ins-note { max-width: 640px; margin: 0 0 24px; padding: 14px 18px; background: var(--primary-light); border-radius: var(--r); font-size: 13px; color: var(--primary-darker); }
.ins-note b { color: var(--primary); }
.ins-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 820px; }
@media (max-width: 640px) { .ins-cards { grid-template-columns: 1fr; } }
.ins-demo { display: flex; gap: 14px; background: var(--bg-card); border: 1px solid var(--border); border-left-width: 4px; border-left-style: solid; border-radius: var(--r-lg); padding: 16px 18px; }
.ins-demo-icon { width: 32px; height: 32px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ins-demo-icon svg { width: 17px; height: 17px; }
.ins-demo-head { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.ins-demo-title { font-weight: 700; font-size: 14px; }
.ins-demo-badge { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; padding: 2px 7px; border-radius: var(--r-xs); }
.ins-demo-desc { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.5; }
.ins-crit { border-left-color: var(--danger); } .ins-crit .ins-demo-icon { background: var(--danger-light); color: var(--danger); }
.ins-crit .ins-demo-badge { background: var(--danger-light); color: var(--danger); }
.ins-opp  { border-left-color: var(--success); } .ins-opp  .ins-demo-icon { background: var(--success-light); color: var(--success); }
.ins-opp  .ins-demo-badge { background: var(--success-light); color: var(--success); }

/* how it works — connected timeline instead of 4 identical boxes */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 820px) { .timeline { grid-template-columns: 1fr; } .timeline::before { display: none; } }
.timeline::before { content: ""; position: absolute; top: 17px; left: 8%; right: 8%; height: 2px; background: var(--border-strong); }
.tl-step { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 22px 22px; }
.tl-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px; font-size: 15px;
  font-family: var(--font-mono); position: relative; z-index: 1;
}
.tl-step h3 { font-size: 16px; margin: 0 0 8px; }
.tl-step p { font-size: 13.5px; color: var(--text-secondary); margin: 0; }

/* comparison — two receipt-style columns instead of a wide table */
.compare-note { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 24px; margin-bottom: 28px; font-size: 14px; color: var(--text-secondary); }
.compare-note b { color: var(--text); }
.ledger-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; }
@media (max-width: 760px) { .ledger-compare { grid-template-columns: 1fr; } .lc-vs { margin: 8px auto; } }
.lc-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.lc-card.hl { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glass); }
.lc-head { padding: 16px 20px; font-weight: 800; font-size: 13.5px; background: var(--bg); border-bottom: 1px solid var(--border); }
.lc-card.hl .lc-head { background: var(--primary); color: #fff; }
.lc-row { display: flex; flex-direction: column; gap: 3px; padding: 13px 20px; border-bottom: 1px dashed var(--border); font-size: 12.5px; }
.lc-row:last-child { border-bottom: none; }
.lc-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .3px; color: var(--text-muted); font-weight: 700; }
.lc-val { color: var(--text-secondary); }
.lc-val.chk { color: var(--success-dark, var(--success)); font-weight: 600; }
.lc-val.chk::before { content: "✓ "; font-weight: 800; }
.lc-val.dash::before { content: "— "; color: var(--text-muted); }
.lc-vs {
  align-self: center; width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; font-family: var(--font-mono);
}

/* final cta */
.final-cta {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary-darker), var(--primary));
  border-radius: var(--r-xl); padding: 56px 40px; text-align: center; color: #fff;
}
.final-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 1px, transparent 1px, transparent 40px);
}
.final-cta > * { position: relative; }
.final-cta h2 { font-size: 27px; margin: 0 0 12px; font-weight: 800; }
.final-cta p { color: rgba(255,255,255,.85); margin: 0 0 26px; font-size: 15px; }

/* faq */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 780px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 4px 20px; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative;
  font-weight: 700; font-size: 15px; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 14px; font-size: 20px; font-weight: 400;
  color: var(--primary); line-height: 1; transition: transform .15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--primary); }
.faq-item p { margin: 0 0 16px; color: var(--text-secondary); font-size: 14px; max-width: 66ch; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 34px 0; background: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a:hover { color: var(--primary); }

/* ── Responsive overrides (must stay last for cascade priority) ── */
@media (max-width: 560px) {
  .nav-inner { padding: 10px 16px; gap: 8px; }
  .nav-cta .btn-ghost { display: none; }
  .btn-nav { padding: 7px 12px; font-size: 12.5px; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 56px; }
  .hero-inner { gap: 32px; }
  .hero h1 { font-size: 25px; }
  .hero p.lead { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { flex-direction: column; gap: 10px; }
  .console-stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 52px 0; }
  .section-title { font-size: 22px; }
  .final-cta { padding: 40px 22px; }
  .final-cta h2 { font-size: 22px; }
}
