/* Safe Hands portal (app.safehands.dev). Tokens come from brand/tokens.css (synced to
   tokens.css by `npm run sync`); the look follows site/ — light, ink-navy type, one teal
   accent, mono eyebrows, dark code panels for the proof. */

@font-face { font-family: 'Geist'; src: url('/fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist Fallback'; src: local('Arial'), local('Helvetica Neue'), local('Liberation Sans'); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
:root {
  --font-sans: 'Geist', 'Geist Fallback', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --danger: #b42318;
  --c-critical: #d92d20; --c-high: #e8590c; --c-medium: #b98900; --c-low: #3b74c4; --c-info: #626d80;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-sans); font-size: var(--text-base); line-height: var(--leading-body);
  color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' on, 'cv11' on; overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: var(--weight-semibold); text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--teal-100); color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.muted { color: var(--fg-muted); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
main { flex: 1; }

/* ── Nav ───────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.nav__inner { height: 64px; display: flex; align-items: center; gap: var(--space-6); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-900); padding: 6px 0; margin-right: auto; }
.nav__brand svg { overflow: visible; }
.nav__tag { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-400); border: 1px solid var(--line-strong); border-radius: 99px; padding: 5px 8px; }
.nav__right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nav__email { font-size: .875rem; color: var(--fg-muted); max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav form { display: contents; }
@media (max-width: 560px) { .nav__email, .nav__tag { display: none; } }

/* ── Buttons ───────────────────────────────────────────── */
.btn { --h: 44px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 18px; border-radius: 10px; border: 0; cursor: pointer; font-size: .9375rem; font-weight: 500; letter-spacing: -0.006em; white-space: nowrap; transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--lg { --h: 50px; padding: 0 22px; font-size: 1rem; border-radius: 12px; }
.btn--sm { --h: 36px; padding: 0 14px; font-size: .875rem; border-radius: 9px; }
.btn--block { width: 100%; }
.btn--primary { color: #fff; background: linear-gradient(180deg, #1a2740 0%, var(--ink-900) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px var(--ink-900), 0 1px 2px rgba(11,20,36,.18), 0 6px 16px -6px rgba(11,20,36,.45); }
.btn--primary:hover { background: linear-gradient(180deg, #24324d 0%, #111c30 100%); }
.btn--secondary { color: var(--fg); background: #fff; box-shadow: 0 0 0 1px var(--line-strong), 0 1px 2px rgba(11,20,36,.06); }
.btn--secondary:hover { background: var(--bg-subtle); }
.btn--ghost { background: transparent; color: var(--fg-muted); }
.btn--ghost:hover { color: var(--fg); background: rgba(11,20,36,.04); }
.btn--danger { color: #fff; background: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn .price { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.18); font-variant-numeric: tabular-nums; color: rgba(255,255,255,.86); }
.btn .arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.link { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(12,122,112,.35); text-underline-offset: 3px; }
.link:hover { text-decoration-color: currentColor; }

/* ── Type ──────────────────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 500; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ''; width: 16px; height: 1px; background: currentColor; opacity: .6; }
.display { font-size: var(--text-3xl); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); }
.title { font-size: var(--text-2xl); line-height: 1.08; letter-spacing: var(--tracking-title); }
.h2 { font-size: var(--text-xl); line-height: 1.2; letter-spacing: var(--tracking-title); }
.h3 { font-size: 1.0625rem; letter-spacing: -0.012em; }
.lead { font-size: var(--text-md); line-height: 1.6; color: var(--fg-muted); max-width: var(--measure); }
.label { font: 500 11px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--fg-subtle); }
.host { font-family: var(--font-mono); letter-spacing: -0.02em; overflow-wrap: anywhere; }

/* ── Surfaces ──────────────────────────────────────────── */
.card { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.card__pad { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-sub { background: var(--bg-subtle); }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 .8125rem/1 var(--font-sans); padding: 6px 10px; border-radius: 99px; background: var(--ink-100); color: var(--ink-900); white-space: nowrap; }
.pill--teal { background: var(--teal-50); color: var(--teal-700); box-shadow: inset 0 0 0 1px rgba(17,150,138,.2); }
.pill--warn { background: #fff4e5; color: #8a4b08; }
.pill--bad { background: #fef3f2; color: var(--danger); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 99px; flex: none; background: var(--c-info); }
.dot--critical { background: var(--c-critical); } .dot--high { background: var(--c-high); } .dot--medium { background: var(--c-medium); } .dot--low { background: var(--c-low); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--teal-50); box-shadow: inset 0 0 0 1px rgba(17,150,138,.22); color: var(--ink-800); font-size: .9375rem; }
.notice--warn { background: #fff8eb; box-shadow: inset 0 0 0 1px rgba(170,120,20,.2); color: #6b4a12; }
.notice--err { background: #fef3f2; box-shadow: inset 0 0 0 1px #fecdca; color: var(--danger); }
.tick { position: relative; flex: none; display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-50); box-shadow: inset 0 0 0 1px rgba(17,150,138,.28); }
.tick::after { content: ''; position: absolute; left: 6.4px; top: 4.2px; width: 4px; height: 7.6px; border: solid var(--teal-600); border-width: 0 1.7px 1.7px 0; transform: rotate(45deg); }
.tick--solid { background: var(--teal-500); box-shadow: none; } .tick--solid::after { border-color: #fff; }

/* ── URL box (same as the landing hero) ────────────────── */
.urlbox { display: grid; gap: 10px; max-width: 560px; }
.urlbox__label { font-size: .9375rem; font-weight: 500; }
.urlbox__field { display: flex; gap: 6px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-md); transition: box-shadow var(--dur-base); }
.urlbox__field:focus-within { box-shadow: 0 0 0 2px var(--teal-500), var(--shadow-md); }
.urlbox__input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; padding: 0 12px; font-family: var(--font-mono); font-size: 1rem; letter-spacing: -0.02em; }
.urlbox__input:focus-visible { outline: 0; }
.urlbox__err { color: var(--danger); font-size: .875rem; min-height: 1.3em; }
.urlbox__note { display: flex; gap: 8px; align-items: center; font-size: .875rem; color: var(--fg-muted); }
.urlbox__note::before { content: ''; width: 6px; height: 6px; border-radius: 99px; background: var(--teal-500); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 480px) { .urlbox__field { flex-direction: column; } .urlbox__field .btn { width: 100%; } }

/* ── Hero (home / sign-in) ─────────────────────────────── */
.hero { position: relative; isolation: isolate; padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem) clamp(3rem, 2rem + 4vw, 6rem); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 80% at 80% 30%, #f1f7f6 0%, #fbfcfc 55%, #fff 100%); }
.hero__grid { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.hero .display { margin: 18px 0 20px; }
.hero .lead { margin-bottom: 32px; }
.marker { position: relative; z-index: 0; white-space: nowrap; }
.marker::before { content: ''; position: absolute; z-index: -1; inset: 52% -4px 4% -4px; background: var(--marker); border-radius: 4px 10px 6px 12px; transform: skewX(-8deg); opacity: .55; }

.steps { list-style: none; padding: 0; display: grid; gap: 2px; }
.steps li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.steps li:last-child { border-bottom: 0; }
.steps .n { font: 500 12px/1 var(--font-mono); color: var(--accent); background: var(--teal-50); border-radius: 99px; width: 26px; height: 26px; display: grid; place-items: center; flex: none; }
.steps b { display: block; font-weight: 600; letter-spacing: -0.01em; }
.steps span { color: var(--fg-muted); font-size: .9375rem; }

/* ── Page head ─────────────────────────────────────────── */
.page { padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) var(--space-20); }
.phead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.phead h1 { margin-top: 10px; font-size: var(--text-2xl); line-height: 1.08; letter-spacing: var(--tracking-title); }
.phead__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; color: var(--fg-muted); font-size: .9375rem; }
.phead__meta span + span::before { content: '·'; margin-right: 14px; color: var(--ink-300); }
.back { display: inline-flex; gap: 6px; color: var(--fg-muted); font-size: .875rem; margin-bottom: 18px; }
.back:hover { color: var(--fg); }

/* ── Progress (running discovery) ──────────────────────── */
.run { max-width: 640px; margin: clamp(2rem, 1rem + 5vw, 5rem) auto; }
.run__bar { height: 6px; border-radius: 99px; background: var(--ink-100); overflow: hidden; margin: 22px 0 8px; }
.run__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal-500), var(--teal-400)); transition: width .6s var(--ease-out); }
.run__list { list-style: none; padding: 0; display: grid; gap: 0; margin-top: 18px; }
.run__list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--fg-subtle); font-size: .9375rem; }
.run__list li:last-child { border-bottom: 0; }
.run__list li .tick { opacity: .25; }
.run__list li.is-done { color: var(--fg); } .run__list li.is-done .tick { opacity: 1; }
.run__list li.is-now { color: var(--fg); font-weight: 500; }
.run__list li.is-now .tick { opacity: 1; background: transparent; box-shadow: inset 0 0 0 2px var(--teal-500); animation: pulse 1.2s ease-in-out infinite; }
.run__list li.is-now .tick::after { display: none; }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 5px var(--teal-200); } }
@media (prefers-reduced-motion: reduce) { .run__list li.is-now .tick { animation: none; } }

/* ── Results ───────────────────────────────────────────── */
.results { display: grid; gap: 20px; }
@media (min-width: 1000px) { .results { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .results__side { position: sticky; top: 88px; } }
.results__main, .results__side { display: grid; gap: 20px; min-width: 0; }

/* Issue panel: dark "code" surface, counts only. */
.issues { background: var(--code-bg); color: var(--code-fg); border-radius: var(--radius-lg); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); position: relative; overflow: hidden; box-shadow: var(--shadow-md); }
.issues::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent 5%, var(--teal-400) 35%, rgba(43,191,174,.2) 70%, transparent 95%); }
.issues .label { color: var(--code-muted); }
.issues__total { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 18px; }
.issues__total b { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; letter-spacing: -0.04em; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.issues__total span { color: var(--code-muted); }
.sev { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.sev div { background: var(--code-bg-2); border-radius: 10px; padding: 10px 10px 12px; box-shadow: inset 0 0 0 1px var(--code-line); }
.sev b { display: block; font-size: 1.5rem; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.sev small { font: 500 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--code-muted); }
.sev .s-critical b { color: var(--sev-critical); } .sev .s-high b { color: var(--sev-high); } .sev .s-medium b { color: var(--sev-medium); } .sev .s-low b { color: var(--sev-low); } .sev .s-info b { color: var(--code-fg); }
.sev .is-zero b { color: var(--code-muted); }
.cats { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 0; }
.cats li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--code-line); font-size: .9375rem; }
.cats li .n { margin-left: auto; font: 500 12px/1 var(--font-mono); color: var(--code-muted); }
.cats .lock { margin-left: 6px; width: 120px; height: 8px; border-radius: 99px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 10px, rgba(255,255,255,.04) 10px 14px); }
.issues__lock { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--night-fg-muted); padding-top: 16px; border-top: 1px solid var(--code-line); }
.issues__lock svg { flex: none; margin-top: 2px; color: var(--teal-300); }

