/* etherRemote AI — marketing site.
   Framework-free. Theming is driven by [data-theme] on <html>; every colour below is a
   variable so the light and dark palettes stay in lockstep. */

/* ---------- Palette ---------------------------------------------------------- */

:root {
  --brand: #2563eb;
  --brand-2: #4f46e5;
  --accent: #0891b2;

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1160px;
  --header-h: 68px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'Cascadia Mono', Menlo, Consolas, monospace;
}

/* Light is the default so the page still reads correctly if JS never runs. */
:root,
[data-theme='light'] {
  --bg: #ffffff;
  --bg-2: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --text-strong: #020617;
  --muted: #56637a;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
  --glow: radial-gradient(closest-side, rgba(37, 99, 235, .12), transparent 72%);
  --brand-soft: rgba(37, 99, 235, .09);
  --accent-soft: rgba(8, 145, 178, .10);
  --ok: #047857;
  --ok-soft: rgba(4, 120, 87, .10);
  --warn: #b45309;
  --warn-soft: rgba(180, 83, 9, .12);
  --code-bg: #f1f5f9;
}

[data-theme='dark'] {
  --bg: #080d1a;
  --bg-2: #0d1426;
  --surface: #111a30;
  --surface-2: #17223d;
  --text: #dfe6f2;
  --text-strong: #f8fafc;
  --muted: #97a3ba;
  --border: #1e2a44;
  --border-strong: #2c3a58;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  --glow: radial-gradient(closest-side, rgba(59, 130, 246, .22), transparent 72%);
  --brand-soft: rgba(59, 130, 246, .14);
  --accent-soft: rgba(34, 211, 238, .12);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, .13);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, .13);
  --code-bg: #0d1730;

  --brand: #3b82f6;
  --brand-2: #6366f1;
  --accent: #22d3ee;
}

/* ---------- Base ------------------------------------------------------------- */

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Theme swap should feel deliberate, not jarring — but never animate for users who
   have asked for reduced motion. */
body,
header,
.card,
.panel,
input,
textarea,
select { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  color: var(--text-strong);
  line-height: 1.2;
  letter-spacing: -.022em;
  font-weight: 700;
}

code, .mono { font-family: var(--mono); font-size: .92em; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

/* Skip link for keyboard users. */
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  transition: top .15s ease;
}
.skip:focus { top: 16px; text-decoration: none; }

