/* styles.css */
:root {
  --brand: #165eee;
  --brand-dark: #0f47bd;
  --brand-light: #9a85ff;
  --brand-soft: #e6f0ff;
  --accent: #F7B955;
  --ink: #000000;
  --muted: #6e7180;
  --line: #d3d6e0;
  --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; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; 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: 0; 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: .8rem; line-height: 1.3; padding: 6px 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce a { color: var(--ink-2); }
.announce strong { color: var(--peach); font-weight: 500; white-space: nowrap; }
/* logged in to the dashboard (see src/layout.html): no announcement bar */
.signed-in .announce { display: none; }
.ann-short { display: none; }
/* the short wording on anything narrower than a laptop, always one slim line */
@media (max-width: 1024px) {
  .ann-long { display: none; }
  .ann-short { display: inline; }
}
@media (max-width: 600px) {
  .announce { font-size: .72rem; padding: 5px 12px; }
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 15, 26, .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: 0; 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(179, 166, 255, .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 "Free Trial" 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(124, 92, 255, .28), rgba(124, 92, 255, .18) 60%, rgba(22, 94, 238, .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(22, 94, 238, .45) 0, rgba(124, 92, 255, .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.5fr repeat(4, 1fr); gap: 40px 32px; }
.footer-brand p { color: var(--ink-2); margin-top: 14px; font-size: .92rem; max-width: 36ch; }
.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; margin-top: 16px; }
/* a social profile with its handle: an icon and the name, as a pill */
.footer-grid .socials a.social { display: inline-flex !important; align-items: center; gap: 8px; width: auto; height: 38px; min-height: 0; padding: 0 14px 0 11px !important; border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--ink) !important; }
.footer-grid .socials a.social:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .1); text-decoration: none; }
.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); font-size: .76rem; line-height: 1.55; max-width: 90ch; }
.footer-legal p + p { margin-top: 8px; }
/* phones: the small print stays small, and the chat bubble never covers the last links */
@media (max-width: 720px) {
  .footer-legal p { font-size: .7rem; }
  .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
.footer-legal a { color: var(--ink-2); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
.footer-legal a:hover { color: #fff; text-decoration-color: currentColor; }

/* 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 Free Trial at the top and bottom */
  .nav-actions { flex-direction: row; justify-content: center; gap: 12px; margin-top: 16px; }
  .nav-actions .btn { flex: 1 1 0; max-width: 200px; height: 46px; justify-content: center; }
  .int-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .split, .grid-3, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  /* phone-sized tap targets */
  .footer-grid a:not(.logo):not(.badge) { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .footer-legal a { display: inline-block; padding: 12px 2px; }
  .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: 0; 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; }

/* open phone menu: Log In and Free Trial side by side, Log In outlined */
@media (max-width: 1080px) {
  .main-nav .nav-actions .btn-ghost { border: 1px solid var(--line-2); height: 46px; }
}

/* small phones: keep the logo and the header button apart, and the announcement on one line */
@media (max-width: 380px) {
  .logo img { height: 16px; }
  .announce { font-size: .68rem; padding: 5px 10px; }
  .ann-short { letter-spacing: 0; }
}

/* Touch screens: every control at least 44px tall, without moving anything (the extra room is padding
   that a negative margin gives back, or room the bar already had). */
@media (pointer: coarse) {
  .announce a { display: inline-block; padding: 14px 0; margin: -14px 0; }
  .logo { min-height: 44px; }
  .btn { min-height: 44px; }
}

/* fx/fx.css */
/* Shared design language + declarative effects for every page and scene.
   Scenes: build on these classes and tokens; put scene-specific rules in assets/scenes/<name>.css */

:root {
  /* palette: the SMSBlast brand guidelines. Casual Navy night, Lady Blue (#7C5CFF) to Impact Blue (#0F47BD) light, cool greys */
  --night: #07090F;
  --navy: #0B1A3B;
  --navy-2: #10245A;
  --sky: #B3A6FF;
  --sky-2: #7C5CFF;
  --sky-3: #165EEE;
  --sun: #165EEE;
  --sun-2: #3B74F2;
  --peach: #C9BEFF;
  --bloom: #7C5CFF;
  --brand: #7C5CFF;
  --brand-dark: #B3A6FF;   /* the stronger variant on dark backgrounds is the lighter one */
  --brand-light: #B3A6FF;
  --brand-soft: rgba(124, 92, 255, .14);
  --violet: #A28BFF;
  --mint: #5FD49A;
  --amber: #F7B955;
  --rose: #E85678;
  --ink: #FFFFFF;
  --ink-2: #BCBFCC;
  --ink-3: #9DA2B3;
  --muted: #BCBFCC;
  --line: rgba(179, 166, 255, .13);
  --line-2: rgba(179, 166, 255, .26);
  --bg: #0A0F1A;
  --bg-alt: #0E1526;
  --surface: rgba(11, 22, 56, .62);       /* dark glass card */
  --surface-solid: #0F1628;
  --surface-2: rgba(179, 166, 255, .06);  /* fields and wells inside a card */
  --dark: #07090F;
  --dark-2: #0F1628;
  --dark-line: rgba(179, 166, 255, .14);
  --spectrum: linear-gradient(92deg, #B3A6FF 0%, #C9BEFF 55%, #165EEE 100%);
  /* type */
  --f-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* labels and figures: the same face as the text (no monospace), with even-width numbers */
  --f-mono: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* shape + motion */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 60px -28px rgba(0, 0, 0, .7);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 90px -36px rgba(22, 94, 238, .45);
  --glass: blur(18px) saturate(140%);
  --e-out: cubic-bezier(.2, .7, .2, 1);
  --e-spring: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 72px;
  --gutter: 24px;
}
@media (max-width: 520px) { :root { --gutter: 16px; } }

html { scroll-behavior: smooth; }
body { color: var(--ink); overflow-x: clip; }
main { overflow-x: clip; }
::selection { background: var(--sun); color: #fff; }

/* ---------- type helpers ---------- */
.tag { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: 0; color: var(--brand); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.tag::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 500; line-height: 1.1; letter-spacing: 0; color: var(--ink); margin: 0 0 .45em; text-wrap: balance; }
.h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 500; line-height: 1.05; letter-spacing: 0; color: var(--ink); margin: 0 0 .4em; text-wrap: balance; }
.lede { font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.6; color: var(--ink-2); max-width: 56ch; margin: 0 0 1.4em; }
.grad { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* one accent phrase per headline: the same Manrope, in the brand's blue-to-violet */
:is(h1, h2, .h1, .h2, .ph-title, .fin-title) .grad { --grad: linear-gradient(100deg, #fff 0%, var(--peach) 45%, #9A85FF 100%); font-family: var(--f-sans); font-style: normal; font-weight: inherit; letter-spacing: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.mono { font-family: var(--f-mono); }
.hud { font-family: var(--f-mono); font-size: .68rem; letter-spacing: 0; color: var(--ink-3); line-height: 1.5; }
.hud b { color: var(--ink); font-weight: 600; }

/* ---------- surfaces ---------- */
.bay { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.bay-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.bay-head .tag { justify-content: center; }
.bay-head .lede { margin-inline: auto; }
.card { background: var(--surface); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: 0; padding: 7px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); white-space: nowrap; }
.chip.ok { background: color-mix(in srgb, var(--mint) 14%, transparent); color: var(--mint); border-color: color-mix(in srgb, var(--mint) 35%, transparent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.dot.live { animation: fx-pulse 1.4s ease-in-out infinite; }

/* dark bay: a deeper band with a dusk glow (the whole site is dark, so it no longer flips tokens) */
.darkbay { color: var(--ink-2); background: radial-gradient(900px 420px at 85% -10%, rgba(124, 92, 255, .22), transparent 70%), radial-gradient(700px 380px at 0% 110%, rgba(124, 92, 255, .16), transparent 70%), var(--night); }
.darkbay .tag { color: var(--brand-light); }
.darkbay .card { background: color-mix(in srgb, var(--dark-2) 80%, transparent); box-shadow: none; }
.bay.darkbay.inset { margin: 0 clamp(8px, 1.4vw, 20px); border-radius: var(--r-xl); overflow: clip; border: 1px solid var(--line); }

/* ---------- buttons: lift + sheen ---------- */
.btn { position: relative; overflow: hidden; transition: transform .25s var(--e-out), box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease; will-change: transform; }
.btn-primary { box-shadow: 0 8px 28px -10px rgba(179, 166, 255, .55); }
.btn-primary:hover { box-shadow: 0 12px 36px -10px rgba(179, 166, 255, .75); }
.btn-primary::after, .btn-light::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(179, 166, 255, .35) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.btn-primary:hover::after, .btn-light:hover::after { transform: translateX(120%); transition: transform .7s ease; }
.btn:active { transform: scale(.97); }

/* ---------- header polish ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 80; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: var(--spectrum); transform-origin: 0 50%; transform: scaleX(0); }
.utility-bar { background: transparent; }
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 14px 40px rgba(0, 0, 0, .35); }
.logo-mark { color: var(--navy); }
.logo-mark svg { display: block; }
.nav-toggle { width: 44px; height: 44px; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1080px) { .nav-toggle { display: flex; } }
.dropdown { transition: opacity .2s ease, transform .25s var(--e-out), visibility .2s; }

/* ---------- declarative effects ---------- */
/* reveal: only hidden when JS is running, so content never disappears without it */
.js [data-reveal], .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s var(--e-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal="left"] { transform: translateX(-32px); }
.js [data-reveal="right"] { transform: translateX(32px); }
.js [data-reveal="scale"] { transform: scale(.92); }
.js [data-reveal="blur"] { filter: blur(8px); transition-property: opacity, transform, filter; }
.js [data-reveal].in, .js .reveal.in { opacity: 1; transform: none; filter: none; }

/* decode: words rise and sharpen in sequence */
/* Safari will not paint a parent's gradient text through the word spans below (they are inline-blocks that
   move and blur), so the accent words came out invisible on iPhones. Once split, each word carries the gradient. */
.js [data-decode].words .grad { background: none; }
:where(.js [data-decode].words .grad) .w { background: var(--grad, var(--spectrum)); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .08em .12em 0; margin: 0 -.08em -.12em 0; }
.js [data-decode] .w { display: inline-block; opacity: 0; transform: translateY(.5em); filter: blur(6px); transition: opacity .6s ease, transform .7s var(--e-out), filter .6s ease; transition-delay: calc(var(--i, 0) * 55ms); }
.js [data-decode].shown .w { opacity: 1; transform: none; filter: none; }

/* tilt */
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--e-out); transform-style: preserve-3d; }
[data-tilt].tilting { transition: transform .08s linear; }
[data-tilt] > .glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .5), transparent 60%); mix-blend-mode: soft-light; }
[data-tilt].tilting > .glare { opacity: 1; }

/* pointer spotlight */
.glow { position: relative; }
.glow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand-light) 22%, transparent), transparent 65%); }
.glow:hover::before { opacity: 1; }

