/* =====================================================================
   Bennu ANPR demo — "Vision" design language
   Design system: design-system/bennu-plate-demo (MASTER + pages/demo.md)
   Effects (aurora, border beam, spotlight cards, shimmer) follow patterns popularised by the
   open-source Magic UI / Aceternity libraries, re-implemented in plain CSS (no React, no build).
   All spacing uses logical properties so the same CSS serves RTL (fa) and LTR (en).
   ===================================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Variable.woff2') format('woff2-variations'), url('../fonts/Vazirmatn-Variable.woff2') format('woff2');
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-Variable.woff2') format('woff2-variations'), url('../fonts/SpaceGrotesk-Variable.woff2') format('woff2');
  font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-21FF;
}
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* ---------- Tokens ---------- */
:root {
  --font-body: 'Vazirmatn', Tahoma, system-ui, sans-serif;
  --font-display: 'Vazirmatn', Tahoma, system-ui, sans-serif;
  --font-num: 'Space Grotesk', 'Vazirmatn', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* light theme — Bennu brand: warm orange on clean light grey, deep navy text */
  --bg: #F5F6F8;
  --bg-2: #ECEFF4;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-2: rgba(255, 255, 255, 0.96);
  --surface-solid: #FFFFFF;
  --border: rgba(16, 32, 63, 0.08);
  --border-strong: rgba(16, 32, 63, 0.16);
  --fg: #10203F;
  --fg-2: #2E3D5B;
  --muted: #5E6A82;
  --primary: #1F4A8F;
  --primary-2: #2D63B8;
  --primary-soft: rgba(31, 74, 143, 0.08);
  --accent: #EF8A12;
  --accent-2: #FBA437;
  --accent-ink: #B85E00;
  --on-accent: #14213D;
  --accent-soft: rgba(247, 147, 30, 0.12);
  --success: #047857;
  --success-soft: rgba(5, 150, 105, 0.12);
  --warning: #B45309;
  --warning-soft: rgba(245, 158, 11, 0.14);
  --danger: #DC2626;
  --danger-soft: rgba(220, 38, 38, 0.1);
  --ring: #EF8A12;
  --shadow-sm: 0 1px 2px rgba(16, 32, 63, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(16, 32, 63, 0.12);
  --shadow-lg: 0 24px 48px -16px rgba(16, 32, 63, 0.18);
  --aurora-1: rgba(247, 147, 30, 0.14);
  --aurora-2: rgba(45, 99, 184, 0.10);
  --aurora-3: rgba(247, 147, 30, 0.08);
  --grid-line: rgba(16, 32, 63, 0.045);
  --header-bg: rgba(255, 255, 255, 0.82);

  /* always-dark "console" surfaces (video players) */
  --console-bg: #060A14;
  --console-border: rgba(148, 163, 184, 0.16);
  --hud: #22D3EE;
  --detect: #34D399;

  --radius-sm: 10px; --radius: 16px; --radius-lg: 24px; --radius-xl: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms; --t: 240ms; --t-slow: 500ms;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0A1222; --bg-2: #0E182C;
  --surface: rgba(255, 255, 255, 0.04); --surface-2: rgba(255, 255, 255, 0.07); --surface-solid: #111C33;
  --border: rgba(255, 255, 255, 0.09); --border-strong: rgba(255, 255, 255, 0.17);
  --fg: #F2F5FA; --fg-2: #CDD5E3; --muted: #97A3B9;
  --primary: #8DB2F5; --primary-2: #B6CCF8; --primary-soft: rgba(141, 178, 245, 0.12);
  --accent: #F7931E; --accent-2: #FFB255; --accent-ink: #FFB255; --on-accent: #14100A; --accent-soft: rgba(247, 147, 30, 0.14);
  --success: #34D399; --success-soft: rgba(52, 211, 153, 0.12);
  --warning: #FBBF24; --warning-soft: rgba(251, 191, 36, 0.12);
  --danger: #F87171; --danger-soft: rgba(248, 113, 113, 0.12);
  --ring: #F7931E;
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.6); --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  --aurora-1: rgba(247, 147, 30, 0.16); --aurora-2: rgba(45, 99, 184, 0.22); --aurora-3: rgba(247, 147, 30, 0.08);
  --grid-line: rgba(255, 255, 255, 0.045);
  --header-bg: rgba(10, 18, 34, 0.72);
  color-scheme: dark;
}
html.lang-en { --font-display: 'Space Grotesk', 'Vazirmatn', system-ui, sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
html.lang-en body { line-height: 1.65; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.3; margin: 0 0 12px; color: var(--fg); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.3vw, 3.75rem); font-weight: 850; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.5rem); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-weight: 750; }
h4 { font-size: 1rem; font-weight: 750; }
html.lang-en h1, html.lang-en h2 { letter-spacing: -0.03em; }
p { margin: 0 0 16px; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-fast); }
a:hover { color: var(--primary-2); }
img, video, canvas { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--primary) 30%, transparent); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 8px; }
.sr-only, .hp {
  position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important;
  padding: 0 !important; border: 0 !important; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.grow { flex: 1; min-width: 0; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; }
.icon-xs { width: 1em; height: 1em; }
[dir="ltr"] .icon-dir { transform: scaleX(-1); }
[dir="ltr"] .icon-dir-back { transform: scaleX(-1); }
.skip-link { position: fixed; inset-inline-start: 16px; top: -80px; z-index: 200; padding: 10px 18px; background: var(--primary); color: #fff; border-radius: var(--radius-sm); transition: top var(--t); }
.skip-link:focus { top: 16px; color: #fff; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
.container--narrow { max-width: 860px; }
@media (min-width: 768px) { .container { padding-inline: 28px; } }

/* ---------- Background effects ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.a1 { width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; top: -18vw; inset-inline-end: -10vw; background: var(--aurora-1); animation: drift1 22s ease-in-out infinite alternate; }
.a2 { width: 40vw; height: 40vw; max-width: 600px; max-height: 600px; top: 20vh; inset-inline-start: -14vw; background: var(--aurora-2); animation: drift2 26s ease-in-out infinite alternate; }
.a3 { width: 36vw; height: 36vw; max-width: 520px; max-height: 520px; bottom: -14vw; inset-inline-end: 20vw; background: var(--aurora-3); animation: drift1 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(-6vw, 6vh, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(8vw, -4vh, 0) scale(0.92); } }
.grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 22px; border-radius: 12px; border: 1px solid transparent; overflow: hidden; isolation: isolate;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t), border-color var(--t), color var(--t);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled, .btn[aria-busy="true"] { opacity: 0.6; cursor: not-allowed; }
.btn-sm { min-height: 40px; padding: 6px 14px; font-size: 0.875rem; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 12px 26px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-accent {
  color: var(--on-accent); background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent-2) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-accent:hover:not(:disabled) { color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 16px 36px -10px color-mix(in srgb, var(--accent-2) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 700ms var(--ease);
}
.btn-shine:hover::after { transform: translateX(120%); }
.btn-glass { color: var(--fg); background: var(--surface-2); border-color: var(--border-strong); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-glass:hover:not(:disabled) { color: var(--fg); border-color: color-mix(in srgb, var(--primary) 55%, transparent); transform: translateY(-2px); box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--primary) 60%, transparent); }
.btn-ghost { background: transparent; color: var(--fg-2); border-color: var(--border-strong); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--fg); }
.btn-danger-ghost { background: transparent; color: var(--danger); }
.btn-danger-ghost:hover:not(:disabled) { background: var(--danger-soft); color: var(--danger); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 4px; color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.link-btn:disabled { color: var(--muted); text-decoration: none; cursor: not-allowed; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--fg-2); transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover { color: var(--fg); border-color: var(--border-strong); }
.icon-btn--sm { width: 36px; height: 36px; border-radius: 10px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 12px 0; }
.header-pill {
  max-width: 1240px; margin-inline: auto; display: flex; align-items: center; gap: 12px; min-height: 64px; padding-block: 8px; padding-inline: 14px 10px;
  background: var(--header-bg); border: 1px solid var(--border); border-radius: 18px;
  -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.35); transition: box-shadow var(--t), border-color var(--t);
}
.is-scrolled .header-pill { border-color: var(--border-strong); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.5); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand-logo { display: block; height: 40px; width: auto; }
.brand--footer .brand-logo { height: 52px; }
.logo-on-dark { display: none; }
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
.brand-product { padding-inline-start: 12px; border-inline-start: 1px solid var(--border-strong); color: var(--muted); font-size: 0.8rem; font-weight: 700; line-height: 1.3; max-width: 7.5em; }
@media (max-width: 560px) { .brand-product { display: none; } .brand-logo { height: 34px; } }
.main-nav { display: none; gap: 2px; margin-inline-start: 18px; }
.main-nav a { padding: 8px 14px; border-radius: 10px; color: var(--fg-2); text-decoration: none; font-weight: 600; font-size: 0.92rem; transition: background-color var(--t-fast), color var(--t-fast); }
.main-nav a:hover { background: var(--surface-2); color: var(--fg); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.header-actions form { display: contents; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--fg-2); text-decoration: none; font-weight: 800; font-size: 0.85rem; font-family: var(--font-num); }
.lang-switch:hover { color: var(--fg); border-color: var(--border-strong); }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 3px; padding-inline-end: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); font-size: 0.85rem; font-weight: 700; max-width: 230px; }
.user-chip .avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-weight: 800; flex-shrink: 0; }
.user-chip .user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .icon-btn { border: 0; background: transparent; width: 32px; height: 32px; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline-flex; } }
@media (max-width: 520px) { .user-chip .user-name { display: none; } }
@media (max-width: 420px) { .hide-xs { display: none; } }
@media (min-width: 1160px) { .main-nav { display: flex; } }
@media (max-width: 1359px) { .main-nav a { padding: 8px 10px; font-size: 0.88rem; } .main-nav { margin-inline-start: 10px; } }

/* ---------- Shared pieces ---------- */
.pill-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--fg-2); font-size: 0.85rem; font-weight: 700;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pill-badge--accent { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 30%, transparent); background: var(--accent-soft); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--success); opacity: 0; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.8); opacity: 0; } }
.text-gradient {
  background: linear-gradient(90deg, var(--accent-ink), var(--accent), var(--accent-2), var(--accent-ink));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-x 8s linear infinite;
}
@keyframes gradient-x { to { background-position: 300% 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.02em; margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.lead { font-size: 1.1rem; color: var(--fg-2); max-width: 62ch; }
.glass-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: var(--shadow-md);
}
.icon-tile {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  color: var(--primary); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, transparent), color-mix(in srgb, var(--primary-2) 10%, transparent));
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}
.icon-tile .icon { width: 22px; height: 22px; }
.icon-tile--accent { color: var(--accent-ink); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.icon-tile--ok { color: var(--success); background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.icon-tile--lg { width: 56px; height: 56px; border-radius: 16px; }
.icon-tile--lg .icon { width: 28px; height: 28px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.badge-dark { background: rgba(4, 6, 12, 0.72); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.12); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--fg-2); font-size: 0.78rem; border: 1px solid var(--border); }

/* spotlight card: --mx/--my are set by JS on pointer move */
.card-glow { position: relative; isolation: isolate; }
.card-glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity var(--t);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--primary) 16%, transparent), transparent 45%);
}
.card-glow:hover::before { opacity: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1.02fr; } }
.hero-copy h1 { margin-bottom: 18px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
@media (max-width: 479px) { .hero-ctas .btn { width: 100%; } }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--success); width: 18px; height: 18px; }

