/* ==========================================================================
   AutoBlogJet LLC - Main stylesheet
   Design system: flight-deck / dispatch-board motif for an autopilot blog engine.
   Tokens first, then base, layout, components, page blocks, utilities, media.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --jet-900: #06101c;
  --jet-800: #0a1524;
  --jet-700: #10203a;
  --jet-600: #1b2f4d;

  --green-600: #0f9c71;
  --green-500: #17c08c;
  --green-400: #3ad6a6;
  --green-050: #e6f8f1;

  --amber-500: #ffb020;
  --amber-050: #fff5e1;

  --red-500: #e2574c;
  --red-050: #fdecea;

  /* Semantic surfaces (light theme is the default) */
  --bg: #ffffff;
  --bg-soft: #f5f8f7;
  --bg-panel: #ffffff;
  --bg-inverse: var(--jet-800);
  --text: #0b1220;
  --text-soft: #4a5a6a;
  --text-faint: #7a8794;
  --line: #e2e8e6;
  --line-strong: #cbd6d2;
  --brand: var(--green-600);
  --brand-strong: #0b7d5b;
  --brand-soft: var(--green-050);
  --accent: var(--amber-500);
  --focus: #0f9c71;

  /* Typography */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.6rem;
  --fs-4xl: 3.4rem;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Shape and depth */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow: 0 8px 24px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, 0.14);

  --container: 1180px;
  --header-h: 68px;
  --transition: 180ms ease;
}

/* Dark theme, toggled by data-theme on <html> and stored in localStorage */
[data-theme="dark"] {
  --bg: #070f1a;
  --bg-soft: #0c1826;
  --bg-panel: #0f1d2e;
  --bg-inverse: #040b14;
  --text: #eaf1f4;
  --text-soft: #a9bac6;
  --text-faint: #7f909c;
  --line: #1c2c3e;
  --line-strong: #2b3d51;
  --brand: var(--green-400);
  --brand-strong: var(--green-500);
  --brand-soft: rgba(23, 192, 140, 0.12);
  --focus: var(--green-400);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-3);
  color: var(--text);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--sp-4); color: var(--text-soft); }

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

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

ul, ol { padding-left: 1.15rem; }
li { margin-bottom: var(--sp-2); color: var(--text-soft); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

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

::selection { background: var(--brand); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--jet-800);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  z-index: 200;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-2); color: #fff; }

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

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.section { padding: var(--sp-9) 0; }
.section--tight { padding: var(--sp-8) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark {
  background: var(--jet-800);
  color: #eaf1f4;
}
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark p { color: #b6c6d4; }

.section-head {
  max-width: 720px;
  margin: 0 auto var(--sp-7);
  text-align: center;
}
.section-head--left { margin-left: 0; text-align: left; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 var(--sp-3);
  display: block;
}
.section--dark .eyebrow { color: var(--green-400); }

.lede { font-size: var(--fs-lg); color: var(--text-soft); }

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

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-8);
  align-items: center;
}

/* --------------------------------------------------------------------------
   4. Buttons, badges, chips
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
    border-color var(--transition), color var(--transition);
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover { background: var(--brand-strong); color: #fff; }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--light {
  background: #fff;
  color: var(--jet-800);
}
.btn--light:hover { background: #eaf1f4; color: var(--jet-800); }

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn--outline-light:hover { border-color: #fff; color: #fff; }

.btn--sm { padding: 0.55rem 0.95rem; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.badge--amber { background: var(--amber-050); color: #a76a00; }
.badge--muted { background: var(--bg-soft); color: var(--text-faint); }
[data-theme="dark"] .badge--amber { background: rgba(255, 176, 32, 0.14); color: var(--amber-500); }
[data-theme="dark"] .badge { color: var(--green-400); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-panel);
  font-size: var(--fs-sm);
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   5. Header and navigation
   -------------------------------------------------------------------------- */
.announce {
  background: var(--jet-900);
  color: #cfe6dd;
  font-size: var(--fs-sm);
  text-align: center;
  padding: 9px var(--sp-4);
}
.announce a { color: var(--green-400); font-weight: 600; }
.announce strong { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg); /* fallback for browsers without color-mix */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--sp-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand svg { flex: none; }
.brand span em { font-style: normal; color: var(--brand); }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list > li { margin: 0; position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: var(--fs-base);
  font-weight: 500;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--brand); }
