/* CERBERUS design system: tokens and components copied from ../hub/public/index.html
   (see ../hub/DESIGN.md). Passport-specific pieces follow the shared ones. */
:root {
  --bg: #060709;
  --ink: #ece6dc;
  --ink-dim: rgba(236, 230, 220, .62);
  --ink-faint: rgba(236, 230, 220, .38);
  --ember: #ff7a33;
  --ember-soft: rgba(255, 122, 51, .18);
  --gold: #f2c17a;
  --line: rgba(255, 255, 255, .10);
  --glass: rgba(22, 20, 22, .38);
  --glass-hi: rgba(255, 255, 255, .08);
  --danger: #ff8a70;
  --radius: 9999px;
  --gutter: clamp(16px, 4vw, 56px);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html, body { overflow-x: clip; }
body { background: var(--bg); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Stage: fixed, dimmed Cerberus still ---------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.stage img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.scrim { position: absolute; inset: 0; background:
  radial-gradient(ellipse 70% 60% at 50% 45%, transparent 0%, rgba(6, 7, 9, .35) 60%, rgba(6, 7, 9, .85) 100%),
  linear-gradient(180deg, rgba(6, 7, 9, .55) 0%, rgba(6, 7, 9, .25) 30%, rgba(6, 7, 9, .45) 70%, rgba(6, 7, 9, .9) 100%); }

/* ---------- Liquid glass ---------- */
.glass { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: var(--radius);
  background: var(--glass); backdrop-filter: blur(28px) saturate(190%); -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .4), inset 0 -1px 1px rgba(0, 0, 0, .3), 0 8px 32px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .07); font-size: 13px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .35s ease, box-shadow .35s ease; }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .18) 48%, transparent 62%); transform: translateX(-120%); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.glass:hover { transform: translateY(-1px) scale(1.025); background: rgba(40, 36, 38, .45); }
.glass:hover::after { transform: translateX(120%); }
.glass:active { transform: scale(.98); }
.glass.primary { background: rgba(245, 240, 232, .92); color: #0b0b0c; border-color: rgba(255, 255, 255, .6); }
.glass.primary:hover { background: #fff; }
.glass.sm { height: 36px; padding: 0 15px; font-size: 12px; }
.glass[aria-disabled="true"], .glass:disabled { opacity: .55; pointer-events: none; }
.glass .arrow { transition: transform .35s ease; }
.glass:hover .arrow { transform: translateX(3px); }
.dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); animation: pulse 2.4s ease-in-out infinite; }
.dot.off { background: #777; box-shadow: none; animation: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Navbar ---------- */
.nav { position: fixed; top: 16px; left: var(--gutter); right: var(--gutter); z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.nav-l, .nav-r { display: flex; gap: 10px; align-items: center; min-width: 0; }
.nav-r { justify-content: flex-end; }
.logo { font-size: 13px; font-weight: 600; letter-spacing: .32em; color: var(--ink); white-space: nowrap; }
.logo span { color: var(--ember); }
.logo b { font-weight: 600; }

/* ---------- Sections ---------- */
main { position: relative; z-index: 10; }
.act { position: relative; max-width: 980px; margin: 0 auto; padding: 72px var(--gutter); }
.hero { padding-top: calc(96px + 12vh); }
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .32em; color: var(--gold); margin-bottom: 22px; }
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
h1, h2 { font-weight: 800; font-size: clamp(40px, 6.4vw, 92px); line-height: .94; letter-spacing: -.035em; text-transform: uppercase; }
h2 { font-size: clamp(34px, 4.8vw, 64px); }
h1 .sep, h2 .sep { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; color: var(--ember); font-size: .62em; line-height: 1.15; margin: .18em 0; }
.sub { margin-top: 22px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.65; color: var(--ink-dim); max-width: 600px; }
.ctas { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { margin-top: 16px; font-size: 12px; color: var(--ink-faint); line-height: 1.6; }
.error { margin-top: 16px; font-size: 13px; color: var(--danger); }

/* ---------- Passport: the address field as a glass pill row ---------- */
.field { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; max-width: 760px; }
.field input { flex: 1 1 320px; min-width: 0; height: 44px; padding: 0 20px; border-radius: var(--radius);
  background: var(--glass); backdrop-filter: blur(28px) saturate(190%); -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .18), 0 8px 32px rgba(0, 0, 0, .35);
  color: var(--ink); font: 500 14px var(--sans); letter-spacing: .01em; font-feature-settings: "tnum"; }
.field input::placeholder { color: var(--ink-faint); }
.field input:focus { outline: none; border-color: rgba(242, 193, 122, .6); }

/* ---------- Scan progress ---------- */
.progress { padding-top: 0; }
.progress ol { list-style: none; counter-reset: s; display: grid; gap: 4px; }
.progress li { counter-increment: s; color: var(--ink-faint); font-size: 13px; padding: 6px 0; }
.progress li::before { content: counter(s, decimal-leading-zero) "  "; font-feature-settings: "tnum"; }
.progress li.active { color: var(--ink); }
.progress li.active::after { content: "  …"; color: var(--ember); }
.progress li.done { color: var(--ink-dim); }
.progress li.done::after { content: "  ✓"; color: var(--ember); }

/* ---------- Result ---------- */
.result { padding-top: 0; }
.card-frame { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); aspect-ratio: 1200 / 630; box-shadow: 0 24px 80px rgba(0, 0, 0, .55); }
.card-frame svg { display: block; width: 100%; height: auto; }