/* Console (always dark, like a CCTV monitor) */
.console {
  --c-fg: #E2E8F0; --c-muted: #8B9BB4;
  position: relative; border-radius: var(--radius-lg); background: var(--console-bg); color: var(--c-fg);
  border: 1px solid var(--console-border); box-shadow: 0 40px 80px -30px rgba(2, 6, 23, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.console > :first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.beam::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--angle), transparent 0 62%, #22D3EE 76%, #60A5FA 84%, #FB923C 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: beam 6s linear infinite;
}
@keyframes beam { to { --angle: 360deg; } }
.beam::after { content: ""; position: absolute; inset: 10% 6% -8%; z-index: -1; border-radius: 40px; background: radial-gradient(closest-side, rgba(34, 211, 238, 0.22), transparent); filter: blur(30px); }
.console-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--console-border); font-size: 0.78rem; }
.console-title { flex: 1; text-align: center; color: var(--c-muted); font-family: var(--font-num); letter-spacing: 0.14em; font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-time { color: var(--c-muted); font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.rec { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #FCA5A5; font-size: 0.75rem; letter-spacing: 0.04em; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #EF4444; box-shadow: 0 0 10px #EF4444; animation: blink 1.4s steps(2, start) infinite; }
.rec--idle { color: var(--c-muted); }
.rec--idle .rec-dot { background: #22D3EE; box-shadow: 0 0 10px #22D3EE; animation: none; }
@keyframes blink { to { visibility: hidden; } }
.console-stage { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.console-stage video { width: 100%; height: 100%; object-fit: contain; }
.console-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.console-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.45)); }
.player.console-stage::after { display: none; }
.console > .console-stage:last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.stage-placeholder { display: grid; place-items: center; height: 100%; color: #334155; }
.stage-placeholder .icon { width: 64px; height: 64px; }
.hud { position: absolute; width: 22px; height: 22px; border: 2px solid var(--hud); opacity: 0.85; pointer-events: none; z-index: 1; filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.6)); }
.hud-tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.hud-tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.hud-bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.hud-br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.player .hud-bl, .player .hud-br { bottom: 54px; }
.scanline { position: absolute; inset-inline: 0; top: 0; height: 30%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.12) 85%, rgba(34, 211, 238, 0.55) 100%); animation: scan 4.5s cubic-bezier(0.45, 0, 0.55, 1) infinite; mix-blend-mode: screen; }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(340%); } }
.console-feed { padding: 12px 14px 14px; border-top: 1px solid var(--console-border); }
.feed-head { display: flex; justify-content: space-between; align-items: center; color: var(--c-muted); font-size: 0.78rem; font-weight: 700; margin-bottom: 8px; }
.feed-head > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.feed-head .icon { color: var(--detect); width: 16px; height: 16px; }
.feed-count { font-family: var(--font-num); color: var(--detect); background: rgba(52, 211, 153, 0.12); padding: 0 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.feed-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow: hidden; min-height: 46px; align-items: center; }
.feed-list li { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding-block: 5px; padding-inline: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); animation: feed-in 450ms var(--ease) both; }
.feed-list li.is-live { border-color: rgba(52, 211, 153, 0.55); background: rgba(52, 211, 153, 0.08); }
.feed-list .feed-conf { font-family: var(--font-num); font-size: 0.75rem; color: var(--detect); font-weight: 700; }
.feed-empty { color: var(--c-muted); font-size: 0.85rem; background: none !important; border: 0 !important; }
@keyframes feed-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } }

/* Stats strip */
.stats-strip { margin: clamp(40px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow: hidden; }
@media (min-width: 768px) { .stats-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-item { padding: 22px 24px; display: flex; flex-direction: column-reverse; gap: 2px; border-inline-start: 1px solid var(--border); }
.stat-item:first-child { border-inline-start: 0; }
@media (max-width: 767px) { .stat-item:nth-child(3) { border-inline-start: 0; } .stat-item:nth-child(n+3) { border-top: 1px solid var(--border); } }
.stat-item dt { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.stat-item dd { margin: 0; font-family: var(--font-num); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 700; line-height: 1.1; display: flex; align-items: baseline; gap: 6px; }
.stat-item dd .counter { background: linear-gradient(180deg, var(--fg), color-mix(in srgb, var(--fg) 55%, var(--primary))); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-suffix, .stat-prefix { font-size: 0.5em; color: var(--primary); font-weight: 700; font-family: var(--font-body); }
.stat-prefix:empty, .stat-suffix:empty { display: none; }

/* Logos marquee */
.logos { padding: 8px 0 24px; }
.logos-title { text-align: center; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee-track img { height: 36px; width: auto; opacity: 0.65; filter: grayscale(1); transition: opacity var(--t), filter var(--t); }
.marquee-track img:hover { opacity: 1; filter: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Iranian plate ---------- */
.plate {
  --plate-bg: #FFFFFF; --plate-fg: #0F172A;
  display: inline-flex; align-items: stretch; direction: ltr; height: 32px; border: 2px solid #0F172A; border-radius: 6px;
  background: var(--plate-bg); color: var(--plate-fg); font-family: 'Vazirmatn', sans-serif; font-weight: 800; font-size: 1rem; line-height: 1; overflow: hidden; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.plate > span { display: grid; place-items: center; padding: 0 5px; }
.plate-flag { background: #1D4ED8; color: #fff; padding: 0 3px !important; display: flex !important; flex-direction: column; gap: 2px; justify-content: center; }
.plate-flag i { display: block; width: 11px; height: 7px; background: linear-gradient(180deg, #16A34A 33%, #fff 33% 66%, #DC2626 66%); }
.plate-flag b { font-size: 4.5px; line-height: 1.05; font-weight: 700; text-align: center; font-family: Arial, sans-serif; }
.plate-letter { font-size: 0.9rem; }
.plate-region { border-left: 2px solid #0F172A; display: flex !important; flex-direction: column; justify-content: center; gap: 1px; padding: 0 6px !important; }
.plate-region small { font-size: 0.45rem; font-weight: 600; }
.plate--taxi, .plate--public { --plate-bg: #FACC15; }
.plate--government { --plate-bg: #DC2626; --plate-fg: #fff; }
.plate--police { --plate-bg: #166534; --plate-fg: #fff; }
.plate--military { --plate-bg: #57534E; --plate-fg: #fff; }
.plate--disabled { --plate-bg: #DBEAFE; }
.plate--government .plate-region, .plate--police .plate-region, .plate--military .plate-region { border-color: #fff; }
.plate-text { font-weight: 800; direction: ltr; unicode-bidi: isolate; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }

/* Samples */
.sample-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.sample-card {
  display: flex; flex-direction: column; text-align: start; padding: 0; color: inherit; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}
.sample-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.sample-card.is-active { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent), var(--shadow-lg); }
.sample-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0B1120; overflow: hidden; }
.sample-thumb img, .sample-thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.sample-card:hover .sample-thumb img { transform: scale(1.05); }
.sample-thumb video { position: absolute; inset: 0; }
.sample-play {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: rgba(255, 255, 255, 0.16); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform var(--t) var(--ease), opacity var(--t);
}
.sample-play .icon { width: 24px; height: 24px; margin-left: 3px; }
.sample-card:hover .sample-play { transform: scale(1.1); }
.sample-card.is-previewing .sample-play { opacity: 0; }
.sample-count { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1; }
.sample-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; }
.sample-body strong { font-size: 1.02rem; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 48px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--muted); }
.empty-state .icon { width: 40px; height: 40px; }

/* Result */
.section-result { padding-top: 24px; }
.result-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.result-head h2 { margin: 0; word-break: break-word; }
.status-badge, .status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: 0.82rem; background: var(--surface-2); color: var(--fg-2); border: 1px solid var(--border); }
.status-done { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.status-failed, .status-expired { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.status-queued, .status-processing { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.status-pill { padding: 1px 10px; font-size: 0.75rem; }
.stepper { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 0.82rem; font-weight: 700; text-align: center; }
.stepper li::before { content: ""; position: absolute; top: 20px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--border-strong); }
.stepper li:last-child::before { display: none; }
.step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-solid); border: 2px solid var(--border-strong); transition: all var(--t); }
.step-dot .icon { width: 18px; height: 18px; }
.stepper li.is-done { color: var(--success); }
.stepper li.is-done .step-dot { background: var(--success); border-color: var(--success); color: #fff; }
.stepper li.is-done::before { background: var(--success); }
.stepper li.is-current { color: var(--primary); }
.stepper li.is-current .step-dot { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 15%, transparent); }
.stepper li.is-failed { color: var(--danger); }
.stepper li.is-failed .step-dot { border-color: var(--danger); color: var(--danger); }
.progress-card { padding: 22px; margin-bottom: 24px; }
.progress-row { display: flex; gap: 16px; align-items: flex-start; }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 10px 0 8px; border: 1px solid var(--border); }
.progress span { position: relative; display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: inherit; transition: width 500ms var(--ease); overflow: hidden; }
.progress span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.spinner { color: var(--primary); }
.spinner .icon { width: 28px; height: 28px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { display: flex; gap: 12px; padding: 18px 20px; border-radius: var(--radius); margin-bottom: 24px; }
.alert-error { background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-error p { margin: 4px 0 0; color: var(--fg-2); }
.result-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .result-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.player { aspect-ratio: 16 / 9; max-height: min(64vh, 620px); width: 100%; }
.watermark { position: absolute; top: 14px; inset-inline-end: 46px; z-index: 1; padding: 2px 10px; border-radius: 6px; background: rgba(4, 6, 12, 0.55); color: rgba(255, 255, 255, 0.85); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; font-family: var(--font-num); pointer-events: none; }
.note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--primary-soft); color: var(--fg-2); font-size: 0.9rem; }
.note .icon { color: var(--primary); margin-top: 4px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.kpi small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.kpi small .icon { width: 15px; height: 15px; color: var(--primary); }
.kpi strong { display: block; margin-top: 2px; font-size: 1.35rem; font-weight: 800; }
.panel { padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; }
.tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 750; font-size: 0.9rem; transition: background-color var(--t-fast), color var(--t-fast); }
.tabs button[aria-selected="true"] { background: var(--surface-solid); color: var(--fg); box-shadow: var(--shadow-sm); }
.plate-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.plate-item { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: inherit; text-align: start; transition: border-color var(--t-fast), background-color var(--t-fast); }
.plate-item:hover { border-color: var(--border-strong); background: var(--surface-2); }
.plate-item.is-live { border-color: var(--success); background: var(--success-soft); }
.plate-meta { display: flex; flex-direction: column; gap: 2px; font-size: 0.8rem; color: var(--muted); min-width: 0; }
.plate-meta strong { color: var(--fg-2); font-size: 0.85rem; }
.conf { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-weight: 800; font-size: 0.9rem; font-family: var(--font-num); }
.conf-bar { width: 56px; height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.conf-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--success), #22D3EE); }
.plate-crop { height: 32px; border-radius: 4px; border: 1px solid var(--border); }
.empty-plates { padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 12px; }
.code-wrap { position: relative; }
.code-wrap pre { margin: 0; max-height: 420px; overflow: auto; background: var(--console-bg); color: #CBD5E1; padding: 16px; border-radius: 12px; border: 1px solid var(--console-border); font: 0.78rem/1.6 var(--font-mono); text-align: left; }
.copy-btn { position: absolute; top: 8px; right: 8px; background: rgba(255, 255, 255, 0.06); color: #E2E8F0; border-color: rgba(255, 255, 255, 0.14); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
#expiry-note { margin: 10px 0 0; }
.cta-banner {
  position: relative; overflow: hidden; margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between;
  padding: clamp(22px, 3vw, 34px) clamp(22px, 3.5vw, 40px); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #10203F, #1F3D74 55%, #24508F); color: #fff; box-shadow: 0 30px 60px -30px rgba(16, 32, 63, 0.7);
}
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 85% 0%, rgba(255, 255, 255, 0.18), transparent 60%), linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 32px 32px; pointer-events: none; }
.cta-banner > * { position: relative; }
.cta-banner-copy { flex: 1 1 380px; }
.cta-banner h3 { color: #fff; font-size: 1.35rem; margin-bottom: 6px; }
.cta-banner p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.cta-banner .btn-accent { --on-accent: #14213D; --accent: #F7931E; --accent-2: #FFB255; }

.sample-count .rec-dot { animation: none; }

/* Real-footage sample view (no detections yet) */
.result-grid.is-video-only { grid-template-columns: 1fr; max-width: none; }
@media (min-width: 1024px) { .result-grid.is-video-only { grid-template-columns: 1.6fr 1fr; } }
.sample-panel { padding: 22px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sample-panel-head h3 { font-size: 1.3rem; margin: 12px 0 10px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; color: #FCA5A5; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); }
:root:not([data-theme="dark"]) .live-pill { color: #B91C1C; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.spec-grid > div { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.spec-grid dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.spec-grid dt .icon { width: 15px; height: 15px; color: var(--primary); }
.spec-grid dd { margin: 2px 0 0; font-weight: 800; font-size: 1.05rem; font-family: var(--font-num); }
.sample-panel-block h4 { font-size: 0.92rem; margin-bottom: 10px; color: var(--fg-2); }
.output-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.output-list li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--fg-2); }
.output-list .icon { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }
.sample-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sample-panel-actions .btn { flex: 1 1 160px; }
.more-samples { display: grid; gap: 8px; }
.more-sample { display: flex; align-items: center; gap: 12px; padding: 6px; padding-inline-end: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--fg); text-align: start; font-weight: 700; font-size: 0.88rem; transition: border-color var(--t), transform var(--t) var(--ease); }
.more-sample:hover { border-color: var(--primary); transform: translateY(-1px); }
.more-sample img { width: 88px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.video-credit { position: absolute; bottom: 58px; inset-inline-start: 14px; z-index: 1; max-width: 70%; padding: 2px 8px; border-radius: 6px; background: rgba(4, 6, 12, 0.55); color: rgba(255, 255, 255, 0.75); font-size: 0.68rem; text-decoration: none; direction: ltr; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-credit:hover { color: #fff; }
.player .scanline { height: 22%; opacity: 0.7; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-card { position: relative; padding: 28px 24px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.step-card h3 { margin: 16px 0 6px; }
.step-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.step-num { position: absolute; top: 14px; inset-inline-end: 20px; font-family: var(--font-num); font-size: 3.2rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--border-strong); }
@media (min-width: 900px) {
  .step-card:not(:last-child)::after { content: ""; position: absolute; top: 50px; inset-inline-start: calc(100% + 1px); width: 19px; border-top: 2px dashed var(--border-strong); }
}

/* Try / upload */
.try-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .try-grid { grid-template-columns: 1.55fr 1fr; align-items: start; } }
.upload-card { padding: clamp(18px, 3vw, 28px); }
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 210px; padding: 24px;
  border-radius: var(--radius); cursor: pointer; border: 2px dashed var(--border-strong); background: var(--surface-2);
  transition: border-color var(--t), background-color var(--t), box-shadow var(--t);
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 10%, transparent); }
.dropzone:focus-within { outline: 2px solid var(--ring); outline-offset: 3px; }
.dropzone.has-file { border-style: solid; border-color: var(--success); background: var(--success-soft); }
.dropzone.has-error { border-color: var(--danger); background: var(--danger-soft); }
.dropzone-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; color: var(--primary); background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); animation: float 3.5s ease-in-out infinite; }
.dropzone-icon .icon { width: 28px; height: 28px; }
@keyframes float { 50% { transform: translateY(-6px); } }
#dropzone-title { word-break: break-word; }
.checklist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 0.88rem; font-weight: 700; transition: border-color var(--t), background-color var(--t); }
.checklist li em { grid-column: 2; font-style: normal; font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.ck { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); position: relative; }
.checklist li.is-pending .ck { border-color: var(--primary); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.checklist li.is-ok { border-color: color-mix(in srgb, var(--success) 40%, transparent); background: var(--success-soft); }
.checklist li.is-ok .ck { background: var(--success); border-color: var(--success); }
.checklist li.is-ok .ck::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.checklist li.is-warn { border-color: color-mix(in srgb, var(--warning) 45%, transparent); background: var(--warning-soft); }
.checklist li.is-warn .ck { background: var(--warning); border-color: var(--warning); }
.checklist li.is-warn .ck::after, .checklist li.is-fail .ck::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 0.8rem; line-height: 1; }
.checklist li.is-fail { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: var(--danger-soft); }
.checklist li.is-fail .ck { background: var(--danger); border-color: var(--danger); }
.checklist li.is-warn em, .checklist li.is-fail em, .checklist li.is-ok em { color: var(--fg-2); }
.checkbox { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; cursor: pointer; font-size: 0.93rem; }
.checkbox input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 3px 0 0; border-radius: 7px; border: 2px solid var(--border-strong); background: var(--surface-2); flex-shrink: 0; cursor: pointer; display: grid; place-items: center; transition: all var(--t-fast); }
.checkbox input:checked { background: var(--primary); border-color: var(--primary); }
.checkbox input:checked::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.field-error { color: var(--danger); font-size: 0.85rem; font-weight: 700; margin: 6px 0 0; }
.field-error:empty { display: none; }
.upload-progress { margin-top: 16px; }
.upload-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
@media (max-width: 479px) { .upload-footer .btn { width: 100%; } }
.quota-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; }
.quota-pill strong { color: var(--fg); font-family: var(--font-num); }
.quota-pill .icon { color: var(--accent); width: 16px; height: 16px; }
.locked { text-align: center; padding: 32px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.locked p { color: var(--muted); max-width: 52ch; }
.locked-icon { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; color: var(--primary); background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); margin-bottom: 10px; }
.locked-icon::after { content: ""; position: absolute; inset: -8px; border-radius: 30px; border: 1px dashed color-mix(in srgb, var(--primary) 35%, transparent); animation: spin 18s linear infinite; }
.locked-icon .icon { width: 36px; height: 36px; }
.locked-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }
.tips { padding: 24px; }
.tips h3, .tips h4 { display: flex; align-items: center; gap: 10px; }
.tips h3 .icon { color: var(--accent); }
.tips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tips li { display: flex; gap: 12px; color: var(--fg-2); font-size: 0.93rem; }
.tips li .icon { color: var(--primary); margin-top: 4px; width: 18px; height: 18px; }
.tips-divider { height: 1px; background: var(--border); margin: 20px 0; }
.recent { margin-top: 32px; }
.recent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.recent-list a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--fg); text-decoration: none; min-height: 52px; transition: border-color var(--t-fast); }
.recent-list a:hover { border-color: var(--primary); color: var(--fg); }
.recent-list .icon { color: var(--primary); }
.recent-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Bento */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .bento { grid-template-columns: repeat(4, 1fr); } }
.bento-card { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color var(--t), transform var(--t) var(--ease); }
.bento-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.bento-card h3 { margin: 16px 0 6px; }
.bento-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
@media (min-width: 720px) { .bento-card.size-wide { grid-column: span 2; } .bento-card.size-tall { grid-row: span 2; } }
.plate-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Use cases */
.usecase-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.usecase { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color var(--t), transform var(--t) var(--ease); }
.usecase:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-2px); }
.usecase h3 { font-size: 1.02rem; margin: 0 0 2px; }
.usecase p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color var(--t), background-color var(--t); }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 35%, transparent); background: var(--surface-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 750; cursor: pointer; list-style: none; min-height: 60px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0; transition: transform var(--t) var(--ease), background-color var(--t); }
.faq details[open] .faq-icon { transform: rotate(180deg); background: var(--primary-soft); color: var(--primary); }
.faq-body { padding: 0 22px 18px; color: var(--fg-2); }
.faq-body p { margin: 0; }
.faq details[open] .faq-body { animation: reveal-down 300ms var(--ease); }
@keyframes reveal-down { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Contact ---------- */
.contact-shell {
  position: relative; display: grid; gap: clamp(28px, 4vw, 56px); padding: clamp(20px, 4vw, 56px); border-radius: var(--radius-xl);
  background: linear-gradient(140deg, color-mix(in srgb, var(--primary) 10%, var(--surface)), var(--surface) 45%, color-mix(in srgb, var(--accent) 8%, var(--surface)));
  border: 1px solid var(--border); overflow: hidden; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.contact-shell::before { content: ""; position: absolute; width: 520px; height: 520px; top: -260px; inset-inline-start: -160px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 22%, transparent), transparent); pointer-events: none; }
@media (min-width: 1024px) { .contact-shell { grid-template-columns: 1fr 1.08fr; align-items: start; } }
.contact-info { position: relative; min-width: 0; }
.contact-info h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); }
.response-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-weight: 750; font-size: 0.88rem; border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.benefits { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 560px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefits li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.benefits strong { display: block; font-size: 0.95rem; }
.benefits span { display: block; color: var(--muted); font-size: 0.84rem; line-height: 1.6; }
.contact-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.contact-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--fg); text-decoration: none; transition: border-color var(--t), transform var(--t) var(--ease); min-width: 0; }
a.contact-card:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--fg); }
.contact-card .icon-tile { width: 40px; height: 40px; }
.contact-card small { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.contact-card strong { display: block; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-card > span:last-child { min-width: 0; }
.form-card {
  position: relative; min-width: 0; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg);
  background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
}
:root[data-theme="dark"] .form-card { background: rgba(10, 15, 28, 0.85); }
.form-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(140deg, color-mix(in srgb, var(--primary) 60%, transparent), transparent 35%, transparent 65%, color-mix(in srgb, var(--accent) 50%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.form-card-head { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.form-card-head h3 { margin: 0; }
.form-card-head p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 0.9rem; color: var(--fg-2); }
.field legend { margin-bottom: 8px; }
.req { color: var(--danger); }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
input[type="text"], input[type="tel"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: 12px;
  background: var(--surface-2); color: var(--fg); font-size: 16px; transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
:root[data-theme="dark"] :is(input[type="text"], input[type="tel"], select, textarea) { background: rgba(255, 255, 255, 0.04); }
select option { background: var(--surface-solid); color: var(--fg); }
textarea { resize: vertical; min-height: 100px; line-height: 1.7; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border-strong)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
input[dir="ltr"] { text-align: left; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; top: 50%; inset-inline-start: 15px; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; transition: color var(--t-fast); }
.input-icon input { padding-inline-start: 44px; }
[dir="rtl"] .input-icon input[dir="ltr"] { padding-left: 16px; padding-right: 44px; }
[dir="ltr"] .input-icon input[dir="ltr"] { padding-left: 44px; padding-right: 16px; }
.input-icon:focus-within > .icon { color: var(--primary); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-option { position: relative; cursor: pointer; }
.chip-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip-option span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--fg-2); font-size: 0.86rem; font-weight: 650; transition: all var(--t-fast); }
.chip-option:hover span { border-color: color-mix(in srgb, var(--primary) 50%, transparent); }
.chip-option input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--primary) 80%, transparent); }
:root[data-theme="dark"] .chip-option input:checked + span { color: #04101F; }
.chip-option input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 2px; }
.chip-group--compact .chip-option span { padding: 4px 12px; font-size: 0.82rem; }
.segmented { display: flex; max-width: 420px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-strong); }
.segmented label { position: relative; flex: 1; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: grid; place-items: center; min-height: 38px; padding: 0 8px; border-radius: 9px; font-size: 0.84rem; font-weight: 700; color: var(--muted); text-align: center; transition: all var(--t-fast); }
.segmented input:checked + span { background: var(--surface-solid); color: var(--fg); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .segmented input:checked + span { background: rgba(255, 255, 255, 0.1); }
.segmented input:focus-visible + span { outline: 2px solid var(--ring); }
.form-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; color: var(--muted); font-size: 0.82rem; text-align: center; }
.form-note .icon { color: var(--success); }
.form-success { text-align: center; padding: 28px 8px; }
.form-success:focus { outline: none; }
.success-mark { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; margin-bottom: 16px; color: var(--success); background: var(--success-soft); box-shadow: 0 0 0 10px color-mix(in srgb, var(--success) 8%, transparent); animation: pop-in 600ms var(--ease) both; }
.success-mark .icon { width: 42px; height: 42px; }
.form-success p { color: var(--muted); }
@keyframes pop-in { from { transform: scale(0.4); opacity: 0; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.footer-grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-about p { color: var(--muted); font-size: 0.9rem; margin-top: 14px; max-width: 46ch; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 4px; }
.site-footer h2 { font-size: 0.95rem; margin-bottom: 8px; }
.footer-links a, .footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); text-decoration: none; font-size: 0.92rem; min-height: 36px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--primary); }
.footer-contact .icon { color: var(--muted); width: 16px; height: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.signature {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); text-decoration: none;
  font-size: 0.75rem; transition: border-color var(--t), color var(--t), box-shadow var(--t);
}
.signature:hover { color: var(--fg); border-color: color-mix(in srgb, var(--primary-2) 55%, transparent); box-shadow: 0 0 18px -6px color-mix(in srgb, var(--primary-2) 70%, transparent); }
.signature-mark { height: 20px; width: auto; }
.signature-name { font-family: 'Space Grotesk', var(--font-body); font-weight: 600; letter-spacing: 0.01em; color: var(--fg-2); }
.signature:hover .signature-name { color: var(--fg); }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(460px, calc(100vw - 32px)); width: 100%; color: var(--fg); overflow: visible; }
.modal::backdrop { background: rgba(2, 6, 23, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 320ms var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
.modal-card { position: relative; padding: 32px 26px 26px; border-radius: var(--radius-lg); background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); }
:root[data-theme="dark"] .modal-card { background: #111C33; }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; }
.modal-step { display: flex; flex-direction: column; }
.modal-step h2 { font-size: 1.4rem; margin-top: 16px; margin-bottom: 4px; }
.otp-input { font-size: 1.7rem !important; letter-spacing: 0.6em; text-align: center !important; font-weight: 800; font-family: var(--font-num); }
.resend { margin: 14px 0 0; text-align: center; font-size: 0.9rem; }

/* ---------- Captcha widget (self-hosted proof-of-work, see core/captcha.py) ---------- */
.captcha {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 6px; padding: 10px 12px 10px 14px; padding-inline: 14px 12px;
  border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface-2); transition: border-color var(--t), box-shadow var(--t);
}
.captcha.is-ok { border-color: color-mix(in srgb, var(--success) 50%, transparent); }
.captcha.is-error, .captcha.is-required { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.captcha.is-required { animation: shake 400ms var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.captcha-check { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--fg); font-weight: 700; font-size: 0.95rem; text-align: start; cursor: pointer; }
.captcha-check:disabled { cursor: default; }
.captcha-box { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--border-strong); background: var(--surface-solid); flex-shrink: 0; transition: all var(--t); }
.captcha-check:hover .captcha-box { border-color: var(--primary); }
.captcha-ok { width: 18px; height: 18px; color: #fff; stroke-width: 3; opacity: 0; transform: scale(0.4); transition: all var(--t) var(--ease); }
.captcha-spin { position: absolute; inset: 3px; border-radius: 50%; border: 2.5px solid var(--primary); border-top-color: transparent; opacity: 0; animation: spin 0.8s linear infinite; }
.captcha.is-busy .captcha-box { border-color: transparent; background: transparent; }
.captcha.is-busy .captcha-spin { opacity: 1; }
.captcha.is-ok .captcha-box { background: var(--success); border-color: var(--success); }
.captcha.is-ok .captcha-ok { opacity: 1; transform: none; }
.captcha.is-ok .captcha-label { color: var(--success); }
.captcha-brand { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.7rem; line-height: 1.25; }
.captcha-brand .icon { width: 22px; height: 22px; color: var(--primary); }
.captcha-brand b { display: block; font-size: 0.72rem; color: var(--fg-2); }
.captcha-brand small { display: block; font-size: 0.66rem; }
.captcha-error { margin: 0 0 10px; }
@media (max-width: 380px) { .captcha-brand small { display: none; } }

/* ---------- Toasts ---------- */
.toast-region { position: fixed; bottom: 18px; inset-inline: 16px; z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 12px 18px; border-radius: 14px; background: rgba(11, 17, 32, 0.92); color: #F1F5F9; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5); font-weight: 650; font-size: 0.93rem; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: modal-in 300ms var(--ease); }
.toast.is-error .icon { color: #F87171; }
.toast.is-success .icon { color: #34D399; }

/* ---------- Prose & error pages ---------- */
.page-narrow { padding-top: 40px; }
.prose { padding: clamp(22px, 4vw, 44px); }
.prose h1 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem); margin: 18px 0 8px; }
.prose h2 { font-size: 1.2rem; margin-top: 30px; }
.prose ul { padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; color: var(--fg-2); }
.back-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.error-page { min-height: 60vh; display: grid; place-items: center; }
.error-card { padding: 48px 32px; text-align: center; }
.error-code { display: block; font-family: var(--font-num); font-size: clamp(4rem, 10vw, 7rem); font-weight: 700; line-height: 1; background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.error-card p { color: var(--muted); }

/* ---------- Scroll reveal (JS adds .js-reveal on <html>) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 650ms var(--ease), transform 650ms var(--ease); transition-delay: var(--delay, 0ms); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .scanline, .aurora, .beam::before { animation: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Trial flow: image/video tabs, video review requests, notifications, banners
   ===================================================================== */
.site-banner { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 1240px; margin: 12px auto 0; padding: 10px 18px; border-radius: 14px; font-weight: 650; font-size: 0.92rem; border: 1px solid; width: calc(100% - 32px); }
.site-banner .icon { flex-shrink: 0; }
.site-banner--info { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 25%, transparent); color: var(--fg); }
.site-banner--info .icon { color: var(--primary); }
.site-banner--success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.site-banner--success .icon { color: var(--success); }
.site-banner--warning { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.site-banner--warning .icon { color: var(--warning); }

/* Notifications bell */
.notif { position: relative; }
.notif-btn { position: relative; }
.notif-count { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--accent-2); color: #fff; font: 800 0.7rem/1 var(--font-num); border: 2px solid var(--bg); }
.notif-btn.has-new .icon { animation: bell 900ms var(--ease) 2; transform-origin: 50% 10%; }
@keyframes bell { 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.notif-panel { position: absolute; top: calc(100% + 10px); inset-inline-end: -60px; z-index: 60; width: min(360px, calc(100vw - 24px)); border-radius: var(--radius); background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); overflow: hidden; animation: modal-in 220ms var(--ease); }
@media (min-width: 640px) { .notif-panel { inset-inline-end: 0; } }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.notif-list { list-style: none; margin: 0; padding: 4px; max-height: min(60vh, 420px); overflow-y: auto; }
.notif-list li { border-radius: 12px; }
.notif-item { display: flex; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: transparent; text-align: start; border-radius: 12px; color: var(--fg); cursor: pointer; transition: background-color var(--t-fast); font-size: 0.86rem; line-height: 1.6; }
.notif-item:hover { background: var(--primary-soft); }
.notif-item.is-unread { background: color-mix(in srgb, var(--primary) 6%, transparent); }
.notif-item.is-unread strong::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); margin-inline-start: 6px; vertical-align: middle; }
.notif-item .icon-tile { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; }
.notif-item small { display: block; color: var(--muted); font-size: 0.75rem; }
.notif-item p { margin: 2px 0 0; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 0.88rem; }

/* Image / video tabs */
.media-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; margin-bottom: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.media-tabs [role="tab"] { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 13px; border: 1px solid transparent; background: transparent; color: var(--fg-2); text-align: start; cursor: pointer; transition: background-color var(--t), border-color var(--t), color var(--t), box-shadow var(--t); }
.media-tabs [role="tab"] .icon { width: 24px; height: 24px; color: var(--muted); transition: color var(--t); }
.media-tabs [role="tab"] strong { display: block; font-size: 0.98rem; line-height: 1.3; }
.media-tabs [role="tab"] small { display: block; color: var(--muted); font-size: 0.76rem; font-weight: 600; }
.media-tabs [role="tab"]:hover { color: var(--fg); }
.media-tabs [role="tab"][aria-selected="true"] { background: var(--surface-solid); border-color: var(--border-strong); color: var(--fg); box-shadow: var(--shadow-md); }
.media-tabs [role="tab"][aria-selected="true"] .icon { color: var(--primary); }
.media-tabs #mtab-image[aria-selected="true"] small { color: var(--success); }
.media-pane { animation: fade-in 260ms var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } }
.dropzone--compact { min-height: 180px; }
.flow-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; padding: 0; font-size: 0.82rem; color: var(--muted); font-weight: 650; }
.flow-steps li { display: inline-flex; align-items: center; gap: 6px; }
.flow-steps span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 0.72rem; font-weight: 800; }
.flow-steps li + li::before { content: ""; width: 14px; height: 1px; background: var(--border-strong); margin-inline-end: 4px; }

