:root {
  --bg: #faf9f6;
  --panel: #ffffff;
  --text: #141312;
  --muted: #6f6d67;
  --line: #e8e5dd;
  --line-strong: #dcd8cd;
  --accent: #7c5cff;
  --dark: #161514;
  --green: #e9f4ea;
  --green-line: #cfe6d2;
  --radius: 18px;
  --max: 1200px;
  --display: "Space Grotesk", -apple-system, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); background-color: var(--bg); background-image: radial-gradient(rgba(20,19,18,.035) 1px, transparent 1px); background-size: 24px 24px; color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
a { color: inherit; text-decoration: none; }
.serif-i { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--dark); color: #fff; font-weight: 500; font-size: 15px; padding: 13px 24px; border-radius: 12px; border: 1px solid var(--dark); cursor: pointer; font-family: var(--body); transition: opacity .15s ease, transform .15s ease; }
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: #fff; opacity: 1; }
.btn .plus { font-size: 18px; line-height: 1; }

/* header */
header { position: sticky; top: 0; z-index: 50; background: rgba(250,249,246,.82); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; max-width: var(--max); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.5px; }
.brand .mark { width: 30px; height: 30px; }
.nav-mid { display: flex; gap: 30px; }
.nav-mid a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-mid a:hover, .nav-mid a.active { color: var(--text); }
.nav-right { display: flex; gap: 12px; align-items: center; }
.nav-right .login { font-size: 15px; font-weight: 500; padding: 11px 18px; }
@media (max-width: 900px) { .nav-mid { display: none; } .nav-right .login { display: none; } }

