/* Interactive audit page (/audit?t=TOKEN). A control-tower instrument panel:
   dark navy, glowing instruments, the brand blue and yellow. Mobile first. */
:root {
  --bg: #071230; --bg-2: #0b1a45; --card: #0f2255; --card-2: #142b69; --line: rgba(141, 189, 255, 0.18);
  --ink: #f2f6ff; --muted: #a9b9df; --dim: #7d8fbc;
  --blue: #3b7bff; --sky: #7db5ff; --yellow: #ffc233;
  --good: #34d399; --warn: #ffc233; --mid: #ff9a3d; --bad: #ff6b6b;
  --pad: clamp(18px, 4vw, 40px); --r: 20px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; background: radial-gradient(1200px 700px at 80% -10%, #173a8f 0%, transparent 60%) no-repeat, var(--bg); color: var(--ink); font: 400 17px/1.55 "Plus Jakarta Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
q { quotes: "\201C" "\201D"; color: var(--yellow); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

.au-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px var(--pad); max-width: 1180px; margin: 0 auto; }
.au-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.au-brand img { width: 34px; height: 34px; }
.au-brand b { color: var(--sky); font-weight: 800; }
.au-top-tag { font: 700 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); border: 1px solid var(--line); padding: 7px 12px; border-radius: 99px; white-space: nowrap; }

.au-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border: 0; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; box-shadow: 0 8px 0 -3px #1a44b8, 0 18px 30px -18px rgba(59, 123, 255, 0.9); transition: transform 0.15s, background 0.15s; }
.au-btn:hover { background: #558dff; transform: translateY(-1px); }
.au-btn:active { transform: translateY(3px); }
.au-btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.au-btn-ghost:hover { background: rgba(141, 189, 255, 0.1); }
.au-btn-sm { padding: 10px 16px; font-size: 14px; box-shadow: 0 6px 0 -3px #1a44b8; }
.au-btn-block { width: 100%; }

.au-state { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 22px; padding: var(--pad); text-align: center; color: var(--muted); }
.au-scope { width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--line); background: repeating-radial-gradient(circle, transparent 0 18px, rgba(141, 189, 255, 0.14) 18px 19px); position: relative; overflow: hidden; }
.au-scope i { position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(52, 211, 153, 0.55), transparent 28%); animation: au-spin 2.4s linear infinite; }
@keyframes au-spin { to { transform: rotate(360deg); } }

.au-main { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad) 80px; }
.au-kicker { font: 700 12px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.au-kicker span { color: var(--dim); }
h1 { font-size: clamp(36px, 6.4vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; max-width: 22ch; text-wrap: balance; }
.au-lede { margin-top: 14px; max-width: 62ch; color: var(--muted); }
.au-note { margin-top: 18px; max-width: 70ch; font-size: 14px; color: var(--dim); }

/* ---- hero ---- */
.au-hero { display: grid; gap: 34px; align-items: center; padding: clamp(24px, 6vw, 70px) 0 clamp(40px, 7vw, 80px); }
.au-where { margin-top: 12px; font: 500 14px var(--mono); color: var(--dim); }
.au-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.au-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; }
.au-chips i, .au-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.s-strong { background: var(--good); } .s-weak { background: var(--warn); } .s-missing { background: var(--bad); }
.au-gauge-wrap { justify-self: center; text-align: center; }
.au-gauge { position: relative; width: min(340px, 78vw); }
.au-gauge svg { display: block; width: 100%; overflow: visible; }
.au-gauge path { fill: none; stroke-width: 16; stroke-linecap: round; }
.au-gauge-track { stroke: rgba(141, 189, 255, 0.16); }
.au-gauge-fill { stroke: var(--yellow); filter: drop-shadow(0 0 14px currentColor); transition: stroke 0.4s; }
.au-gauge-num { position: absolute; inset: 0; display: grid; place-content: center; padding-top: 6%; }
.au-gauge-num b { font-size: clamp(72px, 20vw, 112px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.au-gauge-num span { font: 500 13px var(--mono); color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 8px; }
.au-gauge-label { margin-top: 4px; font-weight: 700; font-size: 18px; }
.au-gauge-note { margin: 6px auto 0; max-width: 30ch; font-size: 15px; color: var(--dim); }
@media (min-width: 860px) { .au-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }

/* ---- sections ---- */
.au-sec { padding: clamp(40px, 7vw, 84px) 0; border-top: 1px solid var(--line); }
.au-panel { background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); padding: 22px; min-height: 180px; }
.au-panel h3 { margin: 0 0 4px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.au-panel .sub { font: 500 13px var(--mono); color: var(--dim); margin-bottom: 14px; }
.au-panel ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.au-panel ol li { display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: rgba(7, 18, 48, 0.55); }
.au-panel ol li.is-you { box-shadow: inset 0 0 0 2px var(--yellow); }
.au-panel ol b { font: 700 14px var(--mono); color: var(--sky); flex: none; width: 22px; }
.au-panel ol span { flex: 1; min-width: 0; font-weight: 600; }
.au-panel ol small { font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; }
.au-panel .you-line { margin-top: 14px; font-weight: 700; }
.au-cmp { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 16px; align-items: baseline; margin-top: 6px; font-size: 15px; }
.au-cmp > span { color: var(--muted); }
.au-cmp b { font-variant-numeric: tabular-nums; text-align: right; }
.au-cmp .hd { font: 700 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.up { color: var(--good); } .down { color: var(--bad); }

/* grid map */
.au-grid-layout, .au-radar-layout { display: grid; gap: 22px; margin-top: 30px; align-items: start; }
@media (min-width: 860px) { .au-grid-layout, .au-radar-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.au-map { position: relative; aspect-ratio: 1; border-radius: var(--r); padding: 6%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4%; overflow: hidden;
  background:
    linear-gradient(rgba(141, 189, 255, 0.07) 2px, transparent 2px) 0 0 / 100% 20%,
    linear-gradient(90deg, rgba(141, 189, 255, 0.07) 2px, transparent 2px) 0 0 / 20% 100%,
    linear-gradient(115deg, transparent 47%, rgba(141, 189, 255, 0.12) 47% 49%, transparent 49%),
    var(--card);
  box-shadow: inset 0 0 0 1px var(--line); }
.au-cell { position: relative; aspect-ratio: 1; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font: 700 clamp(13px, 2.6vw, 20px) var(--mono); color: #071230; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 28%, transparent), 0 10px 22px -8px var(--c); transform: scale(0); transition: transform 0.45s cubic-bezier(0.2, 1.5, 0.4, 1), box-shadow 0.2s; }
.au-cell.is-in { transform: scale(1); }
.au-cell:hover { box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 34%, transparent), 0 10px 22px -8px var(--c); }
.au-cell.is-on { box-shadow: 0 0 0 4px var(--bg), 0 0 0 8px #fff; }
.au-cell.is-home::after { content: ""; position: absolute; left: 50%; top: -34%; width: 34%; height: 44%; transform: translateX(-50%); background: #fff; clip-path: path("M12 0C5.4 0 0 5.2 0 11.7 0 20.4 12 32 12 32s12-11.6 12-20.3C24 5.2 18.6 0 12 0Z"); clip-path: polygon(50% 100%, 8% 45%, 8% 22%, 28% 4%, 72% 4%, 92% 22%, 92% 45%); }
.r1 { --c: var(--good); background: var(--good); } .r2 { --c: var(--warn); background: var(--warn); } .r3 { --c: var(--mid); background: var(--mid); } .r4 { --c: var(--bad); background: var(--bad); } .r0 { --c: #51649a; background: #51649a; }
.au-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 22px; }
.au-stats div { background: var(--card); border-radius: 16px; padding: 16px 18px; box-shadow: inset 0 0 0 1px var(--line); }
.au-stats b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.au-stats span { font-size: 14px; color: var(--muted); }
.au-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.au-legend li { display: inline-flex; align-items: center; gap: 8px; }
.au-legend i { width: 12px; height: 12px; border-radius: 50%; }

/* radar */
.au-radar { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle, #123a4a 0%, #0a2238 60%, #081a30 100%); box-shadow: inset 0 0 0 2px rgba(52, 211, 153, 0.35), 0 0 60px -20px rgba(52, 211, 153, 0.6); max-width: 560px; width: 100%; justify-self: center; }
.au-radar svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.au-radar .ring { fill: none; stroke: rgba(52, 211, 153, 0.28); stroke-width: 0.4; }
.au-radar .axis { stroke: rgba(52, 211, 153, 0.18); stroke-width: 0.3; }
.au-radar text { fill: rgba(167, 243, 208, 0.75); font: 500 3px var(--mono); }
.au-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(52, 211, 153, 0.42), transparent 24%); animation: au-spin 5s linear infinite; pointer-events: none; }
.au-blip { position: absolute; transform: translate(-50%, -50%); border: 0; border-radius: 50%; cursor: pointer; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent), 0 0 18px var(--c); display: grid; place-items: center; font: 700 11px var(--mono); color: #071230; padding: 0; transition: transform 0.2s; }
.au-blip:hover { transform: translate(-50%, -50%) scale(1.15); }
.au-blip.is-on { box-shadow: 0 0 0 3px #081a30, 0 0 0 6px #fff; }
.au-blip.is-ahead { --c: var(--bad); } .au-blip.is-behind { --c: var(--sky); }
.au-blip.is-you { --c: var(--yellow); width: 34px; height: 34px; font-size: 10px; cursor: default; z-index: 2; }

/* head to head */
.au-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.au-tabs button { padding: 10px 18px; border-radius: 99px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 15px; cursor: pointer; color: var(--muted); }
.au-tabs button[aria-selected="true"] { background: var(--blue); color: #fff; box-shadow: none; }
.au-bars { display: grid; gap: 14px; margin-top: 24px; }
.au-bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.au-bar-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.au-bar-top span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-bar-top b { font-variant-numeric: tabular-nums; font-family: var(--mono); }
.au-bar-track { height: 18px; border-radius: 99px; background: rgba(141, 189, 255, 0.12); overflow: hidden; }
.au-bar-track i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--sky); transition: width 0.8s cubic-bezier(0.2, 0.9, 0.2, 1); }
.au-bar.is-you .au-bar-top { color: var(--yellow); }
.au-bar.is-you .au-bar-track i { background: var(--yellow); box-shadow: 0 0 16px rgba(255, 194, 51, 0.7); }

/* checklist + simulator */
.au-sim { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; padding: 20px 22px; border-radius: var(--r); background: linear-gradient(120deg, var(--card-2), var(--card)); box-shadow: inset 0 0 0 1px var(--line); }
.au-sim small { display: block; font: 700 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.au-sim b { font-size: 46px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.au-sim .is-next b { color: var(--good); }
.au-sim-arrow { font-size: 30px; color: var(--dim); }
.au-sim .au-btn { margin-left: auto; }
.au-list { display: grid; gap: 10px; margin-top: 18px; }
.au-item { background: var(--card); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.25s, background 0.25s; }
.au-item.is-fixed { background: #0f2f4f; box-shadow: inset 0 0 0 2px rgba(52, 211, 153, 0.55); }
.au-item-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 16px 18px; }
.au-item-head .au-dot { width: 12px; height: 12px; }
.au-item-title { font-weight: 700; font-size: 17px; }
.au-item-title em { font-style: normal; font: 700 10px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; margin-left: 8px; vertical-align: 2px; white-space: nowrap; }
.t-strong { background: rgba(52, 211, 153, 0.16); color: var(--good); } .t-weak { background: rgba(255, 194, 51, 0.16); color: var(--warn); } .t-missing { background: rgba(255, 107, 107, 0.16); color: var(--bad); }
.au-item-detail { grid-column: 2 / -1; color: var(--muted); font-size: 15px; }
.au-switch { position: relative; width: 54px; height: 30px; border-radius: 99px; border: 0; background: rgba(141, 189, 255, 0.2); cursor: pointer; flex: none; transition: background 0.2s; }
.au-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.25s cubic-bezier(0.2, 1.4, 0.4, 1); }
.au-switch[aria-checked="true"] { background: var(--good); }
.au-switch[aria-checked="true"]::after { transform: translateX(24px); }
.au-gain { font: 700 13px var(--mono); color: var(--good); white-space: nowrap; }
.au-item-ctl { display: flex; align-items: center; gap: 12px; }
.au-item details { border-top: 1px solid var(--line); }
.au-item summary { cursor: pointer; list-style: none; padding: 12px 18px; font-size: 14px; font-weight: 700; color: var(--sky); }
.au-item summary::-webkit-details-marker { display: none; }
.au-item summary::after { content: " +"; }
.au-item details[open] summary::after { content: " \2212"; }
.au-item-more { padding: 0 18px 18px; display: grid; gap: 10px; font-size: 15px; color: var(--muted); max-width: 72ch; }
.au-item-more b { color: var(--ink); }
.au-item-more .lock { color: var(--dim); font-style: italic; }

/* setup + boarding pass */
.au-pass { display: grid; margin-top: 34px; border-radius: 24px; overflow: hidden; background: #fff; color: #0e1f4d; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.au-pass-main { padding: 26px; background: linear-gradient(#2f6bff 0 54px, #fff 54px); }
.au-pass-type { display: block; color: #fff; font: 700 13px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 30px; }
.au-pass-route { display: flex; align-items: center; gap: 14px; }
.au-pass-route small { display: block; font: 700 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #5a6b8f; }
.au-pass-route b { font-size: clamp(48px, 9vw, 76px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.au-pass-route div:last-child b { color: #2f6bff; }
.au-pass-route svg { flex: 1; min-width: 40px; max-width: 220px; height: 34px; }
.au-pass-route path { fill: none; stroke: #7db5ff; stroke-width: 2.5; stroke-dasharray: 3 6; stroke-linecap: round; }
.au-pass-name { margin-top: 14px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-transform: uppercase; }
.au-pass-fare { margin-top: 4px; color: #5a6b8f; font-size: 15px; }
.au-pass-stub { display: grid; gap: 12px; align-content: center; padding: 22px 26px; border-top: 3px dashed #c9d6ef; background: #f4f7ff; }
.au-pass-stub .au-btn-ghost { color: #0e1f4d; box-shadow: inset 0 0 0 2px #c9d6ef; }
.au-pass-stub .au-btn-ghost:hover { background: #e6edff; }
@media (min-width: 760px) { .au-pass { grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); } .au-pass-stub { border-top: 0; border-left: 3px dashed #c9d6ef; } }

.au-foot { max-width: 1180px; margin: 0 auto; padding: 24px var(--pad) 40px; font-size: 13px; color: var(--dim); display: grid; gap: 6px; }

.au-float { position: fixed; right: 16px; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 18px; border-radius: 99px; background: #0e2a5e; box-shadow: 0 0 0 2px var(--good), 0 18px 40px -14px rgba(0, 0, 0, 0.8); font-size: 13px; font-weight: 700; color: var(--muted); transition: opacity 0.25s, transform 0.25s; }
.au-float b { font-size: 26px; font-weight: 800; color: var(--good); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.au-float.is-off { opacity: 0; transform: translateY(20px); pointer-events: none; }

[data-rise] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1); }
[data-rise].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .au-sweep, .au-scope i { animation: none; }
  [data-rise] { opacity: 1; transform: none; transition: none; }
  .au-cell { transform: scale(1); transition: none; }
  .au-bar-track i, .au-gauge-fill { transition: none; }
}
/* the offer sheet runs edge to edge at the bottom of the page */
html, body { overflow-x: clip; }
.au-main:has(.of-sheet) { padding-bottom: 0; }

/* full version: the homepage under the audit (js/audit-page.js mountHomepage) */
.au-home { position: relative; background: #fff; color: var(--text); font-family: var(--font); border-radius: 36px 36px 0 0; margin-top: 30px; overflow-x: clip; }
.au-home .c2-nav, .au-home .c2-progress { display: none !important; }
.au-home-intro { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--pad) 0; }
.au-home-intro .au-kicker { color: var(--blue); }
.au-home-intro h2 { color: var(--navy); font-size: clamp(32px, 5vw, 60px); max-width: 20ch; }
.au-home-intro h2 span { color: var(--blue); }
.au-home-intro p:last-child { margin-top: 14px; font-size: 18px; color: var(--muted); }
.au-home-intro a { color: var(--blue); font-weight: 700; }
.au-home .c2-hero { padding-top: 40px; }

/* AI answers */
.au-ai-q { font-size: 17px; color: var(--muted); margin-top: 4px; }
.au-ai { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 22px; }
.au-ai-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.au-ai-card.is-named { border-color: var(--good); }
.au-ai-engine { font: 700 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }
.au-ai-verdict { font-size: 20px; font-weight: 700; margin: 8px 0 12px; color: var(--bad); }
.au-ai-card.is-named .au-ai-verdict { color: var(--good); }
.au-ai-sub { font-size: 13px; color: var(--dim); margin-bottom: 6px; }
.au-ai-list { margin: 0 0 12px 20px; padding: 0; color: var(--ink); font-size: 15px; line-height: 1.6; }
.au-ai-src { font-size: 13px; color: var(--dim); overflow-wrap: anywhere; }