.nav-link[aria-current="page"] { font-weight: 600; }

.nav-caret { transition: transform var(--transition); }
.nav-link[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 264px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sp-2);
  list-style: none;
  margin: 0;
  display: none;
}
.dropdown[data-open="true"] { display: block; }
.dropdown li { margin: 0; }
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--fs-sm);
}
.dropdown a small { display: block; color: var(--text-faint); font-weight: 400; }
.dropdown a:hover { background: var(--bg-soft); color: var(--brand); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text-soft);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   6. Hero (flight deck)
   -------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(23, 192, 140, 0.28), transparent 60%),
    radial-gradient(700px 360px at 8% 110%, rgba(255, 176, 32, 0.14), transparent 60%),
    var(--jet-800);
  color: #eaf1f4;
  padding: var(--sp-8) 0 var(--sp-9);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}

.hero h1 { color: #fff; margin-bottom: var(--sp-4); }
.hero h1 em { font-style: normal; color: var(--green-400); }
.hero p { color: #b6c6d4; font-size: var(--fs-lg); max-width: 34ch; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-400);
  border: 1px solid rgba(58, 214, 166, 0.35);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  margin-bottom: var(--sp-5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: var(--sp-5) 0 var(--sp-4);
}

.hero-note {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: #8ea3b4;
  letter-spacing: 0.04em;
}

/* Dispatch board: the signature element */
.board {
  background: rgba(6, 16, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.board-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8ea3b4;
}
.board-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green-400);
}
.board-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.board-rows { margin: 0; padding: 0; list-style: none; }
.board-row {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0;
  font-size: var(--fs-sm);
}
.board-row:last-child { border-bottom: 0; }
.board-time {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: #6f8496;
}
.board-title { color: #dce8ef; line-height: 1.4; }
.board-title small { display: block; color: #6f8496; font-family: var(--font-mono); font-size: 11px; }
.board-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.st-queued { background: rgba(255, 255, 255, 0.08); color: #a9bac6; }
.st-writing { background: rgba(255, 176, 32, 0.16); color: var(--amber-500); }
.st-optimizing { background: rgba(94, 160, 255, 0.16); color: #7fb2ff; }
.st-published { background: rgba(23, 192, 140, 0.16); color: var(--green-400); }

.board-foot {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: #8ea3b4;
}
.board-foot b { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   7. Logos / stats / rails
   -------------------------------------------------------------------------- */
.trust {
  border-bottom: 1px solid var(--line);
  padding: var(--sp-6) 0;
  background: var(--bg);
}
.trust p {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-4);
}
.logo-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sp-6);
}
.logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-faint);
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.stat {
  padding: var(--sp-5);
  border-left: 2px solid var(--brand);
  background: var(--bg-panel);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}
.stat span { font-size: var(--fs-sm); color: var(--text-soft); }

/* --------------------------------------------------------------------------
   8. Cards, features, steps
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-strong);
  margin-bottom: var(--sp-4);
}
[data-theme="dark"] .card-icon { color: var(--green-400); }

.feature-wide {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-6);
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: var(--sp-3);
  color: var(--text-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: 12px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--brand-strong);
  border-bottom: 2px solid var(--brand-strong);
  transform: rotate(-45deg);
}
[data-theme="dark"] .checklist li::after { border-color: var(--green-400); }

/* Flight plan (how it works) */
.flightplan {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-panel);
}
.leg {
  padding: var(--sp-5);
  border-right: 1px solid var(--line);
  position: relative;
}
.leg:last-child { border-right: 0; }
.leg-no {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  color: var(--brand);
  display: block;
  margin-bottom: var(--sp-3);
}
.leg h3 { font-size: var(--fs-base); font-weight: 700; }
.leg p { font-size: var(--fs-sm); margin: 0; }
.leg::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--brand), transparent);
  opacity: 0.5;
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  margin-bottom: var(--sp-6);
}
.tab {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
}
.tab[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.tabpanel[hidden] { display: none; }

/* Testimonials as flight logs */
.testimonial-track {
  display: flex;
  gap: var(--sp-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-4);
  scrollbar-width: thin;
}
.testimonial {
  flex: 0 0 min(420px, 85%);
  scroll-snap-align: start;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.section--dark .testimonial {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.testimonial blockquote { margin: 0 0 var(--sp-4); font-size: var(--fs-base); color: var(--text); }
.section--dark .testimonial blockquote { color: #e7eff3; }
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-sm);
  color: var(--text-faint);
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--jet-600));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  flex: none;
}
.carousel-controls {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  margin-top: var(--sp-4);
}
.carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.carousel-btn:hover { border-color: var(--brand); color: var(--brand); }