/* pin wrapper: height is set by fx.pin(); never put overflow:hidden on it or its ancestors */
.pin { position: relative; }

@keyframes fx-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@keyframes fx-spin { to { transform: rotate(360deg); } }
@keyframes fx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .reveal, .js [data-decode] .w { opacity: 1; transform: none; filter: none; transition: none; }
  [data-tilt] { transform: none; }
  .btn::after { display: none; }
}

/* product screens that stay light inside the dark site (a phone's Messages app, for example):
   put .light-ui on the screen and everything inside it gets the light tokens back */
.light-ui {
  --ink: #0a0f1a; --ink-2: #6e7180; --ink-3: #9da2b3; --muted: #6e7180;
  --line: #d3d6e0; --line-2: #bcbfcc; --bg: #ffffff; --bg-alt: #edeff7;
  --surface: #ffffff; --surface-solid: #ffffff; --surface-2: #edeff7;
  --brand: #165EEE; --brand-dark: #0F47BD; --brand-light: #7C5CFF; --brand-soft: #ece8ff;
  color: var(--ink);
}

/* scenes/hero3d.css */
/* hero3d: pinned WebGL phone hero (prefix h3d-).
   Base rules = the static layout (no JS, no WebGL, reduced motion).
   The pinned "live" layout is scoped to
     .js .h3d:not(.h3d-static, .scene-failed)   inside (prefers-reduced-motion: no-preference) and (min-height: 501px)
   so the page never flashes a pinned stage it cannot drive (a phone held sideways is too short for one). */

