/* Brainy Supervisor — static site styles
   Palette: dark navy / ivory / industrial orange. System type stack. */

:root {
  --navy-950: #070d18;
  --navy-900: #0b1526;
  --navy-800: #111e33;
  --navy-700: #1a2a44;
  --navy-600: #243a5c;
  --ivory: #f2eee3;
  --ivory-70: rgba(242, 238, 227, .72);
  --ivory-50: rgba(242, 238, 227, .5);
  --ivory-20: rgba(242, 238, 227, .2);
  --ivory-10: rgba(242, 238, 227, .1);
  --ivory-06: rgba(242, 238, 227, .06);
  --orange: #ff7a1a;
  --orange-600: #e8650a;
  --orange-soft: rgba(255, 122, 26, .14);
  --green: #46d39a;
  --red: #ff5c5c;
  --ink: #0b1526;
  --ink-70: rgba(11, 21, 38, .72);
  --ink-50: rgba(11, 21, 38, .5);
  --ink-12: rgba(11, 21, 38, .12);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --shadow: 0 20px 60px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ivory);
  background: var(--navy-900);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; overflow-wrap: anywhere; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--ink); padding: 10px 16px;
  border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
}
.h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.1rem);
  line-height: 1.05; letter-spacing: -.025em; font-weight: 800;
}
.h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.12; letter-spacing: -.02em; font-weight: 800;
  margin-top: 14px;
}
.h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ivory-70); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lead { margin-top: 16px; }
.muted { color: var(--ivory-50); }
.accent { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1.2; letter-spacing: -.005em;
  border: 1px solid transparent; text-align: center;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--orange); color: var(--ink);
  box-shadow: 0 10px 30px rgba(255, 122, 26, .28);
}
.btn-primary:hover { background: #ff8a38; }
.btn-ghost {
  background: transparent; color: var(--ivory); border-color: var(--ivory-20);
}
.btn-ghost:hover { border-color: var(--ivory-50); background: var(--ivory-06); }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--navy-700); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 21, 38, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--ivory-10);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.01em; font-size: 17px; }
.brand img { width: 34px; height: 34px; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--ivory-50); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--ivory-70);
}
.nav-links a:hover { color: var(--ivory); background: var(--ivory-06); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--ivory-20);
  background: transparent; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ivory); border-radius: 2px;
  position: relative; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding-block: clamp(56px, 8vw, 110px) clamp(48px, 7vw, 96px);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 122, 26, .16), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(36, 58, 92, .5), transparent 60%),
    url("/assets/grid.svg");
  border-bottom: 1px solid var(--ivory-10);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-copy .h1 { margin-top: 18px; }
.hero-copy .lead { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px;
  font-size: 14px; color: var(--ivory-70);
}
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--green); flex: none; }

.hero-visual { position: relative; min-width: 0; }
.mock-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-950); border: 1px solid var(--ivory-10); box-shadow: var(--shadow);
}
.mock-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--ivory-10);
  font-family: var(--mono); font-size: 12px; color: var(--ivory-50);
}
.mock-bar .live { display: inline-flex; align-items: center; gap: 8px; color: var(--ivory-70); }
.mock-bar .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.mock-frame svg { width: 100%; height: auto; }
.mock-note {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(7, 13, 24, .85); border: 1px solid var(--ivory-20);
  font-size: 12px; font-weight: 600; color: var(--ivory-70); letter-spacing: .02em;
}
.mock-note svg { width: 14px; height: 14px; color: var(--orange); }
.mock-caption { margin-top: 12px; font-size: 13px; color: var(--ivory-50); text-align: center; }

/* Detection overlay animation (inline SVG classes) */
.det-box { animation: det-pulse 2.6s ease-in-out infinite; transform-origin: center; }
.det-box.alt { animation-delay: 1.3s; }
.scan-line { animation: scan 5s linear infinite; }
@keyframes det-pulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes scan { 0% { transform: translateX(-40px); } 100% { transform: translateX(640px); } }

