/* COAX. One stylesheet: tokens, landing, app shell, components. Brand rules: brand/brand.md */
:root {
  --ground: #130d12; --card: #1c1419; --raised: #241a21; --raised-2: #2d2129;
  --text: #fbf1f4; --text-2: #bba9b3; --text-3: #85737d;
  --line: rgba(255, 214, 228, .09); --line-2: rgba(255, 214, 228, .18);
  --coax: #ff4d73; --coax-hi: #ff6a8c; --coax-lo: #ff3d67; --on-coax: #1a0a10;
  --amber: #ffb54d; --violet: #b18cff; --good: #3ddc97; --bad: #ff6b5a;
  --pad: clamp(16px, 2.7vw, 34px); --touch: 0;
  --display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--body); color: var(--text); background: var(--ground); -webkit-font-smoothing: antialiased; overflow: hidden; }
body.app-mode { overflow: auto; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }
[class^="ph-"], [class*=" ph-"] { line-height: 1; flex: none; }
html, body, * { scrollbar-width: none; }
*::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none; }
::selection { background: rgba(255, 77, 115, .4); }

/* ============ STAGE (landing) ============ */
.stage { position: relative; width: 100%; height: 100vh; height: 100dvh; min-height: 520px; overflow: hidden; isolation: isolate;
  background: radial-gradient(70vmax 50vmax at 50% 46%, #23121d 0%, var(--ground) 60%); }
body.app-mode .stage { display: none; }

/* ============ NAV (shared) ============ */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 20px var(--pad); font-size: 13.5px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.045em; margin-right: 20px; white-space: nowrap; border-radius: 999px; padding: 6px 12px 6px 6px; margin: -6px 8px -6px -6px; }
.brand > span:last-child { margin-top: -3px; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--coax); filter: drop-shadow(0 2px 10px rgba(255, 77, 115, .35)); }
.brand-mark svg { width: 30px; height: 30px; }
.pill { height: 50px; border-radius: 999px; display: flex; align-items: center; white-space: nowrap; }
.pill-menu { background: var(--text); color: var(--ground); padding: 0 24px 0 6px; gap: 16px; font-weight: 600; transition: transform .3s ease; }
.pill-menu:hover { transform: scale(1.03); }
.pill-menu .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--ground); color: var(--text); display: grid; place-items: center; font-size: 17px; }
.pill-links { background: var(--raised); border: 1px solid var(--line); padding: 0 28px; gap: 36px; }
.pill-links a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; margin: -8px -13px; border-radius: 999px; color: var(--text-2); transition: color .2s; }
.pill-links a i { font-size: 17px; }
.pill-links a:hover { color: var(--text); }
.pill-links a.active { color: var(--text); font-weight: 600; }
.pill-links a.active i { color: var(--coax); }
.pill-cta { margin-left: auto; background: var(--raised); border: 1px solid var(--line); padding: 0 40px 0 6px; gap: 36px; transition: border-color .2s; }
.pill-cta:hover { border-color: var(--line-2); }
.pill-cta .ico { width: 38px; height: 38px; border-radius: 50%; background: var(--coax); color: var(--on-coax); display: grid; place-items: center; font-size: 18px; flex: none; }

