:root {
  --brand: #165eee;
  --brand-dark: #0f47bd;
  --brand-light: #5996ff;
  --brand-soft: #e6f0ff;
  --accent: #F7B955;
  --ink: #000000;
  --muted: #4b575e;
  --line: #dfe5e9;
  --bg: #ffffff;
  --bg-alt: #f0f3f5;
  --dark: #1a2126;
  --dark-2: #232c33;
  --radius: 16px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; font-feature-settings: 'ss01'; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; color-scheme: dark; }
img { max-width: 100%; }
a { color: var(--brand-light); text-decoration: none; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 500; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--muted); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.center-row { justify-content: center; }
.eyebrow { font-size: .95rem; font-weight: 600; color: var(--brand); margin-bottom: .6em; }
.lead { font-size: 1.2rem; }
.fine { font-size: .875rem; color: var(--muted); margin-top: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; padding: 12px 22px; border-radius: 999px; font-weight: 500; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: .15s; font-family: inherit; white-space: nowrap; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: #fff; color: var(--night); }
.btn-outline { border-color: rgba(255, 255, 255, .22); color: #fff; background: rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .36); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { color: var(--brand-light); }
.btn-light { background: #fff; color: var(--navy); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Announcement */
.announce { background: var(--night); border-bottom: 1px solid var(--line); text-align: center; font-size: .88rem; padding: 10px 16px; }
.announce a { color: var(--ink-2); }
.announce strong { color: var(--peach); font-weight: 500; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5, 10, 30, .72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -.02em; font-size: 1.35rem; color: var(--ink); }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(150deg, #fff 30%, var(--sky) 100%); color: var(--navy); font-size: 1rem; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 6px 20px -6px rgba(124, 203, 236, .6); }
.logo-light { color: #fff; }
.logo img { display: block; height: 20px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a, .dd-btn { display: inline-flex; align-items: center; gap: 5px; height: 42px; padding: 0 14px; color: var(--ink); font-weight: 500; font-size: .95rem; line-height: 1; background: none; border: 0; cursor: pointer; font-family: inherit; border-radius: 8px; }
@media (hover: hover) { .main-nav > ul > li > a:hover, .dd-btn:hover { color: #fff; background: rgba(255, 255, 255, .07); } }
.caret { flex: none; width: 10px; height: 10px; opacity: .7; transition: transform .2s ease; }
.has-dd.open .caret, .dd-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 260px; background: #08102A; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.dd-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; min-width: 520px; }
.has-dd:hover .dropdown, .has-dd.open .dropdown { opacity: 1; visibility: visible; transform: none; }
/* the second menu (Resources) opens toward the left so it never pokes past the window edge */
.has-dd ~ .has-dd .dropdown { left: auto; right: 0; }
.dd-col a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: .92rem; }
.dd-col a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.dd-head { font-size: .8rem; font-weight: 500; color: var(--muted); margin: 0 0 6px 10px; }
.dd-col a.dd-cta { color: var(--navy); margin-top: 10px; display: inline-flex; padding: 9px 18px; border-radius: 999px; }
.dd-col a.dd-cta:hover { color: var(--night); background: #fff; }
.nav-actions { display: flex; gap: 8px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }
/* the menu never wraps: as the window narrows, the least needed items step out first (they stay in
   the footer and the phone menu), then the hamburger takes over with "Try for Free" beside it */
.main-nav > ul > li > a, .dd-btn, .nav-actions .btn { white-space: nowrap; }
.nav-cta { display: none; }
@media (min-width: 1081px) and (max-width: 1260px) { .nav-opt-1 { display: none; } }

/* Hero */
.hero { padding: 88px 0 72px; background: radial-gradient(70% 60% at 50% 0%, var(--navy-2), transparent 70%), var(--bg); overflow: hidden; }
.play { font-size: .75rem; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.page-hero { padding: 88px 0 64px; background: radial-gradient(70% 60% at 50% 0%, var(--navy-2), transparent 70%), var(--bg); }
.page-hero .lead { max-width: 680px; margin: 0 auto 28px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-light); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.checks.sm li { font-size: .88rem; margin-bottom: 6px; }

.tool-card, .callout, .t-card, .step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tool-card { display: block; color: inherit; transition: .15s; }
a.tool-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.tool-card-cta { background: linear-gradient(150deg, rgba(54, 173, 224, .28), rgba(201, 120, 196, .18) 60%, rgba(252, 115, 77, .2)); border-color: var(--line-2); }
.tool-card-cta h3, .tool-card-cta p { color: #fff; }
.icon { font-size: 1.6rem; width: 52px; height: 52px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 16px; color: var(--brand-light); }
.center > .btn, .section .center { margin-top: 40px; }

/* Mock cards */
.mock-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 24px; }
.mock-head { font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-card label { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 6px; }
.field { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: .9rem; margin-bottom: 14px; background: var(--bg-alt); }
.field.tall { min-height: 76px; }
.chat-row { display: flex; flex-direction: column; padding: 12px; border-radius: 10px; font-size: .88rem; border-bottom: 1px solid var(--line); }
.chat-row span { color: var(--muted); }
.chat-row.active { background: var(--brand-soft); }
.flowchart { display: flex; flex-direction: column; align-items: center; }
.node { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; font-size: .88rem; font-weight: 600; text-align: center; }
.node.trigger { background: #fff; color: var(--navy); border-color: #fff; }
.connector { width: 2px; height: 22px; background: var(--line); }
.branch { display: flex; gap: 12px; }
.dash { display: grid; grid-template-columns: 120px 1fr; gap: 20px; }
.dash aside { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; }
.dash aside span { padding: 8px 10px; border-radius: 8px; color: var(--muted); }
.dash aside .on { background: var(--brand-soft); color: var(--brand-light); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.kpis div { background: var(--bg-alt); border-radius: 10px; padding: 10px; }
.kpis small { display: block; color: var(--muted); font-size: .72rem; }
.kpis b { font-size: 1.05rem; }
.chart { height: 160px; display: flex; align-items: flex-end; gap: 10px; border-bottom: 1px solid var(--line); }
.chart span { flex: 1; height: var(--h); background: linear-gradient(var(--brand), var(--brand-light)); border-radius: 6px 6px 0 0; }

/* Integrations */
.int-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.int-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 8px; text-align: center; font-weight: 600; font-size: .85rem; }

.badges-wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ind-badge { display: inline-block; padding: 12px 20px; background: var(--brand-soft); color: var(--brand-light); border-radius: 999px; font-weight: 600; }
.review-badges { display: flex; gap: 16px; justify-content: center; }

/* Testimonials */
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }
.t-card { margin: 0; }
.t-card blockquote { margin: 0 0 16px; color: var(--ink); }
.t-card figcaption strong { display: block; }
.t-card figcaption span { color: var(--muted); font-size: .88rem; }
.t-card.placeholder { border-style: dashed; }

/* CTA band */
.cta-band { background: radial-gradient(900px 400px at 50% 125%, rgba(252, 115, 77, .45) 0, rgba(201, 120, 196, .3) 35%, transparent 70%), linear-gradient(180deg, var(--bg), var(--navy-2)); border-top: 1px solid var(--line); color: #fff; text-align: center; padding: 88px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--ink-2); margin-bottom: 28px; }

/* Pricing */
.billing-toggle { display: inline-flex; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.billing-toggle button { border: 0; background: none; padding: 10px 20px; border-radius: 999px; font-weight: 600; cursor: pointer; font-family: inherit; color: var(--muted); }
.billing-toggle button.on { background: #fff; color: var(--navy); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.billing-toggle em { font-style: normal; font-size: .75rem; color: var(--mint); margin-left: 4px; }
.billing-toggle button.on em { color: #0b7a5f; }
.pricing-section { padding-top: 32px; }
.carousel { position: relative; }
.plans { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 16px 4px 24px; scrollbar-width: none; }
.plans::-webkit-scrollbar { display: none; }
.plan { flex: 0 0 270px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 1px solid var(--sky); box-shadow: var(--shadow-2); }
.ribbon { position: absolute; top: -12px; left: 24px; background: #fff; color: var(--navy); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan-name { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.price { font-size: 1rem; margin-bottom: 4px; }
.price span { font-size: 2.4rem; font-weight: 800; color: var(--ink); }
.credits { font-size: .88rem; }
.plan .btn { margin: 8px 0 20px; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: #fff; background: var(--surface-solid); box-shadow: var(--shadow); font-size: 1.6rem; cursor: pointer; }
.car-btn.prev { left: -22px; }
.car-btn.next { right: -22px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--brand-light); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; }
.code-form { display: flex; gap: 10px; max-width: 420px; margin: 16px auto 0; }
.code-form input, .contact-form input, .contact-form select, .contact-form textarea { flex: 1; width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; background: var(--surface-2); color: var(--ink); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 800; margin-bottom: 16px; }

/* Contact */
.contact-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.contact-form input, .contact-form select, .contact-form textarea { margin-top: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-info { display: grid; gap: 16px; }
.form-ok { color: var(--mint); font-weight: 600; margin-top: 12px; }

/* Footer */
.site-footer { background: var(--night); border-top: 1px solid var(--line); color: var(--ink-2); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--ink-2); margin-top: 14px; }
.footer-head { color: #fff; font-weight: 500; margin-bottom: 14px; }
.footer-grid a:not(.logo):not(.badge) { display: block; color: var(--ink-2); padding: 4px 0; font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.app-badges { display: flex; gap: 10px; margin: 18px 0; }
.badge { border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 14px; color: #fff; font-size: .82rem; font-weight: 600; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid !important; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: #fff !important; font-size: .8rem; font-weight: 700; padding: 0 !important; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; font-size: .82rem; }
.footer-legal p { color: var(--ink-3); }
.footer-legal a { color: var(--ink-2); }

/* Responsive */
@media (max-width: 1080px) {
  .nav-toggle { display: block; margin-left: 10px; }
  .nav-cta { display: inline-flex; margin-left: auto; }
  .main-nav { position: fixed; inset: 72px 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; padding: 16px 24px 32px; overflow-y: auto; display: none; }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; }
  .main-nav > ul > li > a, .dd-btn { display: flex; width: 100%; height: 46px; }
  .dd-btn { justify-content: space-between; }
  .dropdown, .dd-wide { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; background: none; padding: 2px 8px 12px; min-width: 0; display: none; grid-template-columns: 1fr; gap: 0; }
  .has-dd:hover .dropdown { display: none; }
  .has-dd.open .dropdown { display: grid; }
  /* an open section is one panel: its button and its links share the same background */
  .main-nav > ul > li.has-dd { border-radius: 12px; transition: background .2s ease; }
  .main-nav > ul > li.has-dd.open { background: rgba(255, 255, 255, .05); }
  .has-dd.open > .dd-btn, .has-dd.open > .dd-btn:hover { background: none; }
  .dd-head { margin: 4px 0 2px 10px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
  .dd-col + .dd-col .dd-head { margin-top: 14px; }
  .dd-col a { padding: 9px 10px; font-size: .98rem; }
  .dd-col a.dd-cta { display: none; }   /* the menu already has Try for Free at the top and bottom */
  .nav-actions { flex-direction: column; margin-top: 12px; }
  .int-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .split, .grid-3, .footer-grid, .steps { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .section { padding: 64px 0; }
  .car-btn { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash aside { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .nav-cta { padding: 8px 14px; font-size: .88rem; }
}
@media (max-width: 370px) {
  .logo { font-size: 1.15rem; gap: 6px; }
  .nav-cta { padding: 7px 11px; font-size: .82rem; }
  .nav-toggle { margin-left: 6px; }
  .int-grid { grid-template-columns: repeat(2, 1fr); }
  .branch { flex-direction: column; }
}

/* ===== Theme v2: utility bar, hero collage, scroll effects ===== */
.utility-bar { border-bottom: 1px solid var(--line); font-size: .8rem; }
.utility-inner { display: flex; justify-content: flex-end; gap: 20px; height: 32px; align-items: center; }
.utility-inner a { color: var(--muted); }
.utility-inner a:hover { color: #fff; }
.site-header { transition: transform .3s ease; }
.site-header.hide-util .utility-bar { display: none; }
.nav-actions { align-items: center; }
.nav-actions .btn-ghost { height: 42px; padding: 0 14px; border-width: 0; font-weight: 500; line-height: 1; }
.hl { color: var(--brand-light); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.link-arrow { font-weight: 600; }
.section-head.left { text-align: left; margin-left: 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.sent-card { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; width: max-content; box-shadow: 0 6px 18px rgba(26,33,38,.08); }
.sent-card small { color: var(--muted); font-size: .7rem; display: block; }
.sent-card b { font-size: 1.3rem; }
.sent-card.inline { margin: 12px 0; }
.send-ic { width: 32px; height: 32px; border-radius: 8px; background: #fff; color: var(--navy); display: grid; place-items: center; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.seg span { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: .8rem; background: var(--surface-2); }
.seg .on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-light); }
.field.ok { display: flex; justify-content: space-between; }
.field.ok span { color: var(--mint); font-weight: 700; }
.popup-demo { border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-align: center; margin-bottom: 12px; }
.popup-demo b { font-size: 1.4rem; display: block; margin-bottom: 4px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .utility-bar { display: none; }
  .main-nav { position: absolute; inset: 100% 0 auto 0; height: calc(100dvh - 72px); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* legal pages (terms, privacy) */
.legal { padding: 56px 0 80px; }
.legal-wrap { max-width: 760px; }
.legal .legal-eyebrow { color: var(--brand-light); font-weight: 500; font-size: .9rem; margin: 0 0 6px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal-date { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal h1, .legal h2, .legal b { color: var(--ink); }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
