/* Shield public demo: the landing page at shield.alef10.ai.
 *
 * Dark, like alef10.ai and the Alastor demo, so the three read as one family.
 * Brand values are pinned in hex here because they are the ones the main site
 * ships; the oklch scales in alef10/tokens/ are the system they come from.
 */

:root {
  --ink: #040C17;
  --ink-2: #0A1522;
  --ink-3: #111E2D;
  --paper: #FBFAF7;
  --teal: #00BDB9;
  --teal-soft: rgba(0, 189, 185, 0.12);
  --mute: #9AA6B2;
  --mute-2: #6E7B88;
  --line: rgba(251, 250, 247, 0.10);
  --line-2: rgba(251, 250, 247, 0.18);
  --good: #3FCB8A;
  --warn: #E8B04B;
  --bad: #F0675C;
  --mono: var(--font-mono, "IBM Plex Mono", ui-monospace, monospace);
  --sans: var(--font-sans, "IBM Plex Sans", system-ui, sans-serif);
  --r: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: #5fe0dc; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; box-shadow: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
section[id], .demo { scroll-margin-top: 4.75rem; }

.shell { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }
.muted { color: var(--mute); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--paper); color: var(--ink); padding: .5rem .8rem; border-radius: 6px; }

/* ─── Header ─────────────────────────────────────────────────────────── */

