/* ProjectPBX by 4voice - components. Every v1 component keeps v1's look; the NEW sub-page components (page hero, console, fig, steps,
   code tabs, mform, related, newstrip, crumbs...) are drawn in the same language. See COMPONENTS.md for markup. */

/* ===== nav ===================================================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.open { background: var(--nav-bg); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; font: 800 20px/1 var(--display); letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 6px 18px -6px var(--glow-blue); }
.brand small { display: block; font: 600 10.5px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; gap: 2px; margin-left: 8px; align-items: center; }
.nav-links > a, .nav-group__btn { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .2s, background-color .2s; background: none; border: 0; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-links > a:hover, .nav-links > a.active, .nav-links > a.is-active, .nav-group__btn:hover, .nav-group.is-active > .nav-group__btn, .nav-group.open > .nav-group__btn { color: var(--text); background: var(--card-2); }
.nav-group { position: relative; }
.nav-group__btn .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav-group.open .chev { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 10px); left: -8px; min-width: 300px; padding: 10px; display: grid; gap: 2px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-group.open > .menu, .nav-group:hover > .menu, .nav-group:focus-within > .menu { opacity: 1; visibility: visible; transform: none; }
.menu__item { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 11px; transition: background-color .2s; }
.menu__item:hover, .menu__item.is-active { background: var(--card-2); }
.menu__item b { display: block; font: 700 15px/1.2 var(--display); color: var(--text); }
.menu__item small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.menu__ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(77,124,255,.14); color: var(--blue-text); }
.menu__ico svg { width: 19px; height: 19px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); color: var(--text-2);
  transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; }
.search-btn { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 10px 0 12px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; transition: color .2s, border-color .2s; }
.search-btn:hover { color: var(--text); border-color: var(--line-2); }
.search-btn svg { width: 17px; height: 17px; }
.search-btn kbd { font-size: 11px; padding: 1px 6px; }
.theme-ico-sun { display: none; }
.is-light .theme-ico-sun { display: block; }
.is-light .theme-ico-moon { display: none; }
.menu-btn { display: none; }
.signin-wrap { position: relative; }
html:not(.js) #signinBtn { display: none; }
.signin-ns { font-size: 13px; color: var(--text-2); white-space: nowrap; } .signin-ns b { color: var(--text); font-weight: 600; }
@media (max-width: 1100px) { .signin-ns { display: none; } }
.signin-pop {
  position: absolute; right: 0; top: calc(100% + 12px); width: 330px; padding: 20px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s;
}
.signin-pop.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.signin-pop h4 { font-size: 16px; margin-bottom: 4px; }
.signin-pop p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.signin-pop p.is-error { color: var(--red-text); }
.sub-field { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line-2); border-radius: 11px; overflow: hidden; }
.sub-field:focus-within { border-color: var(--blue); }
.sub-field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 11px 4px 11px 12px; color: var(--text); font: 500 16px var(--font); text-align: right; }
.sub-field span { padding-right: 12px; color: var(--muted); font-size: 15px; }
.sub-field select { flex: none; min-height: 44px; background: none; border: 0; border-left: 1px solid var(--line-2); padding: 0 10px; color: var(--text-2); font: 500 15px var(--font); cursor: pointer; }
.sub-field select:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.sub-field select option { background: var(--bg-2); color: var(--text); }
.signin-pop .btn { width: 100%; margin-top: 12px; }
.nav-mobile-only { display: none; }

/* ===== hero (home) + page hero (sub-pages) ====================================================================== */
.hero { padding: 150px 0 40px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--orb-op); animation: float 18s ease-in-out infinite; }
.orb.o1 { width: 620px; height: 620px; left: -160px; top: -180px; background: radial-gradient(circle, #2f5fe0, transparent 70%); }
.orb.o2 { width: 520px; height: 520px; right: -140px; top: 40px; background: radial-gradient(circle, #f59e0b, transparent 70%); opacity: calc(var(--orb-op) * .5); animation-delay: -6s; }
.orb.o3 { width: 700px; height: 500px; left: 30%; top: 420px; background: radial-gradient(circle, #6d4dff, transparent 70%); opacity: calc(var(--orb-op) * .45); animation-delay: -12s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.06); } 66% { transform: translate(-30px, 25px) scale(.96); } }
#waves { position: absolute; left: 0; right: 0; top: 470px; width: 100%; height: 360px; opacity: .55; }

.hero-copy { text-align: center; max-width: 980px; margin: 0 auto; display: grid; justify-items: center; gap: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); backdrop-filter: blur(8px);
}
.pill b { background: linear-gradient(180deg, #ffcb52, var(--gold-2)); color: #1a1200; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.pill svg { width: 14px; height: 14px; }
a.pill:hover { border-color: var(--blue); }
.hero h1 { font-size: clamp(38px, 6.2vw, 78px); }
@media (max-width: 760px) { .hero h1 br { display: none; } }
.hero .lead { max-width: 680px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--green); }

/* page hero: the same stage as the home hero, one size down. Add .page-hero--split for copy left + framed screen right. */
.page-hero { padding: 132px 0 56px; overflow: hidden; isolation: isolate; }
.page-hero .hero-copy { gap: 22px; max-width: 880px; }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 66px); }
.page-hero .lead { max-width: 680px; }
.page-hero__media { margin: 56px auto 0; max-width: 1080px; position: relative; }
.page-hero--split .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.page-hero--split .hero-copy { text-align: left; justify-items: start; margin: 0; max-width: none; }
.page-hero--split .hero-cta { justify-content: flex-start; }
.page-hero--split .page-hero__media { margin: 0; max-width: none; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 14px; height: 14px; }
.crumbs [aria-current] { color: var(--text-2); }

.stage { position: relative; margin: 80px auto 0; max-width: 1180px; perspective: 2000px; }
.browser {
  position: relative; border-radius: 16px; overflow: hidden; background: #181b1f;
  box-shadow: var(--shadow), 0 0 120px -30px var(--glow-blue);
}
.stage .browser { transform: rotateX(14deg) scale(.96); transform-origin: 50% 0; transition: transform 1.2s cubic-bezier(.2, .7, .1, 1); }
.stage.in .browser { transform: rotateX(0) scale(1); }
.browser-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: #0f1218; border-bottom: 1px solid rgba(255,255,255,.06); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f4a; }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar .url {
  margin: 0 auto; display: flex; align-items: center; gap: 7px; padding: 5px 16px; border-radius: 8px;
  background: rgba(255,255,255,.05); color: #9aa6bd; font: 500 12.5px var(--font); min-width: 0;
}
.browser-bar .url svg { width: 12px; height: 12px; color: #73bf69; }
.browser-bar .chip { flex-shrink: 0; }
.browser img { width: 100%; }
.stage .browser img { aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }

.float-card {
  position: absolute; z-index: 3; border-radius: 16px; background: rgba(15, 20, 34, .86); border: 1px solid rgba(148, 170, 220, .22);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 60px -18px rgba(0,0,0,.7); color: #eaf0fb;
}
.pop-card { right: -26px; top: 40px; width: 320px; padding: 16px 18px; animation: bob 6s ease-in-out infinite; }
.pop-card .pc-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #9fb0cc; }
.pop-card .pc-top .chip { margin-left: auto; }
.pop-card .ring { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(115, 191, 105, .16); color: #73bf69; position: relative; }
.pop-card .ring::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #73bf69; animation: ping 1.6s ease-out infinite; }
.pop-card .ring svg { width: 13px; height: 13px; }
.pop-card .who { font: 700 20px/1.2 var(--display); margin: 10px 0 2px; transition: opacity .35s; }
.pop-card .num { font: 500 13px var(--mono); color: #9fb0cc; transition: opacity .35s; }
.pop-card .tix { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); display: grid; gap: 6px; font-size: 12.5px; color: #c4cee2; transition: opacity .35s; }
.pop-card .tix b { color: #8fb0ff; font-weight: 600; }
.pop-card .acts { display: flex; gap: 8px; margin-top: 14px; }
.pop-card .acts span { flex: 1; text-align: center; white-space: nowrap; padding: 8px; border-radius: 9px; font-size: 13px; font-weight: 600; }
.pop-card .acts .ok { background: #1f7a33; } .pop-card .acts .no { background: rgba(255,255,255,.07); }
.fade-out { opacity: 0 !important; }
@keyframes ping { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.phone-float { left: -36px; bottom: -30px; width: 190px; padding: 8px; border-radius: 30px; background: #05070c; border: 1px solid rgba(255,255,255,.12); animation: bob 7s ease-in-out infinite reverse; }
.phone-float::before { content: ""; position: absolute; top: 15px; left: 50%; width: 10px; height: 10px; margin-left: -5px; background: #05070c; border-radius: 99px; z-index: 2; }
.pf-screen { aspect-ratio: 9 / 16; border-radius: 23px; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 10px 14px 18px; text-align: center;
  background: radial-gradient(120% 70% at 50% 0%, rgba(77,124,255,.28), transparent 60%), #0d121c; }
.pf-top { width: 100%; display: flex; justify-content: space-between; font: 600 10px var(--font); color: #9fb0cc; padding: 0 4px; }
.pf-avatar { position: relative; margin-top: 30px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 700 19px var(--display); color: #fff; background: linear-gradient(135deg, #3f6cee, #2a55d6); }
.pf-avatar::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(91,136,255,.6); animation: ping 1.8s ease-out infinite; }
.pf-name { margin-top: 14px; font: 700 16px/1.2 var(--display); color: #fff; transition: opacity .35s; }
.pf-sub { margin-top: 4px; font-size: 11px; color: #9fb0cc; }
.pf-btns { margin-top: auto; width: 100%; display: flex; justify-content: space-around; }
.pf-btns span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.pf-btns svg { width: 19px; height: 19px; }
.pf-no { background: #d93a40; }
.pf-ok { background: #2a8a3e; animation: blink 1.4s infinite; }

.live-chip { left: 46%; bottom: -26px; padding: 12px 18px; display: flex; align-items: center; gap: 14px; font-size: 14px; animation: bob 8s ease-in-out infinite; animation-delay: -3s; }
.live-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: #73bf69; box-shadow: 0 0 0 4px rgba(115,191,105,.2); animation: blink 1.4s infinite; }
.live-chip b { font: 700 15px var(--display); color: #eaf0fb; }
.live-chip .lbl { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #9fb0cc; line-height: 1.3; }
@keyframes blink { 50% { opacity: .35; } }

/* ===== provenance chips: small v1 pills. "Live demo" on simulations, "Real screen" on screenshots ================= */
.chip {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text-2);
  font-size: 14px; font-weight: 600; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.chip--demo, .chip--real, .chip--addon {
  padding: 3px 10px 3px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.5; backdrop-filter: blur(6px);
}
.chip--demo::before, .chip--real::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.chip--demo { background: rgba(255, 187, 46, .14); border-color: rgba(255, 187, 46, .4); color: var(--gold-text); }
.chip--demo::before { background: var(--gold); animation: blink 1.6s infinite; }
.chip--real { background: rgba(115, 191, 105, .13); border-color: rgba(115, 191, 105, .38); color: #5aa851; }
.chip--real::before { background: var(--green); }
:root[data-theme="light"] .chip--real { color: #1f7a33; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .chip--real { color: #1f7a33; } }
.browser-bar .chip--demo { color: #ffcb52; } .browser-bar .chip--real { color: #8fd488; }
/* real-screen chips on always-dark surfaces keep light-green text in the light theme (beats the 0,3,0 rule above) */
:root[data-theme="light"] .browser-bar .chip--real, :root[data-theme="light"] .fig__chip.chip--real, :root[data-theme="light"] .shot .chip--real,
:root[data-theme="light"] .tile .chip--real, :root[data-theme="light"] .stage .chip--real { color: #8fd488; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .browser-bar .chip--real, :root:not([data-theme="dark"]) .fig__chip.chip--real,
  :root:not([data-theme="dark"]) .shot .chip--real, :root:not([data-theme="dark"]) .tile .chip--real, :root:not([data-theme="dark"]) .stage .chip--real { color: #8fd488; } }
.float-card .chip--demo { color: #ffcb52; }
.chip--addon { background: rgba(167, 139, 250, .14); border-color: rgba(167, 139, 250, .36); color: #6a45d6; padding-left: 10px; }
:root[data-theme="dark"] .chip--addon { color: #c1aefc; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip--addon { color: #c1aefc; } }
.chip.fig__chip { position: absolute; top: 12px; right: 12px; z-index: 3; }

/* ===== marquee / stats ======================================================================================== */
.marquee { padding: 70px 0 30px; overflow: hidden; }
.marquee p { padding-inline: 16px; text-wrap: balance; text-align: center; color: var(--muted); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 26px; }
.mq { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-track { display: flex; gap: 14px; flex-shrink: 0; padding-right: 14px; animation: scroll 60s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-track span {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  background: var(--card); border: 1px solid var(--line); color: var(--text-2); font-size: 15px; font-weight: 500;
}
.mq-track span i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.mq-track span:nth-child(3n) i { background: var(--gold); }
.mq-track span:nth-child(3n+1) i { background: var(--green); }
.mq.rev .mq-track { animation-direction: reverse; animation-duration: 70s; }
.mq + .mq { margin-top: 14px; }
@keyframes scroll { to { transform: translateX(-100%); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.stat { padding: 36px 30px; border-right: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.stat:last-child { border-right: 0; }
.stat b { font: 800 clamp(40px, 4.4vw, 56px)/1 var(--display); letter-spacing: -.03em; }
.stat b em { font-style: normal; color: var(--gold-text); }
.stat > span { color: var(--text-2); font-size: 15px; line-height: 1.5; }

/* ===== tour (tabs) ============================================================================================ */
.tour-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.tour-tab {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 13px;
  background: var(--card); border: 1px solid var(--line); color: var(--text-2); font-weight: 600; font-size: 15px;
  transition: color .2s, border-color .2s, background-color .2s;
}
.tour-tab svg { width: 18px; height: 18px; }
.tour-tab:hover { color: var(--text); }
.tour-tab[aria-selected="true"] { color: var(--text); border-color: rgba(77, 124, 255, .55); background: rgba(77, 124, 255, .12); }
.tour-tab .prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--blue), var(--gold)); }
.tour-tab[aria-selected="true"] .prog { animation: prog 9s linear forwards; }
.tour.paused .tour-tab .prog { animation-play-state: paused; }
.tour.stopped .tour-tab .prog { animation: none; width: 0; }
@keyframes prog { to { width: 100%; } }
.tour { display: grid; }
.tour-tabs { grid-row: 1; }
.tour-panel { grid-row: 2; grid-column: 1; display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; visibility: hidden; opacity: 0; pointer-events: none; }
.tour-panel.on { visibility: visible; opacity: 1; pointer-events: auto; animation: fadeUp .6s cubic-bezier(.2, .7, .1, 1); }
html:not(.js) .tour-tabs { display: none; }
html:not(.js) .tour-panel { visibility: visible; opacity: 1; pointer-events: auto; grid-column: auto; grid-row: auto; margin-bottom: 64px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.tour-copy { display: grid; gap: 20px; }
.tour-copy h3 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; letter-spacing: -.025em; }
.checks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 13px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--text-2); }
.checks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; background: rgba(77,124,255,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237da1ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checks li b { color: var(--text); font-weight: 600; }
.shot { position: relative; border-radius: 16px; overflow: hidden; background: #181b1f; box-shadow: var(--shadow); }
.shot img { width: 100%; }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.shot-wrap { position: relative; isolation: isolate; }
.shot-wrap::before { content: ""; position: absolute; inset: 8% 8% -6%; background: radial-gradient(closest-side, var(--glow-blue), transparent); filter: blur(40px); z-index: -1; }
.shot .chip { position: absolute; top: 12px; right: 12px; z-index: 3; }
[data-zoom] { cursor: zoom-in; }

/* ===== fig: a real screen (or illustration) in a v1 frame, with its provenance pill ============================= */
.fig { position: relative; }
.fig figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }
.fig .browser img { height: auto; }
.fig--phone { display: grid; justify-items: center; }
.fig--phone .phone { position: relative; width: 236px; }

/* ===== console: a framed live demo (glass panel with a title bar and a "Live demo" pill) ======================== */
.console { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.console__bar { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.console__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f4a; flex-shrink: 0; }
.console__bar i:nth-child(1) { background: #ff5f57; } .console__bar i:nth-child(2) { background: #febc2e; } .console__bar i:nth-child(3) { background: #28c840; }
.console__title { margin-left: 6px; font: 600 13px var(--font); color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console__bar .chip { margin-left: auto; flex-shrink: 0; }
.console__body { padding: 22px; }
.console figcaption, .console__foot { padding: 12px 22px 16px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); }
.console__out { display: block; min-height: 3.2em; color: var(--text-2); }
.console__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.console__foot .btn { flex-shrink: 0; }
.console__foot [data-attract-toggle][hidden] { display: none; }
.console--glow::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(closest-side, var(--glow-blue), transparent); filter: blur(60px); pointer-events: none; }
.console-wrap { position: relative; isolation: isolate; }
.console-wrap::before { content: ""; position: absolute; inset: 6% 6% -4%; background: radial-gradient(closest-side, var(--glow-blue), transparent); filter: blur(40px); z-index: -1; }

/* generic controls used inside consoles */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.seg__btn { padding: 8px 14px; border-radius: 9px; border: 0; background: none; color: var(--text-2); font-weight: 600; font-size: 14px; min-height: 36px; }
.seg__btn:hover { color: var(--text); }
.seg__btn[aria-checked="true"], .seg__btn[aria-pressed="true"] { background: var(--blue-2); color: #fff; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2); padding: 0; flex-shrink: 0; }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .2s, background-color .2s; }
.switch[aria-checked="true"] { background: var(--blue-2); border-color: var(--blue-2); }
.switch[aria-checked="true"] .switch__knob { transform: translateX(18px); background: #fff; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 9px 16px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--text-2); font-weight: 600; font-size: 14.5px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-color: rgba(77, 124, 255, .55); background: rgba(77, 124, 255, .12); }
.tabpanel[hidden] { display: none; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 260px; }
.key { height: 52px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); font: 700 20px var(--display); color: var(--text); transition: background-color .15s, border-color .15s, transform .15s; }
.key:hover { border-color: var(--blue); }
.key.is-pressed { background: var(--blue-2); color: #fff; transform: scale(.96); }
.field { display: grid; gap: 7px; }
.field__label, .field > label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card);
  color: var(--text); font: 500 16px var(--font); outline: 0; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--glow-blue); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field__msg { font-size: 13px; color: var(--red-text); display: flex; gap: 6px; align-items: center; }
.field__hint { font-size: 13px; color: var(--muted); }
.field select option { color: #000; }

/* ===== bento ================================================================================================== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 30px;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px; min-height: 280px;
  transition: border-color .3s, transform .3s;
}
.tile:hover { border-color: var(--line-2); transform: translateY(-3px); }
.tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(77,124,255,.12), transparent 40%);
}
.tile:hover::before { opacity: 1; }
.tile .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(77,124,255,.14); color: var(--blue-text); margin-bottom: 4px; }
.tile .ico.gold { background: rgba(255,187,46,.14); color: var(--gold-text); }
.tile .ico.green { background: rgba(115,191,105,.14); color: var(--green); }
.tile .ico.red { background: rgba(242,73,92,.14); color: var(--red-text); }
.tile .ico.violet { background: rgba(167,139,250,.14); color: var(--violet); }
:root[data-theme="light"] .tile .ico.violet { color: #6d4dd6; }
.tile .ico svg { width: 22px; height: 22px; }
.tile p { color: var(--text-2); font-size: 15.5px; }
.tile .link-more { margin-top: auto; padding-top: 8px; }
.t-6 { grid-column: span 6; } .t-4 { grid-column: span 4; } .t-3 { grid-column: span 3; } .t-2 { grid-column: span 2; }
.tile-media { margin: 10px -30px -30px; flex: 1; position: relative; min-height: 220px; overflow: hidden; }
.tile-media img { position: absolute; left: 30px; top: 0; width: calc(100% + 10px); max-width: none; border-radius: 12px 0 0 0; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.tile.split { flex-direction: row; align-items: stretch; gap: 30px; }
.tile.split .tl { flex: 0 0 38%; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.tile.split .tr { flex: 1; position: relative; min-height: 320px; margin: -30px -30px -30px 0; overflow: hidden; }
.tile.split .tr img { position: absolute; left: 0; top: 30px; width: 112%; max-width: none; border-radius: 12px 0 0 0; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tile .chip--real, .tile .chip--demo { position: absolute; top: 14px; right: 14px; z-index: 3; }

.transcript { margin-top: 8px; display: grid; gap: 10px; font-size: 14px; }
.tl-line { display: grid; grid-template-columns: 44px 1fr; gap: 10px; }
.rv-on .tl-line:not(.show) { opacity: 0; transform: translateY(6px); animation: rvSafe .01s 4s forwards; }
.tl-line { transition: opacity .4s, transform .4s; }
.tl-line time { font: 500 12px var(--mono); color: var(--muted); padding-top: 2px; }
.tl-line b { display: block; font-size: 12px; font-weight: 600; color: var(--green); }
:root[data-theme="light"] .tl-line b { color: #1f7a33; }
.tl-line.agent b { color: var(--blue-text); }
.tl-line span { color: var(--text-2); }
mark, .tl-line mark { background: var(--mark-bg); color: inherit; border-radius: 4px; padding: 0 3px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.badge { font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); color: var(--text-2); }
.e911 { margin-top: auto; border-radius: 14px; border: 1px solid rgba(242,73,92,.35); background: rgba(242,73,92,.07); padding: 14px 16px; display: grid; gap: 4px; font-size: 13.5px; }
.e911 b { color: var(--red-text); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.e911 span { color: var(--text-2); }

/* ===== contact center / mobile ================================================================================ */
.cc { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.cc > *, .mobile > * { min-width: 0; }
.cc-points { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin-top: 34px; }
.cc-points div { display: grid; gap: 6px; align-content: start; }
.cc-points h4 { font-size: 16.5px; display: flex; align-items: center; gap: 10px; }
.cc-points h4 svg { width: 18px; height: 18px; color: var(--gold-text); flex-shrink: 0; }
.cc-points p { font-size: 15px; color: var(--text-2); }
.bg-band { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }

.mobile-sec { overflow: hidden; }
.mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.phones { position: relative; height: 560px; }
.phone {
  position: absolute; width: 236px; padding: 9px; border-radius: 38px; background: #05070c;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px -24px rgba(0,0,0,.7), inset 0 0 0 2px #1d2230;
  transition: transform .8s cubic-bezier(.2,.7,.1,1);
}
.phone img { width: 100%; border-radius: 29px; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 10px; height: 10px; margin-left: -5px; background: #05070c; border-radius: 99px; z-index: 2; }
.phone.p1 { left: 50%; top: 10px; margin-left: -118px; z-index: 3; }
.phone.p2 { left: 50%; top: 50px; margin-left: -275px; transform: rotate(-9deg); z-index: 2; }
.phone.p3 { left: 50%; top: 50px; margin-left: 39px; transform: rotate(9deg); z-index: 2; }
.phones:hover .phone.p2 { transform: rotate(-12deg) translateX(-14px); }
.phones:hover .phone.p3 { transform: rotate(12deg) translateX(14px); }
.mob-feats { display: grid; gap: 18px; margin-top: 30px; }
.mob-feat { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.mob-feat .ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,187,46,.12); color: var(--gold-text); }
.mob-feat .ico svg { width: 22px; height: 22px; }
.mob-feat h4 { font-size: 16.5px; margin-bottom: 3px; }
.mob-feat p { font-size: 14.5px; color: var(--text-2); }

/* ===== architecture / steps / security grid / logos ============================================================ */
.arch { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.arch-svg { width: 100%; height: auto; overflow: visible; }
.arch-svg .box { fill: var(--bg-3); stroke: var(--line-2); }
.arch-svg .box.hl { stroke: rgba(77,124,255,.7); }
.arch-svg .box.gd { stroke: rgba(255,187,46,.6); }
.arch-svg .box.dim { stroke-dasharray: 5 5; }
.arch-svg text { fill: var(--text); font-family: var(--font); }
.arch-svg .t1 { font-size: 15px; font-weight: 700; }
.arch-svg .t2 { font-size: 12px; fill: var(--muted); }
.arch-svg .t3 { font-size: 11px; font-weight: 700; letter-spacing: .12em; fill: var(--gold-text); }
.arch-svg .wire { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.arch-svg .flow { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 6 10; animation: dash 1.4s linear infinite; }
.arch-svg .flow.gold { stroke: var(--gold); animation-duration: 2s; }
.arch-svg .flow.green { stroke: var(--green); }
@keyframes dash { to { stroke-dashoffset: -32; } }
.arch-svg .pulse { fill: var(--green); animation: blink 1.6s infinite; }
.arch-list, .steps { display: grid; gap: 18px; margin-top: 30px; list-style: none; padding: 0; }
.arch-item, .step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.arch-item .n, .step .n { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font: 700 14px var(--mono); color: var(--gold-text); background: rgba(255,187,46,.1); border: 1px solid rgba(255,187,46,.25); }
.arch-item h4, .step h4 { font-size: 16.5px; margin-bottom: 2px; }
.arch-item p, .step p { font-size: 14.5px; color: var(--text-2); }
.steps--row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 0; }
.steps--row .step { grid-template-columns: 1fr; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; display: grid; gap: 26px; border-left: 2px solid var(--line-2); }
.timeline > li { position: relative; display: grid; gap: 6px; }
.timeline > li::before { content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--blue); }
.timeline time { font: 500 13px var(--mono); color: var(--muted); }

.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sec-cell { background: var(--bg); padding: 30px 26px; display: grid; gap: 10px; align-content: start; transition: background-color .3s; }
.sec-cell:hover { background: var(--bg-2); }
.sec-cell svg { width: 26px; height: 26px; color: var(--blue-text); }
.sec-cell h4 { font-size: 16.5px; }
.sec-cell p { font-size: 14.5px; color: var(--text-2); }
a.sec-cell { color: inherit; }
a.sec-cell:hover h4 { color: var(--blue-text); }
a.sec-cell:focus-visible { outline-offset: -4px; }
a.sec-cell .chip { justify-self: start; }
.sec-grid--3 { grid-template-columns: repeat(3, 1fr); }

.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logo-card {
  display: grid; place-items: center; gap: 10px; text-align: center; padding: 26px 14px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--card); transition: border-color .25s, transform .25s;
}
.logo-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.logo-card svg { width: 30px; height: 30px; color: var(--text-2); }
.logo-card b { font: 700 15px var(--display); }
.logo-card span { font-size: 12.5px; color: var(--muted); }

/* ===== feature catalog + listings ============================================================================= */
.cat-tools { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.cat-search { position: relative; flex: 1 1 320px; max-width: 460px; }
.cat-search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); }
.cat-search input {
  width: 100%; height: 52px; padding: 0 16px 0 46px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card);
  color: var(--text); font: 500 16px var(--font); outline: 0; transition: border-color .2s, box-shadow .2s;
}
.cat-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--glow-blue); }
.cat-count { color: var(--muted); font-size: 14px; }
.cat-count b { color: var(--text); font-family: var(--mono); }
.cat-filters, .chiplist { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; list-style: none; padding: 0; }
.chiplist { margin-bottom: 0; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip[aria-pressed="true"] { background: var(--blue-2); border-color: var(--blue-2); color: #fff; }
.chip small { opacity: .75; font-weight: 500; margin-left: 4px; }
.chip[aria-pressed="true"] small, .seg__btn[aria-checked="true"] small, .seg__btn[aria-pressed="true"] small { opacity: 1; }
.cat-grid, .feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.feat {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--card); transition: border-color .2s, background-color .2s;
}
a.feat:hover, .feat:hover { border-color: var(--line-2); background: var(--card-2); }
.feat i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; background: var(--bg-3); color: var(--blue-text); }
.feat i svg { width: 16px; height: 16px; }
.feat b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.feat span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.feat .chip { margin-top: 6px; }
.feat mark { background: var(--mark-bg); }
.cat-empty { display: none; padding: 50px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 16px; }
.cat-more { display: flex; justify-content: center; margin-top: 26px; gap: 12px; flex-wrap: wrap; }

/* ===== plans ================================================================================================== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 34px 30px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--card);
}
.plan.featured { background: linear-gradient(180deg, rgba(77,124,255,.16), var(--card) 60%); border-color: rgba(77,124,255,.5); box-shadow: 0 30px 80px -30px var(--glow-blue); }
.plan .tag { position: absolute; top: -13px; left: 30px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: linear-gradient(180deg, #ffcb52, var(--gold-2)); color: #1a1200; letter-spacing: .02em; }
.plan h3 { font-size: 24px; }
.plan .for { color: var(--text-2); font-size: 15px; min-height: 48px; }
.plan .price { font: 800 28px/1.1 var(--display); letter-spacing: -.02em; }
.plan .price small { display: block; font: 500 13.5px var(--font); color: var(--muted); margin-top: 8px; letter-spacing: 0; }
.plan .checks { gap: 11px; font-size: 15px; }
.plan .btn { margin-top: auto; }
.plans-note { text-align: center; margin-top: 28px; color: var(--muted); font-size: 14.5px; }

/* ===== faq / accordion ======================================================================================== */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px; font: 600 17px/1.4 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; background: var(--card-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238592ad' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238592ad' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.faq .ans { padding: 0 26px 24px; color: var(--text-2); }

/* ===== cta box / form ========================================================================================= */
.cta-box {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; padding: 70px 60px;
  background: linear-gradient(135deg, #0d1c4a 0%, #102a73 45%, #1b3a8f 70%, #3b2a10 130%); border: 1px solid rgba(120,150,255,.3);
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; color: #eef3ff;
}
.cta-box::before { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -250px; background: radial-gradient(circle, rgba(255,187,46,.35), transparent 65%); z-index: -1; }
.cta-box::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); }
.cta-box h2 { color: #fff; }
.cta-box .lead { color: #c3d0f2; margin-top: 18px; }
.cta-box .eyebrow { margin-bottom: 18px; color: #ffbb2e; }
.cta-perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: #dbe4fb; }
.cta-perks li { display: flex; gap: 12px; align-items: center; }
.cta-perks svg { width: 20px; height: 20px; color: #ffbb2e; flex-shrink: 0; }
.cta-box--solo { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 64px 40px; }
.cta-box--solo .hero-cta { margin-top: 28px; }
.form { background: rgba(6, 12, 30, .55); border: 1px solid rgba(160,185,255,.22); border-radius: 22px; padding: 30px; display: grid; gap: 14px; backdrop-filter: blur(10px); }
.form-body { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: #b9c6e8; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border-radius: 11px; border: 1px solid rgba(160,185,255,.22); background: rgba(255,255,255,.05);
  color: #fff; font: 500 16px var(--font); outline: 0; transition: border-color .2s, background-color .2s;
}
.form select option { color: #000; }
.form textarea { min-height: 92px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: #ffbb2e; background: rgba(255,255,255,.08); }
.form input::placeholder, .form textarea::placeholder { color: #8c9ac0; }
.form .btn { width: 100%; margin-top: 4px; }
.form .fine { font-size: 12.5px; color: #a3b1d6; text-align: center; }
.form-ok { display: none; text-align: center; padding: 30px 10px; gap: 12px; }
.form-ok svg { width: 54px; height: 54px; color: #73bf69; margin: 0 auto; }
.form-ok h3 { color: #fff; }
.form-ok p { color: #c3d0f2; }
.form-ok a { color: #ffbb2e; }
.form.sent .form-body { display: none; }
.form.sent .form-ok { display: grid; }
.cta-sec { padding-top: 40px; padding-bottom: 0; }
.nowrap { white-space: nowrap; }
.arch-fig .chip { margin-bottom: 14px; }
.cta-compact { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 26px 30px; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(135deg, rgba(77,124,255,.14), var(--card) 70%); }
.cta-compact h3 { font-size: 20px; }
.cta-compact p { color: var(--text-2); font-size: 15px; margin-top: 4px; }

/* multi-step form (demo page): v1's form language on the page background */
.mform { display: grid; gap: 22px; padding: 32px; border-radius: 24px; border: 1px solid var(--line-2); background: var(--card); box-shadow: var(--shadow-sm); }
.mform__steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; counter-reset: ms; }
.mform__steps li { flex: 1; height: 5px; border-radius: 99px; background: var(--line-2); position: relative; }
.mform__steps li.is-done, .mform__steps li.is-now { background: linear-gradient(90deg, var(--blue), var(--gold)); }
.mform__steps li.is-now { opacity: .65; }
.mform__label { font: 600 13px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mstep[hidden] { display: none; }
.mstep { display: grid; gap: 16px; }
.mform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mform__nav { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.mform__sent { display: none; text-align: center; padding: 20px 8px; gap: 12px; justify-items: center; }
.mform.is-sent .mform__sent { display: grid; }
.mform.is-sent .mform__body { display: none; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.opt { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 13px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 600; font-size: 15px; transition: border-color .2s, background-color .2s; }
.opt:hover { border-color: var(--line-2); }
.opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue-2); flex-shrink: 0; }
.opt:has(input:checked) { border-color: rgba(77, 124, 255, .6); background: rgba(77, 124, 255, .12); }
.opt small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.opt > span { display: block; min-width: 0; }
.opt:has(input:focus-visible) { outline: 2px solid var(--gold-text); outline-offset: 2px; border-color: var(--gold-text); }

/* ===== code tabs ============================================================================================== */
.codetabs { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #0b1020; box-shadow: var(--shadow-sm); }
.codetabs .tabs { padding: 10px 10px 0; background: #0f172b; gap: 4px; }
.codetabs .tab { border-radius: 9px 9px 0 0; border: 0; background: transparent; color: #9fb0cc; }
.codetabs .tab[aria-selected="true"] { background: #0b1020; color: #eaf0fb; }
.codetabs pre, pre.code { margin: 0; padding: 20px 22px; overflow-x: auto; font: 500 13.5px/1.7 var(--mono); color: #d7e0f5; background: #0b1020; tab-size: 2; }
pre.code { border-radius: 14px; border: 1px solid var(--line-2); }
.codetabs .code-copy { float: right; margin: 8px 10px 0 0; }

/* ===== related pages / what's new strip ======================================================================== */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.rel { display: grid; grid-template-columns: 44px 1fr 20px; gap: 14px; align-items: center; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); transition: border-color .25s, transform .25s; }
.rel:hover { border-color: var(--line-2); transform: translateY(-2px); }
.rel__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(77,124,255,.14); color: var(--blue-text); }
.rel__ico svg { width: 22px; height: 22px; }
.rel__body b { display: block; font: 700 16.5px/1.25 var(--display); }
.rel__body span { display: block; font-size: 14px; color: var(--text-2); margin-top: 3px; }
.rel__go { width: 18px; height: 18px; color: var(--muted); transition: transform .2s, color .2s; }
.rel:hover .rel__go { transform: translateX(3px); color: var(--text); }
.newstrip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.newcard { display: grid; gap: 8px; align-content: start; height: 100%; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); transition: border-color .25s, transform .25s; }
.newcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.newcard time { font: 500 12.5px var(--mono); color: var(--gold-text); }
.newcard b { font: 700 17px/1.3 var(--display); }
.newcard span { font-size: 14.5px; color: var(--text-2); }

/* ===== tables ================================================================================================= */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { font: 600 12.5px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.pan { overflow-x: auto; max-width: 100%; }
.pan img { max-width: none; }

/* ===== wallboard demo (home teaser + contact-center page) ======================================================= */
.wb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wbq { position: relative; display: grid; gap: 8px; padding: 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); border-left: 4px solid var(--green); }
.wbq[data-state="warn"] { border-left-color: var(--gold); }
.wbq[data-state="bad"] { border-left-color: var(--red); border-color: rgba(242, 73, 92, .5); }
.wbq__name { font: 700 18px var(--display); }
.wbq__row { display: grid; gap: 1px; font-size: 12.5px; color: var(--text-2); }
.wbq__row b { font: 700 22px var(--mono); color: var(--text); }
.wbq__val { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wbq__word { font: 700 11px var(--font); letter-spacing: .08em; text-transform: uppercase; }
.wbq .v--ok { color: #3f9b49; } .wbq .v--warn { color: var(--gold-text); } .wbq .v--bad { color: var(--red-text); }
:root[data-theme="dark"] .wbq .v--ok { color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wbq .v--ok { color: var(--green); } }
.wbq__flag { display: none; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red-text); }
.wbq[data-free="0"][data-waiting="1"] .wbq__flag { display: flex; }
.wbq .btn { margin-top: 6px; height: auto; min-height: 40px; padding: 8px 10px; white-space: normal; line-height: 1.2; }
@media (max-width: 719px) { .wb { grid-template-columns: 1fr; } .wbq__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; } }

/* ===== footer ================================================================================================= */
footer { border-top: 1px solid var(--line); padding: 70px 0 40px; margin-top: 90px; }
.foot { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 36px; }
.foot p { color: var(--muted); font-size: 14.5px; margin-top: 16px; max-width: 34ch; }
.foot .foot-h { font: 700 13px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--text-2); font-size: 14.5px; transition: color .2s; }
.foot a:hover { color: var(--text); }
.foot-bot { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; align-items: center; }
.foot-bot .prefs { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot-bot .prefs button.linklike { background: none; border: 0; padding: 0; color: var(--text-2); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; }
.status-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(115,191,105,.2); }

/* ===== lightbox, palette, toast (dialogs built by core.js) ====================================================== */
.lightbox { border: 0; padding: 0; margin: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(3,6,12,.9); color: #eaf0fb; backdrop-filter: blur(6px); }
.lightbox::backdrop { background: rgba(3,6,12,.6); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.lightbox__top .row { display: flex; gap: 8px; }
.lightbox__stage { overflow: auto; display: grid; place-items: center; padding: 0 18px; min-height: 0; }
.lightbox__stage img { border-radius: 12px; box-shadow: var(--shadow); max-width: none; height: auto; }
.lightbox__stage img.is-fit { max-width: 100%; max-height: calc(100vh - 140px); width: auto; object-fit: contain; }
.lightbox__cap { padding: 12px 18px 18px; text-align: center; font-size: 14px; color: #b9c4d9; }
.lightbox .btn-ghost { color: #eaf0fb; }

.palette { border: 1px solid var(--line-2); border-radius: 18px; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: min(560px, 80vh); background: var(--bg-2); color: var(--text); box-shadow: var(--shadow); margin: 12vh auto auto; overflow: hidden; }
.palette::backdrop { background: rgba(3,6,12,.6); backdrop-filter: blur(4px); }
.palette[open] { display: flex; flex-direction: column; }
.palette__head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.palette__head > svg { width: 18px; height: 18px; color: var(--muted); }
.palette__input { flex: 1; min-width: 0; height: 44px; background: none; border: 0; outline: 0; color: var(--text); font: 500 17px var(--font); }
.palette__list { overflow-y: auto; padding: 6px; min-height: 120px; }
.palette__group { padding: 10px 12px 4px; font: 700 11.5px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.palette__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 11px; cursor: pointer; }
.palette__item[aria-selected="true"] { background: rgba(77, 124, 255, .16); }
.palette__item .pi-main { display: grid; gap: 1px; min-width: 0; }
.palette__item .pi-title { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette__item .pi-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette__item .code { font-family: var(--mono); color: var(--gold-text); }
.palette__empty { padding: 28px 18px; text-align: center; color: var(--muted); font-size: 14.5px; }
.palette__empty strong { display: block; color: var(--text); margin-bottom: 4px; }
.palette__foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.palette__foot span { display: inline-flex; gap: 5px; align-items: center; }
.toast-region { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 400; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { padding: 11px 18px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14.5px; font-weight: 500; transition: opacity .25s, transform .25s; animation: fadeUp .25s; }
.toast.is-out { opacity: 0; transform: translateY(8px); }

/* ===== responsive ============================================================================================= */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .search-btn kbd, .search-btn .t { display: none; }
  .search-btn { width: 40px; padding: 0; justify-content: center; }
  .nav.open { background: var(--bg-2); }
  .nav.open .nav-links {
    display: grid; position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0; padding: 12px 16px 20px; gap: 2px; align-items: start;
    background: var(--bg-2); border-bottom: 1px solid var(--line); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open .nav-links > a, .nav.open .nav-group__btn { padding: 13px 14px; font-size: 16px; width: 100%; justify-content: space-between; }
  .nav.open .menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 8px; display: none; }
  .nav.open .nav-group.open > .menu { display: grid; }
  .nav.open .nav-group:hover > .menu { display: none; }
  .nav.open .nav-group.open:hover > .menu { display: grid; }
  .nav-mobile-only { display: block; margin-top: 10px; }
  .nav-mobile-only .btn { width: 100%; }
  .pop-card { right: -6px; width: 260px; }
  .phone-float { left: -10px; width: 160px; }
  .tour-panel { grid-template-columns: 1fr; gap: 36px; }
  .cc, .mobile, .arch { grid-template-columns: 1fr; }
  .page-hero--split .wrap { grid-template-columns: 1fr; }
  .page-hero--split .hero-copy { text-align: center; justify-items: center; }
  .page-hero--split .hero-cta { justify-content: center; }
  .sec-grid, .sec-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .cta-box { grid-template-columns: 1fr; padding: 50px 36px; }
  .t-4, .t-3, .t-2 { grid-column: span 3; }
  .tile.split { flex-direction: column; }
  .tile.split .tr { min-height: 300px; margin: 0 -30px -30px 0; }
  .tile.split .tr img { top: 0; }
  .newstrip { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { padding-top: 120px; }
  .page-hero { padding-top: 112px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line); padding: 26px 20px; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(n+3) { border-bottom: 0; }
  .stage { margin-top: 56px; }
  .pop-card { position: relative; right: auto; top: auto; width: auto; margin: 14px 12px 0; animation: none; }
  .phone-float, .live-chip { display: none; }
  .stage .browser { transform: none; }
  .bento { grid-template-columns: 1fr; }
  .t-6, .t-4, .t-3, .t-2 { grid-column: auto; }
  .cc-points { grid-template-columns: 1fr; }
  .phones { height: 520px; transform: scale(.8); transform-origin: 50% 0; margin-bottom: -90px; }
  .sec-grid, .sec-grid--3 { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .form .row, .mform .row { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 22px; border-radius: 24px; }
  .form { padding: 22px; }
  .mform { padding: 22px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .signin-pop { position: fixed; left: 16px; right: 16px; top: 80px; width: auto; }
  .tour-tab { padding: 10px 14px; font-size: 14px; }
  .nav-right .btn-primary { display: none; }
  .nav-in { gap: 12px; }
  .nav-right { gap: 8px; }
  .brand small { display: none; }
  .tile { padding: 24px; }
  .cta-compact { padding: 22px; }
  .console__body { padding: 16px; }
  .browser-bar .url { padding: 5px 10px; font-size: 11.5px; overflow: hidden; }
}
@media (max-width: 400px) {
  .nav-right .btn-ghost.btn-sm { padding: 0 12px; }
  .brand span { font-size: 18px; }
}
@media (max-width: 340px) { .brand span { display: none; } .nav-right .btn-ghost.btn-sm { padding: 0 9px; } } /* the brand link keeps its aria-label; the mark alone fits 320 px */

/* chips that sit ON a screenshot (always a dark surface): dark glass, light text, in both themes */
.shot .chip, .tile .chip--real, .tile .chip--demo, .fig__chip, .stage .chip--real { background: rgba(8, 12, 24, .82); }
.shot .chip--real, .tile .chip--real, .fig__chip.chip--real { color: #8fd488; border-color: rgba(115, 191, 105, .5); }
.tile .chip--demo, .arch-fig .chip--demo { background: rgba(8, 12, 24, .82); color: #ffcb52; border-color: rgba(255, 187, 46, .5); }
/* hero background fades out at its bottom edge instead of ending in a hard line */
.hero-bg { -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.feat .chip { display: inline-flex; width: fit-content; margin-top: 6px; font-size: 11.5px; line-height: 1.5; margin-left: 0; color: #6a45d6; }
:root[data-theme="dark"] .feat .chip { color: #c1aefc; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .feat .chip { color: #c1aefc; } }

/* ===== phone width: real screens you can read ===================================================================
   The hero wallboard swaps to a cropped derivative (one queue card at ~0.7x), the bleeding bento peeks show a bigger slice (the lightbox opens the
   full screen), and .pan-m frames pan sideways at natural size only while the viewport is narrow (core.js PPBX.pan makes them focusable while they overflow). */
@media (max-width: 640px) {
  .stage .browser img { aspect-ratio: auto; object-fit: initial; }
  .tile-media { min-height: 260px; }
  .tile-media img { width: 560px; }
  .tile.split .tr img { width: 600px; }
  .nav-in { gap: 8px; }
  .nav-right { gap: 6px; }
  .nav-right .btn-ghost.btn-sm { padding: 0 11px; }
  .icon-btn, .search-btn { width: 38px; height: 38px; }
}
@media (max-width: 760px) {
  .pan-m { overflow-x: auto; max-width: 100%; }
  .pan-m img { max-width: none; width: var(--pan-w, 760px); }
}

/* ===== home architecture diagram: a stacked version for phones (the 640-unit SVG is unreadable at 343 px) ======== */
.arch-stack { display: none; list-style: none; margin: 0; padding: 0; gap: 0; }
@media (max-width: 640px) {
  .arch-svg { display: none; }
  .arch-stack { display: grid; }
  .arch-tier { position: relative; display: grid; gap: 8px; padding-bottom: 26px; }
  .arch-tier:last-child { padding-bottom: 0; }
  .arch-tier:not(:last-child)::after {
    content: ""; position: absolute; left: 50%; bottom: 3px; height: 20px; width: 0; border-left: 2px dashed var(--blue); animation: archFlow 1.4s linear infinite;
  }
  .arch-tier--gd:not(:last-child)::after { border-color: var(--gold); }
  .arch-tier__k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
  .arch-tier__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
  .arch-tier__row > span { position: relative; display: grid; gap: 2px; padding: 11px 14px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line-2); }
  .arch-tier--hl .arch-tier__row > span { border-color: rgba(77, 124, 255, .7); }
  .arch-tier--gd .arch-tier__row > span { border-color: rgba(255, 187, 46, .6); }
  .arch-tier__row > span.is-dim { border-style: dashed; }
  .arch-tier__row b { font: 700 14.5px/1.25 var(--display); color: var(--text); }
  .arch-tier__row small { font-size: 12.5px; color: var(--muted); }
  .arch-tier__row .pulse { position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: blink 1.6s infinite; }
}
@keyframes archFlow { to { transform: translateY(4px); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .arch-tier::after, .arch-tier__row .pulse { animation: none !important; } }
html[data-motion="reduced"] .arch-tier::after, html[data-motion="reduced"] .arch-tier__row .pulse { animation: none; }