.approved-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 18px; border-radius: 16px; background: linear-gradient(135deg, var(--success-soft), transparent 80%); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); }
.approved-banner strong { display: block; }
.approved-banner .grow { flex: 1 1 220px; min-width: 0; }
.approved-banner span[dir] { font-size: 0.86rem; color: var(--fg-2); }
.approved-banner-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--success); color: #fff; flex-shrink: 0; }
.locked-icon--danger { color: var(--danger) !important; background: var(--danger-soft) !important; border-color: color-mix(in srgb, var(--danger) 30%, transparent) !important; }

/* "Your videos" list with status timeline */
.requests { margin-top: 28px; }
.requests h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.requests h3 .icon { color: var(--primary); }
.request-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.req-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color var(--t); }
.req-card.is-approved { border-color: color-mix(in srgb, var(--success) 45%, transparent); box-shadow: 0 0 0 4px var(--success-soft); }
.req-thumb { width: 96px; aspect-ratio: 16 / 10; border-radius: 10px; object-fit: cover; background: var(--console-bg); display: grid; place-items: center; color: #64748B; }
.req-main { min-width: 0; }
.req-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.req-top strong { overflow-wrap: anywhere; }
.req-meta { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.req-msg { margin: 8px 0 0; font-size: 0.86rem; padding: 8px 12px; border-radius: 10px; }
.req-msg--bad { background: var(--danger-soft); color: var(--fg); }
.req-msg--bad b { color: var(--danger); }
.req-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.status-pill.status-pending, .status-pill.status-validating { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.status-pill.status-approved, .status-pill.status-completed { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.status-pill.status-rejected, .status-pill.status-invalid { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.req-timeline { list-style: none; display: flex; margin: 10px 0 0; padding: 0; gap: 0; }
.req-timeline li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.7rem; font-weight: 700; color: var(--muted); text-align: center; min-width: 0; }
.req-timeline li::before { content: ""; position: absolute; top: 6px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--border-strong); z-index: 0; }
.req-timeline li:last-child::before { display: none; }
.req-timeline i { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--surface-solid); border: 2px solid var(--border-strong); }
.req-timeline .s-done { color: var(--success); }
.req-timeline .s-done i { background: var(--success); border-color: var(--success); }
.req-timeline .s-done::before { background: var(--success); }
.req-timeline .s-current, .req-timeline .s-next { color: var(--primary); }
.req-timeline .s-current i { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); animation: pulse-ring 1.6s ease-in-out infinite; }
.req-timeline .s-next i { border-color: var(--success); background: var(--success-soft); }
.req-timeline .s-failed { color: var(--danger); }
.req-timeline .s-failed i { background: var(--danger); border-color: var(--danger); }
@keyframes pulse-ring { 50% { box-shadow: 0 0 0 7px transparent; } }
@media (max-width: 520px) { .req-timeline span { display: none; } .req-thumb { width: 72px; } }

/* Popup for "sent for review" / "approved" / "rejected" / "suspended" */
.notice-icon.is-ok { color: var(--success); background: var(--success-soft); }
.notice-icon.is-wait { color: var(--warning); background: var(--warning-soft); }
.notice-icon.is-bad { color: var(--danger); background: var(--danger-soft); }
.notice-icon.is-ok .icon { animation: pop 420ms var(--ease); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.15); } }
.mini-timeline { list-style: none; display: flex; justify-content: center; gap: 4px; margin: 16px 0 0; padding: 0; font-size: 0.74rem; font-weight: 700; color: var(--muted); }
.mini-timeline li { display: flex; align-items: center; gap: 4px; }
.mini-timeline li + li::before { content: ""; width: 16px; height: 2px; background: var(--border-strong); }
.mini-timeline .s-done { color: var(--success); }
.mini-timeline .s-current, .mini-timeline .s-next { color: var(--primary); }
.mini-timeline .s-failed { color: var(--danger); }