.h3d {
  position: relative;
  --h3d-px: 62%;      /* phone centre, x, in stage coordinates (set by JS in px) */
  --h3d-py: 48%;      /* phone centre, y */
  --h3d-wx: 61%;      /* phone centre, x, in .h3d-wrap coordinates */
  --h3d-lift: 0px;    /* how far the stage still is from its pinned position */
  --h3d-blast: 0;     /* 0..1 while the campaign is sending */
  --h3d-ctop: 104px;  /* phones: where the stepper sits once the head is compact */
  color: var(--ink);
}
.h3d-stick {
  position: relative;
  overflow: clip;
  /* dusk: deep navy sky that warms toward a horizon glowing under the phone */
  background:
    radial-gradient(46% 30% at var(--h3d-px) 86%, rgba(22, 94, 238, .42), transparent 72%),
    radial-gradient(60% 46% at var(--h3d-px) 74%, rgba(124, 92, 255, .34), transparent 74%),
    radial-gradient(80% 60% at 30% 0%, rgba(16, 36, 90, .9), transparent 70%),
    linear-gradient(180deg, #0A0F1A 0%, #0B1A3B 38%, #0D1F5C 62%, #2A2766 78%, #120F33 90%, #0A0F1A 100%);
}

/* ---------- backdrop ---------- */
.h3d-bg { position: absolute; inset: 0; pointer-events: none; }
.h3d-bg i { position: absolute; display: block; }
.h3d-grid {
  inset: 0;
  /* a few faint stars, fading out toward the horizon */
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, .8), transparent 1.5px),
    radial-gradient(1px 1px at 63% 9%, rgba(255, 255, 255, .7), transparent 1.5px),
    radial-gradient(1.4px 1.4px at 84% 27%, rgba(255, 255, 255, .75), transparent 2px),
    radial-gradient(1px 1px at 37% 34%, rgba(255, 255, 255, .5), transparent 1.5px),
    radial-gradient(1px 1px at 92% 6%, rgba(255, 255, 255, .6), transparent 1.5px),
    radial-gradient(1.2px 1.2px at 26% 61%, rgba(255, 255, 255, .35), transparent 1.8px),
    radial-gradient(1px 1px at 73% 44%, rgba(255, 255, 255, .45), transparent 1.5px),
    radial-gradient(1px 1px at 5% 42%, rgba(255, 255, 255, .5), transparent 1.5px);
  background-size: 420px 300px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .7) 45%, transparent 75%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .7) 45%, transparent 75%);
  opacity: .8;
}
/* The glow and the flash follow the phone. They move by transform, never by left/top, so following it
   is not a layout shift: each is a stage-sized layer translated so its centre sits on the phone centre
   (percentages of a stage-sized box are percentages of the stage), with the circle drawn in ::before. */
