:root {
  --navy-950: #070b16;
  --navy-900: #0b1120;
  --navy-800: #0f172a;
  --navy-700: #1e293b;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --grad: linear-gradient(120deg, #22d3ee 0%, #3b82f6 50%, #818cf8 100%);
  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --radius: 16px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 6px; }
p { margin: 0 0 12px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; font-weight: 600; color: var(--blue-light); margin-bottom: 14px; }
.fine { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }
.sub { color: var(--body); max-width: 620px; margin: 0 auto 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .nav a:focus-visible, .logo:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35); }
.btn-line { border-color: rgba(96, 165, 250, 0.5); color: #fff; background: rgba(59, 130, 246, 0.08); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 17, 32, 0.9); backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid rgba(148, 163, 184, 0.15); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; border-radius: 10px; }
.logo img { border-radius: 50%; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 0.95rem; }
.nav a { color: #cbd5e1; text-decoration: none; }
.nav a:hover { color: #fff; }
@media (max-width: 720px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(59, 130, 246, 0.25), transparent), var(--navy-900); color: #fff; padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } .hero { padding: 88px 0 100px; } }
.lead { font-size: 1.15rem; color: #cbd5e1; max-width: 560px; margin: 18px 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine { color: #94a3b8; }
@media (max-width: 480px) { .cta-row .btn { width: 100%; } }

/* Phone demo */
.phone { justify-self: center; width: min(320px, 100%); border-radius: 40px; padding: 12px; background: #1e293b; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(148, 163, 184, 0.25); }
.phone-screen { position: relative; height: 560px; border-radius: 30px; background: var(--navy-800); overflow: hidden; padding: 18px; }
.demo-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid rgba(148, 163, 184, 0.2); }
.demo-head div { display: grid; }
.demo-head strong { font-size: 0.95rem; }
.demo-head span:not(.mono) { font-size: 0.78rem; color: #94a3b8; }
.mono { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #0d9488; color: #fff; font-weight: 800; font-size: 0.85rem; }

.step { position: absolute; left: 18px; right: 18px; top: 86px; opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.phone-screen[data-step='voice'] .step-voice,
.phone-screen[data-step='think'] .step-think,
.phone-screen[data-step='quote'] .step-quote { opacity: 1; transform: none; }

.voice { display: flex; align-items: center; gap: 10px; margin-left: auto; width: 88%; padding: 12px 14px; border-radius: 18px 18px 4px 18px; background: #134e4a; }
.play { width: 0; height: 0; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 26px; }
.wave i { flex: 1; border-radius: 2px; background: #5eead4; height: 30%; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: 0.2s; }
.wave i:nth-child(3n + 1) { animation-delay: 0.45s; }
.wave i:nth-child(4n) { animation-delay: 0.7s; }
@keyframes wave { 50% { height: 100%; } }
.len { font-size: 0.78rem; color: #ccfbf1; }
.said { margin: 12px 0 0; font-size: 0.85rem; color: #94a3b8; font-style: italic; }

.step-think { display: grid; justify-items: center; gap: 14px; padding-top: 110px; color: #cbd5e1; font-weight: 600; }
.spin { width: 40px; height: 40px; border-radius: 50%; border: 4px solid rgba(148, 163, 184, 0.25); border-top-color: var(--blue-light); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.paper { background: #fff; color: var(--ink); border-radius: 14px; border-top: 6px solid #0d9488; padding: 14px; font-size: 0.85rem; }
.paper-no { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.paper ul { margin: 0; padding-left: 18px; }
.paper-total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 6px; padding-top: 8px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.paper-total strong { font-size: 1.3rem; }
.paper-terms { margin: 0; font-size: 0.72rem; color: var(--muted); }
.send { display: block; margin-top: 12px; padding: 12px; border-radius: 12px; text-align: center; font-weight: 600; background: #1fa855; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .wave i, .spin { animation: none; }
  .step { transition: none; }
}

/* Sections */
.story { background: var(--navy-800); color: #e2e8f0; padding: 56px 0; text-align: center; }
.story p { color: #cbd5e1; font-size: 1.1rem; }
.section { padding: 72px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p, .features p, .plan-line { color: var(--body); margin: 0; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 14px; }

.features { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features article { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); }

.plans { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 820px) { .plans { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-left: auto; margin-right: auto; } }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.plan.popular { background: var(--navy-900); color: #fff; border-color: transparent; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25); }
.plan.popular .plan-line, .plan.popular li { color: #cbd5e1; }
.plan ul { margin: 16px 0 24px; padding-left: 20px; display: grid; gap: 8px; flex: 1; }
.plan li { color: var(--body); }
.plan .btn-line { color: var(--ink); border-color: #cbd5e1; background: none; }
.tag { position: absolute; top: -12px; right: 20px; background: var(--grad); color: #fff; font-size: 0.78rem; font-weight: 600; padding: 4px 14px; border-radius: 999px; }
.custom { text-align: center; margin-top: 28px; color: var(--body); }
.custom a { color: var(--blue); font-weight: 600; }

.secure { list-style: none; padding: 0; margin: 28px auto 0; max-width: 720px; display: grid; gap: 12px; }
.secure li { position: relative; padding: 16px 18px 16px 52px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--body); }
.secure li strong { color: var(--ink); }
.secure li::before { content: '✓'; position: absolute; left: 16px; top: 15px; width: 24px; height: 24px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 0.8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--blue); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { color: var(--body); margin: 10px 0 0; }

.final { background: var(--navy-900); color: #fff; padding: 72px 0; }
.final h2 { margin-bottom: 24px; }
.final .fine { color: #94a3b8; }

.foot { background: var(--navy-950); color: #94a3b8; font-size: 0.9rem; padding: 28px 0; }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot a { color: #cbd5e1; }

/* Demo: trade tabs, PDF, email */
.demo { display: grid; gap: 16px; justify-items: center; }
.trades { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.trades button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.35); background: rgba(15, 23, 42, 0.6); color: #cbd5e1; font: inherit; font-size: 0.88rem; cursor: pointer; }
.trades button[aria-selected='true'] { background: #fff; color: var(--ink); border-color: #fff; font-weight: 600; }
.trades button:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; }
.total-right { display: inline-flex; align-items: center; gap: 8px; }
.pdf { display: inline-flex; }
.send-mail { display: block; margin-top: 8px; padding: 11px; border-radius: 12px; text-align: center; font-weight: 600; color: #e2e8f0; border: 1px solid rgba(148, 163, 184, 0.45); }

/* Top bar FAQ */
.faq-link { background: none; border: 0; color: #cbd5e1; font: inherit; font-size: 0.95rem; cursor: pointer; padding: 8px 4px; }
.faq-link:hover { color: #fff; }
.faq-link:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 2px; border-radius: 6px; }
@media (max-width: 720px) { .faq-link { margin-left: auto; } .top .btn { margin-left: 0; } }

/* Plans promise line */
.promise { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 4px 0 0; color: #15803d; font-weight: 600; font-size: 0.95rem; }

/* FAQ pop-up */
.faq { width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 48px); border: 0; border-radius: 20px; padding: 24px; color: var(--ink); background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.faq::backdrop { background: rgba(7, 11, 22, 0.7); backdrop-filter: blur(3px); }
.faq-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.faq-head h2 { margin: 0; font-size: 1.5rem; }
.faq-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bg); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.faq-close:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.faq .fine a { color: var(--blue); }

/* Back to top */
.to-top { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 0.25s ease, transform 0.25s ease; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Footer */
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-links button { background: none; border: 0; padding: 0; color: #cbd5e1; font: inherit; text-decoration: underline; cursor: pointer; }
.copy { margin: 16px 0 0; font-size: 0.85rem; color: #64748b; }

/* Prices */
.price { margin: 10px 0 0; }
.price strong { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.price span { color: var(--muted); }
.plan.popular .price span, .plan.popular .yearly { color: #94a3b8; }
.yearly { margin: 0 0 12px; font-size: 0.88rem; color: var(--muted); }

/* Launch countdown: before launch show [data-before], after launch show [data-after]. */
.prelaunch [data-after] { display: none !important; }
body:not(.prelaunch) [data-before] { display: none !important; }
.launch-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding: 9px 16px; background: var(--grad); color: #fff; font-size: 0.92rem; text-align: center; }
.launch-bar .countdown { font-variant-numeric: tabular-nums; opacity: 0.95; }
.launch-box { margin: 0 0 18px; }
.launch-box .eyebrow { display: block; margin-bottom: 10px; }
.clock { display: grid; grid-template-columns: repeat(4, minmax(0, 76px)); gap: 10px; }
.clock div { display: grid; justify-items: center; padding: 12px 6px; border-radius: 14px; background: rgba(15, 23, 42, 0.7); border: 1px solid rgba(96, 165, 250, 0.35); }
.clock strong { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.clock span { margin-top: 6px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; }
.btn-soon { cursor: default; opacity: 0.75; }
.btn-soon:hover { transform: none; }
.plan.popular .btn-soon { opacity: 0.85; }
.soon { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-style: normal; font-size: 0.72rem; font-weight: 600; background: rgba(148, 163, 184, 0.2); color: inherit; opacity: 0.85; }
.launch-line { color: #cbd5e1; font-weight: 600; font-variant-numeric: tabular-nums; }

/* AI and machine learning */
.ml { background: var(--navy-800); color: #e2e8f0; padding: 64px 0; }
.ml h2 { color: #fff; }
.ml-lead { max-width: 680px; margin: 12px auto 0; text-align: center; color: #cbd5e1; font-size: 1.1rem; }
.ml-grid { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 860px) { .ml-grid { grid-template-columns: repeat(3, 1fr); } }
.ml-grid article { padding: 22px; border-radius: var(--radius); border: 1px solid rgba(96, 165, 250, 0.3); background: rgba(15, 23, 42, 0.55); }
.ml-grid h3 { margin: 12px 0 6px; color: #fff; }
.ml-grid p { margin: 0; color: #cbd5e1; }
.ml-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; }
.ml-note { margin: 24px 0 0; text-align: center; color: #94a3b8; font-weight: 600; }
