/* Imported from the khabot-new-design demo (read-only source). These files are ADDITIVE:
   the legacy assets/ui.css + assets/website.css stay untouched because the admin board and
   apps/ still load them. Never merge the two systems on one page. */
/* ==========================================================================
   Website — landing, services, models, pricing, auth. Loaded after
   tokens/base/components/previews. Class prefixes: .site-, .hero-, .sw- (switchboard),
   .bento-, .how-, .payg-, .models-, .apps-, .foot-, .price-, .auth-.
   ========================================================================== */

/* ---------- Top navigation ---------- */
.site-nav { position: sticky; top: 0; z-index: 80; height: var(--topbar-h); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.site-nav .container { height: 100%; display: flex; align-items: center; gap: 18px; }
.site-nav .links { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.site-nav .links a, .site-nav .links button { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font-size: 13.5px; font-weight: 560; cursor: pointer; text-decoration: none !important; }
.site-nav .links a:hover, .site-nav .links button:hover, .site-nav .links a.active { background: var(--bg-hover); color: var(--text); }
.site-nav .links svg { width: 14px; height: 14px; opacity: .7; }
.site-nav .actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-nav .burger { display: none; }
.site-nav .icon-btn svg { width: 17px; height: 17px; }

/* Products mega-menu */
.mega { position: absolute; top: calc(var(--topbar-h) - 6px); left: 50%; transform: translateX(-50%); width: min(920px, calc(100vw - 32px)); padding: 16px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg-elev); box-shadow: var(--shadow-lg); animation: fade-up .18s var(--ease); z-index: 90; }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 14px; }
.mega-fam { padding: 8px 8px 4px; }
.mega-fam-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hue); margin-bottom: 6px; }
.mega-fam-h svg { width: 14px; height: 14px; }
.mega a.item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--text); font-size: 13px; font-weight: 520; text-decoration: none !important; }
.mega a.item:hover { background: var(--bg-hover); }
.mega a.item .badge { margin-left: auto; }
.mega-foot { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 12px; padding: 12px 8px 0; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); }

