/* Radar: the HetOps dark world in the product's own colour, the red of the Retirement
   Radar icon family. Amber is kept only for "soon", so a warning never looks like the brand. */
@font-face { font-family: Archivo; src: url(/fonts/Archivo.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/JetBrainsMono.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #08090a; --panel: #111214; --line: #26282b; --text: #efe9dd; --body: #c9c4b8; --muted: #8b877e;
  --accent: #e04849; --accent-strong: #cf3a3c; --red: #e5675a; --amber: #e3a944; --moss: #45b88d; --blue: #7aa7d9;
  --r: 14px; --sans: Archivo, system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--body); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
code, pre, .mono { font-family: var(--mono); font-size: .88em; }
code { color: var(--text); }
h1, h2, h3 { color: var(--text); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--accent); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; flex-wrap: wrap; }
.top nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.top nav a:not(.pill) { color: var(--body); text-decoration: none; font-size: .95rem; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.brand b { color: var(--accent); }
.brand img { width: 28px; height: 28px; display: block; }
.who { font-size: .9rem; }
.tag { font: 600 .75rem/1 var(--mono); color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 5px 9px; }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .2s, border-color .2s; }
.pill:active { transform: translateY(1px); }
.pill:disabled { opacity: .45; cursor: not-allowed; }
/* White on the deeper red: 4.9:1. The icon red itself is for lines, text and marks on dark. */
.pill-primary { background: var(--accent-strong); color: #fff; }
.pill-primary:hover { background: #bb3234; color: #fff; }
.pill-line { background: transparent; color: var(--text); border-color: var(--line); }
.pill-line:hover { border-color: var(--accent); color: var(--text); }

.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 56px 0 72px; }
.kicker { font: 600 .8rem/1 var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .14em; margin: 0 0 18px; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; }
.hero h1 em { font-style: italic; color: var(--accent); padding-right: .1em; }
.lede { font-size: 1.12rem; max-width: 58ch; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* The scope: a radar sweep in a round aperture, with three findings as blips. */
.scope { position: relative; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); overflow: hidden;
  background: repeating-radial-gradient(circle, transparent 0 18%, rgba(224,72,73,.12) 18% calc(18% + 1px)), radial-gradient(circle, #121315, var(--bg) 70%); }
.scope::before, .scope::after { content: ''; position: absolute; background: rgba(224,72,73,.12); }
.scope::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.scope::after { top: 50%; left: 0; right: 0; height: 1px; }
.sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(224,72,73,.35), transparent 22%); animation: sweep 4.5s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.blip { position: absolute; font: 500 .72rem/1 var(--mono); color: var(--text); background: rgba(8,9,10,.8); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px 6px 22px; white-space: nowrap; }
.blip::before { content: ''; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(227,169,68,.18); }
.b1 { top: 24%; left: 14%; }
.b1::before { background: #f08a5d; box-shadow: 0 0 0 4px rgba(240,138,93,.2); }
.b2 { top: 56%; left: 40%; }
.b2::before { background: var(--red); box-shadow: 0 0 0 4px rgba(229,103,90,.2); }
.b3 { top: 74%; left: 12%; }
@media (prefers-reduced-motion: reduce) { .sweep { animation: none; } html { scroll-behavior: auto; } }

.band { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.band p { margin: 0; padding: 22px 20px; display: grid; gap: 4px; }
.band p + p { border-left: 1px solid var(--line); }
.band b { color: var(--text); font-size: 1.4rem; letter-spacing: -.02em; }
.band span { color: var(--muted); font-size: .92rem; }

.sec { padding: 72px 0 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps > li { counter-increment: s; padding: 24px 24px 24px 0; }
.steps > li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps > li::before { content: '0' counter(s); display: block; font: 600 .8rem/1 var(--mono); color: var(--accent); margin-bottom: 14px; }
.steps b { color: var(--text); display: block; margin-bottom: 6px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 14px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; }
.plan.lead { border-color: var(--accent); }
.plan h3 { font-size: 1.1rem; }
.price { margin: 0 0 16px; color: var(--muted); }
.price b { font-size: 2.2rem; color: var(--text); letter-spacing: -.03em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; flex: 1; align-content: start; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent); }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { padding: 0 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: ''; position: absolute; left: 0; top: .3em; width: 14px; height: 8px; border-left: 2px solid var(--moss); border-bottom: 2px solid var(--moss); transform: rotate(-45deg); }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
input { flex: 1 1 260px; min-height: 44px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; color: var(--text); font: inherit; padding: 0 18px; }
input:focus { border-color: var(--accent); outline: none; }
input:disabled { opacity: .6; }
.signin { padding-bottom: 72px; max-width: 640px; }
.msg { min-height: 1.6em; margin: 10px 0; color: var(--moss); }
.msg.bad { color: var(--red); }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot nav { display: flex; gap: 16px; }
.foot a { color: var(--muted); }

/* App */
.app { padding-bottom: 72px; }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 16px 0 8px; }
.app-head h1, .app-head h2 { margin: 0; }
.accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.acct { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; color: inherit; font: inherit; cursor: pointer; display: grid; gap: 6px; }
.acct:hover, .acct.on { border-color: var(--accent); }
.acct.dim { opacity: .55; }
.acct-top { display: flex; justify-content: space-between; gap: 10px; color: var(--text); }
.dot { font: 500 .75rem/1 var(--mono); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.d-connected::before { background: var(--moss); }
.d-error::before { background: var(--red); }
.d-scan::before { background: var(--accent); animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .3; } }
.empty { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: var(--r); padding: 40px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.chip { font: 600 .75rem/1 var(--mono); border-radius: 999px; padding: 5px 9px; border: 1px solid var(--line); color: var(--body); white-space: nowrap; }
.s-retired { color: var(--red); border-color: rgba(229,103,90,.5); }
.s-extended { color: #f08a5d; border-color: rgba(240,138,93,.5); }
.s-soon { color: var(--amber); border-color: rgba(227,169,68,.5); }
.s-upcoming { color: var(--blue); border-color: rgba(122,167,217,.45); }
.s-ok { color: var(--moss); border-color: rgba(69,184,141,.45); }
.cost { color: var(--text); border-color: var(--accent); }
.detail { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--line); }
.trend { width: 100%; max-width: 600px; height: auto; display: block; margin: 12px 0; border-bottom: 1px solid var(--line); }
.trend polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tablewrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:last-child td { border-bottom: 0; }
td.mono { color: var(--text); }
td.small.mono, td:nth-child(2) { white-space: nowrap; }
.settings { padding-top: 56px; max-width: 720px; }

dialog.connect { width: min(640px, 100% - 32px); background: var(--panel); color: var(--body); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
dialog::backdrop { background: rgba(8,9,10,.75); }
.connect .x { float: right; }
.steps.tight { grid-template-columns: 1fr; border: 0; gap: 18px; margin-top: 12px; }
.steps.tight > li { padding: 0; border: 0; }
.steps.tight > li + li { padding: 0; border: 0; }
.steps.tight label, .steps.tight span { display: block; color: var(--text); font-weight: 600; margin-bottom: 8px; }
.later { opacity: .35; pointer-events: none; }
pre:has(code:empty) { display: none; }
pre { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; margin: 6px 0 0; }

@media (max-width: 820px) {
  .hero, .split { grid-template-columns: 1fr; gap: 32px; }
  .scope { max-width: 360px; width: 100%; justify-self: center; }
  .band, .steps, .plans { grid-template-columns: 1fr; }
  .band p + p { border-left: 0; border-top: 1px solid var(--line); }
  .steps > li, .steps > li + li { padding: 20px 0; border-left: 0; }
  .steps > li + li { border-top: 1px solid var(--line); }
  .top nav a:not(.pill) { display: none; }
}

/* Legal */
.legal { max-width: 760px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 24px; }
.legal h2 { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.05rem; margin-top: 28px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }

/* Placeholders hold the plan cards' space while they load, so nothing below them moves. */
.plans.loading .plan { min-height: 330px; background: linear-gradient(100deg, var(--panel) 40%, #17181b 50%, var(--panel) 60%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .plans.loading .plan { animation: none; } }
.sec { scroll-margin-top: 24px; }
#signinNote:empty { display: none; }
.pill[aria-disabled="true"] { opacity: .5; cursor: default; }
