/* entrasuite.net Verify: phase 1 styles. Lifted from the approved prototype
   (verify-portal-prototype.html); agent view and prototype controls removed.
   Fonts are self-hosted in fonts.css. */
:root {
  --paper: #F3F5F9;
  --surface: #FFFFFF;
  --ink: #0F1E4A;
  --on-ink: #FFFFFF;
  --text: #16203A;
  --muted: #56617A;
  --line: #D3DAE8;
  --brand-blue: #0B6CF0;
  --brand-violet: #6A12D4;
  --guilloche: #9DBBF5;
  --guilloche-2: #C6ABF3;
  --ok: #1C7A57;
  --ok-soft: #E1F1E9;
  --warn: #8A5200;
  --warn-soft: #FBEFD9;
  --danger: #A3262A;
  --danger-soft: #F8E3E3;
  --focus: #0B6CF0;
  --radius-lg: 14px;
  --radius-sm: 8px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B1224; --surface: #141D35; --ink: #E3E9F7; --on-ink: #0B1224;
    --text: #E6ECF6; --muted: #9DA9C2; --line: #26324F;
    --brand-blue: #5B9BFF; --brand-violet: #A98BFF;
    --guilloche: #274B8C; --guilloche-2: #4A327F;
    --ok: #5CCB9A; --ok-soft: #173A2E; --warn: #F0B35A; --warn-soft: #3A2C14;
    --danger: #F08A8C; --danger-soft: #3D1D22; --focus: #5B9BFF;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] {
  --paper: #0B1224; --surface: #141D35; --ink: #E3E9F7; --on-ink: #0B1224;
  --text: #E6ECF6; --muted: #9DA9C2; --line: #26324F;
  --brand-blue: #5B9BFF; --brand-violet: #A98BFF;
  --guilloche: #274B8C; --guilloche-2: #4A327F;
  --ok: #5CCB9A; --ok-soft: #173A2E; --warn: #F0B35A; --warn-soft: #3A2C14;
  --danger: #F08A8C; --danger-soft: #3D1D22; --focus: #5B9BFF;
  color-scheme: dark;
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand-blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* Header and security band */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1040px; margin: 0 auto; padding: 1.1rem 1.25rem;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand-tile {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px;
}
.brand-tile img { width: 38px; height: auto; display: block; }
.brand-words { display: flex; flex-direction: column; gap: 3px; }
.brand-words img { height: 24px; width: auto; display: block; }
.brand-words .logo-dark { display: none; }
.brand-sub { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); letter-spacing: 0; line-height: 1.2; }
.header-note { font-size: .9rem; color: var(--muted); }
.band { height: 46px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.band svg { display: block; width: 100%; height: 46px; }

/* Layout */
main { max-width: 640px; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }
.screen { display: none; }
.screen.active { display: block; }
h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em;
  font-weight: 800; color: var(--ink); margin: 0 0 .6rem;
}
h2 { font-size: 1.15rem; margin: 0 0 .4rem; color: var(--ink); }
.lede { color: var(--muted); font-size: 1.125rem; margin: 0 0 2rem; max-width: 34em; }
p { margin: 0 0 1rem; max-width: 36em; }