/* ---------- Generic sections ---------- */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--ivory-10); }
.section-alt { background: var(--navy-800); }
.section-light { background: var(--ivory); color: var(--ink); }
.section-light .lead, .section-light .muted { color: var(--ink-70); }
.section-light .eyebrow { color: var(--orange-600); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--navy-800); border: 1px solid var(--ivory-10); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px); min-width: 0;
  transition: border-color .2s, transform .25s var(--ease);
}
.card:hover { border-color: var(--ivory-20); transform: translateY(-2px); }
.card .h3 { margin-top: 14px; }
.card p { margin-top: 10px; color: var(--ivory-70); font-size: 15.5px; }
.card ul { margin-top: 12px; display: grid; gap: 6px; color: var(--ivory-70); font-size: 15px; }
.card ul li { padding-left: 18px; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 2px; background: var(--orange); }
.section-light .card { background: #fff; border-color: var(--ink-12); color: var(--ink); }
.section-light .card p, .section-light .card ul { color: var(--ink-70); }

.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange);
}
.icon svg { width: 22px; height: 22px; }

/* ---------- Problem ---------- */
.problem-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.stat-list { display: grid; gap: 14px; }
.stat-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 18px 20px; border-radius: var(--radius); background: var(--navy-800); border: 1px solid var(--ivory-10);
}
.stat-list .n { font-family: var(--mono); font-size: 13px; color: var(--orange); padding-top: 4px; }
.stat-list strong { display: block; font-size: 16px; }
.stat-list span { color: var(--ivory-70); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: clamp(22px, 3vw, 30px); border-radius: var(--radius);
  background: #fff; border: 1px solid var(--ink-12); color: var(--ink); min-width: 0;
}
.step .num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--ivory); font-weight: 800; font-size: 15px;
}
.step .h3 { margin-top: 16px; }
.step p { margin-top: 10px; color: var(--ink-70); font-size: 15.5px; }
.step .tag {
  display: inline-block; margin-top: 14px; padding: 4px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; background: var(--orange-soft); color: var(--orange-600);
}
.step-note { margin-top: 22px; font-size: 14.5px; color: var(--ink-70); max-width: 70ch; }

/* ---------- Rules ---------- */
.rules-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.rule-list { display: grid; gap: 12px; margin-top: 24px; }
.rule {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 16px 18px; border-radius: 12px; background: var(--navy-800); border: 1px solid var(--ivory-10);
}
.rule .quote { color: var(--orange); font-family: var(--mono); font-size: 18px; line-height: 1.2; }
.rule q { quotes: none; font-weight: 600; font-size: 16px; }
.rule small { display: block; margin-top: 4px; color: var(--ivory-50); font-size: 13.5px; }
.chat {
  border-radius: var(--radius-lg); background: var(--navy-950); border: 1px solid var(--ivory-10);
  overflow: hidden; box-shadow: var(--shadow);
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--ivory-10); font-size: 13px; color: var(--ivory-50);
}
.chat-head b { color: var(--ivory); font-size: 14px; }
.chat-body { padding: 16px; display: grid; gap: 12px; }
.msg {
  padding: 12px 14px; border-radius: 12px; background: var(--navy-800); border: 1px solid var(--ivory-10);
  font-size: 14.5px; line-height: 1.5; max-width: 92%;
}
.msg .meta { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--ivory-50); margin-bottom: 6px; }
.msg .lvl { font-weight: 700; }
.msg .lvl.warn { color: var(--orange); }
.msg .lvl.ok { color: var(--green); }
.msg .lvl.crit { color: var(--red); }
.msg .snap {
  margin-top: 10px; height: 54px; border-radius: 8px;
  background: repeating-linear-gradient(135deg, var(--navy-700) 0 8px, var(--navy-600) 8px 16px);
  display: grid; place-items: center; font-size: 11.5px; color: var(--ivory-50); font-family: var(--mono);
}
.chat-foot { padding: 10px 16px; border-top: 1px solid var(--ivory-10); font-size: 12px; color: var(--ivory-50); }