/* ---------- Header ----------------------------------------------------------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.03em;
  color: var(--text-strong);
}
.logo:hover { text-decoration: none; }
.logo .mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  flex: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
}
/* One flex item, so the 10px gap sits between the mark and the wordmark — not inside it. */
.logo .name { white-space: nowrap; }
.logo em { font-style: normal; color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-strong); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* "Sign in" appears once: as a button here on wide screens, as a menu row on narrow ones. */
.nav-signin-mobile { display: none; }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex: none;
}
.theme-toggle:hover { border-color: var(--border-strong); background: var(--surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
/* Show the icon for the theme you'd switch *to*. */
.theme-toggle .icon-moon { display: none; }
[data-theme='dark'] .theme-toggle .icon-sun { display: none; }
[data-theme='dark'] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

/* ---------- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .08s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .28);
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(37, 99, 235, .36); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-strong);
}
.btn-ghost:hover { background: var(--surface-2); }

.btn-lg { padding: 14px 26px; font-size: 15.5px; }

/* ---------- Sections --------------------------------------------------------- */

.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }

.section-head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head.left { margin-inline: 0; text-align: left; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17.5px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

/* ---------- Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background: var(--glow);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.pill b { color: var(--text-strong); font-weight: 600; }
.pill .tag {
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  letter-spacing: -.035em;
  max-width: 940px;
  margin: 0 auto 22px;
}
.grad {
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero .lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-note {
  color: var(--muted);
  font-size: 13.5px;
  display: flex;
  gap: 10px 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; color: var(--ok); flex: none; }

/* ---------- Stat strip ------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 64px;
  box-shadow: var(--shadow);
}
.stat { background: var(--surface); padding: 26px 22px; text-align: center; }
.stat dt {
  font-size: 25px;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -.03em;
  line-height: 1.25;
}
.stat dd { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* ---------- Cards / grids ---------------------------------------------------- */

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card-hover:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

.ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 16px;
}
.ico svg { width: 21px; height: 21px; }

/* ---------- Prose panel (what it is) ----------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.prose p { color: var(--muted); font-size: 16.5px; margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text-strong); font-weight: 650; }

.checklist { list-style: none; display: grid; gap: 13px; margin-top: 26px; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--muted);
}
.checklist svg {
  width: 20px; height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--ok);
}
.checklist b { color: var(--text-strong); font-weight: 640; }

/* ---------- Screenshots ------------------------------------------------------ */

/* One full-width figure per row: the captures are wide, landscape screens. */
.shots { display: grid; gap: 26px; }

figure.shot {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Fake browser chrome so a bare screenshot reads as "this is the product". */
.chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.chrome i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
  flex: none;
}
.chrome .url {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

figure.shot img {
  width: 100%;
  height: auto;
  background: #eef2f7;
}
figure.shot figcaption {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
figure.shot figcaption b { color: var(--text-strong); font-weight: 640; }

/* ---------- Steps ------------------------------------------------------------ */

.steps { display: grid; gap: 0; max-width: 780px; margin: 0 auto; }
.step {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step .num {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 15px;
}
.step h4 { font-size: 16.5px; margin-bottom: 5px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Architecture diagram --------------------------------------------- */

.diagram {
  margin-top: 52px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.diagram svg { width: 100%; min-width: 660px; height: auto; display: block; }
.dg-box { fill: var(--surface-2); stroke: var(--border-strong); }
.dg-box-brand { fill: var(--brand-soft); stroke: var(--brand); }
.dg-line { stroke: var(--border-strong); stroke-width: 1.6; fill: none; }
.dg-line-brand { stroke: var(--brand); stroke-width: 2; fill: none; }
.dg-t { fill: var(--text-strong); font-size: 13px; font-weight: 650; font-family: var(--font); }
.dg-s { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.dg-l { fill: var(--muted); font-size: 10.5px; font-family: var(--mono); }

/* ---------- Tables ----------------------------------------------------------- */

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
thead th {
  text-align: left;
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 14px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--muted);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { color: var(--text-strong); font-weight: 640; white-space: nowrap; }
tbody td .os { display: block; color: var(--text); }

.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-soon { background: var(--warn-soft); color: var(--warn); }
.badge-brand { background: var(--brand-soft); color: var(--brand); }

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}
.note svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 2px; }
.note b { color: var(--text-strong); font-weight: 640; }

/* ---------- Spec list (tech stack) ------------------------------------------- */

.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.spec { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.spec h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 14px; }
.spec ul { list-style: none; display: grid; gap: 9px; }
.spec li { font-size: 14px; color: var(--text); display: flex; justify-content: space-between; gap: 14px; }
.spec li span { color: var(--muted); font-family: var(--mono); font-size: 12.5px; text-align: right; }

/* ---------- Roadmap ---------------------------------------------------------- */

.roadmap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.phase {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}
.phase.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--border)); background: var(--ok-soft); }
.phase.next { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); background: var(--warn-soft); }

/* ---------- Contact ---------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }

.contact-side .lead { color: var(--muted); font-size: 16.5px; margin-bottom: 28px; }
.contact-points { list-style: none; display: grid; gap: 20px; }
.contact-points li { display: flex; gap: 14px; align-items: flex-start; }
.contact-points .ico { margin-bottom: 0; width: 38px; height: 38px; border-radius: 10px; }
.contact-points .ico svg { width: 18px; height: 18px; }
.contact-points h4 { font-size: 15px; margin-bottom: 3px; }
.contact-points p { color: var(--muted); font-size: 14px; }
.contact-points a { font-weight: 600; }

form.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label {
  display: block;
  font-size: 13.5px;
  font-weight: 640;
  color: var(--text-strong);
  margin-bottom: 7px;
}
label .opt { color: var(--muted); font-weight: 450; }

input[type='text'],
input[type='email'],
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 14px;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
textarea { resize: vertical; min-height: 132px; line-height: 1.6; }

/* Honeypot: hidden from people, irresistible to bots. Kept out of the a11y tree too. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.form-foot .privacy { color: var(--muted); font-size: 12.5px; flex: 1 1 220px; }

.form-msg {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 34%, transparent); }
.form-msg.err { background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 34%, transparent); }
.form-msg a { color: inherit; text-decoration: underline; font-weight: 650; }

/* ---------- CTA -------------------------------------------------------------- */

.cta {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 28px;
  background:
    linear-gradient(135deg, var(--brand-soft), var(--accent-soft)),
    var(--surface);
  box-shadow: var(--shadow);
}
.cta h2 { font-size: clamp(26px, 3.6vw, 34px); margin-bottom: 12px; }
.cta p { color: var(--muted); margin-bottom: 28px; font-size: 17px; }

/* ---------- Footer ----------------------------------------------------------- */

footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 52px 0 34px;
  color: var(--muted);
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.foot-grid h5 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-strong);
  margin-bottom: 14px;
  font-weight: 700;
}
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid a { color: var(--muted); }
.foot-grid a:hover { color: var(--text-strong); }
.foot-about p { margin-top: 14px; max-width: 320px; font-size: 14px; }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
}

/* ---------- Responsive ------------------------------------------------------- */

@media (max-width: 980px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-4, .specs { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .hero { padding: 68px 0 56px; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15.5px; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: grid; }
  .nav-signin { display: none; }
  .nav-signin-mobile { display: block; color: var(--brand); font-weight: 650; }

  .grid-2, .grid-3, .grid-4, .specs, .shots { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 18px; }
  form.panel { padding: 22px; }
  .diagram { padding: 18px; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* Print: force the light palette and drop the chrome. */
@media print {
  header, .theme-toggle, .nav-toggle, .hero-actions, form.panel { display: none !important; }
  body { background: #fff; color: #000; }
}
