/* ==========================================================================
   VECTRA INTERACTIVE LLC: custom layer on top of Tailwind utilities.

   Tailwind's CDN build injects its <style> tag after this file, so its reset
   wins ties on specificity. Rules that must beat `[type='submit']` and similar
   reset selectors therefore use two classes (for example `.btn.btn-primary`).
   ========================================================================== */

:root {
  --ink: #0b0f19;
  --surface: #111827;
  --surface-raised: #172033;
  --electric: #3b82f6;
  --iris: #6366f1;
  --paper: #f9fafb;

  /* Lighter tints of the accents, used for text so it clears WCAG AA on --ink. */
  --electric-text: #60a5fa;
  --iris-text: #a5b4fc;
  --soft: #cbd5e1;
  --muted: #9ca3af;

  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.3);
  --header-h: 72px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* --------------------------------------------------------------------------
   Base and smooth scrolling
   -------------------------------------------------------------------------- */
html {
  background: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--electric-text);
  outline-offset: 2px;
  border-radius: 4px;
}
[tabindex="-1"]:focus { outline: none; }

::selection { background: rgba(99, 102, 241, 0.45); color: #fff; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.font-tabular { font-variant-numeric: tabular-nums; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* --------------------------------------------------------------------------
   Glassmorphism and glowing border utilities
   -------------------------------------------------------------------------- */
.glass {
  background: rgba(17, 24, 39, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line);
}

.glow-border { position: relative; }
.glow-border::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.6), rgba(99, 102, 241, 0.28) 38%, rgba(148, 163, 184, 0.08) 72%);
  -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, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.text-gradient {
  background-image: linear-gradient(100deg, #93c5fd 0%, #818cf8 70%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 25, 0.68);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 15, 25, 0.84);
  border-bottom-color: var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; min-width: 0; }
.brand-name {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
.brand-name span { color: var(--muted); font-weight: 600; }

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.7rem;
  border-radius: 0.5rem;
  color: var(--soft);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover { color: var(--paper); background: rgba(148, 163, 184, 0.09); }
.nav-link[aria-current] { color: var(--paper); background: rgba(99, 102, 241, 0.16); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0.6rem;
  color: var(--paper);
  border: 1px solid var(--line-strong);
  cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: rgba(11, 15, 25, 0.98);
  animation: menu-in 0.18s ease both;
}
.mobile-menu a.mobile-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  color: var(--soft);
  font-weight: 500;
}
.mobile-menu a.mobile-link:hover,
.mobile-menu a.mobile-link[aria-current] { color: var(--paper); background: rgba(148, 163, 184, 0.09); }

/* --------------------------------------------------------------------------
   Buttons, badges and section headers
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  border-radius: 0.65rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.15s ease, filter 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn.btn-sm { min-height: 40px; padding: 0.45rem 1rem; font-size: 0.875rem; }

/* The fill is a deeper step of the accent pair: white text on #3B82F6 is only 3.7:1. */
.btn.btn-primary {
  color: #fff;
  background-image: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.28), 0 10px 32px -10px rgba(59, 130, 246, 0.7);
}
.btn.btn-primary:hover {
  filter: brightness(1.12);
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.42), 0 14px 38px -10px rgba(99, 102, 241, 0.85);
}
.btn.btn-primary[disabled] { opacity: 0.7; cursor: progress; }