.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(4, 12, 23, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 1.5rem; min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--paper); text-decoration: none; }
.brand:hover { color: var(--paper); }
.brand-mark { width: 1.75rem; height: 1.45rem; color: var(--paper); }
.brand-name { font-weight: 600; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand-tag { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.top-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.top-nav a { color: var(--mute); text-decoration: none; font-size: .9rem; }
.top-nav a:hover { color: var(--paper); }
@media (max-width: 52rem) { .top-nav { display: none; } .top-row > .btn { margin-left: auto; } }

/* ─── Type ───────────────────────────────────────────────────────────── */

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: var(--teal); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.06; font-weight: 600; }
h1 .accent { display: block; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; font-weight: 600; margin-bottom: 1.25rem; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.005em; }
.accent { color: var(--teal); }
.lede { margin: 1.5rem 0 2rem; max-width: 36rem; color: #C9D1D9; font-size: 1.1rem; }
.section-lede { max-width: 44rem; color: var(--mute); margin: 0 0 2rem; }
.fineprint { color: var(--mute-2); font-size: .85rem; line-height: 1.55; }
.card-kicker {
  margin: 0 0 .5rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mute);
}

/* ─── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.25rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  border-radius: 8px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.btn-teal { background: var(--teal); color: var(--ink); }
.btn-teal:hover:not(:disabled) { background: #2fd4d0; color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover:not(:disabled) { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--paper); color: var(--paper); }
.linkish { background: none; border: 0; padding: 0; color: var(--mute); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; }
.linkish:hover { color: var(--paper); }

/* ─── Hero ───────────────────────────────────────────────────────────── */

.hero { padding: 5rem 0 4.5rem; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 4rem; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.chips { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.chips li { font-size: .85rem; color: var(--mute); display: flex; align-items: center; gap: .5rem; }
.chips li::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--teal); }
@media (max-width: 56rem) { .hero-grid { grid-template-columns: 1fr; gap: 3rem; } .hero { padding: 3.5rem 0 3rem; } }

.scan {
  margin: 0; padding: 1rem;
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 30px 80px -40px rgba(0, 189, 185, .35);
  max-width: 26rem; justify-self: end; width: 100%;
}
@media (max-width: 56rem) { .scan { justify-self: start; } }
.scan-head { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: .5rem; }
.rec { width: .5rem; height: .5rem; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 3px rgba(240,103,92,.2); }
.scan-frame { position: relative; margin: 1rem 0; aspect-ratio: 1.45; border-radius: 8px; background: radial-gradient(120% 90% at 50% 40%, #0F2233, #06101C); overflow: hidden; }
.corner { position: absolute; width: 1.6rem; height: 1.6rem; border: 2px solid var(--teal); }
.corner.tl { top: .9rem; left: .9rem; border-right: 0; border-bottom: 0; }
.corner.tr { top: .9rem; right: .9rem; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: .9rem; left: .9rem; border-right: 0; border-top: 0; }
.corner.br { bottom: .9rem; right: .9rem; border-left: 0; border-top: 0; }
.scan-doc {
  position: absolute; inset: 22% 16%;
  border: 1px solid var(--line-2); border-radius: 8px; background: rgba(251,250,247,.04);
  display: flex; gap: 8%; padding: 6%;
}
.scan-photo { width: 32%; border-radius: 4px; background: linear-gradient(180deg, #24384C, #18293A); position: relative; }
.scan-photo::after { content: ""; position: absolute; left: 50%; top: 22%; width: 42%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #3A5268; box-shadow: 0 2.2em 0 .9em #3A5268; }
.scan-lines { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12%; }
.scan-lines i { display: block; height: .4rem; border-radius: 2px; background: rgba(251,250,247,.16); }
.scan-lines i.short { width: 55%; background: rgba(0,189,185,.5); }
.scan-beam { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--teal), transparent); box-shadow: 0 0 18px var(--teal); animation: beam 3.2s ease-in-out infinite; }
@keyframes beam { 0%, 100% { top: 18%; } 50% { top: 80%; } }
.scan-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.scan-steps li { font-size: .78rem; color: var(--mute); border-top: 1px solid var(--line-2); padding-top: .5rem; }
.scan-steps li span { display: block; font-family: var(--mono); color: var(--teal); font-size: .7rem; }

/* ─── Bands and cards ────────────────────────────────────────────────── */

.band { padding: 5rem 0; border-bottom: 1px solid var(--line); }
.band-demo { background: linear-gradient(180deg, var(--ink) 0%, #06111E 100%); }
@media (max-width: 40rem) { .band { padding: 3.5rem 0; } }

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.4rem;
}
.card p { color: var(--mute); margin: .6rem 0 0; font-size: .93rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 52rem) { .steps { grid-template-columns: 1fr; } }

/* ─── Demo ───────────────────────────────────────────────────────────── */

.demo-panel { display: none; }
.demo[data-state="loading"]      [data-panel="loading"],
.demo[data-state="unconfigured"] [data-panel="unconfigured"],
.demo[data-state="consent"]      [data-panel="consent"],
.demo[data-state="document"]     [data-panel="document"],
.demo[data-state="selfie"]       [data-panel="selfie"],
.demo[data-state="processing"]   [data-panel="processing"],
.demo[data-state="result"]       [data-panel="result"],
.demo[data-state="error"]        [data-panel="error"] { display: block; }

/* Visually hidden but still focusable: the file inputs inside their labels. */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Where the visitor is: shown once a run has started. */
.rail { display: none; list-style: none; margin: 0 0 1rem; padding: 0; grid-template-columns: repeat(3, 1fr); gap: .5rem; max-width: 34rem; }
.demo[data-state="document"] .rail,
.demo[data-state="selfie"] .rail,
.demo[data-state="processing"] .rail,
.demo[data-state="result"] .rail { display: grid; }
.rail li { font-size: .82rem; color: var(--mute-2); border-top: 2px solid var(--line-2); padding-top: .45rem; }
.rail li span { font-family: var(--mono); font-size: .7rem; margin-right: .35rem; }
.rail li[data-on] { color: var(--paper); border-top-color: var(--teal); }
.rail li[data-on] span { color: var(--teal); }
.rail li[data-done] { color: var(--mute); border-top-color: rgba(0, 189, 185, .45); }

.notice { background: var(--ink-2); border: 1px solid var(--line-2); border-left: 3px solid var(--warn); border-radius: var(--r); padding: 1.5rem; max-width: 44rem; }
.notice p { color: var(--mute); margin: .6rem 0 0; }
.notice-error { border-left-color: var(--bad); }
.notice .btn { margin-top: 1rem; }

.consent-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; }
@media (max-width: 52rem) { .consent-grid { grid-template-columns: 1fr; } }
.consent, .consent-side { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; }
.consent h3 { margin-bottom: 1rem; }
.plain { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .9rem; }
.plain li { color: var(--mute); font-size: .93rem; padding-left: 1rem; border-left: 2px solid var(--line-2); }
.plain strong { color: var(--paper); font-weight: 600; }
.agree { display: flex; gap: .7rem; align-items: flex-start; margin: 0 0 1.25rem; cursor: pointer; font-size: .93rem; }
.agree input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: var(--teal); flex: none; }
.ticks { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .65rem; }
.ticks li { display: flex; gap: .6rem; align-items: baseline; font-size: .93rem; }
.ticks li::before { content: ""; flex: none; width: .55rem; height: .3rem; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg) translateY(-.15rem); }
.form-error { color: var(--bad); font-size: .9rem; margin: 0 0 1rem; }

/* Capture: the document and selfie steps */
.capture-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 52rem) { .capture-grid { grid-template-columns: 1fr; } }
.capture, .capture-side { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; }
.capture h3 { margin-bottom: .4rem; }
.capture-lede { margin: 0 0 1.25rem; font-size: .93rem; max-width: 34rem; }
.cap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.cap-actions .linkish { margin-left: .25rem; }
.upload { position: relative; }
.upload:focus-within { outline: 2px solid var(--teal); outline-offset: 3px; }

.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 34rem) { .slots { grid-template-columns: 1fr; } }
.slot { display: grid; gap: .75rem; }
.slot-view {
  position: relative; aspect-ratio: 1.585; border-radius: 8px; overflow: hidden;
  border: 1px dashed var(--line-2); background: radial-gradient(120% 90% at 50% 40%, #0F2233, #06101C);
}
.slot[data-filled] .slot-view { border-style: solid; border-color: rgba(0, 189, 185, .45); }
.slot-img { display: block; width: 100%; height: 100%; object-fit: contain; background: #06101C; }
.slot-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .2rem; padding: 1rem; }
.slot-name { font-weight: 600; }
.slot-hint { font-size: .8rem; color: var(--mute-2); }
.slot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

.cam { display: grid; gap: .75rem; }
.cam-stage { position: relative; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--line-2); }
.cam video, .cam img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: cover; background: #000; }
.cam-doc .cam-stage { aspect-ratio: 16 / 10; }
.cam-doc video { height: 100%; }
.cam-selfie .cam-stage { aspect-ratio: 4 / 3; max-width: 34rem; }
.cam-selfie video, .cam-selfie img { height: 100%; transform: scaleX(-1); }
@media (max-width: 40rem) { .cam-selfie .cam-stage { aspect-ratio: 3 / 4; } }
.cam-card { position: absolute; inset: 12% 10%; border: 2px solid var(--teal); border-radius: 10px; box-shadow: 0 0 0 100vmax rgba(4, 12, 23, .45); pointer-events: none; }
.cam-oval { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 3 / 4; transform: translate(-50%, -52%); border: 2px solid var(--teal); border-radius: 50%; box-shadow: 0 0 0 100vmax rgba(4, 12, 23, .45); pointer-events: none; }
@media (max-width: 40rem) { .cam-oval { width: 62%; } }
.cam-msg { margin: 0; font-size: .9rem; color: var(--mute); }