/* ---------- Security ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sec-item {
  padding: 22px; border-radius: var(--radius); background: var(--navy-800); border: 1px solid var(--ivory-10); min-width: 0;
}
.sec-item .h3 { margin-top: 14px; font-size: 1.08rem; }
.sec-item p { margin-top: 8px; color: var(--ivory-70); font-size: 15px; }
.sec-flow {
  margin-top: 40px; padding: clamp(18px, 3vw, 28px); border-radius: var(--radius-lg);
  background: var(--navy-950); border: 1px solid var(--ivory-10);
}
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; }
.flow-node { padding: 14px 16px; border-radius: 12px; background: var(--navy-800); border: 1px solid var(--ivory-20); min-width: 0; }
.flow-node b { display: block; font-size: 15px; }
.flow-node span { display: block; font-size: 13px; color: var(--ivory-50); margin-top: 4px; }
.flow-node.edge { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange-soft); }
.flow-arrow { font-family: var(--mono); font-size: 12px; color: var(--orange); text-align: center; white-space: nowrap; }
.flow-arrow b { display: block; color: var(--ivory-50); font-weight: 600; }
.sec-foot { margin-top: 18px; display: grid; gap: 10px; font-size: 14.5px; color: var(--ivory-70); }
.modes { margin-top: 36px; }
.modes table { width: 100%; border-collapse: collapse; font-size: 15px; }
.modes th, .modes td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--ivory-10); vertical-align: top; }
.modes th { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory-50); font-weight: 700; }
.modes td:first-child { font-weight: 700; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--ivory-10); }
.table-wrap table { min-width: 560px; }
.honest {
  margin-top: 28px; padding: 16px 18px; border-left: 3px solid var(--orange); background: var(--navy-800);
  border-radius: 0 12px 12px 0; color: var(--ivory-70); font-size: 15px;
}

/* ---------- Pilot ---------- */
.pilot {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center;
}
.pilot-card {
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--ink); color: var(--ivory);
  border: 1px solid var(--ivory-10); box-shadow: var(--shadow); min-width: 0;
}
.pilot-card .price { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-top: 8px; }
.pilot-card .price small { font-size: 15px; font-weight: 600; color: var(--ivory-50); letter-spacing: 0; margin-left: 6px; }
.pilot-card .credit { margin-top: 10px; color: var(--orange); font-weight: 700; }
.pilot-card ul { margin-top: 22px; display: grid; gap: 10px; }
.pilot-card li { display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: 15.5px; color: var(--ivory-70); }
.pilot-card li svg { width: 18px; height: 18px; color: var(--green); margin-top: 3px; }
.pilot-card .btn { margin-top: 26px; }
.pilot-card .fine { margin-top: 12px; font-size: 12.5px; color: var(--ivory-50); }
.checks { display: grid; gap: 14px; margin-top: 26px; }
.checks li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.checks .k { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--ivory); font-weight: 800; font-size: 13px; }
.checks strong { display: block; }
.checks span { color: var(--ink-70); font-size: 15px; }

/* ---------- Industries ---------- */
.industries { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.industries li {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--ivory-20); font-weight: 600; font-size: 15px; color: var(--ivory-70);
}
.industries li.loc { border-color: var(--orange); color: var(--ivory); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  border-radius: 12px; background: var(--navy-800); border: 1px solid var(--ivory-10); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font-weight: 700; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--ivory-20); font-weight: 600; color: var(--orange); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 20px; color: var(--ivory-70); font-size: 15.5px; }
.faq .answer a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-side .lead { margin-top: 16px; }
.contact-side ul { margin-top: 22px; display: grid; gap: 12px; }
.contact-side li { display: grid; grid-template-columns: auto 1fr; gap: 12px; color: var(--ivory-70); font-size: 15.5px; }
.contact-side li svg { width: 18px; height: 18px; color: var(--orange); margin-top: 4px; }
.contact-side .note {
  margin-top: 26px; padding: 16px 18px; border-radius: 12px; background: var(--navy-800); border: 1px solid var(--ivory-10);
  font-size: 14.5px; color: var(--ivory-70);
}
.contact-side .note b { color: var(--ivory); }