/* --------------------------------------------------------------------------
   9. Pricing
   -------------------------------------------------------------------------- */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.switch {
  position: relative;
  width: 54px; height: 30px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  cursor: pointer;
  padding: 0;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand);
  transition: transform var(--transition);
}
.switch[aria-checked="true"]::after { transform: translateX(24px); }

.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  position: relative;
}
.plan--featured {
  border-color: var(--brand);
  box-shadow: 0 20px 44px rgba(15, 156, 113, 0.16);
}
.plan-flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.plan h3 { font-size: var(--fs-lg); margin-bottom: 4px; }
.plan-sub { font-size: var(--fs-sm); color: var(--text-faint); min-height: 44px; }
.plan-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin: var(--sp-3) 0 2px;
}
.plan-price sup { font-size: 1.1rem; top: -0.7em; }
.plan-cycle { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-faint); }
.plan ul { list-style: none; padding: 0; margin: var(--sp-4) 0; flex: 1; }
.plan ul li {
  font-size: var(--fs-sm);
  padding-left: 24px;
  position: relative;
}
.plan ul li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}
.plan-support {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  border-top: 1px dashed var(--line);
  padding-top: var(--sp-3);
  margin-top: var(--sp-3);
}

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--bg-panel);
}
table.compare th,
table.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
table.compare thead th {
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: 0;
}
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td.yes { color: var(--brand-strong); font-weight: 600; }
[data-theme="dark"] table.compare td.yes { color: var(--green-400); }

/* --------------------------------------------------------------------------
   10. FAQ accordion
   -------------------------------------------------------------------------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text);
  text-align: left;
}
.faq-q .sign {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
  font-size: 1rem;
  color: var(--brand);
}
.faq-q[aria-expanded="true"] .sign { transform: rotate(45deg); background: var(--brand-soft); }
.faq-a { padding: 0 0 var(--sp-4); }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a[hidden] { display: none; }

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.field { margin-bottom: var(--sp-4); }
.field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.field .hint { font-size: var(--fs-xs); color: var(--text-faint); font-weight: 400; }

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  outline: none;
}
.textarea { min-height: 120px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237a8794' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.input[aria-invalid="true"],
.textarea[aria-invalid="true"],
.select[aria-invalid="true"] { border-color: var(--red-500); }

.error-text {
  display: block;
  color: var(--red-500);
  font-size: var(--fs-xs);
  margin-top: 5px;
  min-height: 1em;
}

.range { width: 100%; accent-color: var(--brand); }

.password-wrap { position: relative; }
.password-wrap .input { padding-right: 76px; }
.password-toggle {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--text-faint);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}
.password-toggle:hover { color: var(--brand); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-soft);
}
.checkbox input { margin-top: 4px; accent-color: var(--brand); }

.form-note { font-size: var(--fs-xs); color: var(--text-faint); }

.form-status {
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
}
.form-status[hidden] { display: none; }
.form-status--ok { background: var(--brand-soft); color: var(--brand-strong); }
.form-status--err { background: var(--red-050); color: #a5352c; }
[data-theme="dark"] .form-status--ok { color: var(--green-400); }
[data-theme="dark"] .form-status--err { background: rgba(226, 87, 76, 0.14); color: #ff9b91; }

/* Auth pages */
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
}
.auth-panel {
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-form { width: 100%; max-width: 420px; }
.auth-side {
  background:
    radial-gradient(600px 300px at 70% 10%, rgba(23, 192, 140, 0.3), transparent 60%),
    var(--jet-800);
  color: #d7e4ec;
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  align-items: center;
}
.auth-side h2 { color: #fff; }
.auth-side .checklist li { color: #b6c6d4; }
.auth-side .checklist li::before { background: rgba(23, 192, 140, 0.16); border-color: var(--green-400); }
.auth-side .checklist li::after { border-color: var(--green-400); }

/* --------------------------------------------------------------------------
   12. Generator tool
   -------------------------------------------------------------------------- */
.gen-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--sp-5);
  align-items: start;
}
.gen-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.gen-panel h2 { font-size: var(--fs-xl); }

.gen-output {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.gen-output-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.gen-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  letter-spacing: 0.06em;
}
.gen-tools { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.gen-body {
  padding: var(--sp-5);
  flex: 1;
  overflow-y: auto;
  max-height: 720px;
}
.gen-doc h1, .gen-doc h2, .gen-doc h3 { margin-top: var(--sp-5); }
.gen-doc h1 { font-size: var(--fs-2xl); margin-top: 0; }
.gen-doc h2 { font-size: var(--fs-xl); }
.gen-doc h3 { font-size: var(--fs-lg); }
.gen-doc p, .gen-doc li { font-size: var(--fs-base); }
.gen-doc .kw {
  background: var(--brand-soft);
  border-radius: 3px;
  padding: 0 3px;
  color: var(--brand-strong);
}
[data-theme="dark"] .gen-doc .kw { color: var(--green-400); }

.empty-state {
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
  color: var(--text-faint);
}
.empty-state svg { margin: 0 auto var(--sp-4); color: var(--line-strong); }

.spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
  margin: 0 auto var(--sp-4);
}
@keyframes spin { to { transform: rotate(360deg); } }

.gen-history { margin-top: var(--sp-5); }
.gen-history ol { list-style: none; padding: 0; margin: 0; }
.gen-history li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  align-items: center;
  border-bottom: 1px dashed var(--line);
  padding: 10px 0;
  font-size: var(--fs-sm);
}
.gen-history button {
  background: none;
  border: 0;
  color: var(--brand);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--fs-sm);
  text-align: left;
  padding: 0;
}