/* ---------- Approvals ---------- */
.chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); font-size: 12px; font-weight: 500; color: var(--ink-dim); }
.chip.warn { color: var(--gold); border-color: rgba(242, 193, 122, .35); }
.chip.danger { color: var(--ember); border-color: rgba(255, 122, 51, .5); }
.appr-list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.appr-list .empty { color: var(--ink-dim); font-size: 14px; padding: 18px 0; }
.appr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 8px 18px; align-items: center; padding: 16px 18px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); }
.appr.danger { border-color: rgba(255, 122, 51, .55); }
.appr.warn { border-color: rgba(242, 193, 122, .28); }
.appr .what, .appr .who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; font-size: 13px; }
.appr .who { color: var(--ink-dim); }
.appr strong { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.appr .sev { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.appr.danger .sev { color: var(--ember); }
.appr.warn .sev { color: var(--gold); }
.appr.ok .sev { color: var(--ink-faint); }
.appr .amount { color: var(--ink); font-weight: 600; }
.appr.warn .amount, .appr.danger .amount { color: var(--gold); }
.appr .tag { font-size: 11px; padding: 2px 9px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink-dim); }
.appr .tag.risk-high, .appr .tag.risk-honeypot { color: var(--ember); border-color: rgba(255, 122, 51, .5); }
.appr .tag.risk-medium { color: var(--gold); border-color: rgba(242, 193, 122, .35); }
.appr .addr { flex-basis: 100%; font: 500 11.5px var(--sans); color: var(--ink-faint); font-feature-settings: "tnum"; overflow-wrap: anywhere; }
.appr .glass:disabled { opacity: .45; }

/* ---------- Stamp ---------- */
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: end; }
.stamp-cta { justify-self: end; text-align: right; }

/* ---------- Three heads ---------- */
.heads ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.heads li { position: relative; display: grid; gap: 6px; padding: 22px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); }
.heads li .dot { position: absolute; top: 26px; right: 22px; }
.heads strong { font-weight: 800; font-size: 26px; letter-spacing: -.03em; text-transform: uppercase; }
.heads span { color: var(--ink-dim); font-size: 14px; }
.heads li em { font-family: var(--serif); font-style: italic; color: var(--ember); font-size: 18px; }

/* ---------- Method ---------- */
.method summary { cursor: pointer; list-style: none; margin-bottom: 0; }
.method summary::-webkit-details-marker { display: none; }
.method dl { margin-top: 26px; display: grid; grid-template-columns: 220px 1fr; gap: 14px 32px; font-size: 14px; line-height: 1.65; }
.method dt { font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; }
.method dd { color: var(--ink-dim); }

/* ---------- Footer ---------- */
.foot { position: relative; z-index: 10; padding: 8vh var(--gutter) 64px; text-align: center; color: var(--ink-faint); font-size: 12px; line-height: 1.8; }
.foot strong { color: var(--ink-dim); font-weight: 500; }

@media (max-width: 860px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .logo { justify-self: center; font-size: 11px; letter-spacing: .24em; }
  .hide-m { display: none !important; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .stamp-cta { justify-self: start; text-align: left; }
  .heads ol { grid-template-columns: 1fr; }
  .appr { grid-template-columns: 1fr; }
  .appr .glass { justify-self: start; }
  .method dl { grid-template-columns: 1fr; gap: 4px; }
  .method dd { margin-bottom: 14px; }
}
@media (max-width: 480px) {
  .nav .glass.sm { padding: 0 12px; }
  .field .glass, .ctas .glass { flex: 1 1 auto; }
  .card-frame { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