/* hero */
.hero { position: relative; padding: 116px 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .fallback, .hero-bg .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg .fallback { background: linear-gradient(120deg, #ece6f9, #faf9f6 38%, #efe9fb 68%, #f4eefc); background-size: 220% 220%; animation: drift 20s ease-in-out infinite; }
@keyframes drift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-bg .overlay { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 28%, rgba(250,249,246,.82) 52%, rgba(250,249,246,.35) 100%); }
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { max-width: 580px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-family: var(--display); font-size: 72px; line-height: 1.02; letter-spacing: -2.5px; font-weight: 700; margin-bottom: 24px; }
.hero h1 .serif-i { font-size: 74px; letter-spacing: -1px; }
.hero p.sub { font-size: 20px; color: var(--muted); max-width: 460px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.compliance { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.compliance svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 900px) {
  .hero h1 { font-size: 44px; letter-spacing: -1.5px; }
  .hero h1 .serif-i { font-size: 46px; }
  .hero-bg .overlay { background: linear-gradient(180deg, var(--bg) 0%, rgba(250,249,246,.9) 55%, rgba(250,249,246,.7) 100%); }
}

/* page hero (inner pages) */
.page-hero { position: relative; padding: 84px 0 64px; text-align: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--display); font-size: 60px; line-height: 1.04; letter-spacing: -2px; font-weight: 700; margin-bottom: 18px; }
.page-hero h1 .serif-i { font-size: 62px; }
.page-hero p { color: var(--muted); font-size: 20px; max-width: 620px; margin: 0 auto; }
.page-hero .fallback { position: absolute; inset: 0; z-index: 0; background: linear-gradient(120deg, #efe9fb, #faf9f6 45%, #f4eefc); opacity: .7; }
@media (max-width: 760px) { .page-hero h1 { font-size: 38px; letter-spacing: -1px; } .page-hero h1 .serif-i { font-size: 40px; } .page-hero p { font-size: 17px; } }

/* hero visual */
.hero-visual { display: grid; place-items: center; position: relative; min-height: 380px; }
.orb { position: relative; width: 320px; height: 320px; display: grid; place-items: center; cursor: pointer; }
.orb .ring { position: absolute; inset: 0; border-radius: 50%; animation: orbspin 55s linear infinite; }
.orb:hover .ring { animation-duration: 16s; }
@keyframes orbspin { to { transform: rotate(360deg); } }
.orb .core { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff, #efede7); box-shadow: 0 30px 60px -20px rgba(124,92,255,.35), inset 0 2px 6px rgba(255,255,255,.9); display: grid; place-items: center; position: relative; z-index: 3; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.orb .core svg { width: 44px; height: 44px; color: var(--text); transition: color .3s ease, transform .35s ease; }
.orb:hover .core { transform: scale(1.08); box-shadow: 0 36px 72px -18px rgba(124,92,255,.6), inset 0 2px 6px rgba(255,255,255,.9); }
.orb:hover .core svg { color: var(--accent); transform: scale(1.06); }
.glow { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,255,.22), transparent 65%); filter: blur(8px); z-index: 1; transition: opacity .3s ease; }
.orb:hover .glow { animation: glowpulse 1.8s ease-in-out infinite; }
@keyframes glowpulse { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.pulse { position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 1.5px solid rgba(124,92,255,.45); opacity: 0; z-index: 2; }
.orb:hover .pulse { animation: pulsering 2s ease-out infinite; }
.orb:hover .pulse.p2 { animation-delay: .66s; }
.orb:hover .pulse.p3 { animation-delay: 1.33s; }
@keyframes pulsering { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.2); opacity: 0; } }

/* logo strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.strip-inner .label { color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.strip-inner .names { display: flex; gap: 36px; flex-wrap: wrap; color: #b7b3a8; font-family: var(--display); font-weight: 600; font-size: 17px; }

/* sections */
section { padding: 96px 0; }
.head { max-width: 720px; margin-bottom: 56px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 16px; }
.head h2 { font-family: var(--display); font-size: 52px; line-height: 1.05; letter-spacing: -1.6px; font-weight: 700; margin-bottom: 18px; }
.head p { color: var(--muted); font-size: 19px; }
@media (max-width: 760px) { .head h2 { font-size: 34px; letter-spacing: -1px; } section { padding: 64px 0; } }

.tinted { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.stat { padding: 44px 36px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--display); font-size: 52px; font-weight: 700; letter-spacing: -2px; }
.stat .lbl { color: var(--muted); margin-top: 8px; font-size: 16px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } .stat { border-right: none; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: none; } }

/* steps / features grid */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 22px; }
.card .ico svg { width: 22px; height: 22px; color: var(--text); }
.card .step-n { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.card h3 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.4px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
@media (max-width: 880px) { .grid3 { grid-template-columns: 1fr; } .grid2 { grid-template-columns: 1fr; } }

/* audience */
.audience { display: flex; flex-wrap: wrap; gap: 12px; }
.tag { background: var(--panel); border: 1px solid var(--line); padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; }

/* split (text + media) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 80px; }
.split .eyebrow { margin-bottom: 14px; }
.split h2 { font-family: var(--display); font-size: 36px; line-height: 1.1; letter-spacing: -1px; font-weight: 700; margin-bottom: 16px; }
.split p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.split ul { list-style: none; }
.split li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 16px; }
.split li svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 4px; color: var(--accent); }
.split.rev .split-media { order: -1; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 30px; } .split.rev .split-media { order: 0; } .split + .split { margin-top: 56px; } }

/* sample call card */
.sample { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 24px 50px -30px rgba(20,19,18,.3); }
.sample .sample-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sample .sample-head .live { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }
.sample .convo { display: flex; flex-direction: column; gap: 9px; }

/* compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare .col { border-radius: var(--radius); padding: 38px; border: 1px solid var(--line); }
.compare .col.them { background: transparent; }
.compare .col.us { background: var(--panel); border-color: var(--line-strong); box-shadow: 0 24px 50px -28px rgba(20,19,18,.25); }
.compare h3 { font-size: 17px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.compare .big { font-family: var(--display); font-size: 42px; font-weight: 700; letter-spacing: -1.5px; margin-bottom: 22px; }
.compare ul { list-style: none; }
.compare li { padding: 9px 0; color: var(--muted); font-size: 15px; display: flex; gap: 12px; align-items: flex-start; }
.compare li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.compare .us li { color: var(--text); }
.roi { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px; font-size: 18px; line-height: 1.6; }
.roi strong { font-weight: 600; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* pricing */
.toggle { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin: 0 auto 48px; }
.toggle button { border: none; background: transparent; font-family: var(--body); font-size: 15px; font-weight: 500; color: var(--muted); padding: 9px 22px; border-radius: 999px; cursor: pointer; }
.toggle button.active { background: var(--dark); color: #fff; }
.toggle .save { font-size: 12px; color: var(--accent); margin-left: 4px; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.tier { padding: 40px 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.tier:last-child { border-right: none; }
.tier.pop { background: var(--green); }
.tier .name { font-family: var(--display); font-size: 22px; font-weight: 600; }
.tier .price { font-family: var(--display); font-size: 48px; font-weight: 700; letter-spacing: -2px; margin: 18px 0 2px; }
.tier .price small { font-size: 16px; color: var(--muted); font-weight: 400; font-family: var(--body); letter-spacing: 0; }
.tier .for { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.tier ul { list-style: none; flex: 1; margin-bottom: 28px; }
.tier li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 15px; }
.tier li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--text); }
.tier .btn { width: 100%; justify-content: center; }
.tier .btn.alt { background: transparent; color: var(--text); border-color: var(--line-strong); }
@media (max-width: 880px) { .pricing { grid-template-columns: 1fr; } .tier { border-right: none; border-bottom: 1px solid var(--line); } .tier:last-child { border-bottom: none; } }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 2px; }
.faq summary { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.3px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; color: var(--muted); font-weight: 300; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--muted); font-size: 16px; margin-top: 14px; max-width: 660px; }