.h3d-glow, .h3d-flash { inset: 0; transform: translate(calc(var(--h3d-px) - 50%), calc(var(--h3d-py) - 50%)); }
.h3d-glow::before, .h3d-flash::before { content: ""; position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border-radius: 50%; }
.h3d-glow::before {
  width: min(1040px, 150vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(201, 190, 255, .34) 0%, rgba(124, 92, 255, .22) 26%, rgba(124, 92, 255, .12) 50%, rgba(16, 36, 90, 0) 74%);
}
.h3d-flash { opacity: var(--h3d-blast); }
.h3d-flash::before {
  width: min(1500px, 220vw);
  transform: translate(-50%, -50%) scale(calc(.55 + var(--h3d-blast) * .45));
  background: radial-gradient(closest-side, rgba(252, 140, 93, .32) 0%, rgba(124, 92, 255, .22) 30%, rgba(124, 92, 255, .12) 55%, transparent 76%);
}

/* ---------- headline block ---------- */
.h3d-head { position: relative; z-index: 2; }
.h3d-head .tag { margin-bottom: 16px; }
.h3d-head .h1 { font-size: clamp(2.3rem, min(4.7vw, 8.6vh), 4.1rem); margin-bottom: .38em; }
.h3d-lede { max-width: 46ch; margin-bottom: 1.5em; }
.h3d-nw { white-space: nowrap; }   /* keeps a hyphenated word on one line */
.h3d-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.h3d-fine { margin: 14px 0 0; font-family: var(--f-mono); font-size: .7rem; letter-spacing: 0; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.h3d-fine::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 22%, transparent); }

