/* ==========================================================================
   SIFRA Concept 02 — v4 site-wide chrome + inner-page experiences
   Command palette, nav hover pill, back-to-top ring, hardware picker,
   plan finder, about-page scroll stories, contact stepper. Offline only.
   ========================================================================== */

/* ---------- Nav search trigger ---------- */
.nav-search { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13.5px; transition: color .25s, border-color .25s, background .25s; }
.nav-search:hover { color: var(--fg); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.nav-search svg { width: 15px; height: 15px; }
.nav-search kbd, .cmdk kbd { font-family: var(--mono); font-size: 10.5px; padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.07); border: 1px solid var(--line-2); color: var(--fg-2); }
.nav.light .nav-search { color: var(--ink-2); border-color: rgba(0,0,9,.15); }
.nav.light .nav-search kbd { background: rgba(0,0,9,.05); border-color: rgba(0,0,9,.1); color: var(--ink-2); }
@media (max-width: 1200px) { .nav-status { display: none; } }
@media (max-width: 860px) { .nav-search { display: none; } }
.mobile-menu .m-search { font-size: 36px; font-weight: 700; letter-spacing: -.03em; padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; display: flex; justify-content: space-between; align-items: center; color: var(--fg); }

/* ---------- Nav hover pill ---------- */
.nav-links { position: relative; }
.nav-hover { position: absolute; left: 0; top: 50%; height: 34px; margin-top: -17px; border-radius: 999px; background: rgba(255,255,255,.07); pointer-events: none; opacity: 0;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s; list-style: none; }
.nav-hover.on { opacity: 1; }
.nav.light .nav-hover { background: rgba(0,0,9,.06); }
.nav-links a:hover { background: transparent; }

/* ---------- Command palette ---------- */
.cmdk { position: fixed; inset: 0; z-index: 300; display: flex; justify-content: center; align-items: flex-start; padding: 14vh 16px 16px; visibility: hidden; }
.cmdk.open { visibility: visible; }
.cmdk-backdrop { position: absolute; inset: 0; background: rgba(4,5,17,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s var(--ease); }
.cmdk.open .cmdk-backdrop { opacity: 1; }
.cmdk-panel { position: relative; width: min(640px, 100%); border-radius: 22px; background: rgba(14,18,35,.92); border: 1px solid var(--line-2); box-shadow: 0 50px 120px -20px rgba(0,0,9,.9), 0 0 0 1px rgba(255,255,255,.04) inset, 0 30px 120px -40px var(--ember-glow);
  overflow: hidden; transform: translateY(-12px) scale(.97); opacity: 0; transition: transform .45s var(--ease), opacity .3s var(--ease); }
.cmdk.open .cmdk-panel { transform: none; opacity: 1; }
.cmdk-search { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmdk-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.cmdk-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 17px; color: var(--fg); }
.cmdk-search input::placeholder { color: var(--dim); }
.cmdk-list { max-height: min(420px, 56vh); overflow-y: auto; padding: 8px; scrollbar-width: thin; }
.cmdk-group { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding: 12px 12px 6px; }
.cmdk-item { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 12px; cursor: pointer; animation: cmdIn .4s var(--ease) both; animation-delay: calc(var(--i) * 18ms); }
@keyframes cmdIn { from { opacity: 0; transform: translateY(6px); } }
.cmdk-item .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line); flex: none; color: var(--fg-2); }
.cmdk-item .ic svg { width: 15px; height: 15px; }
.cmdk-item .tx { display: grid; min-width: 0; }
.cmdk-item .tx b { font-weight: 550; font-size: 14.5px; color: var(--fg); }
.cmdk-item .tx span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item .go { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--dim); opacity: 0; transition: opacity .2s; }
.cmdk-item[aria-selected="true"] { background: rgba(59,130,246, .12); box-shadow: inset 0 0 0 1px rgba(96,165,250,.35); }
.cmdk-item[aria-selected="true"] .ic { color: var(--ember-2); border-color: rgba(96,165,250,.4); }
.cmdk-item[aria-selected="true"] .go { opacity: 1; }
.cmdk-empty { padding: 36px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.cmdk-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); flex-wrap: wrap; }
.cmdk-foot span { display: inline-flex; gap: 6px; align-items: center; }
mark.cm { background: none; color: var(--ember-2); }

/* ---------- Back-to-top progress ring ---------- */
.totop { position: fixed; left: 16px; bottom: 16px; z-index: 70; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(15,20,38,.85); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border: 1px solid var(--line-2); color: var(--fg);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .4s, transform .5s var(--ease), background .3s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--ember); }
.totop svg.ring { position: absolute; inset: -1px; width: 46px; height: 46px; transform: rotate(-90deg); }
.totop svg.ring circle { fill: none; stroke-width: 2; }
.totop svg.ring .fg { stroke: var(--ember); stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; }
.totop svg.arrow { width: 16px; height: 16px; position: relative; }