/* prose (legal) */
.prose { max-width: 760px; margin: 0 auto; }
.prose p, .prose li { color: var(--muted); font-size: 16px; margin-bottom: 12px; }
.prose h2 { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.4px; margin: 36px 0 12px; color: var(--text); }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose a { color: var(--accent); }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-grid .left h2 { font-family: var(--display); font-size: 46px; line-height: 1.05; letter-spacing: -1.5px; font-weight: 700; margin-bottom: 18px; }
.contact-grid .left p { color: var(--muted); font-size: 18px; margin-bottom: 28px; }
.check-list { list-style: none; }
.check-list li { display: flex; gap: 12px; align-items: center; padding: 9px 0; font-size: 16px; }
.check-list svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.contact-links { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
.contact-links a { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.contact-links svg { width: 18px; height: 18px; color: var(--accent); }
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; }
.form-card label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form-card input, .form-card select, .form-card textarea { width: 100%; padding: 13px 15px; margin-bottom: 18px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); font-size: 15px; font-family: var(--body); }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(124,92,255,.12); }
.form-card textarea { resize: vertical; min-height: 88px; }
.form-card .btn { width: 100%; justify-content: center; }
.form-msg { text-align: center; margin-top: 16px; font-size: 15px; display: none; }
.form-msg.success { color: #1a7f37; display: block; }
.form-msg.error { color: #c0392b; display: block; }
.privacy { font-size: 13px; color: var(--muted); text-align: center; margin-top: 14px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }

/* hero pill */
.hero-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.hero-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* showcase panels */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.spanel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.spanel .vis { padding: 30px; min-height: 290px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbfbfe, #f1eefb); position: relative; display: grid; align-items: center; }
.spanel .body { padding: 28px 32px; }
.spanel .body h3 { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.5px; margin-bottom: 8px; }
.spanel .body p { color: var(--muted); font-size: 15px; }
.intg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.intg .tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 500; box-shadow: 0 6px 16px -12px rgba(0,0,0,.3); }
.intg .tile .d { width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; }
.voices { display: flex; flex-direction: column; gap: 9px; }
.voice { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; display: flex; align-items: center; gap: 11px; box-shadow: 0 6px 16px -12px rgba(0,0,0,.3); }
.voice .av { width: 32px; height: 32px; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex-shrink: 0; }
.voice .meta { flex: 1; min-width: 0; }
.voice .vname { font-size: 13.5px; font-weight: 600; }
.voice .tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.voice .tags span { font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
@media (max-width: 880px) { .showcase { grid-template-columns: 1fr; } }

/* free-minutes banner */
.banner-free { background: radial-gradient(130% 150% at 82% 50%, #3a1d6e, #1d0c39 62%); color: #fff; border-radius: 26px; padding: 64px 56px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; overflow: hidden; position: relative; }
.banner-free h2 { font-family: var(--display); font-size: 46px; line-height: 1.04; letter-spacing: -1.6px; font-weight: 700; margin-bottom: 28px; max-width: 430px; }
.banner-free .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.banner-free .btn-light { background: #fff; color: var(--dark); border-color: #fff; }
.banner-free .wave { display: grid; place-items: center; position: relative; min-height: 180px; }
.banner-free .wave .orb-sm { position: absolute; right: 22%; width: 84px; height: 84px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 16px 40px -10px rgba(0,0,0,.4); }
.banner-free .wave .orb-sm svg { width: 40px; height: 40px; }
@media (max-width: 880px) { .banner-free { grid-template-columns: 1fr; padding: 48px 32px; } .banner-free h2 { font-size: 32px; } .banner-free .wave { display: none; } }

/* cta banner */
.banner { background: var(--dark); color: #fff; border-radius: 26px; padding: 72px 48px; text-align: center; }
.banner h2 { font-family: var(--display); font-size: 46px; line-height: 1.05; letter-spacing: -1.5px; font-weight: 700; margin-bottom: 14px; }
.banner p { font-size: 18px; opacity: .8; margin-bottom: 30px; }
.banner .btn { background: #fff; color: var(--dark); border-color: #fff; }
@media (max-width: 760px) { .banner { padding: 48px 28px; } .banner h2 { font-size: 32px; } }

/* hero demo widget */
.demo { display: flex; gap: 10px; margin: 32px 0 12px; flex-wrap: wrap; }
.demo-select { position: relative; }
.demo-select::after { content: ""; position: absolute; right: 17px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.demo select { appearance: none; -webkit-appearance: none; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 46px 14px 18px; font-size: 15px; font-weight: 500; font-family: var(--body); color: var(--text); cursor: pointer; min-width: 232px; }
.demo select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.12); }
.btn-call { display: inline-flex; align-items: center; gap: 9px; background: var(--dark); color: #fff; border: 1px solid var(--dark); border-radius: 12px; padding: 14px 24px; font-size: 15px; font-weight: 600; font-family: var(--body); cursor: pointer; transition: opacity .15s ease, transform .15s ease; }
.btn-call:hover { opacity: .88; transform: translateY(-1px); }
.btn-call svg { width: 15px; height: 15px; }
.demo-note { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }

/* call modal */
.call-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(22,16,38,.5); backdrop-filter: blur(6px); }
.call-modal.open { display: flex; }
.call-card { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; width: 100%; max-width: 440px; padding: 30px; box-shadow: 0 50px 100px -30px rgba(0,0,0,.55); display: flex; flex-direction: column; max-height: 92vh; }
.call-head { text-align: center; }
.call-head .scenario { color: var(--accent); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; }
.call-head .status { color: var(--muted); font-size: 13.5px; margin-top: 5px; display: inline-flex; align-items: center; gap: 7px; }
.call-head .live { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }
.call-modal.state-connecting .call-head .live,
.call-modal.state-incall .call-head .live { animation: blink 1.2s ease-in-out infinite; }
.call-modal.state-connecting .call-head .live { background: #d98a00; }
.call-modal.state-incall .call-head .live { background: #e5484d; }
.call-modal.state-ended .call-head .live { background: #16a34a; }
.call-modal.state-denied .call-head .live,
.call-modal.state-error  .call-head .live,
.call-modal.state-permission .call-head .live { background: #b7b3a8; }
@keyframes blink { 50% { opacity: .25; } }

/* orb — reacts to --vol (0..1) set from Vapi volume-level */
.call-orb { position: relative; width: 132px; height: 132px; margin: 22px auto 4px; display: grid; place-items: center; }
.call-orb .c-core { width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #efede7); box-shadow: 0 20px 44px -16px rgba(124,92,255,.5), inset 0 2px 6px rgba(255,255,255,.9); display: grid; place-items: center; z-index: 3; transform: scale(calc(1 + var(--vol, 0) * .28)); transition: transform .09s linear, box-shadow .2s ease; }
.call-orb .c-core svg { width: 32px; height: 32px; color: var(--accent); }
.call-orb.speaking .c-core { box-shadow: 0 22px 54px -14px rgba(124,92,255,.85), inset 0 2px 6px rgba(255,255,255,.9); }
.call-orb .c-pulse { position: absolute; width: 76px; height: 76px; border-radius: 50%; border: 1.5px solid rgba(124,92,255,.5); opacity: 0; }
.call-modal.state-connecting .call-orb .c-pulse,
.call-modal.state-incall .call-orb .c-pulse { animation: pulsering 2s ease-out infinite; }
.call-orb .c-pulse.b { animation-delay: .66s; }
.call-orb .c-pulse.c { animation-delay: 1.33s; }
.call-orb::after { content: ""; position: absolute; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle, rgba(124,92,255,calc(.10 + var(--vol,0) * .5)), transparent 68%); filter: blur(6px); z-index: 1; transition: background .1s linear; }

/* waveform under the orb — bars animate only while someone speaks */
.call-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 20px; margin: 2px 0 8px; opacity: .35; }
.call-wave i { width: 4px; height: 6px; border-radius: 2px; background: var(--accent); }
.call-orb.speaking + .call-wave { opacity: 1; }
.call-orb.speaking + .call-wave i { animation: waveBar .6s ease-in-out infinite; }
.call-wave i:nth-child(2) { animation-delay: .12s; }
.call-wave i:nth-child(3) { animation-delay: .24s; }
.call-wave i:nth-child(4) { animation-delay: .36s; }
.call-wave i:nth-child(5) { animation-delay: .48s; }
@keyframes waveBar { 0%,100% { height: 6px; } 50% { height: 18px; } }

/* large live caption */
.call-caption { text-align: center; font-size: 17px; line-height: 1.4; font-weight: 500; color: var(--text); min-height: 24px; margin: 4px 6px 14px; transition: opacity .2s ease; }
.call-caption:empty { display: none; }

/* permission / error notice card */
.call-notice { display: none; text-align: center; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 16px; padding: 22px 20px; margin: 6px 0 16px; }
.call-modal.state-permission .call-notice,
.call-modal.state-denied .call-notice,
.call-modal.state-error .call-notice { display: block; }
.call-notice .cn-icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 12px; }
.call-notice .cn-icon svg { width: 22px; height: 22px; color: var(--accent); }
.call-notice .cn-title { font-family: var(--display); font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.call-notice .cn-body { color: var(--muted); font-size: 14px; line-height: 1.5; }
.call-notice .cn-retry { display: none; margin: 16px auto 0; background: var(--dark); color: #fff; border: none; border-radius: 12px; padding: 11px 22px; font-size: 14px; font-weight: 600; font-family: var(--body); cursor: pointer; }
.call-modal.state-denied .call-notice .cn-retry,
.call-modal.state-error .call-notice .cn-retry { display: inline-block; }
.call-modal.state-permission .call-orb,
.call-modal.state-permission .call-wave,
.call-modal.state-permission .call-caption,
.call-modal.state-denied .call-orb,
.call-modal.state-denied .call-wave,
.call-modal.state-denied .call-caption,
.call-modal.state-error .call-orb,
.call-modal.state-error .call-wave,
.call-modal.state-error .call-caption { display: none; }

/* info card */
.call-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.call-info .ci-item { background: var(--panel); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.call-info .ci-k { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 600; }
.call-info .ci-v { font-size: 15px; font-weight: 600; }
.call-info .ci-timer { font-variant-numeric: tabular-nums; }
.call-modal.state-permission .call-info,
.call-modal.state-denied .call-info,
.call-modal.state-error .call-info { display: none; }

.transcript { display: flex; flex-direction: column; gap: 9px; max-height: 200px; overflow-y: auto; margin: 0 0 18px; padding-right: 4px; -webkit-overflow-scrolling: touch; }
.call-modal.state-permission .transcript,
.call-modal.state-denied .transcript,
.call-modal.state-error .transcript { display: none; }
.msg { font-size: 14px; line-height: 1.45; padding: 10px 13px; border-radius: 14px; max-width: 86%; opacity: 0; transform: translateY(6px); animation: msgIn .35s ease forwards; }
.msg.bot { background: #f1eefb; color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--dark); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
@keyframes msgIn { to { opacity: 1; transform: none; } }

.end-call { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #e5484d; color: #fff; border: none; border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 600; font-family: var(--body); cursor: pointer; flex-shrink: 0; }
.end-call:hover { background: #d23b40; }
.end-call svg { width: 15px; height: 15px; }

/* full-screen call sheet on mobile */
@media (max-width: 480px) {
  .call-modal { padding: 0; align-items: stretch; justify-content: stretch; background: rgba(22,16,38,.6); }
  .call-card { max-width: 100%; width: 100%; height: 100%; max-height: 100%; border-radius: 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: none; }
  .call-head { padding-top: env(safe-area-inset-top); }
  .call-head .scenario { font-size: 13px; }
  .call-head .status { font-size: 15px; }
  .call-orb { width: 160px; height: 160px; margin: 32px auto 8px; }
  .call-orb .c-core { width: 96px; height: 96px; }
  .call-orb .c-core svg { width: 40px; height: 40px; }
  .call-orb .c-pulse { width: 96px; height: 96px; }
  .call-orb::after { width: 120px; height: 120px; }
  .call-caption { font-size: 19px; margin-bottom: 18px; }
  .transcript { flex: 1; max-height: none; min-height: 80px; }
  .call-info { margin-bottom: 16px; }
  .end-call { padding: 17px; font-size: 17px; border-radius: 14px; position: sticky; bottom: 0; }
}

/* vertical rails (texture) */
.rails { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.rails .inner { max-width: var(--max); height: 100%; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.strip, section, footer { position: relative; z-index: 1; }

/* whatsapp float button */
.wa { position: fixed; bottom: 26px; right: 26px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 28px -6px rgba(37,211,102,.55); z-index: 70; transition: transform .2s ease; }
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; }
.wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waPulse 2.4s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 36px; background: var(--panel); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: var(--muted); font-size: 15px; max-width: 300px; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--text); font-size: 15px; padding: 6px 0; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 44px; padding-top: 24px; color: var(--muted); font-size: 14px; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* legacy footer (kept for compatibility) */
footer.legacy { border-top: 1px solid var(--line); padding: 48px 0; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }

/* ===================== AUTH / LOGIN ===================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .brand { margin-bottom: 36px; }
.auth-card h1 { font-family: var(--display); font-size: 30px; letter-spacing: -.8px; font-weight: 700; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; font-size: 15px; }
.auth-card label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.auth-card input { width: 100%; padding: 13px 15px; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; font-size: 15px; font-family: var(--body); color: var(--text); }
.auth-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.12); }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 4px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 14px; }
.auth-row label { margin: 0; font-weight: 500; display: flex; align-items: center; gap: 7px; color: var(--muted); }
.auth-row a { color: var(--accent); }
.auth-divider { text-align: center; color: var(--muted); font-size: 13px; margin: 22px 0; border-top: 1px solid var(--line); line-height: 0; }
.auth-divider span { background: var(--bg); padding: 0 12px; }
.btn-outline { width: 100%; justify-content: center; background: var(--panel); color: var(--text); border: 1px solid var(--line-strong); display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 12px; font-size: 15px; font-weight: 500; font-family: var(--body); cursor: pointer; }
.btn-outline:hover { background: var(--bg); }
.auth-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }
.auth-foot a { color: var(--accent); font-weight: 500; }
.auth-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; background: var(--green); border: 1px solid var(--green-line); border-radius: 10px; padding: 10px; }
.auth-side { background: radial-gradient(130% 130% at 72% 28%, #3a1d6e, #1d0c39 66%); color: #fff; display: grid; place-items: center; padding: 48px; position: relative; overflow: hidden; }
.auth-side .quote { max-width: 400px; position: relative; z-index: 1; }
.auth-side .quote .big { font-family: var(--display); font-size: 28px; line-height: 1.3; letter-spacing: -.5px; margin-bottom: 22px; }
.auth-side .quote .by { color: rgba(255,255,255,.7); font-size: 14px; }
.auth-side .glow-bg { position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -80px; top: -60px; background: radial-gradient(circle, rgba(168,85,247,.4), transparent 65%); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ===================== DASHBOARD ===================== */
body.app { background: var(--bg); background-image: none; }
.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { border-right: 1px solid var(--line); background: var(--panel); padding: 20px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { padding: 6px 10px 24px; font-size: 20px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer; }
.side-nav a svg { width: 18px; height: 18px; }
.side-nav a:hover { background: var(--bg); color: var(--text); }
.side-nav a.active { background: #f1eefb; color: var(--text); }
.side-foot { border-top: 1px solid var(--line); padding-top: 12px; }
.side-foot .biz { display: flex; align-items: center; gap: 11px; padding: 8px 10px; }
.side-foot .biz .av { width: 36px; height: 36px; border-radius: 50%; background: #f1eefb; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--accent); }
.side-foot .biz .nm { font-size: 14px; font-weight: 600; }
.side-foot .biz .pl { font-size: 12px; color: var(--muted); }
.logout { display: flex; align-items: center; gap: 11px; padding: 10px 12px; color: var(--muted); font-size: 14px; border-radius: 10px; }
.logout:hover { color: var(--text); background: var(--bg); }
.logout svg { width: 17px; height: 17px; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(250,249,246,.92); backdrop-filter: blur(8px); z-index: 5; }
.topbar h1 { font-family: var(--display); font-size: 24px; letter-spacing: -.5px; font-weight: 700; }
.topbar .tb-right { display: flex; align-items: center; gap: 12px; }
.content { padding: 32px; max-width: 1080px; }
.view { display: none; }
.view.active { display: block; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.kpi .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi .val { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -1px; margin-top: 6px; }
.kpi .delta { font-size: 12px; color: #16a34a; margin-top: 4px; }
@media (max-width: 980px) { .kpis { grid-template-columns: 1fr 1fr; } }

.panel-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; overflow: hidden; }
.pc-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.pc-head h3 { font-family: var(--display); font-size: 17px; font-weight: 600; }
.pc-head a { font-size: 13px; color: var(--accent); cursor: pointer; }
.pc-body { padding: 22px; }

table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; padding: 12px 22px; border-bottom: 1px solid var(--line); }
table.tbl td { padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: none; }
.lead-name { font-weight: 600; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge.new { background: #f1eefb; color: var(--accent); }
.badge.contacted { background: #e9f4ea; color: #1a7f37; }
.badge.won { background: var(--dark); color: #fff; }
.link-btn { font-size: 13px; color: var(--accent); cursor: pointer; font-weight: 500; }

.bars { display: flex; align-items: flex-end; gap: 12px; height: 160px; padding: 24px 24px 36px; }
.bars .bar { flex: 1; background: linear-gradient(180deg, #a855f7, #7c5cff); border-radius: 6px 6px 0 0; position: relative; min-height: 6px; }
.bars .bar span { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-grid label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.settings-grid input, .settings-grid select, .settings-grid textarea { width: 100%; padding: 11px 13px; margin-bottom: 16px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; font-size: 14px; font-family: var(--body); color: var(--text); }
.settings-grid textarea { min-height: 90px; resize: vertical; }
@media (max-width: 880px) { .settings-grid { grid-template-columns: 1fr; } }

.intg-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.intg-row:last-child { border-bottom: none; }
.intg-row .l { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15px; }
.intg-row .l .d { width: 34px; height: 34px; border-radius: 9px; }
.conn { font-size: 13px; font-weight: 600; color: #1a7f37; display: flex; align-items: center; gap: 6px; }
.conn .dot { width: 7px; height: 7px; border-radius: 50%; background: #1a7f37; }

.plan-box { display: flex; justify-content: space-between; align-items: center; padding: 24px; background: #f1eefb; border-radius: var(--radius); margin-bottom: 22px; flex-wrap: wrap; gap: 16px; }
.plan-box .pname { font-family: var(--display); font-size: 22px; font-weight: 600; }
.plan-box .pmeta { color: var(--muted); font-size: 14px; margin-top: 4px; }

@media (max-width: 760px) { .app-shell { grid-template-columns: 1fr; } .sidebar { display: none; } .content { padding: 20px; } }

/* ===================== ONBOARDING WIZARD ===================== */
.wiz-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 32px; border-bottom: 1px solid var(--line); background: var(--panel); }
.wiz-top .help { color: var(--muted); font-size: 14px; }
.wizard { max-width: 660px; margin: 0 auto; padding: 44px 24px 90px; }
.wiz-steps { display: flex; gap: 8px; margin-bottom: 14px; }
.wiz-steps .s { flex: 1; height: 5px; border-radius: 999px; background: var(--line); transition: background .3s ease; }
.wiz-steps .s.active { background: var(--accent); }
.wiz-count { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 30px; }
.wiz-step { display: none; }
.wiz-step.active { display: block; animation: msgIn .35s ease; }
.wiz-step .eyebrow { margin-bottom: 12px; }
.wiz-step h2 { font-family: var(--display); font-size: 32px; letter-spacing: -1px; font-weight: 700; margin-bottom: 8px; }
.wiz-step .lead { color: var(--muted); font-size: 17px; margin-bottom: 28px; }
.wiz-field { margin-bottom: 18px; }
.wiz-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.wiz-field input, .wiz-field select, .wiz-field textarea { width: 100%; padding: 13px 15px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; font-size: 15px; font-family: var(--body); color: var(--text); }
.wiz-field input:focus, .wiz-field select:focus, .wiz-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.12); }
.wiz-field textarea { min-height: 92px; resize: vertical; }
.wiz-field .hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.opt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt-card { border: 1px solid var(--line-strong); border-radius: 14px; padding: 20px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.opt-card:hover { border-color: var(--accent); }
.opt-card.sel { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,92,255,.12); }
.opt-card h4 { font-family: var(--display); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.opt-card p { color: var(--muted); font-size: 14px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.toggle-row .tl { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.toggle-row .tl .d { width: 30px; height: 30px; border-radius: 8px; }
.switch { width: 46px; height: 27px; border-radius: 999px; background: var(--accent); position: relative; cursor: pointer; flex-shrink: 0; transition: background .2s ease; }
.switch::after { content: ""; position: absolute; width: 21px; height: 21px; border-radius: 50%; background: #fff; top: 3px; right: 3px; transition: all .2s ease; }
.switch.off { background: var(--line-strong); }
.switch.off::after { left: 3px; right: auto; }
.wiz-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; }
.wiz-preview { margin-top: 20px; }
.go-live { text-align: center; padding: 20px 0; }
.go-live .check { width: 70px; height: 70px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 0 auto 22px; }
.go-live .check svg { width: 34px; height: 34px; color: #1a7f37; }
.go-live h2 { font-family: var(--display); font-size: 34px; letter-spacing: -1px; margin-bottom: 10px; }
.go-live p { color: var(--muted); font-size: 17px; max-width: 420px; margin: 0 auto 12px; }
.summary { text-align: left; max-width: 420px; margin: 24px auto 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.summary .row { display: flex; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary .row:last-child { border-bottom: none; }
.summary .row .k { color: var(--muted); }
.summary .row .v { font-weight: 600; }


/* ============================================================
   MOBILE — hamburger nav, dashboard bottom nav, table scroll,
   and small-screen tuning (iPhone 13 = 390px, Galaxy S9 = 360px)
   ============================================================ */

/* horizontal-overflow safety net (clip, not hidden, so it never becomes a
   scroll container — keeps window scrolling + the sticky header working) */
html { overflow-x: clip; }

/* marketing hamburger (hidden on desktop) */
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-menu { display: none; flex-direction: column; gap: 2px; padding: 10px 24px 18px; border-top: 1px solid var(--line); background: rgba(250,249,246,.98); }
.mobile-menu a { padding: 13px 4px; font-size: 16px; font-weight: 500; color: var(--text); min-height: 44px; display: flex; align-items: center; }
.mobile-menu a.btn { margin-top: 10px; color: #fff; }

/* dashboard mobile bottom nav + more sheet (hidden on desktop) */
.mobile-nav { display: none; }
.more-sheet { display: none; }

/* scrollable table wrapper (dashboard) */
.tbl-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .mobile-menu:not([hidden]) { display: flex; }
}

@media (max-width: 760px) {
  table.tbl { min-width: 520px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { padding: 20px 16px calc(78px + env(safe-area-inset-bottom)); }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; padding: 8px 2px; color: var(--muted); font-size: 11px; font-weight: 500; cursor: pointer; }
  .mobile-nav a svg { width: 22px; height: 22px; }
  .mobile-nav a.active { color: var(--accent); }
  .more-sheet.open { display: flex; flex-direction: column; position: fixed; bottom: calc(56px + env(safe-area-inset-bottom)); left: 0; right: 0; z-index: 49; background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
  .more-sheet a { padding: 16px 20px; min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--text); }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }

  /* hero */
  .hero { padding: 56px 0 56px; }
  .hero h1 { font-size: 34px; letter-spacing: -1px; }
  .hero h1 .serif-i { font-size: 36px; }
  .hero p.sub { font-size: 17px; }
  .demo { flex-direction: column; gap: 12px; }
  .demo-select, .demo select { width: 100%; min-width: 0; }
  .btn-call { width: 100%; justify-content: center; }
  .compliance { font-size: 11px; letter-spacing: .2px; align-items: flex-start; }
  .compliance svg { margin-top: 2px; }
  .strip-inner { gap: 10px 18px !important; justify-content: center; }
  .strip-inner .label { font-size: 13px; white-space: normal; text-align: center; }

  /* sections + headings */
  section { padding: 48px 0; }
  .head { margin-bottom: 34px; }
  .head h2 { font-size: 28px; letter-spacing: -.6px; }
  .head p { font-size: 16px; }
  .split h2 { font-size: 26px; letter-spacing: -.5px; }
  .page-hero { padding: 56px 0 44px; }
  .page-hero h1 { font-size: 30px; letter-spacing: -.6px; }
  .page-hero h1 .serif-i { font-size: 32px; }
  .page-hero p { font-size: 16px; }
  .card { padding: 24px 20px; }
  .sample { padding: 20px 18px; }
  .msg { max-width: 92%; }

  /* pricing */
  .tier { padding: 30px 22px; }
  .tier .price { font-size: 40px; letter-spacing: -1.5px; }
  .toggle { display: flex; width: 100%; max-width: 300px; margin: 0 auto 36px; }
  .toggle button { flex: 1; padding: 12px 12px; min-height: 44px; justify-content: center; }

  /* banners */
  .banner { padding: 40px 22px; }
  .banner h2 { font-size: 26px; letter-spacing: -.6px; }
  .banner p { font-size: 16px; }
  .banner-free { padding: 40px 22px; }
  .banner-free h2 { font-size: 30px; }

  /* contact / about */
  .form-card { padding: 22px 18px; }
  .contact-grid .left h2 { font-size: 30px; letter-spacing: -1px; }
  .contact-grid .left p { font-size: 16px; }
  .contact-links a { padding: 8px 0; }

  /* prose (privacy) */
  .prose h2 { font-size: 20px; margin: 28px 0 10px; }
  .prose p, .prose li { font-size: 15.5px; }
  .prose, .prose a { overflow-wrap: anywhere; }

  /* footer */
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .foot-brand p { max-width: none; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 28px; }
  .foot-col a { padding: 11px 0; }
  .foot-col h4 { margin-bottom: 8px; }
  .site-footer { padding: 40px 0 84px; }
  footer.legacy { padding-bottom: 84px; }

  /* whatsapp float */
  .wa { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .wa svg { width: 26px; height: 26px; }

  /* auth */
  .auth-form-wrap { padding: 28px 18px; }
  .auth-card .brand { margin-bottom: 24px; }
  .auth-card h1 { font-size: 26px; }
  .auth-card .sub { font-size: 14px; margin-bottom: 22px; }

  /* onboarding wizard */
  .wiz-top { padding: 14px 16px; flex-wrap: wrap; gap: 6px; }
  .wiz-top .help { font-size: 13px; }
  .wizard { padding: 28px 16px 80px; }
  .wiz-step h2, .go-live h2 { font-size: 26px; letter-spacing: -.5px; }
  .wiz-step .lead, .go-live p { font-size: 15px; margin-bottom: 22px; }
  .opt-cards { grid-template-columns: 1fr; }
  .opt-card { padding: 16px; }
  .toggle-row { padding: 12px 14px; gap: 12px; }
  .toggle-row .tl { font-size: 14px; line-height: 1.3; }
  .toggle-row .tl .d { width: 22px; height: 22px; flex-shrink: 0; }

  /* dashboard */
  .kpis { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
  .kpi { padding: 16px; }
  .kpi .val { font-size: 28px; }
  .topbar { padding: 14px 16px; }
  .topbar h1 { font-size: 20px; }
  .topbar .tb-right span { display: none; }
  .topbar .tb-right .btn { padding: 9px 14px !important; font-size: 13px !important; }
  .plan-box { padding: 18px; }
  .plan-box .pname { font-size: 20px; }
  .intg-row { padding: 14px 16px; gap: 10px; }
  .intg-row .l { font-size: 14px; }
  .intg-row .l .d { width: 26px; height: 26px; flex-shrink: 0; }
  table.tbl th { padding: 10px 14px; font-size: 11px; }
  table.tbl td { padding: 12px 14px; font-size: 13px; }
}

@media (max-width: 360px) {
  .wrap { padding: 0 14px; }
  .hero h1 { font-size: 30px; }
  .hero h1 .serif-i { font-size: 32px; }
  .head h2 { font-size: 25px; }
  .split h2 { font-size: 24px; }
  .page-hero h1 { font-size: 27px; }
  .page-hero h1 .serif-i { font-size: 29px; }
  .contact-grid .left h2 { font-size: 27px; }
  .tier { padding: 26px 18px; }
  .tier .price { font-size: 36px; }
  .wiz-step h2, .go-live h2 { font-size: 23px; }
  .kpis { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
}

/* mobile header: keep brand + hamburger + a compact CTA on one line */
@media (max-width: 900px) {
  .nav { padding: 14px 18px; gap: 10px; }
  .nav-right { gap: 8px; }
  .nav-right .btn { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
  .nav-right .btn .plus { display: none; }
}

/* ============================================================
   MOBILE CAROUSELS — turn stacked card rows into horizontal
   swipe carousels on phones so the home doesn't feel endless.
   Opt-in via the `swipe` class on a card container.
   ============================================================ */
@media (max-width: 760px) {
  .swipe {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 82%; scroll-snap-align: start; }
  .showcase.swipe > * { flex: 0 0 88%; }

  /* stats + pricing use a unified bordered container — give each card
     its own border/radius once it becomes a carousel item. */
  .stats.swipe, .pricing.swipe {
    border: none; border-radius: 0; overflow-x: auto; overflow-y: visible;
    background: transparent;
  }
  .stats.swipe .stat {
    flex: 0 0 78%; border: 1px solid var(--line); border-radius: 16px;
    scroll-snap-align: start; background: var(--panel);
  }
  .pricing.swipe .tier {
    flex: 0 0 86%; border: 1px solid var(--line); border-radius: 18px;
    scroll-snap-align: start;
  }
  .pricing.swipe .tier.pop { border-color: var(--green-line); }

  /* audience: a free-scrolling row of small tags (no snap) */
  .audience.swipe { scroll-snap-type: none; padding-bottom: 12px; }
  .audience.swipe > * { flex: 0 0 auto; }

  /* a touch more peek on the very smallest screens */
}
@media (max-width: 360px) {
  .swipe > * { flex: 0 0 86%; }
  .showcase.swipe > * { flex: 0 0 90%; }
}