/* ---------- stage list ---------- */
.h3d-stages { list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; }
.h3d-stages li { --f: 0; position: relative; display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; align-items: center; padding: 4px 0; color: var(--ink); opacity: .42; transition: opacity .4s ease; }
.h3d-st-m { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: var(--ink-2); font: 500 .62rem/1 var(--f-mono); font-style: normal; letter-spacing: .02em; transition: background .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease, transform .45s var(--e-spring); }
.h3d-st-m svg { display: none; }
.h3d-stages b { font-weight: 600; font-size: .96rem; line-height: 26px; letter-spacing: 0; }
.h3d-stages small { display: none; grid-column: 2; font: 400 .68rem/1.5 var(--f-mono); letter-spacing: 0; color: var(--ink-2); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--e-out), opacity .35s ease; }
.h3d-stages li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 32px; bottom: -2px; width: 2px; border-radius: 2px; background: linear-gradient(var(--brand) calc(var(--f) * 100%), var(--line-2) 0); }
.h3d-stages li.is-done { opacity: .78; --f: 1; }
.h3d-stages li.is-done .h3d-st-m { background: var(--brand-soft); border-color: transparent; color: var(--brand-light); }
.h3d-stages li.is-done .h3d-st-m span { display: none; }
.h3d-stages li.is-done .h3d-st-m svg { display: block; }
.h3d-stages li.is-cur { opacity: 1; }
.h3d-stages li.is-cur .h3d-st-m { background: #fff; border-color: #fff; color: var(--navy); box-shadow: 0 0 0 5px rgba(179, 166, 255, .16); transform: scale(1.08); }
.h3d-stages li.is-cur b { color: #fff; }
.h3d-stages li.is-cur small { max-height: 22px; opacity: 1; }

/* ---------- pieces that only exist while the stage is live ---------- */
.h3d-canvas, .h3d-result, .h3d-hint, .h3d-poster { display: none; }

/* ---------- static layout ---------- */
.h3d-ui { position: relative; }
.h3d-wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 28px 56px; align-items: center; padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(48px, 7vw, 96px); }
.h3d-head { grid-column: 1; align-self: end; }
.h3d-stages { grid-column: 1; align-self: start; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.h3d-stages li { grid-template-columns: 26px auto; column-gap: 9px; }
.h3d-stages li:not(:last-child)::after { display: none; }
.h3d-mock { grid-column: 2; grid-row: 1 / span 2; justify-self: center; display: grid; justify-items: center; gap: 16px; }
.h3d-mock-phone { width: min(280px, 72vw); aspect-ratio: 9 / 17.6; border-radius: 46px; padding: 9px; background: linear-gradient(145deg, #55575d, #1d1e21 38%, #0d0d0f 62%, #45474c); box-shadow: 0 2px 0 rgba(255, 255, 255, .5) inset, 0 40px 80px -24px rgba(124, 92, 255, .45), 0 18px 36px -18px rgba(0, 0, 0, .6); transform: rotate(-3deg); }
.h3d-mock-screen { height: 100%; border-radius: 38px; background: #f6f7fb; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.h3d-mock-screen p { margin: 0; }
.h3d-mock-bar { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: .78rem; color: var(--ink); }
.h3d-mock-bar i { width: 74px; height: 22px; border-radius: 12px; background: #05070b; }
.h3d-mock-batt { width: 24px; height: 11px; border-radius: 3.5px; border: 1.5px solid var(--ink); position: relative; }
.h3d-mock-batt::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: var(--ink); border-radius: 1px; }
.h3d-mock-title { font-weight: 600; font-size: 1.02rem; color: var(--ink); margin-top: 4px; }
.h3d-mock-bubble { align-self: flex-end; max-width: 88%; background: var(--brand); color: #fff; font-size: .74rem; line-height: 1.4; padding: 9px 12px; border-radius: 16px 16px 4px 16px; }
.h3d-mock-meta { align-self: flex-end; font: 400 .58rem/1 var(--f-mono); letter-spacing: 0; color: var(--ink-3); }
.h3d-mock-stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; display: grid; gap: 2px; }
.h3d-mock-stat span { font: 500 .58rem/1.4 var(--f-mono); letter-spacing: 0; color: var(--ink-3); }
.h3d-mock-stat b { font-size: 1.9rem; line-height: 1.1; letter-spacing: 0; color: var(--brand); }
.h3d-mock-bars { display: flex; align-items: flex-end; gap: 5px; height: 54px; margin-top: 6px; }
.h3d-mock-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 4px 4px 2px 2px; background: linear-gradient(var(--brand-light), var(--brand)); }
.h3d-mock-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.h3d-mock-reply { align-self: flex-start; max-width: 80%; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .74rem; line-height: 1.4; padding: 8px 12px; border-radius: 16px 16px 16px 4px; }
.h3d-mock-tiles div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; display: grid; }
.h3d-mock-tiles b { font-size: 1rem; color: var(--ink); }
.h3d-mock-tiles span { font: 400 .56rem/1.4 var(--f-mono); letter-spacing: 0; color: var(--ink-3); }
.h3d-mock-chip { margin-top: auto !important; align-self: center; }
@media (max-width: 900px) {
  .h3d-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .h3d-head, .h3d-stages, .h3d-mock { grid-column: 1; grid-row: auto; }
  .h3d-head .h1 { font-size: clamp(2rem, 9vw, 2.9rem); }
  .h3d-cta .btn { flex: 1 1 0; padding-inline: 16px; }
}

/* ======================================================================
   LIVE: pinned stage, WebGL phone, scroll-driven UI
   ====================================================================== */
@media (prefers-reduced-motion: no-preference) and (min-height: 501px) {
  .js .h3d:not(.h3d-static, .scene-failed) { height: 560vh; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-stick { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.1s ease; }
  .js .h3d.h3d-ready:not(.h3d-static, .scene-failed) .h3d-canvas { opacity: 1; }
  /* static first frame: under the canvas; once WebGL is up it goes (after the canvas has faded in over it
     when the live phone starts in the same pose, at once when the phone spins in instead) */
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-poster { display: block; position: absolute; left: 50%; top: 30%; width: 0; height: auto; max-width: none; visibility: hidden; pointer-events: none; user-select: none; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-poster.is-placed { visibility: visible; }
  .js .h3d.h3d-ready:not(.h3d-static, .scene-failed) .h3d-poster { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
  .js .h3d.h3d-ready.h3d-handoff:not(.h3d-static, .scene-failed) .h3d-poster { transition-delay: 1.15s, 1.5s; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-ui { position: absolute; inset: 0; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-wrap { display: block; position: relative; height: 100%; padding-top: 0; padding-bottom: 0; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-mock { display: none; }

  /* headline: top-left, readable for the whole pin */
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-head { position: absolute; left: var(--gutter); top: clamp(20px, 6vh, 58px); width: min(500px, calc(100% - 2 * var(--gutter))); }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-head::before { content: ""; position: absolute; z-index: -1; inset: -36px -70px -44px -90px; background: radial-gradient(closest-side, rgba(10, 15, 26, .55), rgba(10, 15, 26, .3) 60%, rgba(10, 15, 26, 0)); pointer-events: none; }

  /* the head rises in on load (fill backwards only, so later transforms still apply) */
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-head > * { animation: h3d-rise .95s var(--e-out) backwards; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-head > :nth-child(2) { animation-delay: .08s; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-head > :nth-child(3) { animation-delay: .18s; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-head > :nth-child(4) { animation-delay: .28s; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-head > :nth-child(5) { animation-delay: .38s; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-head .grad { background-image: linear-gradient(92deg, #fff 0%, var(--peach) 30%, var(--sun-2) 50%, var(--peach) 70%, #fff 100%); background-size: 220% 100%; animation: h3d-shimmer 9s linear infinite; }

  /* stage list: bottom-left, a compact timeline; only the live stage shows its sub-label */
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-stages { position: absolute; left: var(--gutter); bottom: calc(30px + var(--h3d-lift)); width: 310px; display: block; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-stages li { grid-template-columns: 26px 1fr; column-gap: 12px; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-stages li:not(:last-child)::after { display: block; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-stages small { display: block; }
  /* short viewports: the list lies down, then steps aside */
  .js .h3d.h3d-tight1:not(.h3d-static, .scene-failed) .h3d-stages { display: flex; width: auto; gap: 26px; }
  .js .h3d.h3d-tight1:not(.h3d-static, .scene-failed) .h3d-stages li { grid-template-columns: 26px auto; column-gap: 8px; }
  .js .h3d.h3d-tight1:not(.h3d-static, .scene-failed) .h3d-stages li small { display: none; }
  .js .h3d.h3d-tight1:not(.h3d-static, .scene-failed) .h3d-stages li:not(:last-child)::after { left: calc(100% + 7px); right: auto; top: 16px; bottom: auto; width: 12px; height: 2px; opacity: .7; background: linear-gradient(90deg, var(--brand) calc(var(--f) * 100%), var(--line-2) 0); }
  .js .h3d.h3d-tight2:not(.h3d-static, .scene-failed) .h3d-stages { display: none; }

  /* result card: a text from SMSBlast, bottom-right */
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-result {
    display: grid; gap: 8px; position: absolute; z-index: 3; right: var(--gutter); bottom: calc(30px + var(--h3d-lift)); width: 296px;
    opacity: 0; transform: translateY(14px) scale(.98); transform-origin: 0 100%; transition: opacity .45s ease, transform .6s var(--e-out);
  }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-result.is-on { opacity: 1; transform: none; }
  .h3d-result p { margin: 0; }
  .h3d-r-head { display: flex; align-items: center; gap: 9px; padding: 0 4px; }
  .h3d-r-ava { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); background: linear-gradient(150deg, #fff 30%, var(--sky)); box-shadow: 0 4px 14px rgba(179, 166, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .5); }
  .h3d-r-who { display: grid; line-height: 1.15; min-width: 0; }
  .h3d-r-who b { font-size: .86rem; font-weight: 600; color: var(--ink); }
  .h3d-r-who small { font-size: .72rem; color: var(--ink-3); }
  .h3d-r-time { margin-left: auto; font-size: .72rem; color: var(--ink-3); }
  .h3d-r-bubble {
    position: relative; display: grid; gap: 4px; padding: 13px 16px 14px; border-radius: 22px 22px 22px 6px;
    background: rgba(9, 18, 48, .72); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .06) inset;
  }
  .h3d-result.is-new .h3d-r-bubble { animation: h3d-msg .55s var(--e-spring); }
  .h3d-r-k { font-weight: 600; font-size: .95rem; line-height: 1.25; color: var(--ink-2); }
  .h3d-r-v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 7px; line-height: 1.05; }
  .h3d-r-num { font-weight: 700; font-size: 2rem; letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; display: inline-block; transform-origin: 0 80%; }
  .h3d-r-num.is-pop { animation: h3d-pop .45s var(--e-out); }
  .h3d-r-unit { font-size: .9rem; font-weight: 500; color: var(--ink-3); }
  .h3d-r-c { display: block; width: 100%; height: 50px; margin: 6px 0 2px; }
  .h3d-r-n { font-size: .8rem; line-height: 1.45; color: var(--ink-2); }
  .h3d-r-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 18px; padding: 0 6px; font-size: .72rem; color: var(--ink-3); }
  .h3d-r-ok { position: absolute; left: 6px; top: 50%; translate: 0 -50%; font-weight: 600; color: var(--mint); opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .4s var(--e-spring); }
  .h3d-r-ok::after { content: " ✓✓"; letter-spacing: 0; }
  .h3d-result.is-locked .h3d-r-ok { opacity: 1; transform: none; }
  .h3d-r-demo { margin-left: auto; }


  /* scroll hint sits under the phone */
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-hint { display: flex; flex-direction: column; align-items: center; gap: 7px; position: absolute; z-index: 2; margin: 0; left: var(--h3d-wx); bottom: calc(12px + var(--h3d-lift)); transform: translateX(-50%); font: 500 .62rem/1 var(--f-mono); letter-spacing: 0; color: var(--ink-2); transition: opacity .45s ease; }
  .h3d-hint i { display: block; width: 1.5px; height: 26px; border-radius: 2px; background: linear-gradient(var(--brand), transparent); transform-origin: 50% 0; animation: h3d-hint 1.8s var(--e-out) infinite; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-hint.is-off { opacity: 0; }

  /* bottom-anchored UI waits for the scene, then rises in */
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-stages,
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-hint { opacity: 0; }
  .js .h3d.h3d-ready:not(.h3d-static, .scene-failed) .h3d-stages { opacity: 1; transition: opacity .9s ease .25s; }
  .js .h3d.h3d-ready:not(.h3d-static, .scene-failed) .h3d-hint:not(.is-off) { opacity: 1; }

  @keyframes h3d-rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
  @keyframes h3d-shimmer { to { background-position: -220% 0; } }
  @keyframes h3d-msg { from { opacity: .3; transform: translateY(10px) scale(.94); } }
  @keyframes h3d-pop { 35% { transform: scale(1.09); } }
  @keyframes h3d-hint { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
}

/* short desktop windows: tighten the head so the stage list keeps its place */
@media (prefers-reduced-motion: no-preference) and (min-height: 501px) and (max-height: 740px) and (min-width: 901px) {
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-head .tag { margin-bottom: 10px; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-lede { font-size: 1rem; margin-bottom: 1.2em; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-cta .btn { padding: 13px 24px; font-size: 1rem; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-fine { margin-top: 10px; }
}

/* narrower desktops: give the phone the middle */
@media (prefers-reduced-motion: no-preference) and (min-height: 501px) and (max-width: 1180px) and (min-width: 901px) {
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-head { width: min(430px, 44vw); }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-result { width: 268px; }
  /* at these widths the bar ring passes behind the card's foot line, so the line moves inside the bubble */
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-r-bubble { padding-bottom: 40px; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-r-foot { margin-top: -36px; padding: 0 16px; z-index: 1; }
  .js .h3d.h3d-tight1:not(.h3d-static, .scene-failed) .h3d-stages { gap: 22px; }
  .js .h3d.h3d-tight1:not(.h3d-static, .scene-failed) .h3d-stages li:not(.is-cur) b { display: none; }
  .js .h3d.h3d-tight1:not(.h3d-static, .scene-failed) .h3d-stages li:not(.is-cur) { grid-template-columns: 26px; }
}

/* ---------- LIVE on phones and small tablets: centred phone, compacting head, stepper, result strip ---------- */
@media (prefers-reduced-motion: no-preference) and (min-height: 501px) and (max-width: 900px) {
  .js .h3d:not(.h3d-static, .scene-failed) { height: 460vh; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-head { top: 18px; right: var(--gutter); width: auto; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-head::before { display: none; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-head .tag { font-size: .62rem; margin-bottom: 10px; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-head .h1 { font-size: clamp(1.9rem, 8.8vw, 2.9rem); max-width: 11.5em; margin-bottom: .34em; transform-origin: 0 0; transition: transform .6s var(--e-out); }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-lede { font-size: .97rem; line-height: 1.5; max-width: 36ch; margin-bottom: 1.05em; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-cta { gap: 10px; flex-wrap: nowrap; max-width: 420px; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-cta .btn { flex: 1 1 0; padding: 13px 14px; font-size: .98rem; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-fine { margin-top: 11px; font-size: .64rem; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-lede,
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-cta,
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-fine { transition: opacity .4s ease, transform .55s var(--e-out), visibility 0s; }
  /* after the intro the head folds down to a title so the phone and the result strip have room */
  .js .h3d.h3d-compact:not(.h3d-static, .scene-failed) .h3d-head .h1 { transform: scale(.6); }
  .js .h3d.h3d-compact:not(.h3d-static, .scene-failed) .h3d-lede,
  .js .h3d.h3d-compact:not(.h3d-static, .scene-failed) .h3d-cta,
  .js .h3d.h3d-compact:not(.h3d-static, .scene-failed) .h3d-fine { opacity: 0; transform: translateY(-14px); visibility: hidden; pointer-events: none; transition: opacity .3s ease, transform .5s var(--e-out), visibility 0s .3s; }

  /* once compact, a soft fog under the title keeps dots and bubbles from crowding it */
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-ui::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--h3d-ctop) + 78px); background: linear-gradient(180deg, rgba(10, 15, 26, .96) 0%, rgba(6, 12, 36, .9) 60%, rgba(11, 26, 59, 0) 100%); opacity: 0; transition: opacity .45s ease; pointer-events: none; }
  .js .h3d.h3d-compact:not(.h3d-static, .scene-failed) .h3d-ui::before { opacity: 1; }


  /* stage list becomes a five-part stepper under the title */
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-stages,
  .js .h3d.h3d-tight1:not(.h3d-static, .scene-failed) .h3d-stages,
  .js .h3d.h3d-tight2:not(.h3d-static, .scene-failed) .h3d-stages { display: flex; gap: 6px; left: var(--gutter); right: var(--gutter); top: var(--h3d-ctop); bottom: auto; width: auto; }
  .js .h3d.h3d-ready:not(.h3d-static, .scene-failed) .h3d-stages { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .5s var(--e-out); }
  .js .h3d.h3d-ready.h3d-compact:not(.h3d-static, .scene-failed) .h3d-stages { opacity: 1; transform: none; transition-delay: .12s; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-stages li { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 5px; padding: 9px 0 0; opacity: 1; white-space: nowrap; transition: flex-grow .55s var(--e-out); }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-stages li.is-cur { flex-grow: 2.7; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-stages li::after,
  .js .h3d.h3d-tight1:not(.h3d-static, .scene-failed) .h3d-stages li::after { content: ""; display: block; position: absolute; left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand) calc(var(--f) * 100%), var(--line-2) 0); }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-stages .h3d-st-m { width: auto; height: auto; border: 0; background: none; box-shadow: none; transform: none; font-size: .62rem; color: var(--ink-3); }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-stages li.is-done .h3d-st-m,
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-stages li.is-cur .h3d-st-m { background: none; color: var(--brand-light); box-shadow: none; transform: none; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-stages b { display: none; font: 600 .7rem/1 var(--f-sans); }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-stages li.is-cur b { display: block; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-stages small { display: none; }

  /* result card becomes a slim message along the bottom */
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-result { left: var(--gutter); right: var(--gutter); width: auto; bottom: calc(10px + var(--h3d-lift)); gap: 6px; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-r-head { display: none; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-r-bubble { grid-template-columns: minmax(0, 1fr) 44%; column-gap: 12px; row-gap: 2px; align-items: center; padding: 11px 14px 12px; border-radius: 20px 20px 20px 6px; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-r-k { grid-column: 1; font-size: .82rem; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-r-v { grid-column: 1; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-r-num { font-size: 1.5rem; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-r-unit { font-size: .74rem; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-r-c { grid-column: 2; grid-row: 1 / span 2; height: 44px; margin: 0; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-r-n { display: none; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-r-foot { font-size: .66rem; min-height: 16px; }

  .js .h3d:not(.h3d-static, .scene-failed) .h3d-hint { left: 50%; bottom: calc(8px + var(--h3d-lift)); gap: 5px; font-size: .56rem; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-hint i { height: 16px; }
}
@media (prefers-reduced-motion: no-preference) and (min-height: 501px) and (max-width: 380px) {
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-head .h1 { font-size: 1.86rem; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-lede { font-size: .92rem; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-cta .btn { padding: 12px 10px; font-size: .94rem; }
}

/* phones: let the intro use the full width and sit a little tighter under the header */
@media (max-width: 600px) {
  .h3d-head .tag { margin-bottom: 10px; }
  .h3d-lede { max-width: none; font-size: 1rem; line-height: 1.5; margin-bottom: 1.2em; }
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-head { top: clamp(14px, 3vh, 28px); }
}


/* short phone screens: the scroll hint would sit on the phone, so leave it out */
@media (max-width: 600px) and (max-height: 780px) {
  .js .h3d:not(.h3d-static, .scene-failed) .h3d-hint { display: none; }
}