/* ---------- Hardware picker (home) ---------- */
.hw { margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 20px; align-items: stretch; }
.hw-head { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.hw-head .h3 { font-size: clamp(26px, 2.6vw, 36px); margin-top: 12px; }
.hw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hw-opt { text-align: left; display: grid; gap: 6px; padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-1); transition: border-color .35s, background .35s, transform .5s var(--ease); position: relative; overflow: hidden; }
.hw-opt:hover { border-color: rgba(255,255,255,.22); transform: translateY(-3px); }
.hw-opt svg { width: 28px; height: 28px; color: var(--fg-2); margin-bottom: 8px; transition: color .3s; }
.hw-opt b { font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
.hw-opt span { font-size: 13.5px; color: var(--muted); }
.hw-opt::after { content: ""; position: absolute; right: 16px; top: 16px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: all .3s; }
.hw-opt[aria-checked="true"] { border-color: var(--ember); background: linear-gradient(160deg, rgba(59,130,246,.12), var(--bg-1) 60%); }
.hw-opt[aria-checked="true"] svg { color: var(--ember-2); }
.hw-opt[aria-checked="true"]::after { border-color: var(--ember); background: var(--ember); box-shadow: inset 0 0 0 4px var(--bg-1); }
.hw-out { border-radius: 24px; border: 1px solid var(--line-2); padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  background: radial-gradient(120% 100% at 100% 0%, rgba(59,130,246,.16), transparent 60%), var(--bg-1); }
.hw-out .k { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.hw-out b { font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -.035em; line-height: 1.02; }
.hw-out p { margin: 0; color: var(--fg-2); }

/* ---------- Pricing: plan finder ---------- */
.quiz { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.quiz-body { display: grid; gap: 16px; }
.q { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-1); transition: opacity .5s, transform .6s var(--ease), border-color .4s; }
.q.locked { opacity: .35; pointer-events: none; transform: translateY(8px); }
.q-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.q-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.q-opts button { padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14.5px; color: var(--fg-2); transition: all .3s var(--ease); }
.q-opts button:hover { border-color: rgba(255,255,255,.35); color: var(--fg); }
.q-opts button[aria-pressed="true"] { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.q-result { padding: 26px; border-radius: 22px; background: var(--paper); color: var(--ink); display: grid; gap: 8px; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s, transform .7s var(--ease); pointer-events: none; }
.q-result.on { opacity: 1; transform: none; pointer-events: auto; }
.q-result .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #1d4ed8; }
.q-result b { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; line-height: 1; }
.q-result p { margin: 0 0 8px; color: var(--ink-2); }
.q-result .btn { justify-self: start; }
.plan.pulse { animation: planPulse 1.6s var(--ease) 2; }
@keyframes planPulse { 0% { box-shadow: 0 0 0 0 rgba(59,130,246,.55); } 100% { box-shadow: 0 0 0 26px rgba(59,130,246,0); } }

/* ---------- Pricing: table entrance ---------- */
.table-wrap tbody tr { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.table-wrap.in tbody tr { opacity: 1; transform: none; }
.table-wrap.in tbody tr:nth-child(2) { transition-delay: .07s; } .table-wrap.in tbody tr:nth-child(3) { transition-delay: .14s; }
.table-wrap.in tbody tr:nth-child(4) { transition-delay: .21s; } .table-wrap.in tbody tr:nth-child(5) { transition-delay: .28s; }
.table-wrap.in tbody tr:nth-child(6) { transition-delay: .35s; } .table-wrap.in tbody tr:nth-child(7) { transition-delay: .42s; }
.table .yes { display: inline-block; }
.table-wrap.in .yes { animation: pop .6s var(--ease) both; animation-delay: .5s; }
@keyframes pop { from { transform: scale(0); } 60% { transform: scale(1.3); } }

/* ---------- About: scrub, timeline, principle glow ---------- */
[data-scrub] .sw { opacity: .14; transition: opacity .4s var(--ease); }
[data-scrub] .sw.on { opacity: 1; }
.timeline { position: relative; border-left-color: var(--line); }
.timeline::before { content: ""; position: absolute; left: -1px; top: 0; width: 2px; height: 100%; background: var(--heat); transform-origin: 0 0; transform: scaleY(var(--tl, 0)); }
.tl-item::before { transition: background .4s, box-shadow .4s, transform .5s var(--ease); }
.tl-item.lit::before { background: var(--ember); box-shadow: 0 0 0 6px rgba(59,130,246,.18), 0 0 20px var(--ember); transform: scale(1.15); }
.tl-item h3, .tl-item p { transition: opacity .5s; }
.timeline .tl-item:not(.lit) h3, .timeline .tl-item:not(.lit) p { opacity: .45; }
.principle { position: relative; overflow: hidden; isolation: isolate; --mx: 50%; --my: 50%; }
.principle::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(96,165,250,.12), transparent 50%); }
.principle:hover::after { opacity: 1; }
.principle .p-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ember-2); transition: transform .6s var(--ease), background .4s; }
.principle:hover .p-ic { transform: rotate(-8deg) scale(1.08); background: rgba(59,130,246,.1); }
.principle .p-ic svg { width: 20px; height: 20px; }