.inv { display: grid; gap: 0; }
.inv__row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.inv__row:first-child { border-top: 0; padding-top: 4px; }
.inv__row > dt { color: var(--fg-muted); font-size: .875rem; padding-top: 4px; }
.inv__row > dd { min-width: 0; }
.inv__val { font-weight: 600; letter-spacing: -0.01em; }
.inv__ev { margin-top: 4px; font: 400 12.5px/1.5 var(--font-mono); color: var(--fg-subtle); overflow-wrap: anywhere; }
.svc { display: flex; flex-wrap: wrap; gap: 8px; }
.svc span { display: inline-flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--bg-subtle); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: .9375rem; }
.svc small { font: 500 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--fg-subtle); }
.kv { list-style: none; padding: 0; display: grid; gap: 6px; }
.kv li { display: flex; gap: 10px; align-items: baseline; font-size: .9375rem; min-width: 0; }
.kv li code, .code { font-family: var(--font-mono); font-size: .8125rem; background: var(--bg-sunken); padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.hdrs { display: flex; flex-wrap: wrap; gap: 6px; }
.hdrs span { font: 500 12px/1 var(--font-mono); padding: 6px 8px; border-radius: 7px; }
.hdrs .ok { background: var(--teal-50); color: var(--teal-700); }
.hdrs .miss { background: #fef3f2; color: var(--danger); text-decoration: line-through; text-decoration-color: rgba(180,35,24,.35); }
@media (max-width: 640px) { .inv__row { grid-template-columns: 1fr; gap: 6px; } .sev { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cats .lock { display: none; } }

/* ── Sign-up card ──────────────────────────────────────── */
.cta-card { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); display: grid; gap: 14px; }
.cta-card .h2 { font-size: 1.375rem; }
.cta-card ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: .9375rem; color: var(--ink-700); }
.cta-card li { display: flex; gap: 10px; }
.cta-card li .tick { margin-top: 2px; }

/* ── Auth ──────────────────────────────────────────────── */
.auth { display: grid; place-items: center; padding: clamp(2rem, 1rem + 6vw, 6rem) var(--gutter); }
.auth .card { width: 100%; max-width: 440px; padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.auth h1 { font-size: 1.625rem; letter-spacing: var(--tracking-title); line-height: 1.15; margin: 14px 0 6px; }
.auth .sub { color: var(--fg-muted); font-size: .9375rem; }
.auth form { display: grid; gap: 10px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 500; }
.input { height: 46px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line-strong); padding: 0 14px; font-size: 1rem; width: 100%; }
.input:focus { outline: 0; box-shadow: 0 0 0 2px var(--teal-500); }
.or { display: flex; align-items: center; gap: 12px; color: var(--fg-subtle); font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; margin: 18px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.g-btn svg { flex: none; }
.auth__msg { margin-top: 14px; }
.auth__fine { margin-top: 18px; font-size: .8125rem; color: var(--fg-subtle); }
.auth__fine a { text-decoration: underline; text-underline-offset: 2px; }
.devbox { margin-top: 22px; padding: 14px; border-radius: 12px; background: #fff8eb; box-shadow: inset 0 0 0 1px rgba(170,120,20,.25); display: grid; gap: 10px; }
.devbox p { font: 500 11px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: #8a5a10; }
.claim { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--bg-subtle); box-shadow: inset 0 0 0 1px var(--line); margin: 18px 0 4px; font-size: .9375rem; }
.claim .tick { flex: none; }

/* ── Portal ────────────────────────────────────────────── */
.tracker { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; counter-reset: st; }
.tracker li { position: relative; display: grid; justify-items: start; align-content: start; gap: 10px; padding-right: 10px; font-size: .875rem; color: var(--fg-subtle); }
.tracker li::before { content: ''; position: absolute; top: 11px; left: 24px; right: 0; height: 2px; background: var(--ink-150); }
.tracker li:last-child::before { display: none; }
.tracker .b { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 2px var(--ink-150); display: grid; place-items: center; font: 500 11px/1 var(--font-mono); }
.tracker li.is-done { color: var(--fg); } .tracker li.is-done::before { background: var(--teal-500); }
.tracker li.is-done .b { background: var(--teal-500); box-shadow: none; color: #fff; }
.tracker li.is-done .b::after { content: ''; width: 4.5px; height: 8.5px; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(0, -1px) rotate(45deg); }
.tracker li.is-done .b span { display: none; }
.tracker li.is-now { color: var(--fg); font-weight: 600; }
.tracker li.is-now .b { box-shadow: inset 0 0 0 2px var(--teal-500), 0 0 0 4px var(--teal-100); color: var(--teal-700); }
.tracker small { display: block; font-weight: 400; color: var(--fg-subtle); font-size: .75rem; margin-top: -6px; }
@media (max-width: 760px) {
  .tracker { grid-template-columns: 1fr; gap: 0; }
  .tracker li { grid-template-columns: 24px 1fr; align-items: center; column-gap: 14px; padding: 0 0 18px; }
  .tracker li::before { top: 24px; bottom: 0; left: 11px; right: auto; width: 2px; height: auto; }
  .tracker small { grid-column: 2; margin-top: -8px; }
}

.grid2 { display: grid; gap: 20px; }
@media (min-width: 1000px) { .grid2 { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
.stack { display: grid; gap: 20px; min-width: 0; }

.offer { position: relative; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.offer::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent 5%, var(--teal-400) 35%, rgba(43,191,174,.2) 70%, transparent 95%); }
.offer__top { padding: clamp(1.25rem, 1rem + 1.4vw, 2rem); background: radial-gradient(120% 80% at 0% 0%, rgba(43,191,174,.08), transparent 60%), #fff; border-bottom: 1px solid var(--line); }
.offer__badge { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--teal-700); background: var(--teal-50); padding: 7px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(17,150,138,.22); }
.offer__badge i { width: 6px; height: 6px; border-radius: 99px; background: var(--teal-500); }
.offer__amount { display: flex; align-items: flex-start; gap: 4px; margin: 16px 0 6px; }
.offer__cur { font-size: 1.5rem; font-weight: 500; margin-top: 8px; color: var(--fg-muted); }
.offer__num { font-size: clamp(3rem, 2.4rem + 2.5vw, 4.25rem); line-height: 1; font-weight: 600; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.offer__per { margin: 10px 0 0 10px; font-size: .8125rem; line-height: 1.3; color: var(--fg-muted); }
.offer__anchor { color: var(--fg-muted); font-size: .9375rem; }
.offer__anchor s { color: var(--fg-subtle); }
.offer__spots { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .875rem; font-weight: 500; color: var(--teal-700); }
.offer__spots i { width: 8px; height: 8px; border-radius: 99px; background: var(--teal-500); box-shadow: 0 0 0 4px var(--teal-100); }
.offer__body { padding: clamp(1.25rem, 1rem + 1.4vw, 2rem); display: grid; gap: 16px; }
.offer__inc { list-style: none; padding: 0; display: grid; gap: 10px; font-size: .9375rem; }
.offer__inc li { display: flex; gap: 10px; } .offer__inc .tick { margin-top: 2px; }
.offer__fine { font-size: .8125rem; color: var(--fg-subtle); text-align: center; }

.next { display: grid; gap: 12px; }
.next__row { display: flex; gap: 14px; align-items: flex-start; }
.next__icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--ink-900); color: #fff; }
.slot { border-radius: var(--radius-lg); border: 1.5px dashed var(--ink-150); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); text-align: center; color: var(--fg-muted); background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(11,20,36,.015) 14px 28px); }
.slot b { display: block; color: var(--fg); font-weight: 600; margin-bottom: 4px; }
.apps { display: grid; gap: 14px; }
@media (min-width: 760px) { .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.appcard { display: grid; gap: 14px; padding: 20px; position: relative; transition: box-shadow var(--dur-base); }
.appcard:hover { box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-md); }
.appcard a::after { content: ''; position: absolute; inset: 0; }
.side-list { list-style: none; padding: 0; display: grid; gap: 10px; font-size: .9375rem; }
.side-list li { display: flex; justify-content: space-between; gap: 10px; }
.side-list li span:first-child { color: var(--fg-muted); }
details.more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: '+'; font: 400 1.25rem/1 var(--font-mono); color: var(--fg-subtle); }
details.more[open] > summary::after { content: '–'; }

/* ── Footer ────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding-block: 28px; color: var(--fg-subtle); font-size: .8125rem; }
.foot .container { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a:hover { color: var(--fg); }

/* ── Admin ─────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-sunken); border-radius: 12px; width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 16px; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; color: var(--fg-muted); font-weight: 500; font-size: .9375rem; white-space: nowrap; }
.tabs a[aria-current] { background: #fff; color: var(--fg); box-shadow: 0 1px 2px rgba(11,20,36,.08), 0 0 0 1px var(--line); }
.count { font: 500 12px/1 var(--font-mono); padding: 4px 7px; border-radius: 99px; background: var(--ink-100); color: var(--fg-muted); }
.tabs a[aria-current] .count { background: var(--teal-50); color: var(--teal-700); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { padding: 16px 18px; }
.stat b { display: block; font-size: 1.75rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tbl th { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--fg-subtle); text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.tbl tr:last-child td { border-bottom: 0; }
.empty { padding: 48px 24px; text-align: center; color: var(--fg-muted); }
.empty b { display: block; color: var(--fg); margin-bottom: 4px; }
@media (max-width: 760px) {
  .tbl thead { display: none; } .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl tr { padding: 12px 16px; border-bottom: 1px solid var(--line); } .tbl tr:last-child { border: 0; }
  .tbl td { padding: 2px 0; border: 0; }
  .tbl td[data-l]::before { content: attr(data-l); font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--fg-subtle); margin-right: 8px; }
}
