/* PreBuilt Profit — public sales funnel (v2). Self-contained, no framework. */

:root {
  --brand: #4f63b8;
  --brand-600: #405189;
  --brand-300: #8d9ce0;
  --brand-50: #eef1fb;
  --teal: #12c2a8;
  --teal-50: #e3f8f4;
  --ink: #0b1020;
  --ink-2: #111832;
  --text: #3b4459;
  --muted: #6b7489;
  --line: #e7e9f0;
  --line-dark: rgba(255, 255, 255, .09);
  --surface: #f6f7fb;
  --white: #fff;
  --warn: #c27c0e;
  --danger: #d9534f;
  --radius: 20px;
  --container: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(11, 16, 32, .04), 0 12px 32px -12px rgba(11, 16, 32, .12);
  --shadow-lg: 0 40px 80px -24px rgba(11, 16, 32, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.1; margin: 0; letter-spacing: -0.025em; font-weight: 650; }
h1, h2, h3 { text-wrap: balance; }
.head p, .hero-sub { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--teal); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section-sm { padding: 88px 0; }
.dark { background: var(--ink); color: rgba(255, 255, 255, .72); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.tint { background: var(--surface); }

/* Reveal on scroll (only when JS runs and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* Type helpers */
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 13px; font-weight: 550; color: var(--brand-600); background: var(--brand-50); border: 1px solid #dfe4f7; }
.kicker .k-dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(11, 16, 32, .08); }
.kicker .k-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.dark .kicker { color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .06); border-color: var(--line-dark); }
.dark .kicker .k-dot { background: rgba(255, 255, 255, .1); box-shadow: none; }
.head { max-width: 760px; margin-bottom: 56px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-top: 18px; }
.head p { margin-top: 18px; font-size: 1.125rem; color: var(--muted); }
.dark .head p { color: rgba(255, 255, 255, .62); }
.grad { background: linear-gradient(92deg, #a9b6ff 0%, #6fe3cf 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s, color .2s; }
.btn svg { width: 17px; height: 17px; transition: transform .2s; }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 8px 24px -8px rgba(79, 99, 184, .7); }
.btn-primary:hover { background: #5b70c9; color: #fff; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .35); }
.btn-glass { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .14); }
.btn-glass:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: #c9cee0; color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* ── Navigation (floating glass pill) ───────────────────────────── */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; padding: 0 16px; pointer-events: none; }
.nav { pointer-events: auto; max-width: 1080px; margin: 0 auto; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 10px 0 18px; border-radius: 999px; background: rgba(13, 19, 40, .62); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); transition: background .3s, border-color .3s, box-shadow .3s; }
.site-header.on-light .nav { background: rgba(255, 255, 255, .92); border-color: rgba(11, 16, 32, .08); box-shadow: 0 8px 30px -12px rgba(11, 16, 32, .18); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { color: #fff; }
.on-light .brand, .on-light .brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(140deg, #6175d1, #405189); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); flex: none; }
.brand-mark svg { width: 17px; height: 17px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: rgba(255, 255, 255, .72); font-size: 14.5px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.on-light .nav-links a { color: var(--text); }
.on-light .nav-links a:hover { color: var(--ink); background: rgba(11, 16, 32, .05); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-login { color: rgba(255, 255, 255, .8); font-size: 14.5px; font-weight: 550; padding: 8px 14px; }
.nav-login:hover { color: #fff; }
.on-light .nav-login, .on-light .nav-login:hover { color: var(--ink); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.on-light .nav-toggle { color: var(--ink); border-color: var(--line); }
.nav-toggle svg { width: 20px; height: 20px; }
.mobile-menu { pointer-events: auto; display: none; max-width: 1080px; margin: 10px auto 0; padding: 10px; border-radius: 22px; background: rgba(13, 19, 40, .95); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.mobile-menu.open { display: block; }
.mobile-menu a:not(.btn) { display: block; padding: 13px 14px; color: #fff; font-weight: 500; border-radius: 12px; }
.mobile-menu a:not(.btn):hover { background: rgba(255, 255, 255, .06); }
.mobile-menu .btn { margin-top: 8px; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { position: relative; padding: 168px 0 0; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 50% at 50% 0%, rgba(79, 99, 184, .55) 0%, rgba(79, 99, 184, 0) 70%),
  radial-gradient(40% 35% at 85% 30%, rgba(18, 194, 168, .18) 0%, rgba(18, 194, 168, 0) 70%),
  radial-gradient(35% 35% at 10% 40%, rgba(120, 90, 220, .16) 0%, rgba(120, 90, 220, 0) 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 20%, #000 0%, transparent 75%); }
.hero-copy { text-align: center; max-width: 1040px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.5rem, 5.9vw, 4.6rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 650; margin-top: 26px; color: #fff; }
.hero h1 .br { display: block; }
.hero-sub { margin: 26px auto 0; max-width: 660px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .66); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 26px; font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.hero-notes li { display: inline-flex; align-items: center; gap: 7px; }
.hero-notes svg { width: 15px; height: 15px; color: var(--teal); }

/* Product preview */
.stage { position: relative; margin: 72px auto 0; max-width: 1120px; padding: 0 8px; }
.stage::before { content: ""; position: absolute; left: 10%; right: 10%; top: -40px; height: 220px; background: radial-gradient(50% 60% at 50% 50%, rgba(98, 120, 220, .45), transparent 70%); filter: blur(30px); z-index: 0; }
.app { position: relative; z-index: 1; border-radius: 18px 18px 0 0; padding: 1px 1px 0; background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .04) 60%); box-shadow: var(--shadow-lg); }
.app-inner { border-radius: 17px 17px 0 0; background: #fff; overflow: hidden; display: grid; grid-template-columns: 200px 1fr; min-height: 470px; }
.app-side { background: #f7f8fc; border-right: 1px solid var(--line); padding: 16px 12px; }
.app-side .ab { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); font-size: 13px; padding: 4px 8px 16px; }
.app-side .ab .brand-mark { width: 22px; height: 22px; border-radius: 6px; }
.app-side .ab .brand-mark svg { width: 13px; height: 13px; }
.side-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.side-item svg { width: 15px; height: 15px; }
.side-item.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(11, 16, 32, .06), 0 0 0 1px var(--line); }
.app-main { padding: 20px 22px; background: #fff; }
.app-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.app-top h4 { font-size: 15px; letter-spacing: -0.01em; }
.app-top .live { font-size: 11.5px; color: #0a8f7c; background: var(--teal-50); padding: 4px 10px; border-radius: 999px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.app-top .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(18, 194, 168, .2); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.kpi span { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.kpi b { display: block; font-size: 18px; color: var(--ink); letter-spacing: -0.02em; margin-top: 4px; }
.kpi em { font-style: normal; font-size: 11px; color: #0a8f7c; font-weight: 600; }
.app-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; margin-top: 12px; }
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.panel-h { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.panel-h small { color: var(--muted); font-weight: 500; }
.prow { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #f1f2f7; font-size: 12px; }
.prow:first-of-type { border-top: 0; }
.thumb { width: 28px; height: 28px; border-radius: 7px; }
.t1 { background: linear-gradient(135deg, #ffb35c, #f06548); }
.t2 { background: linear-gradient(135deg, #6f8cff, #405189); }
.t3 { background: linear-gradient(135deg, #2fd3b9, #2a9bd6); }
.t4 { background: linear-gradient(135deg, #c48cff, #7b5ce0); }
.pname { color: var(--ink); font-weight: 600; line-height: 1.25; }
.pname small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }
.pprice { font-weight: 650; color: var(--ink); text-align: right; }
.pprice small { display: block; font-size: 10.5px; color: #0a8f7c; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.c-live { background: var(--teal-50); color: #0a8f7c; }
.c-draft { background: #fdf4e3; color: var(--warn); }
.c-queue { background: var(--brand-50); color: var(--brand-600); }
.timeline li { position: relative; padding: 0 0 12px 22px; font-size: 12px; color: var(--text); }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-50); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.pending::before { background: #fff; border: 2px solid #c8cde0; box-shadow: none; }
.timeline small { display: block; color: var(--muted); font-size: 11px; }
.guard { margin-top: 10px; display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; background: linear-gradient(180deg, #f5f7ff, #fff); border: 1px solid #dfe4f7; font-size: 11.5px; color: var(--text); }
.guard svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 1px; }
.guard b { color: var(--ink); display: block; font-size: 12px; }
.stage-caption { position: relative; z-index: 1; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .42); padding: 14px 0 28px; }

/* ── Before / after ─────────────────────────────────────────────── */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ba-card { border-radius: var(--radius); padding: 34px; border: 1px solid var(--line); background: #fff; }
.ba-card h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ba-card h3 .pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: 0; }
.ba-before .pill { background: #fdeeee; color: var(--danger); }
.ba-after { background: linear-gradient(180deg, #fbfcff, #f2f5ff); border-color: #dfe4f7; }
.ba-after .pill { background: var(--teal-50); color: #0a8f7c; }
.ba-list { margin-top: 22px; display: grid; gap: 16px; }
.ba-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.ba-list .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.ba-list .ic svg { width: 15px; height: 15px; }
.ba-before .ic { background: #fdeeee; color: var(--danger); }
.ba-after .ic { background: var(--teal-50); color: #0a8f7c; }
.ba-list b { display: block; color: var(--ink); font-weight: 600; font-size: .98rem; }
.ba-list span { display: block; color: var(--muted); font-size: .92rem; margin-top: 2px; }

/* ── Steps ──────────────────────────────────────────────────────── */
.steps { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.steps::before { content: ""; position: absolute; top: 23px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, rgba(79, 99, 184, 0), rgba(79, 99, 184, .5) 15%, rgba(18, 194, 168, .55) 85%, rgba(18, 194, 168, 0)); }
.step { position: relative; text-align: center; padding: 0 4px; }
.step-node { position: relative; z-index: 1; width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--brand); }
.step-node svg { width: 20px; height: 20px; }
.step-num { display: block; margin-top: 18px; font-size: 12px; font-weight: 600; color: var(--brand); letter-spacing: .04em; }
.step h3 { font-size: 1rem; margin-top: 6px; letter-spacing: -0.01em; }
.step p { margin-top: 8px; font-size: .9rem; color: var(--muted); }

/* ── Bento features ─────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cell { position: relative; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); padding: 28px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, box-shadow .25s, transform .25s; }
.cell:hover { border-color: #d5daea; box-shadow: var(--shadow); transform: translateY(-2px); }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.span-6 { grid-column: span 6; }
.cell-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.cell-ic svg { width: 19px; height: 19px; }
.cell h3 { font-size: 1.28rem; margin-top: 18px; }
.cell > p { margin-top: 8px; color: var(--muted); }
.ticks { margin-top: 18px; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; font-size: .92rem; color: var(--text); }
.ticks svg { width: 17px; height: 17px; color: var(--teal); flex: none; margin-top: 3px; }
.tag { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 600; color: var(--brand-600); background: var(--brand-50); border-radius: 999px; padding: 1px 8px; vertical-align: 1px; white-space: nowrap; }
.viz { margin-top: auto; padding-top: 22px; }
.viz-box { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); padding: 14px; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; }
.src { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.src i { width: 8px; height: 8px; border-radius: 50%; }
.arrowline { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--muted); font-weight: 500; }
.arrowline .bar { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-300), var(--teal)); }
.stores-mini { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.store-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink); }
.store-pill svg { width: 13px; height: 13px; color: #0a8f7c; }
.margin-viz .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.margin-viz .row b { color: var(--ink); }
.meter { position: relative; height: 10px; border-radius: 999px; background: #e9ebf3; margin: 14px 0 10px; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 64%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-300), var(--brand)); }
.meter u { position: absolute; top: -5px; bottom: -5px; left: 38%; width: 3px; border-radius: 2px; background: var(--danger); box-shadow: 0 0 0 2px var(--surface); text-decoration: none; }
.margin-viz .note { font-size: 11.5px; color: #0a8f7c; font-weight: 600; }
.stock-viz li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid #eceef5; font-size: 12px; color: var(--ink); font-weight: 500; }
.stock-viz li:first-child { border-top: 0; }
.stock-viz small { color: var(--muted); font-weight: 500; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--teal), #0fa58f); opacity: .85; }
.bars i:nth-child(odd) { background: linear-gradient(180deg, var(--brand-300), var(--brand)); }
.pl { display: grid; gap: 4px; margin-top: 12px; font-size: 12px; }
.pl div { display: flex; justify-content: space-between; color: var(--muted); }
.pl div b { color: var(--ink); }
.pl div.total { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; color: var(--ink); font-weight: 600; }
.avatars { display: flex; margin-top: 12px; }
.avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.avatars span:first-child { margin-left: 0; }

/* Mini order flow */
.flow-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.flow-mini div { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 11.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.flow-mini div svg { width: 16px; height: 16px; color: var(--teal); margin-bottom: 6px; }
.flow-mini div.wait svg { color: var(--warn); }
.flow-mini small { display: block; font-weight: 500; color: var(--muted); font-size: 10.5px; margin-top: 2px; }
@media (max-width: 640px) { .flow-mini { grid-template-columns: 1fr 1fr; } }

/* AI cell (dark) */
.cell-ai { background: var(--ink-2); border-color: transparent; color: rgba(255, 255, 255, .7); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 36px; }
.cell-ai::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 100% 0%, rgba(79, 99, 184, .45), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(18, 194, 168, .15), transparent 70%); pointer-events: none; }
.cell-ai > * { position: relative; }
.cell-ai:hover { border-color: transparent; }
.cell-ai h3 { color: #fff; font-size: 1.6rem; margin-top: 16px; }
.cell-ai p { margin-top: 12px; }
.cell-ai .ai-note { margin-top: 18px; font-size: 13.5px; color: rgba(255, 255, 255, .5); }
.ai-tools { display: grid; gap: 10px; align-content: center; }
.ai-tool { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); }
.ai-tool svg { width: 19px; height: 19px; color: var(--brand-300); flex: none; margin-top: 2px; }
.ai-tool b { display: block; color: #fff; font-size: .95rem; font-weight: 600; }
.ai-tool span { font-size: .88rem; color: rgba(255, 255, 255, .55); }
.cell-ai .tag { background: rgba(141, 156, 224, .16); color: #c3cbf4; }

/* ── Pricing (dark) ─────────────────────────────────────────────── */
.pricing { position: relative; overflow: hidden; isolation: isolate; }
.pricing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 40% at 50% 0%, rgba(79, 99, 184, .35), transparent 70%); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; border-radius: 24px; padding: 32px 28px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-dark); display: flex; flex-direction: column; }
.plan.recommended { background: linear-gradient(180deg, rgba(79, 99, 184, .22), rgba(255, 255, 255, .03) 55%); border-color: transparent; box-shadow: 0 0 0 1px rgba(141, 156, 224, .55), 0 30px 80px -30px rgba(79, 99, 184, .8); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 28px; }
.plan h3 { font-size: 1.1rem; color: #fff; letter-spacing: -0.01em; }
.plan-badge { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; color: var(--ink); background: linear-gradient(90deg, #b7c2ff, #7de6d5); }
.plan-desc { margin-top: 10px; font-size: .92rem; color: rgba(255, 255, 255, .55); min-height: 6.4em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 22px; }
.plan-price .amount { font-size: 3.4rem; font-weight: 650; color: #fff; letter-spacing: -0.045em; line-height: 1; }
.plan-price .per { color: rgba(255, 255, 255, .5); font-size: .95rem; }
.plan .btn { margin-top: 26px; }
.plan-limits { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: grid; gap: 11px; }
.plan-limits li, .plan-extra li { display: flex; gap: 10px; font-size: .92rem; color: rgba(255, 255, 255, .78); }
.plan-limits svg { width: 17px; height: 17px; color: var(--teal); flex: none; margin-top: 3px; }
.plan-extra svg { width: 17px; height: 17px; color: var(--brand-300); flex: none; margin-top: 3px; }
.plan-extra-title { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .45); text-transform: uppercase; letter-spacing: .06em; margin-top: 24px; }
.plan-extra { margin-top: 14px; display: grid; gap: 10px; }
.ai-callout { margin: 32px auto 0; max-width: 820px; text-align: center; font-size: .95rem; color: rgba(255, 255, 255, .78); padding: 14px 22px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); }
.ai-callout a { color: #c3cbf4; }
.price-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 22px; font-size: 13.5px; color: rgba(255, 255, 255, .5); }
.price-notes span { display: inline-flex; align-items: center; gap: 7px; }
.price-notes svg { width: 15px; height: 15px; color: var(--teal); }

/* ── Comparison ─────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .93rem; }
.compare th, .compare td { padding: 14px 20px; text-align: center; border-bottom: 1px solid #f0f1f6; }
.compare th:first-child, .compare td:first-child { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; min-width: 240px; }
.compare thead th { background: #fff; color: var(--ink); font-weight: 650; padding-top: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.compare thead th.rec { color: var(--brand); }
.compare tr.group td { background: var(--surface); font-weight: 650; color: var(--ink); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 12px; padding-bottom: 12px; }
.compare tr.group td:first-child { background: var(--surface); }
.compare td.rec { background: #fafbff; }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0; }
.compare tbody th { font-weight: 500; color: var(--text); }
.yes svg { width: 18px; height: 18px; color: var(--teal); margin: 0 auto; }
.no { color: #c3c8d6; }

/* ── Safeguards ─────────────────────────────────────────────────── */
.guards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.g { padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.g .g-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.g .g-ic svg { width: 18px; height: 18px; }
.g h3 { font-size: 1rem; margin-top: 16px; letter-spacing: -0.01em; }
.g p { margin-top: 6px; font-size: .88rem; color: var(--muted); }

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-side h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 18px; }
.faq-side p { margin-top: 16px; color: var(--muted); }
.faq-side .btn { margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 600; color: var(--ink); font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: transform .25s, background .25s, color .25s, border-color .25s; }
.faq summary .pm svg { width: 15px; height: 15px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq .answer { padding: 0 48px 24px 0; color: var(--text); }

/* ── Final CTA ──────────────────────────────────────────────────── */
.cta-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; padding: 88px 40px; text-align: center; background: var(--ink); }
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(50% 70% at 50% 0%, rgba(79, 99, 184, .7), transparent 70%),
  radial-gradient(35% 50% at 100% 100%, rgba(18, 194, 168, .25), transparent 70%),
  radial-gradient(35% 50% at 0% 100%, rgba(120, 90, 220, .22), transparent 70%); }
.cta-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(60% 70% at 50% 30%, #000, transparent 80%); mask-image: radial-gradient(60% 70% at 50% 30%, #000, transparent 80%); }
.cta-card h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -0.04em; }
.cta-card p { margin: 20px auto 0; max-width: 560px; color: rgba(255, 255, 255, .66); font-size: 1.12rem; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { padding: 72px 0 36px; border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 32px; }
.foot .brand, .foot .brand:hover { color: var(--ink); }
.foot p { margin-top: 14px; font-size: .92rem; color: var(--muted); max-width: 320px; }
.foot h4 { font-size: .82rem; color: var(--ink); text-transform: uppercase; letter-spacing: .07em; font-weight: 650; }
.foot ul { margin-top: 16px; display: grid; gap: 10px; }
.foot a:not(.brand) { color: var(--muted); font-size: .93rem; }
.foot a:not(.brand):hover { color: var(--ink); }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: var(--muted); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .guards { grid-template-columns: repeat(3, 1fr); }
  .app-inner { grid-template-columns: 1fr; }
  .app-side { display: none; }
}
@media (max-width: 960px) {
  .section { padding: 88px 0; }
  .nav-links, .nav-actions .nav-login, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding-top: 140px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .app-cols { grid-template-columns: 1fr; }
  .ba { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .steps::before { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .span-4, .span-3, .span-2 { grid-column: span 1; }
  .span-6 { grid-column: span 2; }
  .cell-ai { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .plan-desc { min-height: 0; }
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .faq-side { position: static; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 72px 0; }
  .section-sm { padding: 64px 0; }
  .head { margin-bottom: 40px; }
  .hero { padding-top: 120px; }
  .hero h1 { letter-spacing: -0.04em; }
  .hero h1 .br { display: inline; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .stage { margin-top: 52px; padding: 0; }
  .app-main { padding: 16px; }
  .prow { grid-template-columns: 28px 1fr auto; }
  .prow .chip { display: none; }
  .app-cols > div:last-child { display: none; } /* order timeline repeats in Features on phones */
  .app-inner { min-height: 0; }
  .kpi b { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .span-6 { grid-column: span 1; }
  .cell { padding: 24px; }
  .cell-ai { padding: 26px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .step { display: grid; grid-template-columns: 48px 1fr; gap: 2px 16px; text-align: left; padding: 0; }
  .step-node { margin: 0; grid-row: span 3; }
  .step-num { margin-top: 2px; }
  .ba-card { padding: 26px; }
  .guards { grid-template-columns: 1fr; }
  .faq .answer { padding-right: 0; }
  .cta-card { padding: 60px 22px; border-radius: 24px; }
  .foot { grid-template-columns: 1fr; }
  .ai-callout { border-radius: 16px; }
  /* Phone: fit all plans on screen instead of a sideways-scrolling table. */
  .compare { min-width: 0; font-size: .8rem; table-layout: fixed; }
  .compare th, .compare td { padding: 10px 6px; }
  .compare th:first-child, .compare td:first-child { min-width: 0; width: 34%; position: static; padding-left: 10px; }
  .compare thead th { font-size: .68rem; letter-spacing: -.01em; padding-left: 2px; padding-right: 2px; }
  .compare thead th .price-line { display: none; }
  .compare tr.group td { font-size: .68rem; padding-left: 10px; }
  .yes svg { width: 16px; height: 16px; }
}
@media (max-width: 360px) {
  .compare th, .compare td { padding: 9px 3px; }
  .compare th:first-child, .compare td:first-child { padding-left: 8px; }
  .compare thead th { font-size: .62rem; }
}

/* ── Legal pages ────────────────────────────────────────────────── */
.legal-body { background: var(--surface); }
.legal-header { position: sticky; top: 0; padding-top: 14px; padding-bottom: 6px; background: linear-gradient(var(--surface) 70%, rgba(246, 247, 251, 0)); }
.legal-header .nav { box-shadow: 0 8px 30px -14px rgba(11, 16, 32, .18); }
.legal-actions .nav-login, .legal-actions .btn { display: inline-flex !important; }
.legal-main { padding: 40px 0 96px; }
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; max-width: 1120px; }
.legal-nav { position: sticky; top: 100px; }
.legal-nav-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 10px; }
.legal-nav ul { display: grid; gap: 2px; }
.legal-nav a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text); font-size: .93rem; font-weight: 500; }
.legal-nav a:hover { background: #fff; color: var(--ink); }
.legal-nav a.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.legal-nav-contact { margin-top: 20px; font-size: .85rem; color: var(--muted); }
.legal-article { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 56px 64px; min-width: 0; }
.legal-kicker { font-size: 13px; font-weight: 600; color: var(--brand); }
.legal-article h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 8px; }
.legal-updated { margin-top: 10px; color: var(--muted); font-size: .92rem; }
.legal-article h2 { font-size: 1.3rem; margin: 40px 0 12px; letter-spacing: -0.015em; scroll-margin-top: 100px; }
.legal-article h3 { font-size: 1.02rem; margin: 22px 0 8px; }
.legal-article p, .legal-article li { color: var(--text); font-size: 1rem; line-height: 1.72; }
.legal-article p + p { margin-top: 12px; }
.legal-article ul.dots { margin: 10px 0 0; padding-left: 20px; list-style: disc; }
.legal-article ul.dots li { margin-top: 6px; }
.legal-article ul.dots li::marker { color: var(--brand-300); }
.legal-article a { text-decoration: underline; text-underline-offset: 2px; }
.legal-summary { margin-top: 28px; padding: 18px 22px; border-radius: 16px; background: var(--brand-50); border: 1px solid #dfe4f7; }
.legal-summary p { color: var(--ink) !important; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .93rem; }
.legal-table th, .legal-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { color: var(--ink); font-weight: 600; background: var(--surface); }
.legal-caps { font-size: .93rem !important; }
.legal-contact-box { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-contact-box h2 { margin-top: 0; }
@media (max-width: 960px) {
  .legal-grid { grid-template-columns: 1fr; gap: 20px; }
  .legal-nav { position: static; }
  .legal-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .legal-nav a { background: #fff; box-shadow: 0 0 0 1px var(--line); }
  .legal-nav-contact { display: none; }
  .legal-article { padding: 36px 28px; }
}
@media (max-width: 640px) {
  .legal-main { padding: 20px 0 64px; }
  .legal-article { padding: 28px 20px; border-radius: 18px; }
  .legal-table { display: block; overflow-x: auto; }
  .legal-actions .nav-login { display: none !important; }
}

/* ── Funnel disclaimers ─────────────────────────────────────────── */
.disclaimers { padding: 56px 0 8px; }
.disclaimer-box { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 32px 36px; }
.disclaimer-box h2 { font-size: 1.05rem; letter-spacing: -0.01em; }
.disclaimer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin-top: 16px; }
.disclaimer-grid p { font-size: .84rem; line-height: 1.65; color: var(--muted); }
.disclaimer-grid b { color: var(--text); font-weight: 600; }
.disclaimer-box .more { margin-top: 18px; font-size: .84rem; color: var(--muted); }
.disclaimer-box .more a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) { .disclaimer-grid { grid-template-columns: 1fr; } .disclaimer-box { padding: 24px 20px; } }
.renew-note { margin: 18px auto 0; max-width: 760px; text-align: center; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .5); }
.renew-note a { color: rgba(255, 255, 255, .78); text-decoration: underline; text-underline-offset: 2px; }

/* Logo image (white-text version on dark, dark-text version on light) */
.brand .logo-img { display: block; height: 32px; width: auto; }
.brand .logo-for-light { display: none; }
.on-light .brand .logo-for-dark { display: none; }
.on-light .brand .logo-for-light, .foot .brand .logo-for-light, .legal-header .brand .logo-for-light { display: block; }
.foot .brand .logo-img { height: 34px; }
.app-side .ab .ab-icon { width: 22px; height: 22px; display: block; }
@media (max-width: 560px) { .brand .logo-img { height: 26px; } }