.doc-mini { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: start; margin: .5rem 0 1rem; }
.doc-mini img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: var(--ink-3); }
.doc-mini img[hidden] + .kv { grid-column: 1 / -1; }

.processing { display: flex; align-items: center; gap: 1rem; padding: 3rem 0; }
.spinner { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--teal); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Result */
.verdict-bar {
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap;
  padding: 1.5rem; border-radius: var(--r); margin-bottom: 1rem;
  border: 1px solid var(--line-2); background: var(--ink-2); border-left: 4px solid var(--warn);
}
.verdict-bar[data-tone="green"] { border-left-color: var(--good); }
.verdict-bar[data-tone="red"] { border-left-color: var(--bad); }
.verdict-text { margin: 0; font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.verdict-bar[data-tone="green"] .verdict-text { color: var(--good); }
.verdict-bar[data-tone="red"] .verdict-text { color: var(--bad); }
.verdict-bar[data-tone="amber"] .verdict-text { color: var(--warn); }
.verdict-why { list-style: none; margin: .4rem 0 0; padding: 0; color: var(--mute); max-width: 40rem; display: grid; gap: .2rem; }
.verdict-meta { margin: 0; display: grid; grid-template-columns: auto auto; gap: .2rem 1rem; font-size: .85rem; }
.verdict-meta dt { color: var(--mute-2); }
.verdict-meta dd { margin: 0; font-family: var(--mono); }

.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 64rem) { .results { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .results { grid-template-columns: 1fr; } }
.result header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.result[hidden] { display: none; }
#card-document { grid-row: span 2; }
@media (max-width: 40rem) { #card-document { grid-row: auto; } }

.pill { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--mute); white-space: nowrap; }
.pill:empty { display: none; }
.pill[data-tone="green"] { color: var(--good); border-color: rgba(63,203,138,.4); }
.pill[data-tone="red"] { color: var(--bad); border-color: rgba(240,103,92,.45); }
.pill[data-tone="amber"] { color: var(--warn); border-color: rgba(232,176,75,.45); }

.kv { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; font-size: .9rem; }
.kv dt { color: var(--mute-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv dd.mono { font-family: var(--mono); font-size: .85rem; }
.card .score { margin: 0 0 .75rem; color: var(--paper); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.card .score small { font-size: .9rem; color: var(--mute); font-weight: 400; margin-left: .25rem; letter-spacing: 0; }
.card .note { font-size: .82rem; }

.checks { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: .55rem; font-size: .9rem; }
.checks li { display: flex; justify-content: space-between; gap: .75rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; padding-bottom: 0; }
.check-mark { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.check-mark[data-tone="green"] { color: var(--good); }
.check-mark[data-tone="red"] { color: var(--bad); }

.faces { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.faces figure { margin: 0; }
.faces img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: var(--ink-3); }
.faces figcaption { font-size: .75rem; color: var(--mute-2); margin-top: .3rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }

.signals { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .88rem; }
.signals li { display: flex; gap: .6rem; align-items: baseline; color: var(--mute); }
.signals li::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--warn); transform: translateY(-.05rem); }
.signals li[data-level="error"]::before { background: var(--bad); }
.signals li[data-level="information"]::before { background: var(--mute-2); }
.signals li.none::before { background: var(--good); }
.signals b { color: var(--paper); font-weight: 500; }

.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.result-actions .fineprint { margin: 0; max-width: 30rem; }

/* ─── Features ───────────────────────────────────────────────────────── */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 1.25rem; }
@media (max-width: 60rem) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--ink); padding: 1.5rem; }
.feature h3 { margin: .9rem 0 .5rem; }
.feature p { margin: 0; color: var(--mute); font-size: .92rem; }
.tag { display: inline-block; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); border: 1px solid var(--line-2); border-radius: 4px; padding: .15rem .45rem; }
.tag-live { color: var(--teal); border-color: rgba(0,189,185,.45); background: var(--teal-soft); }

/* ─── Footer ─────────────────────────────────────────────────────────── */

.foot { padding: 3rem 0 4rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 52rem) { .foot-grid { grid-template-columns: 1fr; } }
.foot .muted { font-size: .88rem; max-width: 26rem; }
.foot-links { display: grid; gap: .5rem; align-content: start; }
.foot-links a { color: var(--paper); text-decoration: none; font-size: .9rem; }
.foot-links a:hover { color: var(--teal); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