.form {
  padding: clamp(20px, 3.5vw, 36px); border-radius: var(--radius-lg); background: var(--ivory); color: var(--ink);
  border: 1px solid var(--ink-12); box-shadow: var(--shadow); min-width: 0;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 700; font-size: 14px; }
.field .opt { color: var(--ink-50); font-weight: 500; }
.field .hint { font-size: 12.5px; color: var(--ink-50); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px;
  background: #fff; border: 1px solid rgba(11, 21, 38, .22); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--orange-600); box-shadow: 0 0 0 4px var(--orange-soft);
}
.input::placeholder, .textarea::placeholder { color: rgba(11, 21, 38, .4); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230b1526' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.textarea { min-height: 120px; resize: vertical; }
.input:user-invalid, .select:user-invalid, .textarea:user-invalid { border-color: var(--red); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; border-radius: 12px; background: rgba(11, 21, 38, .06); }
.seg label {
  position: relative; display: grid; gap: 2px; padding: 12px 14px; border-radius: 9px; cursor: pointer;
  border: 1px solid transparent; font-weight: 700; font-size: 14.5px; transition: background .15s, border-color .15s;
}
.seg label small { font-weight: 500; font-size: 12.5px; color: var(--ink-50); }
.seg input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: #fff; border-color: var(--ink); box-shadow: 0 2px 10px rgba(11, 21, 38, .08); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }

.file {
  display: grid; gap: 8px; padding: 14px; border: 1.5px dashed rgba(11, 21, 38, .3); border-radius: 10px; background: #fff;
}
.file input[type="file"] { font-size: 14px; max-width: 100%; }
.file input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--ink); background: var(--ink); color: var(--ivory);
  font-weight: 700; cursor: pointer;
}
.file .hint { font-size: 12.5px; color: var(--ink-50); }
.file .hint.err { color: #b42318; font-weight: 600; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--ink-70); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange-600); }
.consent a { color: var(--orange-600); text-decoration: underline; text-underline-offset: 3px; }

.form-foot { display: grid; gap: 12px; margin-top: 6px; }
.form-status { min-height: 1.5em; font-size: 14.5px; font-weight: 600; color: var(--ink-70); }
.form-status[data-state="error"] { color: #b42318; }
.form-status[data-state="success"] { color: #067647; }
.hp { position: absolute; inset-inline-start: 0; inset-block-start: 0; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 48px 36px; border-top: 1px solid var(--ivory-10); background: var(--navy-950); font-size: 14px; color: var(--ivory-50); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--ivory-70); font-weight: 600; }
.footer-links a:hover { color: var(--ivory); }
.footer-legal { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--ivory-10); display: grid; gap: 8px; max-width: 80ch; line-height: 1.55; }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(40px, 6vw, 80px); }
.legal .prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.02em; line-height: 1.1; }
.prose .updated { margin-top: 10px; color: var(--ivory-50); font-size: 14px; }
.prose h2 { margin-top: 36px; font-size: 1.35rem; letter-spacing: -.01em; }
.prose p, .prose li { margin-top: 12px; color: var(--ivory-70); }
.prose ul { margin-top: 8px; padding-left: 20px; list-style: disc; }
.prose li { margin-top: 6px; }
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ivory); }
.prose .back { display: inline-flex; margin-bottom: 24px; color: var(--ivory-70); font-weight: 600; }
.prose .back:hover { color: var(--ivory); }