/* --------------------------------------------------------------------------
   13. Blog
   -------------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--jet-700), var(--green-600));
  position: relative;
}
.post-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
}
.post-thumb--b { background: linear-gradient(135deg, #2b3f63, var(--amber-500)); }
.post-thumb--c { background: linear-gradient(135deg, #123c4d, var(--green-400)); }
.post-body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.post-body h3 { font-size: var(--fs-lg); }
.post-body p { font-size: var(--fs-sm); flex: 1; }
.post-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: var(--fs-2xl); margin-top: var(--sp-7); }
.article h3 { font-size: var(--fs-xl); margin-top: var(--sp-6); }
.article p, .article li { font-size: 1.075rem; }
.article blockquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--brand);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article blockquote p:last-child { margin-bottom: 0; }
.article-hero { border-bottom: 1px solid var(--line); padding: var(--sp-8) 0 var(--sp-6); background: var(--bg-soft); }
.author-box {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
  background: var(--bg-panel);
  margin-top: var(--sp-7);
}
.author-box .avatar { width: 56px; height: 56px; font-size: var(--fs-base); }

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.breadcrumb li { margin: 0; color: var(--text-faint); }
.breadcrumb li + li::before { content: "/ "; color: var(--line-strong); }

.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-soft);
  margin-bottom: var(--sp-6);
}
.toc p { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--sp-2); }
.toc ol { margin: 0; }

/* --------------------------------------------------------------------------
   14. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-8) 0;
}
.page-hero h1 { font-size: var(--fs-3xl); }
.page-hero p { max-width: 62ch; font-size: var(--fs-lg); margin-bottom: 0; }

/* Legal pages */
.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: var(--fs-xl); margin-top: var(--sp-7); }
.legal h3 { font-size: var(--fs-lg); margin-top: var(--sp-5); }
.legal p, .legal li { font-size: var(--fs-base); }
.legal-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   15. CTA band + footer
   -------------------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(700px 320px at 20% 0%, rgba(23, 192, 140, 0.32), transparent 60%),
    var(--jet-800);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b6c6d4; max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