.btn.btn-ghost {
  color: var(--paper);
  background-color: rgba(148, 163, 184, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn.btn-ghost:hover { background-color: rgba(148, 163, 184, 0.13); }

.text-link {
  color: var(--electric-text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(96, 165, 250, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
.text-link:hover { color: #93c5fd; text-decoration-color: currentColor; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--core { color: #93c5fd; background: rgba(59, 130, 246, 0.13); border-color: rgba(59, 130, 246, 0.42); }
.badge--rd { color: var(--iris-text); background: rgba(99, 102, 241, 0.13); border-color: rgba(99, 102, 241, 0.42); }
.badge--rd .badge-dot { animation: pulse-dot 2.2s ease-in-out infinite; }
.badge--eco { color: var(--soft); background: rgba(148, 163, 184, 0.1); border-color: var(--line-strong); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--electric-text);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--electric));
}

.section { padding-block: clamp(4.5rem, 3rem + 6vw, 7.5rem); }
.section-title {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: clamp(1.875rem, 1.45rem + 1.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-lead { color: var(--muted); font-size: 1.0625rem; line-height: 1.7; text-wrap: pretty; }

/* --------------------------------------------------------------------------
   Hero and the optical-flow vector field
   -------------------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: clip; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto 35%;
  height: 80%;
  z-index: -2;
  background:
    radial-gradient(closest-side at 62% 45%, rgba(99, 102, 241, 0.26), transparent 72%),
    radial-gradient(closest-side at 30% 62%, rgba(59, 130, 246, 0.18), transparent 70%);
  pointer-events: none;
}
.flow-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 80% 78% at 32% 34%, #000 18%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 78% at 32% 34%, #000 18%, transparent 78%);
}
.hero-title {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: clamp(2.125rem, 1.55rem + 2.5vw, 3.375rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
}
.hero-badge i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 10px var(--electric);
}
.hero-in { animation: hero-in 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-in-1 { animation-delay: 0.05s; }
.hero-in-2 { animation-delay: 0.12s; }
.hero-in-3 { animation-delay: 0.2s; }
.hero-in-4 { animation-delay: 0.28s; }

/* --------------------------------------------------------------------------
   Hero showcase console (CSS and SVG only; main.js just updates the numbers)
   -------------------------------------------------------------------------- */
.console {
  position: relative;
  border-radius: 1.25rem;
  background: rgba(13, 18, 31, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 40px 90px -36px rgba(37, 99, 235, 0.5), 0 0 0 1px rgba(148, 163, 184, 0.06);
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
}
.console-bar .dots { display: inline-flex; gap: 5px; }
.console-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(148, 163, 184, 0.28); }
.console-bar .path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-bar .preview { margin-left: auto; color: var(--iris-text); letter-spacing: 0.04em; }

.console-body {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 0.875rem;
  padding: 0.875rem;
}

.phone {
  position: relative;
  padding: 6px;
  border-radius: 1.6rem;
  background: linear-gradient(160deg, #2a3550, #10172a 55%);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}
.phone-screen {
  position: relative;
  aspect-ratio: 9 / 18;
  overflow: hidden;
  border-radius: 1.25rem;
  background:
    radial-gradient(90% 55% at 50% 42%, rgba(79, 70, 229, 0.32), transparent 72%),
    linear-gradient(180deg, #0a1020, #060a14);
  font-family: var(--mono);
}
.phone-hud {
  position: absolute;
  inset: 0.65rem 0.65rem auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  color: var(--soft);
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
}
.phone-hud .on { display: inline-flex; align-items: center; gap: 0.25rem; color: #6ee7b7; }
.phone-hud .on i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: pulse-dot 1.6s ease-in-out infinite; }

.mesh-rig {
  position: absolute;
  inset: 18% 7% auto;
  width: 86%;
  height: auto;
  overflow: visible;
  transform-origin: 50% 46%;
  animation: head-sway 8s ease-in-out infinite;
}
.scan-line {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 56px;
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.2) 92%, rgba(147, 197, 253, 0.75));
  animation: scan 4.8s linear infinite;
  pointer-events: none;
}
.phone-tools {
  position: absolute;
  inset: auto 0.55rem 0.7rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}
.phone-tools span {
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 15, 25, 0.68);
  color: var(--soft);
  font-size: 0.5625rem;
}
.phone-tools span.on { border-color: rgba(96, 165, 250, 0.75); color: #bfdbfe; background: rgba(37, 99, 235, 0.3); }

.metrics { display: grid; gap: 0.625rem; grid-auto-rows: 1fr; min-width: 0; }
.metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(17, 24, 39, 0.75);
}
.metric-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.metric-value {
  margin-top: 0.2rem;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.metric-value small { margin-left: 0.15rem; color: var(--muted); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0; }
.metric-note { margin-top: 0.15rem; color: var(--muted); font-size: 0.6875rem; line-height: 1.3; }
.sparkline { width: 100%; height: 24px; margin-top: 0.35rem; overflow: visible; }
.budget-bar { height: 4px; margin-top: 0.45rem; overflow: hidden; border-radius: 999px; background: rgba(148, 163, 184, 0.16); }
.budget-bar i { display: block; height: 100%; width: 92%; border-radius: inherit; background: linear-gradient(90deg, var(--electric), var(--iris)); transition: width 0.6s ease; }
.sandbox-state { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.2rem; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 1rem; font-weight: 800; }
.sandbox-state .icon { color: #6ee7b7; width: 1.05em; height: 1.05em; }

.console-code {
  margin: 0;
  padding: 0.8rem 1rem;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.71875rem;
  line-height: 1.65;
  white-space: pre;
}
.console-code .k { color: var(--iris-text); }
.console-code .f { color: #93c5fd; }
.console-code .n { color: #6ee7b7; }

.console-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
}
.tech-chip {
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(99, 102, 241, 0.42);
  border-radius: 0.4rem;
  background: rgba(99, 102, 241, 0.1);
  color: #c7d2fe;
  font-family: var(--mono);
  font-size: 0.6875rem;
  white-space: nowrap;
}
.console-note { margin-left: auto; color: #8b95a7; font-size: 0.6875rem; }

/* Below the two-column hero: keep the phone a sensible size and quiet the field behind the text. */
@media (max-width: 1023px) {
  .console { width: 100%; max-width: 600px; margin-inline: auto; }
  .flow-field { opacity: 0.55; }
}

@media (max-width: 439px) {
  .console-body { grid-template-columns: minmax(0, 1fr); }
  .phone { width: min(62%, 210px); margin-inline: auto; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .console-note { margin-left: 0; width: 100%; }
}

/* --------------------------------------------------------------------------
   Product cards
   -------------------------------------------------------------------------- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 26px 60px -34px rgba(79, 70, 229, 0.75);
  transform: translateY(-2px);
}
.product-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0d1322;
  background-image:
    radial-gradient(70% 90% at 70% 15%, rgba(99, 102, 241, 0.2), transparent 70%),
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px;
}
.product-title {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.2;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Capability matrix and technology
   -------------------------------------------------------------------------- */
.matrix {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--line);
}
.matrix-cell {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--surface);
  transition: background-color 0.2s ease;
}
.matrix-cell:hover { background: var(--surface-raised); }
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  color: #bfdbfe;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.24), rgba(99, 102, 241, 0.18));
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.3);
}

.pipeline { display: grid; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.pipeline li {
  position: relative;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(17, 24, 39, 0.8);
}
.pipeline .step { color: var(--electric-text); font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pipeline .name { display: block; margin-top: 0.2rem; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
@media (min-width: 900px) {
  .pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
  .pipeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(-1.25rem - 1px);
    width: 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, var(--electric), var(--iris));
  }
}

.stack-group { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(17, 24, 39, 0.55); }
.stack-group h3 { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--iris-text); }
.stack-group ul { display: grid; gap: 0.55rem; margin-top: 1rem; color: var(--soft); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   Corporate and compliance banner
   -------------------------------------------------------------------------- */
.compliance-banner {
  overflow: hidden;
  border-radius: 1.5rem;
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(59, 130, 246, 0.16), transparent 70%),
    radial-gradient(60% 90% at 100% 100%, rgba(99, 102, 241, 0.17), transparent 70%),
    var(--surface);
}
.facts { display: grid; gap: 0; font-size: 0.9375rem; }
.facts > div { display: grid; gap: 0.2rem; padding-block: 0.85rem; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--muted); font-size: 0.8125rem; }
.facts dd { margin: 0; color: var(--paper); overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .facts > div { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; }
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */
.field-label { display: block; margin-bottom: 0.4rem; color: var(--soft); font-size: 0.875rem; font-weight: 500; }
.field {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.6rem;
  background-color: rgba(11, 15, 25, 0.72);
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field::placeholder { color: #7b8596; }
.field:hover { border-color: rgba(148, 163, 184, 0.48); }
.field:focus { border-color: var(--electric); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.26); outline: none; }
.field[aria-invalid="true"] { border-color: #f87171; }
textarea.field { min-height: 148px; resize: vertical; }
select.field {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}
select.field option { background: var(--surface); color: var(--paper); }
.field-error { margin-top: 0.35rem; color: #fca5a5; font-size: 0.8125rem; }

.confirm-panel { animation: hero-in 0.45s ease both; }
.confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.4);
}

.contact-row { display: flex; gap: 0.9rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.contact-row:first-child { border-top: 0; padding-top: 0; }
.contact-row .icon { margin-top: 0.15rem; color: var(--electric-text); }
.contact-row dt { color: var(--muted); font-size: 0.8125rem; }
.contact-row dd { margin: 0.1rem 0 0; font-weight: 500; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-link { color: var(--soft); font-size: 0.9375rem; transition: color 0.15s ease; }
.footer-link:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Legal pages (privacy.html, terms.html)
   -------------------------------------------------------------------------- */
.legal-hero { border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 15% 0%, rgba(59, 130, 246, 0.14), transparent 70%), radial-gradient(50% 120% at 90% 0%, rgba(99, 102, 241, 0.14), transparent 70%); }

.toc { border: 1px solid var(--line); border-radius: 0.9rem; background: rgba(17, 24, 39, 0.55); }
.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  list-style: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; color: var(--muted); font-size: 1.125rem; font-weight: 400; }
.toc[open] summary::after { content: "\2212"; }
.toc ol { display: grid; gap: 1px; margin: 0; padding: 0 0.5rem 0.6rem; list-style: none; font-size: 0.8125rem; line-height: 1.35; }
.toc a { display: block; padding: 0.42rem 0.55rem; border-radius: 0.4rem; color: var(--muted); transition: color 0.15s ease, background-color 0.15s ease; }
.toc a:hover { color: var(--paper); background: rgba(148, 163, 184, 0.08); }
.toc a[aria-current] { color: var(--paper); background: rgba(99, 102, 241, 0.17); }
@media (min-width: 1024px) {
  .toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
  .toc summary { pointer-events: none; }
  .toc summary::after, .toc[open] summary::after { content: none; }
}

.legal { min-width: 0; color: var(--soft); font-size: 1rem; line-height: 1.75; }
.legal section { padding-top: 2.5rem; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.legal section:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.legal h2 {
  margin-bottom: 0.9rem;
  color: var(--paper);
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1.4375rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.legal h3 { margin: 1.6rem 0 0.5rem; color: var(--paper); font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.legal p { margin: 0.8rem 0; }
.legal strong { color: var(--paper); font-weight: 600; }
.legal ul, .legal ol.steps { margin: 0.8rem 0; padding-left: 1.25rem; }
.legal ul { list-style: disc; }
.legal ol.steps { list-style: decimal; }
.legal li { margin: 0.4rem 0; padding-left: 0.2rem; }
.legal li::marker { color: var(--electric-text); }
.legal a { color: var(--electric-text); overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: rgba(96, 165, 250, 0.4); text-underline-offset: 3px; }
.legal a:hover { color: #93c5fd; text-decoration-color: currentColor; }
.legal code { padding: 0.1em 0.35em; border-radius: 0.3rem; background: rgba(148, 163, 184, 0.12); color: #dbeafe; font-family: var(--mono); font-size: 0.84em; overflow-wrap: anywhere; }
.legal .caps { font-size: 0.875rem; letter-spacing: 0.01em; }

.callout {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(99, 102, 241, 0.38);
  border-left: 3px solid var(--iris);
  border-radius: 0.6rem;
  background: rgba(99, 102, 241, 0.08);
  font-size: 0.9375rem;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.table-wrap { margin: 1.1rem 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 0.75rem; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.875rem; line-height: 1.55; }
.legal th, .legal td { padding: 0.7rem 0.85rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal thead th { border-top: 0; background: rgba(148, 163, 184, 0.08); color: var(--paper); font-weight: 600; white-space: nowrap; }
.legal tbody th { color: var(--paper); font-weight: 500; }
.legal td code, .legal th code { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Scroll reveal. Hidden only after main.js has run, so content is never lost.
   -------------------------------------------------------------------------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes scan { from { transform: translateY(-60px); } to { transform: translateY(560px); } }
@keyframes head-sway {
  0%, 100% { transform: translate(0, 0) rotate(0) scaleX(1); }
  25% { transform: translate(4px, -2px) rotate(1.6deg) scaleX(0.975); }
  55% { transform: translate(-4px, 2px) rotate(-1.4deg) scaleX(0.985); }
  80% { transform: translate(2px, 1px) rotate(0.8deg) scaleX(0.99); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .scan-line { display: none; }
}

/* Legal pages are often printed or saved as PDF for compliance files. */
@media print {
  html, body { background: #fff; color: #000; }
  .site-header, .toc, .site-footer, .skip-link { display: none !important; }
  .legal-hero { background: none; border: 0; color: #000; }
  .legal, .legal h2, .legal h3, .legal strong, .legal th, .legal a { color: #000; }
  .legal table { min-width: 0; }
}