/* ---------- Reveal ---------- */
.reveal { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { padding: 2px 0; }
  .flow-arrow b { display: inline; margin-left: 6px; }
}
@media (max-width: 900px) {
  .hero-grid, .problem-grid, .rules-grid, .pilot, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .nav-links.open {
    display: grid; position: absolute; left: 0; right: 0; top: 100%;
    padding: 12px var(--gutter) 18px; background: var(--navy-900); border-bottom: 1px solid var(--ivory-10);
    gap: 2px; box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 12px 10px; font-size: 16px; }
  .nav-links.open .btn { margin-top: 10px; display: inline-flex; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .sec-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .btn { white-space: normal; }
  .stat-list li { grid-template-columns: 1fr; gap: 6px; }
  .rule { grid-template-columns: 1fr; gap: 6px; }
  .msg { max-width: 100%; }
  .footer-top { flex-direction: column; }
}

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

@media print {
  .site-header, .hero-visual, .nav-toggle, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Mobile-only CTA inside the collapsible menu */
.nav-links .nav-mobile-cta { display: none; }
@media (max-width: 900px) {
  .nav-links.open .nav-mobile-cta { display: inline-flex; justify-content: center; }
}

/* Deployment-modes table stacks into cards on small screens */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border: 0; }
  .table-wrap table { min-width: 0; }
  .modes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .modes tr { display: block; margin-bottom: 12px; border: 1px solid var(--ivory-10); border-radius: 12px; background: var(--navy-800); padding: 6px 0; }
  .modes td { display: grid; grid-template-columns: 1fr; gap: 2px; border: 0; padding: 8px 14px; }
  .modes td::before { content: attr(data-label); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory-50); font-weight: 700; }
  .modes td:first-child { font-size: 17px; }
  .mock-note { font-size: 11px; padding: 5px 8px; }
}