/* Image results in the player */
#result-image { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player.is-image video { display: none; }
@media (prefers-reduced-motion: reduce) {
  .notif-btn.has-new .icon, .req-timeline .s-current i, .notice-icon.is-ok .icon, .media-pane { animation: none !important; }
}


/* =====================================================================
   v2 — identity fields, consultation page, status popup
   ===================================================================== */

/* ---------- Form building blocks ---------- */
.form-section { border: 0; margin: 0; padding: 20px 0 4px; border-top: 1px solid var(--border); min-width: 0; }
.form-section:first-of-type { border-top: 0; padding-top: 4px; }
.upload-card .form-section { margin-top: 18px; }
.form-section-head { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 14px; padding: 0; width: 100%; }
.form-section-head h4 { margin: 0; font-size: 1rem; }
.form-section-head p { margin: 2px 0 0; color: var(--muted); font-size: 0.84rem; line-height: 1.6; }
.form-section-num { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  font: 800 0.85rem/1 var(--font-num); }
.form-section-title { display: block; font-weight: 800; font-size: 1rem; color: var(--fg); }
.form-section-sub { display: block; font-weight: 500; font-size: 0.84rem; color: var(--muted); line-height: 1.6; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field .label { font-weight: 700; font-size: 0.9rem; color: var(--fg-2); }
.field-help { margin: 0; color: var(--muted); font-size: 0.8rem; }
.field-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.field-foot .field-error:empty + .char-count { margin-inline-start: auto; }
.char-count { color: var(--muted); font: 600 0.78rem/1.8 var(--font-num); white-space: nowrap; }
textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.input-locked input { background: var(--bg-2); color: var(--fg-2); cursor: default; padding-inline-end: 40px; }
.input-locked input:hover { border-color: var(--border-strong); }
.input-locked input:focus { box-shadow: none; border-color: var(--border-strong); }
.input-locked .lock { position: absolute; top: 50%; inset-inline-end: 14px; transform: translateY(-50%); width: 16px; height: 16px; color: var(--success); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; width: 100%; padding-inline-end: 40px; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; top: 50%; inset-inline-end: 16px; width: 8px; height: 8px; margin-top: -6px;
  border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
select:invalid, select option[value=""] { color: var(--muted); }
select[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }

/* "On behalf of an organisation" checkbox card */
.check-card { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin: 2px 0 16px;
  border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface-2); cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast); }