/* ============ ORB ============ */
.orb { position: absolute; left: 50%; top: 45%; width: min(36vw, 64vh); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; }
.orb::before, .orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.orb::before { background: conic-gradient(from 0deg, #ff4d73, #ffb54d, #ff8fab, #b18cff, #ff6a8c, #ffb54d, #ff4d73);
  -webkit-mask: radial-gradient(closest-side, transparent 70%, #000 86%, transparent 100%); mask: radial-gradient(closest-side, transparent 70%, #000 86%, transparent 100%);
  filter: blur(14px); opacity: .72; animation: spin 16s linear infinite; }
.orb::after { inset: 14%; background: radial-gradient(closest-side, rgba(255, 77, 115, .55), rgba(255, 140, 120, .2) 50%, rgba(255, 77, 115, 0) 100%);
  filter: blur(18px); opacity: calc(.22 + var(--touch) * .7); transform: scale(calc(.8 + var(--touch) * .3)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ HEADLINE ============ */
.title { position: absolute; left: 50%; top: 41%; transform: translate(-50%, -50%); z-index: 1; text-align: center; font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 5vw, 76px); line-height: 1.02; letter-spacing: -0.04em; white-space: nowrap; font-variation-settings: 'opsz' 96;
  text-shadow: 0 0 calc(var(--touch) * 36px) rgba(255, 77, 115, calc(var(--touch) * .6)); }
.title .line { display: block; animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.title .line:first-child { font-size: 1.5em; letter-spacing: -0.055em; margin-bottom: .04em; }
.title .line:nth-child(2) { animation-delay: .25s; }
.title .soft { background: linear-gradient(100deg, #ff4d73 0%, #ff4d73 30%, #ffd0a0 45%, #ffb54d 55%, #ff4d73 70%, #ff4d73 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 4.5s ease-in-out 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(.45em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* ============ HERO ACTORS ============ */
.actors { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .8s ease; overflow: hidden; }
.actors.ready { opacity: 1; }
.actor { position: absolute; left: 0; top: 0; will-change: transform; }
.bubble-actor { padding: 20px 28px; border-radius: 30px 30px 8px 30px; background: linear-gradient(135deg, var(--coax-hi), var(--coax-lo)); color: var(--on-coax);
  font-weight: 700; font-size: clamp(15px, 1.35vw, 21px); letter-spacing: -0.01em; white-space: nowrap; box-shadow: 0 18px 40px rgba(255, 61, 103, .28); }
.bubble-actor::after { content: ""; position: absolute; right: -12px; bottom: 0; width: 26px; height: 22px; background: var(--coax-lo); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.lock-actor { width: 160px; height: 190px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.lock-actor svg { width: 100%; height: 100%; overflow: visible; }
#lkShackleG { transform-box: view-box; transform-origin: 44px 92px; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.lock-actor.open #lkShackleG { transform: translateY(-16px) rotate(-24deg); }
.lock-actor.shake svg { animation: shake .5s ease; }
@keyframes shake { 20% { transform: rotate(-7deg); } 45% { transform: rotate(6deg); } 70% { transform: rotate(-3deg); } 100% { transform: none; } }
.lock-tag { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 8px); padding: 5px 12px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line);
  font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); opacity: 0; transition: opacity .3s, background .3s, color .3s; white-space: nowrap; }
.lock-tag.on { opacity: 1; }
.lock-tag.cracked { background: var(--coax); color: var(--on-coax); border-color: var(--coax); }
.spark { position: absolute; left: 0; top: 0; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; opacity: 0; will-change: transform, opacity; pointer-events: none; }
.spark i { position: absolute; inset: 0; border-radius: 50%; }
.spark .core { background: radial-gradient(closest-side, #fff, rgba(255, 180, 160, .85) 30%, rgba(255, 77, 115, .35) 60%, rgba(255, 77, 115, 0)); animation: sparkPulse 1.1s ease-in-out infinite; }
.spark .flare { inset: -60%; background: radial-gradient(closest-side, rgba(255, 77, 115, .45), rgba(255, 181, 77, .25) 50%, transparent); filter: blur(6px); animation: sparkBreath 2.2s ease-in-out infinite; }
.spark .ring { border: 1.5px solid rgba(255, 106, 140, .8); animation: sparkRipple 1.8s cubic-bezier(.2, .7, .2, 1) infinite; }
.spark .ring.r2 { border-color: rgba(255, 181, 77, .75); animation-delay: .6s; }
.spark .ring.r3 { border-color: rgba(177, 140, 255, .8); animation-delay: 1.2s; }
@keyframes sparkPulse { 0%, 100% { transform: scale(.85); opacity: .85; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes sparkBreath { 0%, 100% { transform: scale(.9); opacity: .6; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes sparkRipple { 0% { transform: scale(.35); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }

/* ============ LANDING FOOTER ROW ============ */
.foot { position: absolute; inset: auto 0 0 0; z-index: 4; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; padding: 0 var(--pad) clamp(24px, 5.2vh, 44px); animation: rise 1.1s .5s cubic-bezier(.2, .7, .2, 1) both; }
.foot .eyebrow { margin-bottom: 22px; }
.foot p { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.18; letter-spacing: -0.015em; max-width: 19em; color: var(--text); }
.foot .rule { width: 1px; height: 42px; background: var(--line-2); justify-self: center; }
.tags { justify-self: end; display: flex; gap: 6px; margin-bottom: -4px; }
.tags a { height: 50px; padding: 0 26px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; color: var(--text-2);
  transition: background .25s, color .25s, border-color .25s; }
.tags a:hover { background: var(--text); border-color: var(--text); color: var(--ground); }

/* ============ SERVICE BAR ============ */
.service-bar { display: flex; justify-content: center; gap: 7px; align-items: center; font-size: 12px; color: var(--text-3); padding: 8px var(--pad) 0; position: relative; z-index: 6; }
.service-bar b { font-weight: 600; color: var(--text-2); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: livePing 1.8s ease-out infinite; flex: none; }
@keyframes livePing { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); } 100% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } }

/* ============ MENU OVERLAY ============ */
.menu { position: fixed; inset: 0; z-index: 50; background: rgba(19, 13, 18, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: flex; flex-direction: column;
  padding: 20px var(--pad) 40px; opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .3s ease; }
.menu.open { opacity: 1; pointer-events: auto; visibility: visible; overflow-y: auto; }
.menu-top { display: flex; align-items: center; gap: 10px; }
.menu-close { margin-left: auto; }
.menu-grid { margin: auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 26px; max-width: 1120px; width: 100%; align-self: center; }
.menu-grid a { display: flex; align-items: center; gap: 14px; white-space: nowrap; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 700; letter-spacing: -0.035em; transition: opacity .2s; }
.menu-grid a:hover { opacity: .6; }
.menu-grid a small { font-family: var(--body); font-size: 12px; color: var(--text-3); font-weight: 400; letter-spacing: 0; }
.menu-socials { margin-top: 18px; max-width: 1120px; width: 100%; align-self: center; }

/* ============ APP SHELL ============ */
.app { display: none; min-height: 100vh; position: relative; }
body.app-mode .app { display: block; }
.app .nav { position: sticky; top: 0; min-height: 90px; background: rgba(19, 13, 18, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s;
  padding-top: max(20px, env(safe-area-inset-top)); padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
.app .nav.scrolled { border-bottom-color: var(--line); }
.app .pill-links { gap: 28px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin-top: calc(max(20px, env(safe-area-inset-top)) / 2 - 10px); }
@media (max-width: 1200px) { .app .pill-links { display: none; } }
.view { max-width: 1240px; margin: 0 auto; padding: 28px var(--pad) 80px; min-height: calc(100vh - 190px); min-height: calc(100dvh - 190px); }
.app-foot { max-width: 1240px; margin: 0 auto; padding: 30px var(--pad) 50px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); border-top: 1px solid var(--line); }
.tabbar { display: none; }

/* reveal on scroll */
.rv { opacity: 0; filter: blur(14px); transform: translateY(28px) scale(.985); transition: opacity .85s cubic-bezier(.2, .7, .2, 1), filter .85s cubic-bezier(.2, .7, .2, 1), transform .85s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; filter: none; transform: none; }
.rv.out-top { opacity: .25; filter: blur(10px); transform: translateY(-18px) scale(.985); transition-delay: 0ms; }
.rv.instant { transition: none !important; }

/* ============ TYPE ============ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 18px 0 30px; }
.page-head > * { min-width: 0; }
.eyebrow { font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 7px; }
.h1 { font-family: var(--display); font-size: clamp(36px, 4.8vw, 66px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin-top: 10px; font-variation-settings: 'opsz' 96; }
.h1 .soft { color: var(--text-3); }
.h1 .hot { color: var(--coax); }
.h2 { font-family: var(--display); font-size: clamp(21px, 2vw, 27px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
.lead { font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.38; letter-spacing: -0.01em; color: var(--text-2); max-width: 34em; }
.muted { color: var(--text-3); }
.small { font-size: 13px; line-height: 1.45; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.hint { font-size: 12px; color: var(--text-3); line-height: 1.45; }
.err { font-size: 12.5px; color: var(--bad); }
u { text-underline-offset: 3px; text-decoration-color: var(--line-2); }
a:hover u { text-decoration-color: var(--coax); }

/* ============ LAYOUT ============ */
.grid { display: grid; gap: 14px; }
.grid > *, .split > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.sep { height: 1px; background: var(--line); margin: 16px 0; }

/* ============ CARDS ============ */
.card { border: 1px solid var(--line); border-radius: 24px; padding: 22px; background: var(--card); position: relative; min-width: 0; isolation: isolate; }
.card.soft-bg { background: #18111650; border-style: dashed; border-color: var(--line-2); }
.card.sel { border-color: var(--coax); background: linear-gradient(160deg, rgba(255, 77, 115, .14), rgba(255, 77, 115, .03)); box-shadow: inset 0 0 0 1px var(--coax); }
.card.hot { background: linear-gradient(140deg, var(--coax-hi), var(--coax-lo)); color: var(--on-coax); border-color: transparent; }
.card.hot .eyebrow { color: rgba(26, 10, 16, .65); }
.card h3 { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -0.025em; }
.stat .v { font-family: var(--display); font-size: clamp(30px, 3vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-top: 14px; font-variant-numeric: tabular-nums; }
.stat .v small { font-family: var(--body); font-size: .4em; color: var(--text-3); font-weight: 500; letter-spacing: 0; margin-left: 5px; }
.stat-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--raised); display: grid; place-items: center; color: var(--coax); float: right; margin: -4px -4px 0 0; font-size: 19px; }

/* tiles: our icon set. Raised plum tile, pink duotone glyph, hairline glow edge */
.tile { display: grid; place-items: center; flex: none; border-radius: 14px; color: var(--coax); position: relative;
  background: radial-gradient(120% 120% at 30% 20%, #3a2431 0%, #241a21 60%); box-shadow: inset 0 0 0 1px rgba(255, 140, 170, .16), 0 6px 16px rgba(0, 0, 0, .25); }
.tile i { font-size: 56%; }
.tile .ph-duotone::before { opacity: 1; }
.stat-tile { width: 46px; height: 46px; float: right; margin: -8px -8px 0 0; font-size: 46px; }
.menu-tile { width: 46px; height: 46px; font-size: 46px; }
.v-tile { width: 54px; height: 54px; font-size: 54px; }
.orb-tile { width: 72px; height: 72px; font-size: 72px; border-radius: 22px; }

/* keeper avatars: soft gradient bead with a glyph */
.s-avatar { width: 54px; height: 54px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #1a0a10; position: relative;
  background: radial-gradient(circle at 32% 28%, var(--h1, #ff8fab), var(--h2, #ff4d73) 70%); box-shadow: 0 8px 22px rgba(0, 0, 0, .35), inset 0 -6px 14px rgba(0, 0, 0, .18); }
.s-avatar i { font-size: 1em; opacity: .9; }

/* keeper cards */
.s-card { display: flex; flex-direction: column; gap: 16px; transition: transform .25s ease, border-color .25s ease; cursor: pointer; min-height: 270px; }
.s-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.s-name { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.s-persona { font-size: 14px; line-height: 1.42; color: var(--text-2); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.kv div span { display: block; font-size: 11.5px; color: var(--text-3); margin-bottom: 4px; }
.kv div b { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* chips, badges, buttons */
.chip { height: 34px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2);
  background: var(--raised); transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.on { background: var(--text); border-color: var(--text); color: var(--ground); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; background: var(--raised); color: var(--text-2); white-space: nowrap; }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.badge.cracked { background: var(--coax); color: var(--on-coax); font-weight: 600; }
.badge.warm { background: rgba(255, 181, 77, .14); color: #ffcf8a; }
.badge.red { background: rgba(255, 107, 90, .14); color: #ff9c8f; }
.badge.green { background: rgba(61, 220, 151, .13); color: #7cecb9; }
.badge.sample { background: transparent; border: 1px dashed var(--line-2); color: var(--text-3); height: 22px; font-size: 11px; }
.badge.holder { background: linear-gradient(120deg, rgba(255, 77, 115, .2), rgba(255, 181, 77, .2)); color: #ffd3dc; }
.btn { height: 50px; border-radius: 999px; padding: 0 26px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: opacity .2s, transform .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn i { font-size: 17px; }
.btn-pri { background: var(--coax); color: var(--on-coax); }
.btn-pri .ico { width: 38px; height: 38px; border-radius: 50%; background: var(--on-coax); color: var(--coax); display: grid; place-items: center; margin-left: -20px; position: relative; z-index: 1; }
.btn-light { background: var(--text); color: var(--ground); }
.btn-grey { background: var(--raised); border: 1px solid var(--line); color: var(--text); }
.btn-line { border: 1px solid var(--line-2); color: var(--text-2); }
.btn-line:hover { background: var(--text); color: var(--ground); border-color: var(--text); opacity: 1; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 13px; gap: 8px; }
.btn-sm i { font-size: 15px; }

/* inputs */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: var(--text-2); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 13px 16px; font-size: 15px; background: var(--raised); outline: none; transition: border-color .2s, box-shadow .2s;
  background-repeat: no-repeat; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .textarea:focus, .select:focus { border-color: rgba(255, 77, 115, .55); box-shadow: 0 0 0 4px rgba(255, 77, 115, .12); }
.textarea { resize: vertical; min-height: 120px; line-height: 1.45; }
.input.round { border-radius: 999px; padding: 0 20px; height: 46px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; }
.select option { background: var(--card); }
.search { position: relative; max-width: 280px; width: 100%; }
.search > i { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 16px; }
.search .input { padding-left: 44px; }

/* mini orb + score ring */
.mini-orb { position: relative; aspect-ratio: 1; border-radius: 50%; }
.mini-orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #ff4d73, #ffb54d, #ff8fab, #b18cff, #ff4d73);
  -webkit-mask: radial-gradient(closest-side, transparent 68%, #000 84%, transparent 100%); mask: radial-gradient(closest-side, transparent 68%, #000 84%, transparent 100%); filter: blur(6px); animation: spin 14s linear infinite; }
.mini-orb::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 77, 115, .45), rgba(255, 77, 115, 0)); filter: blur(8px); }
.mini-orb .in { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; z-index: 1; }
.score-ring { position: relative; width: min(220px, 60vw); aspect-ratio: 1; margin-inline: auto; }
.score-ring .mini-orb { position: absolute; inset: 0; }
.score-ring svg { position: absolute; inset: -6%; width: 112%; height: 112%; transform: rotate(-90deg); z-index: 2; overflow: visible; pointer-events: none; }
.score-ring .trk { fill: none; stroke: rgba(255, 214, 228, .08); stroke-width: 3.2; }
.score-ring .arc { fill: none; stroke: url(#scoreGrad); stroke-width: 3.6; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 4px rgba(255, 77, 115, .6)); }
.score-ring .comet { position: absolute; inset: -6%; z-index: 3; animation: spin 6s linear infinite; pointer-events: none; }
.score-ring .comet::before { content: ""; position: absolute; left: 50%; top: 3%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 3px rgba(255, 106, 140, .9), 0 0 22px 6px rgba(255, 181, 77, .5); }
.score-ring .in { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; z-index: 4; }
.score-num { font-family: var(--display); font-size: 58px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; }
.score-ring.done .score-num { animation: scorePulse 3.2s ease-in-out infinite; }
@keyframes scorePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); text-shadow: 0 0 18px rgba(255, 77, 115, .55); } }

/* console / chat */
.console-log { display: flex; flex-direction: column; gap: 10px; max-height: 440px; overflow: auto; padding-right: 4px; }
.msg { padding: 13px 16px; border-radius: 20px; font-size: 14.5px; line-height: 1.45; max-width: 90%; white-space: pre-wrap; word-break: break-word; }
.msg.you { background: var(--coax); color: var(--on-coax); align-self: flex-end; border-bottom-right-radius: 6px; font-weight: 500; }
.msg.bot { background: var(--raised-2); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.sys { background: transparent; border: 1px dashed var(--line-2); color: var(--text-3); font-size: 12.5px; align-self: center; text-align: center; max-width: 100%; }
.msg.typing { display: inline-flex; gap: 5px; align-items: center; padding: 16px 18px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: typing 1s ease-in-out infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.judges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.judge { border: 1px solid var(--line); border-radius: 16px; padding: 12px; font-size: 12.5px; min-height: 96px; background: var(--raised); }
.judge b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin-bottom: 6px; color: var(--text-2); }
.judge .score { font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.judge.wait .score { color: var(--text-3); }
.judge .muted { line-height: 1.35; }
.verdict { border-radius: 20px; padding: 18px; display: flex; gap: 14px; align-items: center; }
.verdict.fail { background: var(--raised); }
.verdict.win { background: linear-gradient(120deg, rgba(255, 77, 115, .28), rgba(255, 181, 77, .2)); box-shadow: inset 0 0 0 1px rgba(255, 106, 140, .4); }
.verdict .big { font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -0.035em; }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table tr:hover td { background: rgba(255, 214, 228, .025); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.rank { width: 30px; height: 30px; border-radius: 50%; background: var(--raised); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.rank.top { background: var(--coax); color: var(--on-coax); }

/* bars, progress, diff, steps, code */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) 3fr 46px; gap: 12px; align-items: center; font-size: 13px; color: var(--text-2); }
.bar { height: 10px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--coax), var(--amber)); }
.progress { height: 8px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--coax), var(--amber)); border-radius: 999px; transition: width .5s ease; }
.diff { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; line-height: 1.55; }
.diff div { padding: 4px 14px; white-space: pre-wrap; }
.diff .del { background: rgba(255, 107, 90, .1); color: #ffab9f; }
.diff .add { background: rgba(61, 220, 151, .09); color: #8ff0c4; }
.diff .ctx { color: var(--text-3); }
.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.step { height: 38px; padding: 0 16px 0 5px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.step > b { width: 28px; height: 28px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.step.on { background: var(--text); color: var(--ground); border-color: var(--text); }
.step.on > b { background: var(--ground); color: var(--text); }
.step.done > b { background: var(--coax); color: var(--on-coax); }
pre.code { background: #0d080c; border: 1px solid var(--line); color: #eadde3; border-radius: 18px; padding: 18px; overflow: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; }
code { font-family: var(--mono); font-size: .92em; background: var(--raised); padding: 1px 6px; border-radius: 6px; }
.empty { padding: 40px; text-align: center; color: var(--text-3); }
.skeleton { color: transparent !important; background: linear-gradient(90deg, var(--raised), var(--raised-2), var(--raised)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }
.tier-card.on { border-color: var(--coax); box-shadow: inset 0 0 0 1px var(--coax); }
.tier-card .v { font-family: var(--display); font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.04em; margin-top: 10px; }
.tier-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 14px; font-size: 13.5px; }
.tier-list li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.tier-list li span { color: var(--text-3); }
.how-steps { list-style: none; counter-reset: how; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.how-steps li { counter-increment: how; }
.how-steps li .card { height: 100%; }
.how-steps li .card::before { content: counter(how); position: absolute; right: 18px; top: 14px; font-family: var(--display); font-weight: 800; font-size: 54px; letter-spacing: -0.05em; color: rgba(255, 214, 228, .06); z-index: -1; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { transition: transform .25s; color: var(--text-3); }
.faq details[open] summary i { transform: rotate(45deg); color: var(--coax); }
.faq details p { margin-top: 10px; color: var(--text-2); line-height: 1.5; max-width: 52em; }
.split-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 3px; }
.split-bar i { display: block; height: 100%; }

/* socials */
.socials { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.foot .socials { margin-top: 16px; }
.soc { height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2);
  background: rgba(36, 26, 33, .8); transition: background .2s, color .2s, border-color .2s; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.soc:hover, .soc:focus-visible { background: var(--text); border-color: var(--text); color: var(--ground); }
.soc svg { width: 13px; height: 13px; fill: currentColor; flex: none; }
.soc.icon { width: 34px; padding: 0; justify-content: center; }
.soc i { font-size: 14px; }
.soc b { font-weight: 700; color: inherit; }
.soc.soon { opacity: .65; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--text); color: var(--ground); padding: 14px 22px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ HOVER GLOW (pointer-following light in COAX colours) ============ */
:where(.btn, .pill-menu, .pill-cta, .chip, .soc, .tags a, .step, .tabbar a, .menu-grid a, #appLinks a, .brand) { position: relative; overflow: hidden; isolation: isolate;
  --glow-bg: radial-gradient(circle, rgba(255, 77, 115, .5) 0%, rgba(255, 181, 77, .3) 34%, rgba(177, 140, 255, .14) 54%, transparent 70%); --glow-op: .75; }
:where(.btn-pri, .card.hot .btn) { --glow-bg: radial-gradient(circle, rgba(255, 236, 240, .75) 0%, rgba(255, 200, 150, .45) 30%, transparent 66%); --glow-op: .7; --glow-blend: soft-light; }
:where(.pill-menu, .chip.on, .step.on, .btn-light, .tags a:hover, .soc:hover, .btn-line:hover) { --glow-bg: radial-gradient(circle, rgba(255, 77, 115, .55) 0%, rgba(255, 181, 77, .35) 30%, transparent 66%); --glow-op: .55; }
:where(.btn, .pill-menu, .pill-cta, .chip, .soc, .tags a, .step, .tabbar a, .menu-grid a, #appLinks a, .brand)::after { content: ""; position: absolute; left: var(--gx, 50%); top: var(--gy, 50%); width: 200px; height: 200px; border-radius: 50%;
  pointer-events: none; z-index: -1; opacity: var(--glow-op); mix-blend-mode: var(--glow-blend, normal); background: var(--glow-bg); filter: blur(2px); transform: translate(-50%, -50%) scale(0); transition: transform .4s ease-out, opacity .3s ease; }
:where(.btn, .pill-menu, .pill-cta, .chip, .soc, .tags a, .step, .tabbar a, .menu-grid a, #appLinks a, .brand).glow-on:not(:disabled)::after { transform: translate(-50%, -50%) scale(1.2); }
.btn-pri .ico, .pill-menu .dot, .pill-cta .ico { position: relative; z-index: 1; }
/* surface glow: cards light up softly under the pointer */
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .45s ease;
  background: radial-gradient(420px circle at var(--cx, 50%) var(--cy, 50%), rgba(255, 77, 115, .1) 0%, rgba(255, 181, 77, .05) 35%, transparent 70%); }
.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px; opacity: 0; transition: opacity .45s ease;
  background: radial-gradient(260px circle at var(--cx, 50%) var(--cy, 50%), rgba(255, 106, 140, .75), rgba(255, 181, 77, .35) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.card.hot::before { background: radial-gradient(420px circle at var(--cx, 50%) var(--cy, 50%), rgba(255, 255, 255, .22), transparent 70%); }
.card.surf-on::before, .card.surf-on::after { opacity: 1; }
.input.surf-on, .textarea.surf-on { background-image: radial-gradient(240px circle at var(--cx, 50%) var(--cy, 50%), rgba(255, 77, 115, .1), transparent 70%); }
:focus-visible { outline: 2px solid var(--coax); outline-offset: 2px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .pill-links { display: none; }
  .pill-cta { padding-right: 26px; gap: 16px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav { padding-top: 14px; gap: 8px; }
  .brand { font-size: 21px; margin-right: auto; }
  .brand-mark, .brand-mark svg { width: 26px; height: 26px; }
  .pill { height: 44px; }
  .pill-menu { padding: 0 18px 0 5px; gap: 12px; }
  .pill-menu .dot, .pill-cta .ico { width: 34px; height: 34px; }
  .pill-cta { margin-left: 0; padding: 0 5px; }
  .pill-cta .label { display: none; }
  .bubble-actor { white-space: normal; width: max-content; max-width: 46vw; font-size: 13.5px; padding: 14px 18px; border-radius: 22px 22px 6px 22px; }
  .orb { width: min(80vw, 46vh); top: 40%; }
  .title { top: 37%; font-size: clamp(26px, 8.4vw, 56px); }
  .foot { grid-template-columns: 1fr; gap: 18px; }
  .foot .eyebrow { margin-bottom: 10px; }
  .foot .rule { display: none; }
  .tags { justify-self: start; flex-wrap: wrap; margin-bottom: 0; }
  .tags a { height: 42px; padding: 0 18px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .judges { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr 46px; }
  .bar-row .bar { grid-column: 1 / -1; grid-row: 2; }
  .card { padding: 18px; border-radius: 20px; }
  .btn { height: 46px; }
  .how-steps { grid-template-columns: 1fr; }
  .app { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; height: 62px; border-radius: 999px;
    background: rgba(28, 20, 25, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); padding: 0 6px; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; color: var(--text-3); border-radius: 999px; }
  .tabbar a i { font-size: 21px; }
  .tabbar a.active { color: var(--text); font-weight: 600; }
  .tabbar a.active i { color: var(--coax); }
  .page-head { margin: 8px 0 22px; }
  .page-head .select, .search { max-width: none !important; width: 100%; }
  .view { padding-top: 18px; }
  .service-bar { font-size: 11px; flex-wrap: wrap; text-align: center; }
  .stat .v { font-size: 28px; }
  .menu-grid { grid-template-columns: 1fr; gap: 0; }
  .menu-grid a { font-size: 22px; padding: 11px 0; }
  .menu-tile { width: 38px; height: 38px; font-size: 38px; }
  .verdict { align-items: flex-start; }
}
@media (max-width: 340px) { .brand > span:last-child { display: none; } }
@media (max-height: 560px) and (orientation: landscape) {
  .foot p { font-size: 15px; } .tags a { height: 40px; padding: 0 18px; } .title { font-size: clamp(26px, 8vh, 52px); }
}
@media (prefers-reduced-motion: reduce) {
  .orb::before, .mini-orb::before, .title .line, .title .soft, .foot, .spark i, .live-dot, .score-ring .comet, .score-ring.done .score-num { animation: none; }
  .rv, .rv.out-top { opacity: 1; filter: none; transform: none; transition: none; }
  :where(.btn, .pill-menu, .pill-cta, .chip, .soc, .tags a, .step, .tabbar a, .menu-grid a, #appLinks a, .brand)::after, .card::before, .card::after { transition: none; }
}