/* Primary CTA inside the nav keeps its dark-on-orange contrast */
.nav-links a.btn-primary { color: var(--ink); }
.nav-links a.btn-primary:hover { color: var(--ink); background: #ff8a38; }

/* Utilities (no inline styles: the hosting CSP is style-src 'self') */
.mt-14 { margin-top: 14px; }
.link-accent { text-decoration: underline; text-underline-offset: 3px; color: var(--orange-600); }
.fieldset-plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset-plain legend { padding: 0; margin-bottom: 6px; }

/* Accessible targets and resilient grid sizing. */
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.hero-grid > *, .problem-grid > *, .rules-grid > *, .pilot > *, .contact-grid > * { min-width: 0; }
@media (max-width: 900px) {
 .hero-grid, .problem-grid, .rules-grid, .pilot, .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Native file inputs must shrink within narrow mobile form tracks. */
.field, .file { grid-template-columns: minmax(0, 1fr); }
.field > *, .file > * { min-width: 0; overflow-wrap: anywhere; }
.file input[type="file"]:not(.visually-hidden) { width: 100%; }

/* Language controls remain available on every route and at narrow widths. */
.language-switch { display: inline-flex; align-items: center; gap: 3px; direction: ltr; flex: none; white-space: nowrap; }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px; font-size: 14px; font-weight: 600; color: var(--ivory-70); border-radius: 6px; }
.language-switch a[aria-current="page"] { color: var(--orange); }
.language-switch a:hover { background: var(--ivory-06); color: var(--ivory); }
.language-suggestion { margin-block: 8px 0; font-size: 13px; color: var(--ivory-70); }
.language-suggestion a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; }
[hidden] { display: none !important; }
.file-picker { display: inline-flex; justify-content: center; align-items: center; justify-self: start; min-height: 44px; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--ivory); cursor: pointer; }
.file:has(input:focus-visible) .file-picker { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Mirror layout through logical flow; keep the original illustration unmirrored. */
html[lang="ar"] { --font: "IBM Plex Sans Arabic", "Tahoma", Arial, sans-serif; --mono: var(--font); }
[dir="rtl"] .h1 { line-height: 1.35; letter-spacing: 0; }
[dir="rtl"] .h2, [dir="rtl"] .prose h1 { line-height: 1.4; letter-spacing: 0; }
[dir="rtl"] .h3, [dir="rtl"] .eyebrow, [dir="rtl"] .brand, [dir="rtl"] .brand small,
[dir="rtl"] .btn, [dir="rtl"] .mock-note, [dir="rtl"] .modes th,
[dir="rtl"] .modes td::before { letter-spacing: 0; }
[dir="rtl"] .btn { line-height: 1.5; }
[dir="rtl"] .brand > span { direction: ltr; }
[dir="rtl"] .brand small { direction: rtl; text-align: start; }
[dir="rtl"] .brand small { font-size: 12px; }
[dir="rtl"] .hero-actions .btn svg { transform: scaleX(-1); }
[dir="rtl"] .mock-frame > svg { direction: ltr; }
[dir="rtl"] .mock-note { left: auto; right: 12px; }
[dir="rtl"] .mock-bar { flex-wrap: wrap; }
[dir="rtl"] .card ul li { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .card ul li::before { left: auto; right: 0; }
[dir="rtl"] .modes th, [dir="rtl"] .modes td { text-align: right; }
[dir="rtl"] .honest { border-left: 0; border-right: 3px solid var(--orange); border-radius: 12px 0 0 12px; }
[dir="rtl"] .pilot-card .price { line-height: 1.4; letter-spacing: 0; }
[dir="rtl"] .pilot-card .price small { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .select { padding-right: 14px; padding-left: 40px; background-position: left 14px center; }
[dir="rtl"] .prose ul { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .skip-link { left: auto; right: 12px; }
[dir="rtl"] .flow-arrow { direction: ltr; }
[dir="rtl"] .flow-arrow b { direction: rtl; }
[dir="rtl"] .msg .meta { font-family: var(--font); }

/* The language control needs room before navigation collapses. */
@media (max-width: 1200px) {
 .nav-links { display: none; }
 .nav-toggle { display: inline-flex; }
 .nav-cta .btn { display: none; }
 .nav-links.open { display: grid; position: absolute; left: 0; right: 0; top: 100%; padding: 12px var(--gutter) 18px; background: var(--navy-900); border-bottom: 1px solid var(--ivory-10); gap: 2px; box-shadow: var(--shadow); }
 .nav-links.open a { padding: 12px 10px; font-size: 16px; }
 .nav-links.open .nav-mobile-cta { display: inline-flex; justify-content: center; margin-top: 10px; }
}
@media (max-width: 480px) {
 .nav { gap: 8px; }
 .brand { gap: 6px; font-size: 14px; min-width: 0; }
 .brand img { width: 24px; height: 24px; flex: none; }
 .brand small, [dir="rtl"] .brand small { font-size: 10px; letter-spacing: 0; }
 .nav-cta { gap: 2px; }
 .language-switch { gap: 0; }
 .language-switch a { font-size: 12px; padding-inline: 4px; }
 .nav-toggle { width: 36px; min-width: 36px; }
 [dir="rtl"] .mock-note { max-width: calc(100% - 24px); }
}
/* Preserve Latin camera IDs and timestamps inside Arabic chat metadata. */
[dir="rtl"] .msg .meta > span:last-child { direction: ltr; unicode-bidi: isolate; }

/* Clipped controls stay inside their containing blocks in both text directions.
   Offscreen coordinates can enlarge RTL scrollable space even when content is clipped. */
.form, .file { position: relative; }
.file input[type="file"].visually-hidden {
 width: 1px; height: 1px; min-width: 0; max-width: 1px;
 padding: 0; border: 0; margin: 0;
 inset-inline-start: 0; inset-block-start: 0;
 clip-path: inset(50%);
}

/* Arabic camera-bar labels use the Arabic UI face; SVG technical labels retain mono. */
[dir="rtl"] .mock-bar { font-family: var(--font); letter-spacing: 0; }

/* Arabic interface labels stay naturally joined; the SVG specifies its own Latin face. */
[dir="rtl"] .flow-arrow, [dir="rtl"] .msg .meta, [dir="rtl"] .msg .snap,
[dir="rtl"] .rule .quote { letter-spacing: 0; }

/* Explainer video */
.video-wrap { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #0b1526; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.video-wrap video { width: 100%; height: 100%; display: block; object-fit: cover; }