/* ---------- Contact: clock, quick answers, stepper ---------- */
.clock-card { display: flex; align-items: center; gap: 22px; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); }
.clock-face { position: relative; width: 84px; height: 84px; border-radius: 50%; flex: none; border: 1px solid var(--line-2); background: radial-gradient(circle, #12182c, #0a0d1c); }
.clock-face::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: repeating-conic-gradient(from -1deg, rgba(255,255,255,.35) 0 2deg, transparent 2deg 30deg); -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%); }
.clock-face i { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 2px; background: var(--fg); }
.clock-face .h { width: 3px; height: 22px; margin-left: -1.5px; }
.clock-face .m { width: 2px; height: 31px; margin-left: -1px; background: var(--fg-2); }
.clock-face .s { width: 1px; height: 34px; margin-left: -.5px; background: var(--ember); transition: transform .3s cubic-bezier(.4, 2.2, .6, 1); }
.clock-face::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--ember); }
.clock-card .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.clock-card b { display: block; font-size: 34px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.clock-card span[data-clock-date] { font-size: 13.5px; color: var(--muted); }
.qa { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); display: grid; gap: 14px; }
.qa .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.qa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qa-chips button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--fg-2); transition: all .3s; }
.qa-chips button:hover { color: var(--fg); border-color: rgba(255,255,255,.35); }
.qa-chips button[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: #fff; }
.qa-panel { min-height: 72px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px dashed var(--line-2); color: var(--fg-2); font-size: 14.5px; }
.qa-panel p { margin: 0; }

.stepper { gap: 22px; }
.st-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.st-bar i { display: block; height: 100%; width: 25%; background: var(--heat); border-radius: 4px; transition: width .7s var(--ease); }
.st-labels { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.st-labels span { transition: color .4s; } .st-labels span.on { color: var(--fg); } .st-labels span.done { color: var(--ember-2); }
.st-viewport { display: grid; min-height: 330px; }
.st-step, .st-done { grid-area: 1 / 1; border: 0; margin: 0; padding: 0; min-width: 0; opacity: 0; visibility: hidden; transform: translateX(36px); transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s linear .45s; display: grid; gap: 14px; align-content: start; }
.st-step.on, .st-done.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease) .1s, transform .7s var(--ease) .1s; }
.st-step.prev { transform: translateX(-36px); }
.st-title { font-size: clamp(22px, 2.2vw, 28px); font-weight: 650; letter-spacing: -.02em; padding: 0; margin-bottom: 6px; }
.st-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-topics input { position: absolute; opacity: 0; pointer-events: none; }
.st-topics label { display: grid; gap: 4px; padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); cursor: pointer; transition: all .3s var(--ease); background: rgba(255,255,255,.02); }
.st-topics label b { font-size: 15.5px; }
.st-topics label span { font-size: 13px; color: var(--muted); }
.st-topics label:hover { border-color: rgba(255,255,255,.3); }
.st-topics input:checked + label { border-color: var(--ember); background: rgba(59,130,246,.1); box-shadow: 0 0 0 1px var(--ember); }
.st-topics input:focus-visible + label { outline: 2px solid var(--ember-2); outline-offset: 2px; }
.field.err input, .field.err textarea { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.14); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.field .hint { font-size: 12px; color: #f87171; margin-top: 6px; display: none; }
.field.err .hint { display: block; }
.st-count { font-family: var(--mono); font-size: 11.5px; color: var(--dim); text-align: right; }
.st-review { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.st-review div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.st-review div:last-child { border-bottom: 0; }
.st-review dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.st-review dd { margin: 0; color: var(--fg); word-break: break-word; white-space: pre-wrap; }
.st-nav { display: flex; justify-content: space-between; gap: 10px; }
.st-nav [data-back] { visibility: hidden; }
.st-nav.has-back [data-back] { visibility: visible; }
.st-nav.hide { display: none; }
.st-done { justify-items: center; text-align: center; align-content: center; }
.st-done svg { width: 96px; height: 96px; }
.st-done circle { fill: none; stroke: var(--ok); stroke-width: 3; stroke-dasharray: 289; stroke-dashoffset: 289; }
.st-done path { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.st-done.on circle { transition: stroke-dashoffset .9s var(--ease) .2s; stroke-dashoffset: 0; }
.st-done.on path { transition: stroke-dashoffset .5s var(--ease) .9s; stroke-dashoffset: 0; }
.st-done h3 { margin: 6px 0 0; font-size: 26px; letter-spacing: -.02em; }
.st-done p { margin: 0; color: var(--muted); max-width: 380px; }

@media (max-width: 860px) {
  .hw { grid-template-columns: 1fr; }
  .quiz { grid-template-columns: 1fr; }
  .st-topics { grid-template-columns: 1fr; }
  .st-viewport { min-height: 420px; }
  .totop { bottom: 16px; }
}
@media (max-width: 560px) { .hw-grid { grid-template-columns: 1fr; } .st-labels { font-size: 9.5px; } }
@media (prefers-reduced-motion: reduce) and (pointer: fine) {
  [data-scrub] .sw { opacity: 1; }
  .table-wrap tbody tr { opacity: 1; transform: none; }
}
@media (max-width: 560px) { .totop { left: auto; right: 14px; width: 42px; height: 42px; } .totop svg.ring { width: 42px; height: 42px; } }

/* ==========================================================================
   SIFRA app skin — matches the desktop client (navy + electric blue, Rajdhani)
   ========================================================================== */
:root {
  --font: "Rajdhani", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --bg: #050914;
  --ember-glow: rgba(59,130,246,.32);
  --heat: linear-gradient(100deg, #ffffff 0%, #cfe0ff 30%, #7fb0ff 65%, #3b82f6 100%);
}
html { background: #050914; }
body { font-size: 18px; font-weight: 500; background: transparent; }
.display, .h1, .h2, .h3 { letter-spacing: -.01em; }
.display { line-height: .9; }
.lede { font-weight: 500; }
.btn { font-weight: 700; letter-spacing: .04em; }
.btn-primary { background: #3b82f6; }
.btn-primary:hover { background: #2563eb; }

/* Brand mark: circular {S} badge like the app logo */
.brand { letter-spacing: .18em; font-weight: 700; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #12224a, #0a1226);
  box-shadow: inset 0 0 0 1.5px #5b8cff, 0 0 14px rgba(59,130,246,.45); display: inline-grid; place-items: center;
}
.brand-mark::before { content: "{S}"; position: static; inset: auto; border: 0; border-radius: 0; font: 700 11px/1 var(--font); color: #e8efff; letter-spacing: -.02em; }
.brand-mark::after { display: none; }

/* ---- App mockup ---- */
.app { grid-template-columns: 236px 1fr; background: linear-gradient(180deg, #0a1022, #060a16); border-color: rgba(120,150,220,.16); font-family: var(--font); font-size: 14px; }
.app-side { background: #070c1a; border-right: 1px solid rgba(120,150,220,.12); gap: 12px; padding: 18px 14px; }
.app-brand { font-size: 16px; letter-spacing: .2em; color: #dfe8ff; gap: 10px; padding: 2px 2px 6px; }
.app-collapse { margin-left: auto; width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(120,150,220,.2); }
.app-new { justify-content: center; gap: 10px; color: #6ea0ff; font-weight: 700; letter-spacing: .14em; font-size: 12.5px; background: rgba(37,99,235,.06); border-color: rgba(91,140,255,.35); border-radius: 8px; padding: 11px; }
.app-new b { font-size: 16px; font-weight: 500; }
.app-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border: 1px solid rgba(120,150,220,.14); border-radius: 8px; }
.app-seg span { text-align: center; padding: 6px; border-radius: 6px; font-size: 12.5px; color: #a8b4cc; }
.app-seg span.on { background: rgba(37,99,235,.14); color: #6ea0ff; box-shadow: inset 0 0 0 1px rgba(91,140,255,.4); }
.app-seg em, .app-label em { font-style: normal; font-size: 10px; padding: 1px 6px; margin-left: 4px; border-radius: 999px; background: rgba(120,150,220,.16); color: #9fb3d9; }
.app-label { font-family: var(--font); font-weight: 700; font-size: 11px; letter-spacing: .12em; color: #8b97b0; }
.app-chat { color: #c8d3ea; padding: 10px 12px; border-radius: 6px; background: rgba(20,32,64,.35); }
.app-chat.on { background: rgba(20,32,64,.7); box-shadow: inset 0 0 0 1px rgba(91,140,255,.75); color: #fff; }
.app-stats { margin-top: auto; border: 1px solid rgba(120,150,220,.14); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; font-size: 12px; color: #a8b4cc; }
.app-stats div { display: flex; justify-content: space-between; }
.app-stats b { font-family: var(--mono); font-weight: 500; color: #5b8cff; }
.app-settings { text-align: center; font-size: 13px; color: #a8b4cc; padding: 9px; border-radius: 8px; border: 1px solid rgba(120,150,220,.14); background: rgba(20,32,64,.3); }
.app-top { height: 50px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid rgba(120,150,220,.1); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: #d6def0; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(120,150,220,.2); background: rgba(14,22,44,.6); white-space: nowrap; }
.pill.model { color: #6ea0ff; border-color: rgba(91,140,255,.4); }
.pill.model i { font-style: normal; color: #8b97b0; }
.pill.ctx { flex-direction: column; align-items: flex-start; gap: 3px; padding: 4px 12px; font-size: 10.5px; }
.pill.ctx u { display: block; width: 130px; height: 3px; border-radius: 3px; background: rgba(120,150,220,.2); overflow: hidden; }
.pill.ctx s { display: block; height: 100%; background: #3b82f6; }
.pill.sov { margin-left: auto; color: #dfffee; border-color: rgba(61,220,151,.45); background: rgba(16,60,44,.35); }
.app-tabs { height: 40px; padding: 0 14px; border-bottom: 1px solid rgba(120,150,220,.1); gap: 6px; }
.app-tab { font-size: 12.5px; color: #8b97b0; border-radius: 6px 6px 0 0; padding: 7px 12px; }
.app-tab.on { background: rgba(20,32,64,.7); color: #fff; box-shadow: inset 0 -2px 0 #3b82f6, inset 0 0 0 1px rgba(91,140,255,.3); }
.app-tab.on small { color: #8b97b0; margin-left: 6px; }
.app-tab i { background: #3b82f6; }
.app-plus { margin-left: auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; border: 1px solid rgba(120,150,220,.2); color: #8b97b0; }
.app-thread { background: radial-gradient(600px 300px at 50% 0%, rgba(37,99,235,.08), transparent 70%); }
.app-thread .msg { font-size: 14.5px; font-weight: 500; }
.msg.me { background: #3b82f6; }
.msg.ai { background: rgba(14,22,44,.8); border-color: rgba(120,150,220,.16); }
.app-composer { margin: 0 auto 18px; width: 92%; background: #0a1124; border-color: rgba(120,150,220,.22); border-radius: 12px; padding: 10px 10px 10px 12px; font-size: 13px; gap: 8px; }
.app-composer .ph { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #7e8aa3; }
.app-composer .ic { border-color: rgba(120,150,220,.2); color: #a8b4cc; }
.app-composer .ic.round { border-radius: 50%; font-size: 18px; }
.app-composer .chip { font-size: 11.5px; font-weight: 600; padding: 6px 10px; border-radius: 7px; border: 1px solid rgba(120,150,220,.2); color: #c8d3ea; white-space: nowrap; }
.app-composer .chip.on { border-color: rgba(91,140,255,.5); color: #6ea0ff; background: rgba(37,99,235,.1); }
.app-composer .send { margin-left: 0; width: 38px; height: 38px; border-radius: 9px; background: #3b82f6; box-shadow: 0 0 18px rgba(59,130,246,.5); }
.callout .txt { font-family: var(--font); font-weight: 700; }

/* ==========================================================================
   Flagship polish layer — fully dark, glass surfaces, light-as-material
   ========================================================================== */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* Ambient page light: slow aurora behind everything */
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 30vmax at 20% 10%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(35vmax 25vmax at 85% 30%, rgba(99,102,241,.08), transparent 60%),
    radial-gradient(45vmax 30vmax at 50% 95%, rgba(14,165,233,.06), transparent 60%),
    linear-gradient(180deg, #070c1a 0%, #050914 40%, #03050c 100%);
  animation: aurora 28s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translate3d(3vmax, -2vmax, 0) rotate(6deg) scale(1.08); } }

/* Titanium sheen on gradient headlines */
.heat { background-size: 220% 100%; animation: sheen 9s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Glass nav, Apple-style hairline */
.nav.scrolled { background: rgba(5,9,20,.62); border-color: rgba(140,170,255,.10); }

/* Primary button: inner highlight + glow lift */
.btn-primary { background: linear-gradient(180deg, #4f8ff8, #2f6fe8); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 34px -10px rgba(59,130,246,.7); }
.btn-primary:hover { background: linear-gradient(180deg, #5c98fa, #3576ee); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 5px rgba(59,130,246,.16), 0 16px 44px -10px rgba(59,130,246,.8); }

/* ---------- Performance ---------- */
.perf { position: relative; overflow: hidden; isolation: isolate; }
.perf::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(140,170,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(140,170,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); }
.perf-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
.perf-die { position: relative; aspect-ratio: 1.35; border-radius: 26px; padding: 22px; isolation: isolate;
  background: linear-gradient(145deg, #0d1630, #060a16); border: 1px solid rgba(140,170,255,.16);
  box-shadow: 0 0 0 10px rgba(255,255,255,.015), 0 50px 120px -40px rgba(37,99,235,.55), inset 0 1px 0 rgba(255,255,255,.06); }
.perf-die::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: radial-gradient(60% 60% at 50% 50%, rgba(59,130,246,.35), transparent 70%); filter: blur(30px); }
.die-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; height: calc(100% - 44px); }
.die-grid i { border-radius: 3px; background: rgba(96,165,250,.08); border: 1px solid rgba(96,165,250,.12); animation: core 2.8s var(--ease-io) infinite; }
.die-grid i.hot { background: rgba(165,180,252,.18); }
@keyframes core { 0%, 70%, 100% { background-color: rgba(96,165,250,.08); box-shadow: none; } 18% { background-color: rgba(96,165,250,.75); box-shadow: 0 0 14px rgba(59,130,246,.9); } }
.die-label { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.die-label b { color: #93c5fd; font-weight: 500; }
.perf-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.perf-tile, .perf-chart { border-radius: 22px; border: 1px solid rgba(140,170,255,.12); background: linear-gradient(180deg, rgba(22,32,64,.45), rgba(8,13,28,.7)); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
.perf-tile { padding: 24px 26px; display: grid; gap: 6px; }
.perf-tile .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.perf-tile .v { font-size: clamp(48px, 5vw, 72px); font-weight: 700; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #9cc0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.perf-tile .v small { font-size: .32em; margin-left: 6px; -webkit-text-fill-color: var(--muted); }
.perf-tile .s { color: var(--fg-2); font-size: 15px; }
.perf-chart { padding: clamp(22px, 3vw, 36px); }
.perf-chart-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.perf-rows { display: grid; gap: 14px; }
.perf-row { display: grid; grid-template-columns: 170px 1fr 56px; gap: 18px; align-items: center; }
.perf-row .lbl { font-weight: 700; font-size: 16px; line-height: 1.1; }
.perf-row .lbl small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); margin-top: 2px; }
.perf-row .bar { height: 14px; border-radius: 8px; background: rgba(255,255,255,.04); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(140,170,255,.08); }
.perf-row .bar i { display: block; height: 100%; width: 0; border-radius: inherit; position: relative; overflow: hidden;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6 60%, #93c5fd); box-shadow: 0 0 18px rgba(59,130,246,.55); transition: width 1.1s var(--ease); }
.perf-row .bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-100%); animation: scan 2.6s ease-in-out infinite 1.2s; }
@keyframes scan { to { transform: translateX(100%); } }
.perf-row.top .bar i { background: linear-gradient(90deg, #3b82f6, #818cf8 60%, #e0e7ff); }
.perf-row b { font-family: var(--mono); font-weight: 500; font-size: 18px; text-align: right; color: #dbeafe; font-variant-numeric: tabular-nums; }
.perf-note { margin: 24px 0 0; font-size: 13px; color: var(--dim); }
@media (max-width: 900px) {
  .perf-head { grid-template-columns: 1fr; }
  .perf-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .perf-row { grid-template-columns: 1fr 48px; gap: 8px 12px; }
  .perf-row .lbl { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) and (pointer: fine) {
  body::before, .heat, .die-grid i, .perf-row .bar i::after { animation: none; }
}

/* ---------- Headquarters map (pure SVG, rendered by map.js) ---------- */
.geo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.geo-copy { display: grid; gap: 22px; }
.geo-facts { margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(140,170,255,.12); background: rgba(140,170,255,.12); }
.geo-facts div { background: #070d1d; padding: 16px 18px; }
.geo-facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.geo-facts dd { margin: 4px 0 0; font-weight: 600; color: var(--fg); font-size: 16px; }
.geo-facts dd.mono { font-size: 14px; font-weight: 500; color: #bfdbfe; }
.geo-card { margin: 0; border-radius: 28px; padding: clamp(14px, 2vw, 24px); position: relative; isolation: isolate;
  background: radial-gradient(70% 60% at 30% 55%, rgba(37,99,235,.14), transparent 70%), linear-gradient(160deg, #0b1430, #050913);
  border: 1px solid rgba(140,170,255,.14); box-shadow: 0 0 0 10px rgba(255,255,255,.015), 0 60px 120px -50px rgba(37,99,235,.5); }
.geo-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(140,170,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(140,170,255,.05) 1px, transparent 1px);
  background-size: 40px 40px; mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent); -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent); }
.geo-map svg { width: 100%; height: auto; overflow: visible; }
.geo-card figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 0 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.geo-card figcaption > span:first-child { display: inline-flex; align-items: center; gap: 8px; color: #93c5fd; }
.geo-dots circle { fill: rgba(147,197,253,.28); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.2);
  transition: opacity .6s var(--ease), transform .8s var(--ease); transition-delay: var(--d); }
.geo-dots circle.near { fill: rgba(147,197,253,.6); }
.geo-map.lit .geo-dots circle { opacity: 1; transform: none; }
.geo-city { fill: #1e293b; stroke: rgba(147,197,253,.55); stroke-width: 1.2; }
.geo-sea { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; fill: rgba(147,197,253,.32); }
.geo-cross { stroke: rgba(96,165,250,.28); stroke-width: 1; stroke-dasharray: 2 5; }
.geo-pin { fill: #3b82f6; stroke: #dbeafe; stroke-width: 2; filter: drop-shadow(0 0 8px #3b82f6); }
.geo-ring { fill: none; stroke: #60a5fa; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: sonar 3s var(--ease) infinite; opacity: 0; }
@keyframes sonar { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(7); opacity: 0; } }
.geo-leader { fill: none; stroke: #93c5fd; stroke-width: 1.2; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.2s var(--ease) .9s; }
.geo-map.lit .geo-leader { stroke-dashoffset: 0; }
.geo-label, .geo-sub { opacity: 0; transition: opacity .8s var(--ease) 1.6s; paint-order: stroke; stroke: #060b18; stroke-width: 5px; stroke-linejoin: round; }
.geo-map.lit .geo-label, .geo-map.lit .geo-sub { opacity: 1; }
.geo-label { font-family: var(--font); font-weight: 700; font-size: 22px; letter-spacing: .18em; fill: #fff; }
.geo-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; fill: #93c5fd; }
@media (max-width: 900px) { .geo-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .geo-facts { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) and (pointer: fine) {
  .geo-ring { animation: none; }
  .geo-dots circle, .geo-leader, .geo-label, .geo-sub { transition: none; }
}

/* ---------- Hardware: vendor strip + tier rows ---------- */
.vendor-strip { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(140,170,255,.12); background: rgba(140,170,255,.12); }
.vendor-strip li { background: #070d1d; padding: 18px 20px; display: grid; gap: 2px; font-size: 14px; color: var(--muted); transition: background .4s; }
.vendor-strip li:hover { background: #0b1530; }
.vendor-strip b { font-size: 19px; color: var(--fg); letter-spacing: .02em; }
.perf-row { grid-template-columns: 170px 1fr 170px; }
.perf-row b { font-family: var(--font); font-weight: 700; font-size: 17px; white-space: nowrap; }
@media (max-width: 900px) { .vendor-strip { grid-template-columns: repeat(2, 1fr); } .vendor-strip li:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .perf-row { grid-template-columns: 1fr auto; } .perf-row .bar { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Keyboard showcase ---------- */
.kbd-wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: stretch; }
.kbd-stage { position: relative; border-radius: 28px; padding: clamp(28px, 4vw, 56px); min-height: 420px; display: grid; place-items: center; align-content: center; gap: 36px; isolation: isolate; overflow: hidden;
  background: radial-gradient(60% 55% at 50% 45%, rgba(37,99,235,.20), transparent 70%), linear-gradient(160deg, #0b1430, #050913);
  border: 1px solid rgba(140,170,255,.14); box-shadow: 0 60px 120px -50px rgba(37,99,235,.45); }
.kbd-stage::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(140,170,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(140,170,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.kbd-keys { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.kbd-keys em { font-style: normal; font-size: 28px; color: var(--dim); }
.cap { min-width: 92px; height: 92px; padding: 0 22px; display: grid; place-items: center; border-radius: 18px; font-weight: 700; font-size: 26px; color: #eaf1ff; letter-spacing: .02em;
  background: linear-gradient(180deg, #1a2547, #0e1530); border: 1px solid rgba(140,170,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 0 #070c1d, 0 10px 30px -6px rgba(0,0,0,.8); transform: translateY(0); }
.press .cap { animation: keyPress .5s var(--ease) both; animation-delay: calc(var(--n) * 90ms + 150ms); }
@keyframes keyPress {
  0% { transform: translateY(-14px); opacity: 0; }
  45% { transform: translateY(6px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 0 #070c1d, 0 0 40px rgba(59,130,246,.75); border-color: #60a5fa; }
  100% { transform: translateY(0); opacity: 1; }
}
.kbd-action { text-align: center; display: grid; gap: 8px; }
.kbd-action b { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; }
.kbd-action span { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #93c5fd; }
.press .kbd-action { animation: fadeUp .6s var(--ease) both .25s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.kbd-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; border-radius: 28px; border: 1px solid rgba(140,170,255,.12); background: linear-gradient(180deg, rgba(22,32,64,.4), rgba(8,13,28,.7)); }
.kbd-list li { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; cursor: pointer; color: var(--fg-2); overflow: hidden; transition: background .3s, color .3s; }
.kbd-list li:hover { background: rgba(255,255,255,.03); }
.kbd-list li.on { background: rgba(37,99,235,.12); color: #fff; }
.kbd-list .caps { display: flex; gap: 4px; min-width: 150px; }
.kbd-list kbd { font-family: var(--mono); font-size: 11.5px; padding: 3px 7px; border-radius: 6px; border: 1px solid rgba(140,170,255,.22); background: rgba(255,255,255,.03); color: #bfdbfe; }
.kbd-list li.on kbd { border-color: rgba(96,165,250,.6); }
.kbd-list .prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: #3b82f6; transform: scaleX(0); transform-origin: 0 50%; }
.kbd-list li.on .prog { animation: prog 2.8s linear both; }
.paused .kbd-list li.on .prog { animation-play-state: paused; }
@keyframes prog { to { transform: scaleX(1); } }
@media (max-width: 900px) { .kbd-wrap { grid-template-columns: 1fr; } .kbd-stage { min-height: 300px; } .cap { min-width: 64px; height: 64px; font-size: 19px; padding: 0 14px; border-radius: 14px; } }

/* ---------- Voices ---------- */
.voices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.voice { min-width: 0; text-align: left; display: grid; gap: 6px; padding: 20px; border-radius: 20px; border: 1px solid rgba(140,170,255,.12); background: linear-gradient(180deg, rgba(22,32,64,.4), rgba(8,13,28,.7)); transition: border-color .3s, transform .5s var(--ease), box-shadow .4s; }
.voice:hover { transform: translateY(-4px); }
.voice.on { border-color: rgba(96,165,250,.6); box-shadow: 0 20px 50px -20px rgba(59,130,246,.6); }
.voice b { font-size: 22px; }
.voice > span:last-child { font-size: 14px; color: var(--muted); line-height: 1.35; }
.vwave { display: flex; align-items: center; gap: 3px; height: 34px; margin-bottom: 6px; }
.vwave i { width: 4px; height: 20%; border-radius: 3px; background: rgba(147,197,253,.35); }
.voice.on .vwave i { background: linear-gradient(180deg, #93c5fd, #3b82f6); animation: vwaveA 1s var(--ease-io) infinite alternate; }
.voice.on .vwave i:nth-child(2n) { animation-duration: .7s; } .voice.on .vwave i:nth-child(3n) { animation-duration: 1.3s; }
.voice.on .vwave i:nth-child(4) { animation-delay: -.4s; } .voice.on .vwave i:nth-child(6) { animation-delay: -.2s; }
@keyframes vwaveA { from { height: 15%; } to { height: 100%; } }
@media (max-width: 900px) { .voices { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Themes ---------- */
.themes { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.theme-preview { --c: #22d3ee; --c2: #e879f9; border-radius: 24px; padding: 18px; display: grid; gap: 14px; min-height: 300px; grid-template-rows: auto 1fr auto;
  background: radial-gradient(80% 70% at 20% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), radial-gradient(60% 60% at 100% 100%, color-mix(in srgb, var(--c2) 22%, transparent), transparent 70%), #070b15;
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); transition: border-color .6s, background .6s; }
.tp-top { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.tp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); transition: background .6s, box-shadow .6s; }
.tp-pill { margin-left: auto; font-size: 12px; padding: 4px 10px; border-radius: 999px; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); transition: color .6s, border-color .6s; }
.tp-body { display: grid; gap: 10px; align-content: start; }
.tp-msg { padding: 12px 14px; border-radius: 14px; font-size: 14px; max-width: 80%; }
.tp-msg.me { justify-self: end; background: var(--c); color: #04060c; font-weight: 600; transition: background .6s; }
.tp-msg.ai { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); display: grid; gap: 8px; width: 70%; }
.tp-msg.ai i { height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); }
.tp-composer { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); font-size: 13px; color: var(--muted); }
.tp-send { width: 30px; height: 30px; border-radius: 8px; background: var(--c); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 60%, transparent); transition: background .6s; }
.theme-side { border-radius: 24px; padding: clamp(22px, 3vw, 32px); border: 1px solid rgba(140,170,255,.12); background: linear-gradient(180deg, rgba(22,32,64,.4), rgba(8,13,28,.7)); display: grid; gap: 12px; align-content: start; }
.theme-side p { margin: 0; font-size: 15px; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.swatches button { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--fg-2); border: 1px solid rgba(140,170,255,.1); text-align: left; line-height: 1.15; transition: border-color .3s, background .3s; }
.swatches button::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 50%, transparent); }
.swatches button:hover { background: rgba(255,255,255,.03); }
.swatches button.on { border-color: var(--c); color: #fff; background: rgba(255,255,255,.04); }
@media (max-width: 900px) { .themes { grid-template-columns: 1fr; } .swatches { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) and (pointer: fine) { .press .cap, .press .kbd-action, .voice.on .vwave i, .kbd-list li.on .prog { animation: none; } }
@media (max-width: 560px) {
  [data-tiers] .segmented { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  [data-tiers] .segmented button { padding: 9px 4px; font-size: 13px; }
  .perf-row .lbl { grid-column: auto; }
  .perf-row b { font-size: 15px; }
  .kbd-list .caps { min-width: 112px; }
  .kbd-list li { gap: 10px; font-size: 15px; }
}
