/* =====================================================================
   MSE4 — site.css
   Styles for the brochure and account pages (everything rendered through
   base.html). The robot dashboard keeps its own look in _robot_css.html;
   the two share only _header.html / _footer.html, which carry their own
   styles so they work in both worlds.

   Design: one dark tone (#0b0f14) for the hero and the closing call to
   action, light sections in between, one accent (gold #d4af37, the colour of the robot's side lights), the
   system sans stack, no frameworks, no web fonts. Checked at 375 px and
   1440 px.
   ===================================================================== */

:root {
  --ink: #0b0f14;          /* dark surfaces and headline text */
  --ink-2: #1f2937;        /* body text on light */
  --muted: #6b7280;        /* secondary text on light */
  --muted-dark: #9fb0bf;   /* secondary text on dark */
  --line: #e5e7eb;         /* hairlines on light */
  --line-dark: rgba(255, 255, 255, 0.09);
  --bg: #ffffff;
  --bg-soft: #f6f8fa;      /* alternate light section */
  --gold: #d4af37;
  --gold-dark: #8c6d1f;    /* hover / text on light */
  --gold-soft: #f6eed6;
  --amber: #f59e0b;
  --red: #dc2626;
  --radius: 14px;
  --wrap: 1140px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 70px;        /* _header.html is fixed and this tall */
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
.site-main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: -0.015em; font-weight: 650; }
p { margin: 0 0 1rem; }
a { color: var(--gold-dark); }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding-left: 1.25rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-narrow { max-width: 820px; }
.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; }

/* ---------- flash messages (base.html) ---------- */
.flashes { padding-top: 1rem; }
.flash { padding: 0.875rem 1rem; margin-bottom: 0.75rem; border: 1px solid var(--line); border-radius: 10px; font-size: 0.95rem; background: #fff; }
.flash.success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.flash.danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.flash.info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #e4c45f; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1f2a37; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: #cbd5e1; }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.875rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: default; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #d7dee6; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--muted-dark); }
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin-bottom: 0.75rem; }
.section-head p { font-size: 1.15rem; color: var(--muted); margin: 0; }
.section-dark .section-head p { color: var(--muted-dark); }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.9rem; }
.section-dark .eyebrow { color: var(--gold); }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: #fff; overflow: hidden; position: relative; }
.hero::before {
  /* one soft gold glow behind the robot; keeps the hero from being a flat slab */
  content: ''; position: absolute; right: -10%; top: -20%; width: 60vw; max-width: 760px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0) 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-top: clamp(3.5rem, 9vw, 7.5rem); padding-bottom: clamp(3rem, 7vw, 6rem);
}
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); font-weight: 700; letter-spacing: -0.03em; color: #fff; margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--muted-dark); max-width: 36rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0; margin: 0; list-style: none; font-size: 0.92rem; color: var(--muted-dark); }
.hero-facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-facts svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(100%, 440px); height: auto; display: block; }

/* robot illustration: the two rings breathe (the lidar sweep turns with SMIL inside the SVG); off when the viewer prefers reduced motion */
.ring { transform-box: fill-box; transform-origin: center; animation: ring-pulse 3.6s ease-in-out infinite; }
.ring.ring-2 { animation-delay: 1.2s; }
@keyframes ring-pulse { 0%, 100% { transform: scale(1); opacity: 0.55; } 50% { transform: scale(1.12); opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } }

/* ---------- tiles (what it does / privacy / features) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.tile h3 { font-size: 1.2rem; }
.tile p { margin: 0; color: var(--muted); font-size: 1rem; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-soft); color: var(--gold-dark); flex-shrink: 0;
}
.icon svg { width: 24px; height: 24px; }
.section-dark .tile { background: rgba(255, 255, 255, 0.04); border-color: var(--line-dark); }
.section-dark .tile p { color: var(--muted-dark); }
.section-dark .icon { background: rgba(212, 175, 55, 0.15); color: var(--gold); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.step { position: relative; padding-top: 0.25rem; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.05rem; }
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- modes strip (same colours as the dashboard's mode pills) ---------- */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.mode { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: #fff; }
.mode p { margin: 0; color: var(--muted); font-size: 1rem; }
.pill { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; margin-bottom: 0.8rem; }
.pill.mode-home  { background: #eef2ff; color: #3730a3; }
.pill.mode-away  { background: #fee2e2; color: #991b1b; }
.pill.mode-night { background: #111; color: #fff; }
.pill.critical { background: #fee2e2; color: #991b1b; }
.pill.warning  { background: #fef3c7; color: #b45309; }
.pill.coming   { background: #f3f4f6; color: #9ca3af; }
.pill.fitted   { background: #dcfce7; color: #15803d; }
.mode h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }

/* ---------- evidence: an event card built from the dashboard's own markup ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin-bottom: 1rem; }
.split p { color: var(--muted); font-size: 1.1rem; }
.split ul { color: var(--muted); font-size: 1.05rem; padding-left: 1.1rem; }
.split li { margin-bottom: 0.4rem; }
.ev-demo { max-width: 560px; margin: 0 auto; width: 100%; }
.ev-card { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(11, 15, 20, 0.08); font-size: 0.95rem; color: var(--ink-2); text-align: left; }
.ev-rail { width: 6px; flex-shrink: 0; background: #d1d5db; }
.ev-card.warning .ev-rail { background: var(--amber); }
.ev-card.critical .ev-rail { background: var(--red); }
.ev-body { flex: 1; min-width: 0; padding: 1.1rem 1.25rem 1.25rem; }
.ev-head { display: flex; justify-content: space-between; gap: 0.75rem 1rem; align-items: baseline; flex-wrap: wrap; }
.ev-title { font-size: 1.05rem; font-weight: 600; color: var(--ink); display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.ev-title .pill { margin: 0; }
.ev-time { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.ev-place { color: var(--muted); }
.ev-text { font-size: 0.92rem; color: var(--ink-2); margin: 0.35rem 0 0; }
.ev-evidence { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.8rem; }
.ev-thumb { width: 200px; max-width: 100%; aspect-ratio: 4 / 3; background: #0b0f14; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; position: relative; }
.ev-thumb svg { width: 100%; height: 100%; display: block; }
.ev-thumb .tag { position: absolute; left: 8px; top: 8px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: rgba(220, 38, 38, 0.9); padding: 2px 7px; border-radius: 99px; }
.ev-thumb .ts { position: absolute; right: 8px; bottom: 6px; font-size: 0.7rem; color: #cbd5e1; font-variant-numeric: tabular-nums; }
.db-bars { display: grid; grid-template-columns: 72px 1fr 56px; gap: 0.3rem 0.6rem; align-items: center; font-size: 0.76rem; color: var(--muted); margin-top: 0.8rem; max-width: 380px; }
.db-track { height: 6px; background: #eef0f3; border-radius: 3px; overflow: hidden; }
.db-track > span { display: block; height: 100%; background: #9ca3af; }
.db-track.hot > span { background: var(--red); }
.db-val { text-align: right; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ev-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 0.9rem; font-size: 0.8rem; color: var(--muted); }
.ev-actions .btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
.ev-actions .sp { flex: 1; }
.ev-caption { font-size: 0.85rem; color: var(--muted); text-align: center; margin: 0.9rem 0 0; }

/* ---------- add-ons roadmap ---------- */
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.addon { border: 1px dashed #d1d5db; border-radius: 12px; padding: 1.25rem; color: var(--muted); background: #fff; min-width: 0; }
.addon-title { font-size: 1rem; font-weight: 600; color: #4b5563; display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; margin-bottom: 0.4rem; }
.addon-title .pill { margin: 0; }
.addon p { margin: 0; font-size: 0.92rem; line-height: 1.5; }

/* ---------- FAQ (plain <details>, no JS) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; font-size: 1.15rem; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-weight: 300; font-size: 1.6rem; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 1.25rem; color: var(--muted); max-width: 64ch; }

/* ---------- forms (early access, contact, auth, account) ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 0.82rem; color: var(--muted); margin: 0; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.8rem 0.9rem; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink);
  font-size: 1rem; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25); }
.field input::placeholder, .field textarea::placeholder { color: #9ca3af; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.25rem; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; } /* honeypot: off-screen, never for humans */
.msg { padding: 0.9rem 1rem; border-radius: 10px; font-size: 0.95rem; margin-bottom: 1.25rem; border: 1px solid; }
.msg.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.msg.ok    { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.msg.warn  { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }

/* the dark closing call to action with the form inside a light panel */
.cta-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.cta-grid h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.panel { background: #fff; color: var(--ink-2); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25); }
.panel h3 { font-size: 1.15rem; margin-bottom: 1rem; color: var(--ink); }
.panel p { color: var(--muted); }

/* ---------- auth / account cards ---------- */
.auth { display: flex; justify-content: center; padding-top: clamp(2rem, 6vw, 5rem); padding-bottom: clamp(2rem, 6vw, 5rem); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.auth-card .lead { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.98rem; }
.auth-card .field { margin-bottom: 1rem; }
.auth-links { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); margin-top: 1.25rem; }
.auth-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }
.account { max-width: 760px; }
.account-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.account-head h1 { font-size: 1.6rem; }
.account-head p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 1.5rem; }
.card h2 { font-size: 1.2rem; margin-bottom: 1.25rem; }
.card .form-grid { margin-bottom: 0.25rem; }
.danger-zone { border-color: #fecaca; }
.danger-zone p { color: var(--muted); font-size: 0.95rem; }

/* ---------- long-form pages (features, privacy, terms) ---------- */
.page-head { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.025em; margin-bottom: 0.75rem; }
.page-head .lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; margin: 0; }
.page-head .meta { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: 0.35rem; }
.prose ul { margin-bottom: 1rem; }
.prose .placeholder { background: #fef3c7; color: #92400e; padding: 0 0.3rem; border-radius: 4px; font-weight: 600; }
.notice { border-left: 4px solid var(--gold); background: var(--bg-soft); padding: 0.9rem 1.1rem; border-radius: 0 10px 10px 0; font-size: 0.95rem; color: var(--ink-2); margin-bottom: 2rem; }
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.toc a { display: inline-block; font-size: 0.85rem; padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { border-color: var(--ink); }

/* feature screens: alternating text / "what you see" list */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); align-items: start; }
.feature:first-of-type { border-top: 0; }
.feature h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0.5rem 0 0.75rem; }
.feature > div > p { color: var(--muted); font-size: 1.05rem; }
.status { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.shipping { background: #dcfce7; color: #15803d; }
.status.testing  { background: #fef3c7; color: #b45309; }
.status.coming   { background: #f3f4f6; color: #6b7280; }
.status-list { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin-top: 1rem; }
.see { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.see h3 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.see ul { list-style: none; padding: 0; margin: 0; }
.see li { padding: 0.55rem 0 0.55rem 1.6rem; border-top: 1px solid var(--line); position: relative; font-size: 0.98rem; color: var(--ink-2); }
.see li:first-child { border-top: 0; padding-top: 0; }
.see li::before { content: ''; position: absolute; left: 0; top: 0.95rem; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.see li:first-child::before { top: 0.4rem; }
.legend { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; font-size: 0.9rem; color: var(--muted); margin-top: 1.5rem; }

/* ---------- error page ---------- */
.error-page { text-align: center; padding-top: clamp(4rem, 12vw, 9rem); padding-bottom: clamp(4rem, 12vw, 9rem); }
.error-page .code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.error-page .code span { color: var(--gold); }
.error-page h1 { font-size: 1.6rem; margin: 1rem 0 0.5rem; }
.error-page p { color: var(--muted); max-width: 36rem; margin: 0 auto 1.75rem; }

/* ---------- header variant: dark on pages that open with the dark hero ---------- */
.home .site-header { background: var(--ink); border-bottom-color: var(--line-dark); }
.home .site-word { color: #fff; }
.home .site-links a { color: var(--muted-dark); }
.home .site-links a:hover, .home .site-links a.active { color: #fff; }
.home .site-links a.active { border-bottom-color: var(--gold); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; }
  .hero-art svg { width: min(70vw, 320px); }
  .steps, .modes { grid-template-columns: 1fr; }
  .split, .cta-grid, .feature { grid-template-columns: 1fr; }
  .split .ev-demo { order: 2; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-art svg { width: min(60vw, 260px); }
  .ev-thumb { width: 100%; }
  .db-bars { grid-template-columns: 64px 1fr 52px; }
  .account-head { align-items: flex-start; }
}