.check-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border-strong)); }
.check-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.check-card-box { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px;
  border: 2px solid var(--border-strong); background: var(--surface-solid); color: transparent; transition: all var(--t-fast); }
.check-card-box .icon { width: 14px; height: 14px; stroke-width: 3; }
.check-card-text strong { display: block; font-size: 0.93rem; }
.check-card-text small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.6; margin-top: 2px; }
.check-card:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface-solid)); box-shadow: 0 0 0 4px var(--accent-soft); }
.check-card input:checked + .check-card-box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.check-card input:focus-visible + .check-card-box { outline: 2px solid var(--ring); outline-offset: 2px; }
.org-field { animation: fade-up 260ms var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Saved identity, shown read-only */
.profile-summary { border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--success) 30%, var(--border)); background: linear-gradient(160deg, var(--success-soft), transparent 70%), var(--surface-solid); padding: 14px 16px; margin-bottom: 14px; }
.profile-summary-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-summary-head .icon-tile { width: 40px; height: 40px; }
.profile-summary-head .grow { flex: 1 1 200px; min-width: 0; }
.profile-summary-head strong { display: block; font-size: 0.95rem; }
.profile-summary-head small { display: block; color: var(--muted); font-size: 0.8rem; }
.profile-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 10px; margin: 14px 0 0; }
.profile-summary-grid div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.profile-summary-grid dt { color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.profile-summary-grid dd { margin: 2px 0 0; font-weight: 750; overflow-wrap: anywhere; }
.profile-summary-grid dd[dir="ltr"] { text-align: start; font-family: var(--font-num); }
.profile-summary + .profile-fields { margin-top: 4px; }

/* Development-only OTP hint */
.dev-code { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; font-size: 0.84rem; font-weight: 700;
  background: var(--warning-soft); color: var(--warning); border: 1px dashed color-mix(in srgb, var(--warning) 50%, transparent); }

/* ---------- Consultation page ---------- */
.consult-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); }
.consult-hero .back-link { margin-bottom: 18px; }
.consult-hero .eyebrow { display: flex; }
.consult-hero h1 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem); margin-bottom: 10px; }
.consult-hero .lead { max-width: 640px; color: var(--fg-2); }
.consult-body { padding-bottom: clamp(48px, 7vw, 96px); }
.consult-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .consult-grid { grid-template-columns: minmax(0, 1fr) 360px; } .consult-aside { position: sticky; top: 108px; } }
.consult-card { position: relative; padding: clamp(20px, 3.4vw, 36px); border-radius: var(--radius-lg); background: var(--surface-solid);
  border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.consult-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.consult-card-head { display: flex; gap: 16px; align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.consult-card-head h2 { font-size: 1.3rem; margin: 0 0 2px; }
.consult-card-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.consult-card .form-section-head { margin-bottom: 16px; }
.consult-card .captcha { margin-top: 8px; }
.consult-card .btn-block { margin-top: 16px; }
.consult-card .segmented { max-width: none; }
.consult-aside { display: grid; gap: 16px; }
.consult-aside-card { padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.consult-aside-card h3 { font-size: 1rem; margin-bottom: 14px; }
.consult-aside .benefits { margin: 0; }
.consult-aside .contact-cards { grid-template-columns: 1fr; }
.main-nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }

/* ---------- Status popup (sent to admin / approved / …) ---------- */
.modal--notice { max-width: min(520px, calc(100vw - 32px)); }
.notice-card { padding: 0; overflow: hidden; text-align: center; --tone: var(--warning); --tone-soft: var(--warning-soft);
  --tone-a: #F7931E; --tone-b: #FFC46B; }
.notice-card.tone-ok { --tone: var(--success); --tone-soft: var(--success-soft); --tone-a: #059669; --tone-b: #34D399; }
.notice-card.tone-bad { --tone: var(--danger); --tone-soft: var(--danger-soft); --tone-a: #DC2626; --tone-b: #F87171; }
.notice-card .modal-close { z-index: 2; color: #fff; background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.35); }
.notice-card .modal-close:hover { background: rgba(255, 255, 255, 0.3); color: #fff; }
.notice-hero { position: relative; height: 112px; background: linear-gradient(135deg, var(--tone-a), var(--tone-b));
  background-image: radial-gradient(240px 120px at 80% -10%, rgba(255, 255, 255, 0.35), transparent 70%), linear-gradient(135deg, var(--tone-a), var(--tone-b)); }
.notice-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 22px 22px,
  linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 22px 22px; }
.notice-ring { position: absolute; z-index: 1; left: 50%; bottom: -40px; transform: translateX(-50%); display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 50%; background: var(--surface-solid); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--tone) 60%, transparent); }
.notice-card .notice-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tone-soft); color: var(--tone);
  border: 2px solid color-mix(in srgb, var(--tone) 35%, transparent); }
.notice-card .notice-icon .icon { width: 30px; height: 30px; }
.notice-card.tone-ok .notice-icon .icon { animation: pop 420ms var(--ease); }
.notice-card.tone-wait .notice-icon .icon { animation: tilt 2.4s ease-in-out infinite; }
@keyframes tilt { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(180deg); } }
.notice-content { padding: 54px 26px 26px; }
.notice-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 800;
  color: var(--tone); background: var(--tone-soft); border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent); }