/* Mobile drawer */
.site-drawer { position: fixed; inset: 0; z-index: 95; background: var(--bg); padding: 20px var(--gutter); display: flex; flex-direction: column; gap: 6px; animation: fade-in .15s; }
.site-drawer a { padding: 12px 6px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 17px; font-weight: 600; text-decoration: none !important; }
.site-drawer .row { margin-top: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 0; background: var(--navy-950); color: #E9EDF5; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 1100px; height: 700px; left: 50%; top: -280px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(30, 94, 235, .38), transparent 70%), radial-gradient(closest-side at 70% 40%, rgba(56, 189, 248, .18), transparent 60%); filter: blur(10px); pointer-events: none; }
.hero-copy { max-width: 860px; margin: 0 auto; text-align: center; }
.hero-copy .eyebrow { color: #9DB4E6; justify-content: center; }
.hero-copy .eyebrow::before { display: none; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border-radius: 99px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #C9D6F2; font-size: 12.5px; font-weight: 560; margin-bottom: 26px; }
.hero-badge .badge { height: 18px; font-size: 10px; }
.hero h1 { margin: 0 0 20px; color: #fff; }
.hero h1 .serif { color: #BFD3FF; }
.hero .lead { max-width: 640px; margin: 0 auto; color: #A9B7D6; }
.hero .cta { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.hero .cta .btn { --btn-h: 48px; padding-inline: 22px; border-radius: 12px; font-size: 14.5px; }
.hero .cta .btn-ghost { color: #D9E2F5; border-color: rgba(255,255,255,.16); }
.hero .cta .btn-ghost:hover { background: rgba(255,255,255,.06); color: #fff; }
.hero-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; color: #7E8DB0; font-size: 12.5px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof svg { width: 14px; height: 14px; color: var(--mint-400); }

/* ---------- Switchboard (the interactive catalog in the hero) ---------- */
.sw { margin-top: clamp(40px, 5vw, 64px); }
.sw-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 14px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent); mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent); }
.sw-chips::-webkit-scrollbar { display: none; }
.sw-chips .chip { flex: none; height: 34px; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #C5D0E6; }
.sw-chips .chip:hover { border-color: rgba(255,255,255,.3); color: #fff; }
.sw-chips .chip.on { background: color-mix(in srgb, var(--hue) 22%, #0D1322); border-color: var(--hue); color: #fff; box-shadow: 0 0 0 1px var(--hue), 0 0 24px -6px var(--hue); }
.sw-chips .chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hue) 22%, transparent); }
.sw-chips .chip .badge { height: 16px; padding: 0 5px; font-size: 9.5px; margin-left: 2px; }
.sw-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1.05fr); border: 1px solid rgba(255,255,255,.12); border-bottom: 0; border-radius: var(--r-xl) var(--r-xl) 0 0; background: linear-gradient(180deg, rgba(13, 19, 34, .96), rgba(7, 11, 22, .98)); box-shadow: 0 -20px 80px -30px rgba(30, 94, 235, .45); overflow: hidden; }
.sw-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--hue, var(--accent)) 35%, var(--cyan-400) 65%, transparent); opacity: .9; }
.sw-req, .sw-res { min-width: 0; padding: 18px 20px 22px; }
.sw-req { border-right: 1px solid rgba(255,255,255,.08); }
.sw-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 12px; color: #8494B8; min-height: 28px; }
.sw-head .badge-method { background: rgba(255,255,255,.08); color: #C5D0E6; }
.sw-head .path { font-family: var(--mono); font-size: 12px; color: #E2E8F0; }
.sw-head .spacer { flex: 1; }
.sw-head .sw-title { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 620; font-size: 14px; }
.sw-req .code { border-color: rgba(255,255,255,.08); background: rgba(0,0,0,.25); }
.sw-req .code pre { min-height: 236px; white-space: pre-wrap; word-break: break-word; }
.sw-flow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #4A5A7E; }
.sw-flow .node { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: #0D1322; box-shadow: 0 0 0 4px rgba(30, 94, 235, .12), 0 0 30px -6px var(--accent); }
.sw-flow .node img { width: 26px; height: auto; }
.sw-flow svg.wire { width: 2px; height: 70px; overflow: visible; }
.sw-flow svg.wire line { stroke: var(--hue, var(--accent)); stroke-width: 2; stroke-dasharray: 4 6; animation: flow 1s linear infinite; opacity: .8; }
.sw-flow .lat { font-family: var(--mono); font-size: 10px; color: #6E7FA6; white-space: nowrap; }
.sw-res { background: var(--bg-elev); color: var(--text); }
.sw-res .sw-head { color: var(--text-3); }
.sw-res .sw-head .sw-title { color: var(--text); }
.sw-res .pv { animation: fade-up .35s var(--ease); }
.sw-foot { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border: 1px solid rgba(255,255,255,.12); border-top: 0; border-radius: 0 0 var(--r-xl) var(--r-xl); background: #0A1020; color: #8494B8; font-size: 12.5px; }
.sw-foot .progress { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.sw-foot .progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--cyan-400)); transition: width .1s linear; }
.sw-foot .btn { --btn-h: 30px; background: transparent; border-color: rgba(255,255,255,.14); color: #C5D0E6; }
.sw-foot .btn:hover { background: rgba(255,255,255,.06); }
.sw-foot .price { color: #fff; font-weight: 600; }
.sw-wrap { padding-bottom: clamp(48px, 6vw, 80px); }

/* ---------- Logos strip ---------- */
.logos { padding: 26px 0; border-bottom: 1px solid var(--border); background: var(--bg-elev); }
.logos .container { display: flex; align-items: center; gap: 28px; }
.logos .lbl { flex: none; font-size: 12px; font-weight: 640; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.logos .marquee-track span { font-size: 15px; font-weight: 640; color: var(--text-2); letter-spacing: -.02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.logos .marquee-track span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }

/* ---------- Bento: everything behind one key ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.bento-card { position: relative; grid-column: span 2; display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg-elev); overflow: hidden; transition: border-color var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur); }
.bento-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -130px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--hue) 22%, transparent), transparent); opacity: .7; pointer-events: none; transition: opacity var(--dur); }
.bento-card:hover { border-color: color-mix(in srgb, var(--hue) 45%, var(--border)); transform: translateY(-2px); box-shadow: 0 16px 40px -20px color-mix(in srgb, var(--hue) 50%, transparent); }
.bento-card.span3 { grid-column: span 3; }
.bento-head { display: flex; align-items: center; gap: 12px; }
.bento-head h3 { font-size: 17px; }
.bento-head .count { margin-left: auto; font-size: 12px; color: var(--text-3); }
.bento-blurb { color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.bento-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.bento-list a { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-inset); color: var(--text); font-size: 12.5px; font-weight: 560; text-decoration: none !important; transition: border-color var(--dur), background var(--dur); }
.bento-list a:hover { border-color: var(--hue); background: color-mix(in srgb, var(--hue) 8%, var(--bg-inset)); }
.bento-list a svg { width: 13px; height: 13px; color: var(--hue); }
.bento-list a .badge { height: 16px; padding: 0 5px; font-size: 9.5px; }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.how-step { position: relative; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg-elev); }
.how-step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 20px; right: 22px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.how-step h3 { font-size: 18px; margin: 14px 0 6px; }
.how-step p { color: var(--text-2); font-size: 13.5px; }
.how-vis { margin-top: 18px; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-inset); }
.how-balance { display: flex; align-items: baseline; gap: 8px; font-size: 26px; font-weight: 640; letter-spacing: -.03em; }
.how-balance small { font-size: 12px; color: var(--text-3); font-weight: 500; }
.how-presets { display: flex; gap: 6px; margin-top: 10px; }
.how-presets span { flex: 1; text-align: center; padding: 6px 0; border-radius: 7px; border: 1px solid var(--border-strong); font-size: 12.5px; font-weight: 600; }
.how-presets span.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.how-key { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--bg-elev); border: 1px dashed var(--border-strong); font-family: var(--mono); font-size: 12px; }
.how-key svg { width: 14px; height: 14px; color: var(--ok); }
.how-code { margin-top: 24px; }

/* ---------- Pay as you go teaser ---------- */
.payg { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.payg-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.payg-tile { padding: 18px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-elev); }
.payg-tile .glyph { margin-bottom: 12px; }
.payg-tile b { display: block; font-size: 22px; letter-spacing: -.03em; font-weight: 640; }
.payg-tile span { font-size: 12.5px; color: var(--text-2); }
.payg-amount { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 18px; }
.payg-amount .pill-tabs button { padding: 6px 12px; }
.payg-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-elev); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.payg-note svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 2px; }

/* ---------- Models table ---------- */
.models-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.models-toolbar .input-search { width: 300px; }
.models-toolbar .segmented { margin-left: auto; }
.models-table .model-id { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.models-table .vendor { display: inline-flex; align-items: center; gap: 6px; }
.models-table .vendor i { width: 18px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; background: var(--bg-sunken); font-size: 9px; font-weight: 800; font-style: normal; color: var(--text-2); }
.models-table .tag { display: inline-block; padding: 1px 6px; border-radius: 5px; background: var(--bg-sunken); color: var(--text-2); font-size: 10.5px; font-weight: 600; margin-right: 3px; }
.models-table .tag.hot { background: var(--ok-soft); color: var(--ok); }
.models-table tr.unavail td { opacity: .55; }
.models-table .price { font-variant-numeric: tabular-nums; font-weight: 600; }
.models-table .price small { color: var(--text-3); font-weight: 500; }
.models-more { display: flex; justify-content: center; margin-top: 16px; }
.estimator { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-elev); margin-bottom: 16px; }
.estimator .result { font-size: 22px; font-weight: 640; letter-spacing: -.02em; white-space: nowrap; }

/* ---------- Apps ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.app-tile { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-elev); color: var(--text); text-decoration: none !important; transition: transform var(--dur) var(--ease), border-color var(--dur); }
.app-tile:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.app-tile img { width: 44px; height: 44px; border-radius: 12px; padding: 6px; background: var(--bg-inset); border: 1px solid var(--border); }
.app-tile b { display: block; font-size: 15px; letter-spacing: -.01em; }
.app-tile span { font-size: 13px; color: var(--text-2); }

/* ---------- SDK / docs duo ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sdk-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sdk-logos span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-inset); font-size: 12.5px; font-weight: 600; }
.sdk-logos span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 88px) 0; background: var(--navy-950); color: #fff; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: auto 0 -200px; height: 400px; background: radial-gradient(closest-side, rgba(30, 94, 235, .5), transparent); filter: blur(30px); }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #A9B7D6; max-width: 560px; margin: 0 auto 24px; }
.cta-band .btn-ghost { color: #D9E2F5; border-color: rgba(255,255,255,.16); }

/* ---------- Footer ---------- */
.foot { padding: 48px 0 28px; border-top: 1px solid var(--border); background: var(--bg-elev); font-size: 13.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; }
.foot h5 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.foot a { display: block; color: var(--text-2); padding: 4px 0; }
.foot a:hover { color: var(--text); text-decoration: none; }
.foot-brand p { color: var(--text-2); margin-top: 10px; max-width: 280px; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12.5px; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-weight: 600; }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.page-hero h1 { margin: 12px 0 14px; }
.page-hero .lead { max-width: 640px; }

/* ---------- Services explorer ---------- */
.explorer { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.explorer-nav { position: sticky; top: calc(var(--topbar-h) + 20px); display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - var(--topbar-h) - 40px); overflow-y: auto; padding-right: 6px; }
.explorer-nav a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; font-weight: 540; text-decoration: none !important; }
.explorer-nav a:hover, .explorer-nav a.active { background: var(--bg-hover); color: var(--text); }
.explorer-nav a .glyph-sm { border-radius: 6px; }
.explorer-nav .fam { margin: 14px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hue); }
.explorer-nav .fam:first-child { margin-top: 0; }
.svc { scroll-margin-top: calc(var(--topbar-h) + 16px); margin-bottom: 28px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg-elev); overflow: hidden; }
.svc-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.svc-head h3 { font-size: 19px; }
.svc-head .tag { color: var(--text-2); font-size: 13.5px; }
.svc-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.svc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.svc-req { padding: 18px 22px; border-right: 1px solid var(--border); background: var(--bg-inset); }
.svc-res { padding: 18px 22px; }
.svc-sum { padding: 0 22px 16px; color: var(--text-2); font-size: 14px; max-width: 760px; }
.svc-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 12px 22px; }
.svc-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.svc-foot svg { width: 14px; height: 14px; }
.svc-foot-x { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 12px 22px; border-top: 1px solid var(--border); background: var(--bg-inset); font-size: 12.5px; color: var(--text-3); }
.svc-foot .spacer { flex: 1; }
.svc-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; color: var(--text); text-decoration: none !important; min-height: 150px; }
.svc-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.svc-card-name { font-weight: 640; font-size: 15px; letter-spacing: -.01em; }
.svc-card-tag { color: var(--text-2); font-size: 13px; line-height: 1.45; }
.svc-card-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; color: var(--text-3); font-size: 12px; }
.svc-card-price { color: var(--text); font-weight: 600; white-space: nowrap; }
.svc-card--compact { min-height: 0; }
.svc-card:hover { border-color: color-mix(in srgb, var(--hue) 50%, var(--border)); }