/* Home options */
.options { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.options li { border-bottom: 1px solid var(--line); }
.option {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 1rem;
  width: 100%; padding: 1.15rem .5rem 1.15rem .25rem; background: none; border: 0;
  text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.option .icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.option .icon svg { width: 26px; height: 26px; }
.option-title { display: block; font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.option-desc { display: block; color: var(--muted); font-size: .98rem; }
.option .go { color: var(--ink); width: 22px; height: 22px; }
.option:not([disabled]):hover .option-title { text-decoration: underline; text-underline-offset: 4px; }
.option:not([disabled]):hover .icon { border-color: var(--ink); }
.option[disabled] { cursor: not-allowed; }
.option[disabled] .icon, .option[disabled] .option-title, .option[disabled] .option-desc { opacity: .5; }
.soon {
  font-size: .82rem; font-weight: 500; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: .15rem .6rem; white-space: nowrap;
}

/* Notices */
.notice {
  border-left: 5px solid var(--warn); background: var(--warn-soft);
  padding: 1.1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1.75rem;
}
.notice p { margin: 0 0 .6rem; }
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--text); }
.notice.danger { border-color: var(--danger); background: var(--danger-soft); }
.notice.ok { border-color: var(--ok); background: var(--ok-soft); }
.notice-title { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--warn); margin-bottom: .5rem; }
.notice.danger .notice-title { color: var(--danger); }
.notice-title svg { width: 22px; height: 22px; flex: none; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .7rem 1.4rem; border-radius: var(--radius-sm);
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  border: 2px solid var(--ink); background: var(--ink); color: var(--on-ink);
}
.btn:hover { filter: brightness(1.12); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--surface); filter: none; }
.btn.danger-outline { background: transparent; color: var(--danger); border-color: var(--danger); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.back { display: inline-block; margin-bottom: 1.5rem; color: var(--muted); }
.back:hover { color: var(--ink); }
.question { font-weight: 700; font-size: 1.2rem; color: var(--ink); margin: 0 0 .25rem; }

/* Scan */
.scan-layout { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 620px) { .scan-layout { grid-template-columns: 250px 1fr; align-items: start; } }
.qr-frame {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px; width: 250px; max-width: 100%;
}
.qr-frame svg { display: block; width: 100%; height: auto; }
.steps { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.steps li { margin-bottom: .55rem; padding-left: .25rem; }
.status {
  display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  font-weight: 500;
}
.status .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; }
.status.waiting .dot { animation: pulse 1.6s ease-in-out infinite; }
.status.scanned { border-color: var(--ok); }
.status.scanned .dot { background: var(--ok); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.small { font-size: .92rem; color: var(--muted); }
.mobile-only { display: none; }
.desktop-only { display: block; }
@media (max-width: 619px) and (pointer: coarse) {
  .mobile-only { display: block; }
  .desktop-only { display: none; }
  .desktop-only.show { display: block; }
}

.is-mobile .mobile-only { display: block; }
.is-mobile .desktop-only { display: none; }
.is-mobile .desktop-only.show { display: block; }

/* Verified */
.seal-wrap { width: 132px; height: 132px; margin: 0 0 1.25rem; color: var(--ok); }
.seal-wrap svg { width: 100%; height: 100%; overflow: visible; }
.seal-wrap .ring { fill: none; stroke: url(#sealGrad); stroke-width: .6; }
.seal-wrap .tick { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.seal-wrap.draw .ring { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.4s cubic-bezier(.4,0,.2,1) forwards; }
.seal-wrap.draw .tick { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .45s ease-out 1.15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .seal-wrap.draw .ring, .seal-wrap.draw .tick { animation: none; stroke-dashoffset: 0; }
  .status.waiting .dot { animation: none; }
}
.ref-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem; margin: 1.25rem 0 1.5rem;
}
.ref-label { font-weight: 700; color: var(--ink); margin: 0 0 .35rem; }
.ref {
  font-family: "Atkinson Hyperlegible Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  font-weight: 500; font-size: clamp(2.4rem, 11vw, 3.4rem); letter-spacing: .08em; color: var(--ink); line-height: 1.1;
}

.site-footer {
  max-width: 640px; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .9rem; color: var(--muted);
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* QR code drawn by qrcode.min.js (it inserts a canvas and an img) */
#qrcode canvas { display: none; }
#qrcode img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.qr-placeholder { aspect-ratio: 1 / 1; display: grid; place-items: center; color: #56617A; font-size: .9rem; text-align: center; }

/* Server-rendered error page */
.error-code { font-family: "Atkinson Hyperlegible Mono", "Cascadia Mono", Consolas, ui-monospace, monospace; }

/* Home option as a link (Onboarding) */
a.option { text-decoration: none; }
a.option:hover .option-title { text-decoration: underline; text-underline-offset: 4px; }
a.option:hover .icon { border-color: var(--ink); }

/* Onboarding */
.step-label { font-size: .9rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin: 0 0 .35rem; }
.journey { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--line); }
.journey li { display: flex; gap: .9rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.journey-n {
  flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: .95rem;
}
.notice.demo { border-color: var(--brand-violet); background: var(--surface); }
.notice.demo .notice-title { color: var(--brand-violet); }
.field { margin: 0 0 1.1rem; max-width: 26rem; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
.field input {
  width: 100%; min-height: 50px; padding: .6rem .8rem; font: inherit; color: var(--text);
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-sm);
}
.field input:focus-visible { border-color: var(--focus); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-weight: 500; }
label.btn { user-select: none; }
.photo-preview { margin: 1.25rem 0 0; }
.photo-preview img, .card-summary img {
  display: block; width: 150px; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface);
}
.card-summary {
  display: flex; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: .9rem 1rem; margin: 0 0 1.5rem;
}
.card-summary img { width: 72px; }
.card-name { font-weight: 800; font-size: 1.25rem; color: var(--ink); margin: 0; }
.pin, .mono { font-family: "Atkinson Hyperlegible Mono", "Cascadia Mono", Consolas, ui-monospace, monospace; }
.pin { font-weight: 500; font-size: 2.2rem; letter-spacing: .18em; color: var(--ink); margin: 0 0 1rem; }
.pin.inline { font-size: 1.15rem; letter-spacing: .12em; margin: 0; }
.kv { margin: 0 0 .5rem; }
.kv dt { font-weight: 700; color: var(--ink); }
.kv dd { margin: 0 0 .5rem; overflow-wrap: anywhere; }
.ref.tap { font-size: clamp(1.9rem, 8vw, 2.6rem); letter-spacing: .06em; overflow-wrap: anywhere; }

/* The hidden attribute must win over component display rules (.btn, .actions, ...) */
[hidden] { display: none !important; }
