/* Copyright (C) 2026 Aerendir Mobile Inc. All rights reserved.
 *
 * Transcribed from web-repo/public/css/site.css so the demo reads as the same company as
 * aermob.com. Fonts are self-hosted because Caddy sends `font-src 'self'` -- a Google Fonts
 * link silently falls back to Georgia and the page stops looking like ours.
 */
@font-face { font-family: "Open Sans"; src: url("fonts/opensans.woff2") format("woff2");
  font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair.woff2") format("woff2");
  font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat.woff2") format("woff2");
  font-weight: 400 700; font-display: swap; }

/* Light is the unattributed state; the site defaults to dark and so does this. */
:root {
  --paper:#F2F4F5; --paper-2:#E5EAF1; --ink:#222A2C; --mist:#5A666A; --mist-d:#8A9498;
  --jade:#0A739C; --cyan:#18A8E0; --brass:#8A6A14; --brass-strong:#C9A24B;
  --line:rgba(34,42,44,.14); --on-fill:#10202A;
  --ease:cubic-bezier(.22,.61,.36,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper:#0F1315; --paper-2:#191E21; --ink:#ECEDE6; --mist:#9AA39D; --mist-d:#727B76;
    --jade:#2C9488; --cyan:#3DBBEC; --brass:#C9A24B; --line:rgba(255,255,255,.10);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper:#0F1315; --paper-2:#191E21; --ink:#ECEDE6; --mist:#9AA39D; --mist-d:#727B76;
  --jade:#2C9488; --cyan:#3DBBEC; --brass:#C9A24B; --line:rgba(255,255,255,.10);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --paper:#F2F4F5; --paper-2:#E5EAF1; --ink:#222A2C; --mist:#5A666A; --mist-d:#8A9498;
  --jade:#0A739C; --cyan:#18A8E0; --brass:#8A6A14; --line:rgba(34,42,44,.14);
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font: 300 16px/1.85 "Open Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; }
::selection { background: var(--jade); color: #fff; }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; }

/* --- topbar: frosted, hairline under, like the site shell --- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; height: 68px;
  padding: 0 clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 11px; }
.brandmark { width: 34px; height: 34px; display: block; flex: none; }
.wordmark { font: 500 13px/1 "Montserrat", system-ui, sans-serif;
  letter-spacing: .18em; text-transform: uppercase; color: var(--mist); }
.themetoggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--mist); cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease); }
.themetoggle:hover { border-color: var(--cyan); color: var(--ink); }
.themetoggle svg { width: 17px; height: 17px; stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .sun, .moon { display: none; }
:root[data-theme="dark"] .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sun { display: none; }
  :root:not([data-theme="light"]) .moon { display: block; }
}

.feed { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.block { padding: clamp(48px, 7vh, 92px) 0; border-bottom: 1px solid var(--line); }

/* The one tracked micro-label the site is known for: brass in light, jade in dark. */
.eyebrow { font: 500 11px/1 "Montserrat", system-ui, sans-serif;
  letter-spacing: .34em; text-transform: uppercase; color: var(--brass); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--jade); } }
:root[data-theme="dark"] .eyebrow { color: var(--jade); }

h1 { margin: 22px 0 0; font: 500 clamp(34px, 5vw, 58px)/1.06 "Playfair Display", Georgia, serif;
  letter-spacing: .01em; text-wrap: balance; }
/* Always 96deg, always clipped to text. */
h1 em { font-style: normal; background: linear-gradient(96deg, var(--jade), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { margin: 0; font: 500 clamp(24px, 3vw, 34px)/1.15 "Playfair Display", Georgia, serif; }
.lede { margin: 20px 0 0; max-width: 46ch; color: var(--mist); }

.split { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1.05fr .95fr;
  align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* .prodbox idiom: hairline + paper-2, no shadow. The site lifts these on hover, but this one
   holds a form -- a card that moves while you are typing in it is just noise. It takes the
   cyan border on focus-within instead, which is the same signal at the right moment. */
.card { padding: clamp(22px, 3vw, 32px); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .25s var(--ease); }
.card:focus-within { border-color: var(--cyan); }

label { display: block; margin: 18px 0 7px; color: var(--mist-d);
  font: 500 11px/1 "Montserrat", system-ui, sans-serif;
  letter-spacing: .14em; text-transform: uppercase; }
input { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: 300 15px/1.5 "Open Sans", sans-serif;
  transition: border-color .2s var(--ease); }
input:hover { border-color: var(--mist-d); }

.btn.solid { display: inline-block; width: 100%; margin-top: 22px; padding: 13px 24px;
  border: 1px solid var(--cyan); border-radius: 8px; background: var(--cyan);
  color: var(--on-fill); font: 600 12px/1.2 "Montserrat", system-ui, sans-serif;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease); }
.btn.solid:hover:not(:disabled) { background: var(--brass-strong); border-color: var(--brass-strong); }
.btn.solid:disabled { opacity: .5; cursor: default; }

.status { min-height: 22px; margin: 16px 0 0; color: var(--mist); font-size: 14px;
  line-height: 1.6; }
/* The site has no success/error tokens -- status is carried by the accent pair, as its
   badges do. Both readable on either ground. */
.status[data-tone="good"] { color: var(--jade); }
.status[data-tone="warn"] { color: var(--brass-strong); }
.status[data-tone] { padding-left: 13px; border-left: 2px solid currentColor; }
#alive { margin-top: 22px; }

/* Numbered because these really are a sequence -- the order is the point. */
.steps { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); margin-top: 34px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 0 26px; border-left: 1px solid var(--line); }
.step:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 700px) {
  .step { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { padding-top: 0; border-top: 0; }
}
.step .n { font: 500 clamp(26px, 3vw, 36px)/1.05 "Playfair Display", Georgia, serif;
  color: var(--jade); }
.step h3 { margin: 10px 0 8px;
  font: 500 19px/1.3 "Playfair Display", Georgia, serif; }
.step p { margin: 0; color: var(--mist); font-size: 14.5px; line-height: 1.75; }

footer { padding: 28px 0 48px; color: var(--mist-d); font-size: 13px; }
footer a { color: var(--mist); text-decoration: none; border-bottom: 1px solid var(--line); }
footer a:hover { color: var(--ink); border-bottom-color: var(--cyan); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .card:hover { transform: none; }
}

/* --- hCaptcha demo additions (aernet.dev) --- */
.gatehead { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.gatehead .tag { font:500 11px/1 "Montserrat",system-ui,sans-serif; letter-spacing:.14em;
  text-transform:uppercase; color:var(--brass); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .gatehead .tag{ color:var(--jade);} }
:root[data-theme="dark"] .gatehead .tag{ color:var(--jade); }
.hc-wrap { margin-top:22px; min-height:78px; }
.testnote { margin-top:14px; font-size:12.5px; color:var(--brass-strong);
  padding-left:11px; border-left:2px solid currentColor; line-height:1.6; }
.gate-done { display:none; }
.gate-done h2 em { font-style:normal;
  background:linear-gradient(96deg,var(--jade),var(--cyan));
  -webkit-background-clip:text; background-clip:text; color:transparent; }
.check { width:44px; height:44px; border-radius:999px; display:grid; place-items:center;
  border:1px solid var(--jade); color:var(--jade); margin-bottom:16px; }
.check svg{ width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:2.4;
  stroke-linecap:round; stroke-linejoin:round; }
.btn.ghost { display:inline-block; width:100%; margin-top:20px; padding:13px 24px;
  border:1px solid var(--line); border-radius:8px; background:transparent; color:var(--ink);
  font:600 12px/1.2 "Montserrat",system-ui,sans-serif; letter-spacing:.12em;
  text-transform:uppercase; text-align:center; text-decoration:none; cursor:pointer;
  transition:border-color .2s var(--ease), color .2s var(--ease); }
.btn.ghost:hover { border-color:var(--cyan); }

/* --- phone-required gate: desktop UAs see a QR/URL handoff, not the flow --- */
#desktop-gate { display: none; }
:root[data-device="desktop"] #app { display: none; }
:root[data-device="desktop"] #desktop-gate { display: block; }
.handoff { max-width: 560px; }
.handoff .qrbox { margin: 26px 0 4px; width: 208px; height: 208px; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.handoff .qrbox svg { width: 100%; height: 100%; display: block; }
.handoff .url { display: flex; align-items: center; gap: 10px; margin-top: 20px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper-2); font: 400 14px/1.4 "Open Sans", monospace; word-break: break-all; }
.handoff .url code { color: var(--ink); }
.handoff .anyway { display: inline-block; margin-top: 18px; color: var(--mist);
  font-size: 13px; border-bottom: 1px solid var(--line); text-decoration: none; }
.handoff .anyway:hover { color: var(--ink); border-bottom-color: var(--cyan); }

/* liveness result states */
.check.fail { border-color: var(--brass-strong); color: var(--brass-strong); }
#gate-3 .gatehead .tag.fail { color: var(--brass-strong); }
.pulse { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* AI DETECTED — small red alert box on liveness failure (~3in x 1in) */
.ai-overlay { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 9999; display: none; place-items: center; width: 288px; height: 96px;
  max-width: 88vw; padding: 10px 16px; border-radius: 14px; text-align: center;
  cursor: pointer; background: rgba(190,16,16,.98);
  box-shadow: 0 12px 44px rgba(0,0,0,.5); }
.ai-overlay.show { display: grid; animation: aiflash .45s steps(2) 4; }
.ai-overlay .big { color: #fff; text-transform: uppercase; letter-spacing: .04em;
  font: 800 clamp(22px, 7vw, 30px)/1 "Montserrat", system-ui, sans-serif;
  text-shadow: 0 3px 16px rgba(0,0,0,.4); }
.ai-overlay .sub { margin-top: 7px; color: #ffd6d6; text-transform: uppercase;
  letter-spacing: .16em; font: 500 10px/1.3 "Montserrat", system-ui, sans-serif; }
@keyframes aiflash { 0%,100% { background: rgba(190,16,16,.98); }
  50% { background: rgba(225,26,26,1); } }
@media (prefers-reduced-motion: reduce) { .ai-overlay.show { animation: none; } }

/* liveness result banner image (replaces the text readout) */
.live-img { display: block; width: 100%; height: auto; margin: 4px 0 6px; }

/* liveness "sensing" animation — radar ping + pulsing core */
.live-scan { display: none; flex-direction: column; align-items: center; margin-top: 26px; }
.live-scan.show { display: flex; }
.radar { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.radar span { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px;
  border-radius: 50%; border: 2px solid var(--cyan); opacity: 0;
  animation: ping 1.8s cubic-bezier(.22,.61,.36,1) infinite; }
.radar span:nth-child(2) { animation-delay: .6s; }
.radar span:nth-child(3) { animation-delay: 1.2s; }
.radar .core { width: 16px; height: 16px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 22px var(--cyan); animation: corepulse 1.2s ease-in-out infinite; }
@keyframes ping { 0% { width: 22px; height: 22px; opacity: .85; }
  100% { width: 132px; height: 132px; opacity: 0; } }
@keyframes corepulse { 0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.62); opacity: .55; } }
.scan-label { margin-top: 18px; color: var(--mist);
  font: 500 12px/1 "Montserrat", system-ui, sans-serif; letter-spacing: .18em;
  text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) {
  .radar span, .radar .core { animation: none; }
  .radar span:first-child { opacity: .5; width: 90px; height: 90px; }
}

/* result view: hide the explanation, center just the banner + Run again */
#app.result .split > div:first-child { display: none; }
#app.result .split { grid-template-columns: 1fr; justify-items: center; }
#app.result .card { border: 0; background: transparent; padding: 0;
  width: 100%; max-width: 480px; text-align: center; }
#gate-3 { text-align: center; }
#gate-3 .btn.ghost { width: auto; margin: 8px auto 0; padding: 10px 24px; }

/* ACCESS GRANTED — blue box on a real-hand pass, same place as AI DETECTED */
.access-overlay { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 9999; display: none; place-items: center; width: 288px; height: 96px;
  max-width: 88vw; padding: 10px 16px; border-radius: 14px; text-align: center;
  cursor: pointer; background: rgba(20,110,200,.98);
  box-shadow: 0 12px 44px rgba(0,0,0,.5); }
.access-overlay.show { display: grid; animation: accessflash .45s steps(2) 4; }
.access-overlay .big { color: #fff; text-transform: uppercase; letter-spacing: .04em;
  font: 800 clamp(22px, 7vw, 30px)/1 "Montserrat", system-ui, sans-serif;
  text-shadow: 0 3px 16px rgba(0,0,0,.4); }
.access-overlay .sub { margin-top: 7px; color: #d6ecff; text-transform: uppercase;
  letter-spacing: .16em; font: 500 10px/1.3 "Montserrat", system-ui, sans-serif; }
@keyframes accessflash { 0%,100% { background: rgba(20,110,200,.98); }
  50% { background: rgba(32,145,235,1); } }
@media (prefers-reduced-motion: reduce) { .access-overlay.show { animation: none; } }

/* footer pinned to the bottom of the page */
body { min-height: 100vh; display: flex; flex-direction: column; }
footer.pagefoot { margin-top: auto; text-align: center; color: var(--mist-d);
  font-size: 13px; padding: 22px clamp(20px,4vw,56px) 30px; }

/* narrow-screen fit: hCaptcha is a fixed 303px iframe — never let it clip the page */
html, body { overflow-x: hidden; }
.hc-wrap { max-width: 100%; }
@media (max-width: 420px) {
  .feed { padding-left: 14px; padding-right: 14px; }
  .card { padding-left: 16px; padding-right: 16px; }
}
