/* Draco Defense — Open House 2026. Shared design system for the public site and the admin console.
   Brand: deep navy surfaces, one cyan accent, Assistant (Hebrew) + Barlow Condensed (Latin display) + JetBrains Mono (times). */
:root {
  /* palette */
  --navy-1000: #030913;
  --navy-950: #050d1c;
  --navy-900: #0a2040;
  --navy-800: #163259;
  --navy-700: #1f4373;
  --cyan: #00d5e8;
  --cyan-hi: #5ce8f4;
  --cyan-deep: #0e7490;
  --cyan-ink: #0b5f75;
  --cyan-wash: #e6f9fb;

  /* light surfaces (form card, admin) */
  --surface: #f4f6f9;
  --line: #e3e8ef;
  --line-strong: #cbd4e1;   /* decorative dividers only */
  --control: #7a8aa0;       /* borders of inputs/buttons: 3.5:1 on white (WCAG 1.4.11) */
  --placeholder: #5f6f84;   /* 5.1:1 on white */
  --disabled-bg: #e3e8ef;
  --disabled-fg: #475569;   /* 6:1 on --disabled-bg */
  --ink: #0f1b2d;
  --muted: #4a5a70;
  --white: #ffffff;

  /* dark surfaces (site) */
  --d-text: #eaf1f8;
  --d-muted: #a3b3c8;
  --d-line: rgb(255 255 255 / .09);
  --d-line-strong: rgb(255 255 255 / .16);
  --d-glass: rgb(255 255 255 / .045);

  /* semantic */
  --ok: #0f7a4a;
  --ok-wash: #e7f6ee;
  --warn: #8a5300;
  --warn-wash: #fff4e0;
  --bad: #b42318;
  --bad-wash: #fdecea;

  /* shape, depth, motion */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgb(10 32 64 / .06), 0 10px 28px -14px rgb(10 32 64 / .22);
  --shadow-lg: 0 30px 80px -30px rgb(0 0 0 / .65);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 160ms;
  --t: 240ms;

  --font: "Assistant", ui-sans-serif, system-ui, sans-serif;
  --display: "Barlow Condensed", "Assistant", ui-sans-serif, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: only light; /* light UI: opt out of browsers' automatic dark mode */
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
b { font-weight: 700; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, select, label, [role="tab"] { touch-action: manipulation; }
::selection { background: var(--cyan); color: var(--navy-900); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
@media (min-width: 1024px) { .wrap { padding-inline: 32px; } }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--cyan); color: var(--navy-900); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.logo { height: 44px; width: auto; }
.logo-sm { height: 32px; width: auto; }

.h2 { font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.2; font-weight: 800; margin: 0; color: var(--navy-900); }
.h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; margin: 0; color: var(--navy-900); }

/* ---------------------------------------------------------------- buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t), transform var(--t-fast) var(--ease); }
.btn:active:not(:disabled) { transform: scale(.97); }
/* disabled = solid grey with dark text (never fade a coloured button: faded navy + white text reads as white on white) */
.btn:disabled, .btn[aria-disabled="true"] { background: var(--disabled-bg) !important; color: var(--disabled-fg) !important; border-color: var(--line-strong) !important; box-shadow: none !important; cursor: not-allowed; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-cyan { background: var(--cyan); color: var(--navy-900); }
.btn-cyan:hover:not(:disabled) { background: var(--cyan-hi); box-shadow: 0 8px 28px -8px rgb(0 213 232 / .55); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover:not(:disabled) { background: var(--navy-800); }
.btn-glass { background: rgb(255 255 255 / .12); color: var(--white); border-color: rgb(255 255 255 / .42); }
.btn-glass:hover:not(:disabled) { background: rgb(255 255 255 / .2); border-color: rgb(255 255 255 / .7); }
.btn-ghost { background: var(--white); color: var(--navy-900); border-color: var(--control); }
.btn-ghost:hover:not(:disabled) { border-color: var(--navy-900); }
.btn-ok { background: var(--ok); color: var(--white); }
.btn-ok:hover:not(:disabled) { background: #0b6a40; }
.btn-bad { background: var(--white); color: var(--bad); border-color: #f1b8b2; }
.btn-bad:hover:not(:disabled) { background: var(--bad-wash); }
.btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin .7s linear infinite; }
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background-color var(--t-fast), color var(--t-fast); }
.icon-btn:hover { background: var(--surface); color: var(--ink); }

/* ---------------------------------------------------------------- fields (light) */
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 15px; color: var(--navy-900); }
.req { color: var(--cyan-deep); }
input, textarea, select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--control); border-radius: var(--r-sm); background: var(--white); color: var(--ink); font-size: 16px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input[dir="ltr"] { text-align: right; }
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }
input:hover, textarea:hover, select:hover { border-color: var(--navy-700); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cyan-deep); box-shadow: 0 0 0 4px rgb(14 116 144 / .14); }
.field.invalid input, .field.invalid textarea { border-color: var(--bad); box-shadow: 0 0 0 4px rgb(180 35 24 / .08); }
.err { margin: 0; font-size: 14px; font-weight: 600; color: var(--bad); }
.err:empty { display: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; }
.form-error { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bad-wash); color: var(--bad); font-weight: 600; font-size: 15px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- toast */
.toast { position: fixed; inset-inline: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; max-width: 480px; margin-inline: auto; padding: 14px 18px; border-radius: var(--r-md); background: var(--navy-900); color: var(--white); box-shadow: var(--shadow-lg); font-weight: 600; animation: toast-in var(--t) var(--ease); }
.toast.bad { background: var(--bad); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