/* ---------- Pricing ---------- */
.price-hero { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 48px; align-items: center; }
.topup { padding: 22px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg-elev); box-shadow: var(--shadow-md); }
.topup-amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0; }
.topup-amounts button { height: 40px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--bg-elev); font-weight: 640; cursor: pointer; font-size: 14px; }
.topup-amounts button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.topup-buys { margin-top: 12px; display: grid; gap: 6px; }
.topup-buys div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 7px 10px; border-radius: 8px; background: var(--bg-inset); border: 1px solid var(--border); }
.topup-buys b { font-variant-numeric: tabular-nums; }
.topup-buys .glyph-sm { margin-right: 8px; vertical-align: middle; }
.topup-pay { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--text-3); }
.topup-pay span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border); }
.price-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 20px; }
.price-section { scroll-margin-top: calc(var(--topbar-h) + 16px); margin-bottom: 40px; }
.price-section h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 6px; }
.price-section .fam-blurb { color: var(--text-2); margin-bottom: 14px; }
.price-row-name { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.price-unit { color: var(--text-3); font-size: 12px; }
.bundles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.bundle { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg-elev); }
.bundle.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.bundle .price { font-size: 34px; font-weight: 640; letter-spacing: -.04em; }
.bundle .price small { font-size: 13px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.bundle ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.bundle li { display: flex; gap: 8px; align-items: flex-start; }
.bundle li svg { width: 15px; height: 15px; color: var(--ok); flex: none; margin-top: 2px; }
.bundle .btn { margin-top: auto; }
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--text-3); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 16px; color: var(--text-2); max-width: 640px; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { position: relative; overflow: hidden; padding: 40px; background: var(--navy-950); color: #E9EDF5; display: flex; flex-direction: column; }
.auth-side::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(60% 60% at 40% 40%, #000, transparent); }
.auth-side::after { content: ""; position: absolute; width: 700px; height: 700px; left: -200px; bottom: -300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(30, 94, 235, .45), transparent); filter: blur(20px); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side .brand { color: #fff; }
.auth-side h2 { color: #fff; font-size: clamp(30px, 3.2vw, 44px); margin: auto 0 18px; max-width: 480px; }
.auth-side h2 .serif { color: #BFD3FF; }
.auth-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: #A9B7D6; font-size: 14px; }
.auth-side li { display: flex; gap: 10px; align-items: center; } .auth-side li svg { width: 16px; height: 16px; color: var(--mint-400); }
.auth-side .quote { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: #8494B8; font-size: 13px; }
.auth-main { display: grid; place-items: center; padding: 40px var(--gutter); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 30px; margin-bottom: 6px; }
.auth-card > p { color: var(--text-2); margin-bottom: 24px; }
.auth-card .btn-block { margin-top: 18px; --btn-h: 46px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-3); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-foot { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--text-2); }
.auth-foot a { font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bento-card, .bento-card.span3 { grid-column: span 3; }
  .price-hero { grid-template-columns: minmax(0, 1fr); }
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .explorer-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .explorer-nav .fam { display: none; }
}
@media (max-width: 900px) {
  .site-nav .links { display: none; }
  .site-nav .burger { display: inline-grid; }
  .site-nav .actions .btn-ghost { display: none; }
  .sw-panel { grid-template-columns: minmax(0, 1fr); }
  .sw-req { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .sw-req .code pre { min-height: 0; }
  .sw-flow { display: none; }
  .how, .apps-grid { grid-template-columns: minmax(0, 1fr); }
  .payg { grid-template-columns: minmax(0, 1fr); }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .svc-body { grid-template-columns: minmax(0, 1fr); }
  .svc-req { border-right: 0; border-bottom: 1px solid var(--border); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .estimator { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mega-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .bento-card, .bento-card.span3 { grid-column: span 6; }
  .hero .cta { flex-direction: column; align-items: stretch; }
  .payg-tiles, .bundles, .topup-amounts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .models-toolbar .input-search { width: 100%; }
  .models-toolbar .segmented { margin-left: 0; }
}