.site-footer {
  background: var(--jet-900);
  color: #9fb3c2;
  padding: var(--sp-8) 0 var(--sp-5);
  margin-top: var(--sp-9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--sp-6);
}
.site-footer h3 {
  font-size: var(--fs-sm);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  margin-bottom: var(--sp-4);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #9fb3c2; font-size: var(--fs-sm); }
.site-footer a:hover { color: var(--green-400); }
.site-footer p { color: #8296a6; font-size: var(--fs-sm); }
.footer-brand .brand { color: #fff; margin-bottom: var(--sp-4); }
.footer-brand .brand:hover { color: #fff; }

.social-row { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9fb3c2;
}
.social-row a:hover { border-color: var(--green-400); color: var(--green-400); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-sm);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* --------------------------------------------------------------------------
   16. Modal, toast, cookie banner, back-to-top
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 16, 28, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  z-index: 120;
}
.modal-backdrop[data-open="true"] { display: flex; }
.modal {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: var(--sp-6);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal h2 { font-size: var(--fs-xl); }
.modal-close {
  float: right;
  background: none;
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-faint);
  cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-summary {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
}
.modal-summary div { display: flex; justify-content: space-between; padding: 4px 0; }
.modal-summary b { color: var(--text); }

.toast-stack {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  z-index: 150;
  max-width: min(340px, calc(100vw - 2rem));
}
.toast {
  background: var(--jet-800);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--green-400);
  animation: toast-in 220ms ease;
}
.toast--warn { border-left-color: var(--amber-500); }
.toast--err { border-left-color: var(--red-500); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.cookie-banner {
  position: fixed;
  left: var(--sp-4);
  bottom: var(--sp-4);
  max-width: 420px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5);
  z-index: 140;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: var(--fs-sm); }
.cookie-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

.to-top {
  position: fixed;
  right: var(--sp-4);
  bottom: 84px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.to-top[data-visible="true"] { display: inline-flex; }
.to-top:hover { color: var(--brand); border-color: var(--brand); }

/* 404 */
.notfound { text-align: center; padding: var(--sp-9) 0; }
.notfound .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 10rem);
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, var(--green-500), var(--jet-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--sp-4);
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --fs-4xl: 2.7rem; --fs-3xl: 2.1rem; }
  .hero-grid, .split, .feature-wide { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .flightplan { grid-template-columns: repeat(2, 1fr); }
  .leg:nth-child(2) { border-right: 0; }
  .leg:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .gen-layout { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { order: 2; }
}

@media (max-width: 780px) {
  :root { --fs-4xl: 2.25rem; --fs-3xl: 1.8rem; --fs-2xl: 1.5rem; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 88vw);
    height: 100vh;
    background: var(--bg-panel);
    border-left: 1px solid var(--line);
    padding: calc(var(--header-h) + var(--sp-4)) var(--sp-5) var(--sp-6);
    transform: translateX(100%);
    transition: transform 240ms ease, visibility 240ms ease;
    overflow-y: auto;
    z-index: 95;
    display: block;
    visibility: hidden; /* keeps closed menu out of the tab order */
  }
  .nav-menu[data-open="true"] {
    transform: none;
    visibility: visible;
    box-shadow: var(--shadow-lg);
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 0.9rem 0; }
  .dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 var(--sp-3) var(--sp-3);
    background: transparent;
  }
  .nav-menu .nav-actions {
    margin-top: var(--sp-5);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-menu .nav-actions .btn { width: 100%; }
  /* On small screens the header bar keeps only the theme toggle and the
     menu button; the account buttons live inside the slide-in menu. */
  .nav-actions--desktop .btn { display: none; }
  .grid-2, .grid-3, .grid-4, .price-grid, .post-grid, .stat-band { grid-template-columns: 1fr; }
  .flightplan { grid-template-columns: 1fr; }
  .leg { border-right: 0; border-bottom: 1px solid var(--line); }
  .leg:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: var(--sp-7) 0 var(--sp-8); }
  .hero p { max-width: none; }
  .section { padding: var(--sp-8) 0; }
  .cookie-banner { left: var(--sp-3); right: var(--sp-3); max-width: none; }
  .board-row { grid-template-columns: 1fr auto; }
  .board-time { display: none; }
}

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

@media (min-width: 781px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
  }
  .nav-menu .nav-actions--mobile { display: none; }
}

@media print {
  .site-header, .site-footer, .cookie-banner, .to-top, .toast-stack, .announce { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