.notice-kicker:empty { display: none; }
.notice-card h2 { font-size: 1.35rem; margin: 12px 0 6px; }
.notice-body { color: var(--fg-2); white-space: pre-line; margin: 0 auto; max-width: 400px; }
.notice-hint { font-size: 0.88rem; padding: 10px 14px; margin: 14px 0 0; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--fg-2); text-align: start; }
.notice-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 22px 0 0; padding: 16px 8px 12px;
  border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.notice-steps .step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.notice-steps .step::before { content: ""; position: absolute; top: 15px; inset-inline-start: calc(50% + 20px); width: calc(100% - 40px); height: 3px; border-radius: 3px; background: var(--border-strong); }
.notice-steps .step:last-child::before { display: none; }
.notice-steps .step.s-done::before { background: var(--success); }
.step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-solid); border: 2px solid var(--border-strong); color: var(--muted); font: 800 0.82rem/1 var(--font-num); }
.step-dot .icon { width: 16px; height: 16px; stroke-width: 3; }
.step-text strong { display: block; font-size: 0.78rem; line-height: 1.4; color: var(--fg-2); }
.step-text small { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.step.s-done .step-dot { background: var(--success); border-color: var(--success); color: #fff; }
.step.s-done small { color: var(--success); }
.step.s-current .step-dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 5px var(--accent-soft); animation: pulse-ring 1.6s ease-in-out infinite; }
.step.s-current strong { color: var(--fg); }
.step.s-current small { color: var(--accent-ink); }
.step.s-next .step-dot { border-color: var(--success); color: var(--success); background: var(--success-soft); box-shadow: 0 0 0 5px var(--success-soft); }
.step.s-next strong { color: var(--fg); }
.step.s-next small { color: var(--success); }
.step.s-failed .step-dot { background: var(--danger); border-color: var(--danger); color: #fff; }
.step.s-failed small { color: var(--danger); }
.notice-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.notice-actions .btn { flex: 1 1 160px; }
@media (max-width: 420px) { .notice-steps { padding-inline: 2px; } .step-text small { display: none; } .notice-content { padding-inline: 18px; } }
@media (prefers-reduced-motion: reduce) { .notice-card .notice-icon .icon, .step.s-current .step-dot, .org-field { animation: none !important; } }
.consult-aside .benefits { grid-template-columns: 1fr !important; }
.consult-aside .benefits li { padding: 12px; }
.consult-card .segmented input:checked + span { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
:root[data-theme="dark"] .consult-card .segmented input:checked + span { background: var(--accent-soft); }
.main-nav a { white-space: nowrap; }

/* ---------- Header on small screens (v2.1): the logo never shrinks; controls compact, then move to the footer ---------- */
.brand { flex-shrink: 0; }
.footer-prefs { display: flex; align-items: center; gap: 8px; }
@media (max-width: 560px) {
  .site-header { padding: 8px 8px 0; }
  .header-pill { gap: 8px; min-height: 56px; padding-inline: 10px 8px; }
  .brand-logo { height: 30px; }
  .header-actions { gap: 6px; }
  .header-actions .lang-switch { height: 38px; padding: 0 10px; }
  .header-actions .lang-switch .icon { display: none; }
  .header-actions > .icon-btn, .header-actions .notif-btn { width: 38px; height: 38px; }
  .header-actions .btn-sm { min-height: 38px; padding-inline: 10px; }
  .header-actions .user-chip { gap: 2px; padding: 2px; }
  .header-actions .user-chip .avatar, .header-actions .user-chip .icon-btn { width: 32px; height: 32px; }
}
@media (max-width: 480px) { .header-actions #theme-toggle { display: none; } }   /* still in the footer */
@media (max-width: 380px) {
  .brand-logo { height: 26px; }
  .header-actions .lang-switch { display: none; }                                  /* still in the footer */
}
@media (max-width: 900px) { .brand-product { display: none; } }   /* tablets: room for the signed-in controls */
@media (max-width: 420px) { .notice-steps { gap: 4px; } .step-text strong { font-size: 0.7rem; } }
.plate-meta .plate-place { color: var(--fg-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
