/* Public site: comparator journey + Clara dock. Builds on theme.css. */

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: 64px 0 24px; scroll-margin-top: 80px; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.kicker { display: inline-block; font: 700 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.grad { background: linear-gradient(100deg, var(--brand) 10%, var(--brand-2) 45%, var(--violet) 75%, var(--telnyx)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* background */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; filter: blur(90px); opacity: .22; animation: drift 26s var(--ease) infinite alternate; }
.aurora span:nth-child(1) { background: var(--brand); top: -25vmax; left: -15vmax; }
.aurora span:nth-child(2) { background: var(--violet); top: -10vmax; right: -25vmax; animation-delay: -8s; opacity: .16; }
.aurora span:nth-child(3) { background: var(--telnyx); bottom: -35vmax; left: 25vmax; animation-delay: -16s; opacity: .1; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.08); } }
:root[data-theme="light"] .aurora span { opacity: .12; }

/* topbar */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px/1 var(--font-display); }
.logo small { display: block; font: 600 11px/1.4 var(--font-mono); color: var(--txt-3); letter-spacing: .04em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 22px -10px var(--brand); }
.logo-mark svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { text-decoration: none; padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--txt-2); transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a.on { background: var(--surface-2); color: var(--txt); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
#mode-pill.live { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
@media (max-width: 960px) { .nav-links { display: none; } }
@media (max-width: 560px) { #mode-pill { display: none; } }
@media (max-width: 480px) { .nav-right #theme { display: none; } .nav-right { gap: 6px; } .logo > span:not(.logo-mark) { display: none; } .lang-switch button { min-width: 28px; padding: 0 4px; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 56px 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); font: 600 12px/1 var(--font-mono); color: var(--txt-2); margin-bottom: 22px; }
.eyebrow .dot { color: var(--telnyx); }
.sub { font-size: 18px; color: var(--txt-2); max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-cta .btn { padding: 14px 24px; font-size: 15.5px; border-radius: 14px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 26px; list-style: none; padding: 0; margin: 0; color: var(--txt-3); font-size: 13.5px; }
.hero-proof b { display: block; font: 700 26px/1.1 var(--font-display); color: var(--txt); }
.hero-stage { display: grid; place-items: center; }
.orb-card { position: relative; width: min(420px, 100%); border-radius: 34px; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--brand) 16%, var(--surface)), var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; cursor: pointer; }
.orb-card canvas { width: 100%; height: auto; aspect-ratio: 1; display: block; }
.orb-meta { text-align: center; margin-top: -30px; }
.orb-name { font: 700 22px/1 var(--font-display); }
.orb-state { font-size: 13px; color: var(--txt-3); margin-top: 6px; }
.orb-caption { margin: 14px 18px 20px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; min-height: 62px; color: var(--txt-2); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 32px; } .orb-card { width: min(340px, 100%); } }

/* journey stepper */
.journey { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 0; margin: 24px 0 0; counter-reset: s; }
.journey li { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--txt-3); transition: all .4s var(--ease); }
.journey li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font: 700 12px/1 var(--font-mono); transition: all .4s var(--ease); }
.journey li b { font-weight: inherit; }
.journey li.done { color: var(--txt); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.journey li.done span { background: var(--brand); color: #fff; }
.journey li.flash { animation: flash 1s var(--ease); }
@keyframes flash { 30% { transform: translateY(-3px); box-shadow: 0 10px 30px -10px var(--brand); } }
@media (max-width: 720px) { .journey { grid-template-columns: repeat(5, auto); overflow-x: auto; } .journey li { font-size: 0; gap: 0; padding: 10px; justify-content: center; } }

/* quote form */
.quote-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }
.form-card { padding: 24px; }
.plate-wrap { position: relative; }
.plate-wrap input { padding-right: 64px; }
.plate-cc { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 700 11px/1 var(--font-mono); padding: 4px 7px; border-radius: 99px; background: var(--surface-2); color: var(--txt-2); border: 1px solid var(--line); pointer-events: none; }
.plate { text-transform: uppercase; font-family: var(--font-mono); letter-spacing: .08em; font-weight: 700; }
.field.glow input, .field.glow select { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), 0 0 30px -6px var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface-2)); }
.field.glow label::after { content: " · compilato da Clara"; color: var(--brand); font-weight: 700; }
:lang(en) .field.glow label::after { content: " · filled in by Clara"; }
:lang(fr) .field.glow label::after { content: " · rempli par Clara"; }
:lang(de) .field.glow label::after { content: " · von Clara ausgefüllt"; }
.field.bad input, .field.bad select { border-color: var(--err); box-shadow: 0 0 0 4px var(--err-soft); }
.form-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.profile-card { position: sticky; top: 84px; text-align: center; }
.ring { position: relative; width: 130px; height: 130px; margin: 4px auto 16px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: var(--surface-3); }
.ring-fg { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset .8s var(--ease); }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; }
.ring-num b { font: 700 28px/1 var(--font-display); }
.ring-num span { font-size: 12px; color: var(--txt-3); }
.missing { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.missing li { padding: 4px 10px; border-radius: 99px; background: var(--surface-2); border: 1px dashed var(--line-strong); font-size: 12.5px; font-weight: 600; color: var(--txt-2); }
.missing li.ok { border-style: solid; color: var(--ok); background: var(--ok-soft); }
.profile-tip { font-size: 13px; color: var(--txt-3); text-align: left; padding: 12px; border-radius: 12px; background: var(--surface-2); }

/* offers */
.offers-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .offers-layout { grid-template-columns: 1fr; } }
.offers { display: grid; gap: 12px; }
.empty { text-align: center; padding: 40px; color: var(--txt-3); border-style: dashed; }
.offer { position: relative; display: grid; grid-template-columns: 54px 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; opacity: 0; transform: translateY(14px); animation: offerIn .55s var(--ease) forwards; }
.offer:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.offer.best { border-color: color-mix(in srgb, var(--brand) 50%, transparent); background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), var(--surface) 60%); }
.offer.selected { border-color: var(--telnyx); box-shadow: 0 0 0 3px var(--telnyx-soft); }
@keyframes offerIn { to { opacity: 1; transform: none; } }
.offer-logo { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font: 700 20px/1 var(--font-display); color: #fff; }
.offer-name { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.offer-meta { font-size: 13px; color: var(--txt-3); margin-top: 3px; }
.offer-price { text-align: right; font: 700 26px/1 var(--font-display); }
.offer-price small { display: block; font: 600 12px/1.6 var(--font); color: var(--txt-3); }
.badge-best { font-size: 11px; padding: 3px 9px; border-radius: 99px; background: var(--brand); color: #fff; font-weight: 800; letter-spacing: .02em; }
.stars { color: var(--warn); letter-spacing: 1px; }
.summary-card { position: sticky; top: 84px; }
.addons { display: grid; gap: 8px; margin: 14px 0; }
.addon { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; font-size: 14px; font-weight: 600; transition: border-color .2s, background .2s; }
.addon input { margin: 0; }
.addon .price { margin-left: auto; color: var(--txt-3); font-family: var(--font-mono); font-size: 12.5px; }
.addon.on { border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: var(--brand-soft); }
.addon.flash { animation: flash .9s var(--ease); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.total b { font: 700 28px/1 var(--font-display); }
.send-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* verify + phone */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.otp-card { margin-top: 18px; }
.inline-form { display: flex; gap: 8px; margin-top: 10px; }
.inline-form input { flex: 1; }
.otp-row { display: flex; gap: 8px; margin-top: 14px; }
.otp-row input { width: 48px; height: 56px; text-align: center; font: 700 22px/1 var(--font-mono); padding: 0; }
.otp-row input.filled { border-color: var(--brand); }
.phone { width: min(320px, 100%); margin-inline: auto; aspect-ratio: 9 / 18; border-radius: 44px; background: var(--surface); border: 10px solid #0a090d; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; overflow: hidden; position: relative; }
:root[data-theme="light"] .phone { border-color: #1d1b22; }
.phone-notch { width: 96px; height: 24px; border-radius: 0 0 16px 16px; background: #0a090d; margin: 0 auto; flex: none; }
.phone-head { display: flex; flex-direction: column; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.phone-head .muted { font-weight: 600; font-size: 12px; }
.phone-thread { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.phone.whatsapp .phone-thread { background: color-mix(in srgb, #075e54 12%, var(--surface)); }
.phone-empty { margin: auto; color: var(--txt-3); font-size: 13px; text-align: center; }
.bubble { max-width: 86%; padding: 10px 12px; border-radius: 16px 16px 16px 4px; background: var(--surface-3); font-size: 13.5px; line-height: 1.45; animation: bubbleIn .45s var(--ease); }
.bubble.wa { background: color-mix(in srgb, #25d366 22%, var(--surface-2)); }
.bubble.mail { border-radius: 12px; max-width: 100%; background: var(--surface-2); border: 1px solid var(--line); }
.bubble.mail b { display: block; margin-bottom: 4px; }
.bubble time { display: block; font-size: 10.5px; color: var(--txt-3); margin-top: 4px; text-align: right; }
.bubble .tag { display: inline-block; font: 700 10px/1 var(--font-mono); padding: 3px 6px; border-radius: 5px; background: var(--brand-soft); color: var(--brand); margin-bottom: 5px; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* channels */
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .channel-grid { grid-template-columns: 1fr; } }
.channel { display: flex; flex-direction: column; gap: 10px; }
.channel .btn { align-self: flex-start; }
.ch-icon { font-size: 28px; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--surface-2); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; color: var(--txt-2); }
.ticks li::before { content: "✓"; color: var(--telnyx); font-weight: 800; margin-right: 8px; }
.transcript { font-size: 13px; max-height: 200px; overflow-y: auto; padding: 10px; border-radius: 10px; background: var(--surface-2); }

/* stack */
.stack-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
@media (max-width: 900px) { .stack-grid { grid-template-columns: 1fr; } }
.arch { display: flex; flex-direction: column; align-items: stretch; }
.arch-node { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s, transform .3s; }
.arch-node b { display: block; }
.arch-node span { font-size: 12.5px; color: var(--txt-3); }
.arch-node.ping { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); transform: scale(1.015); }
.arch-wire { height: 26px; position: relative; }
.arch-wire i { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line-strong); }
.arch-wire i::after { content: ""; position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); opacity: 0; }
.arch-wire.flow i::after { animation: wire .7s linear; }
@keyframes wire { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 0; } }
.events { display: flex; flex-direction: column; min-height: 360px; }
.events-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.latency { display: flex; gap: 6px; flex-wrap: wrap; }
.event-log { list-style: none; padding: 0; margin: 8px 0 0; font: 500 12.5px/1.5 var(--font-mono); max-height: 380px; overflow-y: auto; display: flex; flex-direction: column-reverse; gap: 4px; }
.event-log li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 6px 8px; border-radius: 8px; animation: rise .3s var(--ease); }
.event-log li:nth-child(odd) { background: var(--surface-2); }
.event-log .t { color: var(--txt-3); }
.event-log .k-tool { color: var(--brand); }
.event-log .k-ok { color: var(--ok); }
.event-log .k-err { color: var(--err); }
.event-log .k-ai { color: var(--violet); }

/* footer */
.footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 26px 0 120px; color: var(--txt-3); font-size: 13px; }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- dock ---------- */
.dock { position: fixed; right: 20px; bottom: 20px; z-index: 80; }
.dock-launch { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); color: var(--txt); font: 700 14.5px/1 var(--font); cursor: pointer; box-shadow: var(--shadow); transition: transform .2s var(--ease); }
.dock-launch:hover { transform: translateY(-2px); }
.mini-orb { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--brand-2), var(--brand) 55%, #a32a00); box-shadow: 0 0 0 0 var(--brand); position: relative; flex: none; }
.mini-orb i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .85); transition: transform .1s; }
.dock[data-state="live"] .mini-orb { animation: pulse 1.8s infinite; color: var(--brand); }
.dock-panel { position: absolute; right: 0; bottom: 0; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 100px)); display: flex; flex-direction: column; border-radius: 24px; background: var(--glass); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); border: 1px solid var(--line-strong); box-shadow: var(--shadow); overflow: hidden; transform-origin: bottom right; animation: dockIn .35s var(--ease); }
.dock-panel[hidden] { display: none; }
@keyframes dockIn { from { opacity: 0; transform: scale(.92) translateY(12px); } to { opacity: 1; transform: none; } }
.dock.open .dock-launch { visibility: hidden; }
.dock-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 10px; }
.dock-title { display: flex; align-items: center; gap: 10px; }
.dock-title b { display: block; font-size: 15px; }
.dock-title span { font-size: 12.5px; color: var(--txt-3); }
.dock-actions { display: flex; gap: 6px; }
.dock-actions .btn.icon { width: 34px; height: 34px; padding: 7px; }
.dock-actions .btn[aria-pressed="true"] { background: var(--err-soft); color: var(--err); }
.dock-meter { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 14px 8px; }
.dock-meter span { height: 4px; border-radius: 4px; background: var(--surface-3); position: relative; overflow: hidden; }
.dock-meter span::after { content: ""; position: absolute; inset: 0; width: var(--lvl, 0%); border-radius: 4px; transition: width .08s linear; }
#meter-mic::after { background: var(--telnyx); }
#meter-agent::after { background: var(--brand); }
.chat { flex: 1; overflow-y: auto; padding: 8px 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-hello { font-size: 13.5px; color: var(--txt-2); padding: 12px; border-radius: 14px; background: var(--surface-2); }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.45; animation: rise .25s var(--ease); white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.msg.agent { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.agent.typing::after { content: "▍"; color: var(--brand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.toolchip { align-self: center; display: inline-flex; align-items: center; gap: 7px; font: 600 11.5px/1 var(--font-mono); padding: 6px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); animation: rise .25s var(--ease); }
.toolchip.ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.toolchip.err { background: var(--err-soft); color: var(--err); border-color: color-mix(in srgb, var(--err) 30%, transparent); }
.toolchip .spin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dock-input { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.dock-input input { border-radius: 99px; padding: 10px 16px; }
.dock-input .btn.icon { border-radius: 50%; flex: none; }
.dock-foot { display: flex; align-items: center; gap: 10px; padding: 0 14px 14px; }
.dock-foot .muted { font-size: 12px; }
#btn-call.live { --b: var(--err); }
@media (max-width: 520px) { .dock { right: 12px; bottom: 12px; } .dock-panel { height: calc(100vh - 80px); } }


/* Comparator switcher in the top bar (car, energy, broadband, mobile). */
.switcher a { white-space: nowrap; }
.switcher a.on { color: var(--txt); background: var(--brand-soft); border-radius: 999px; }
