/* ==========================================================================
   JoltCrankStart — Design Tokens & Component Styles
   Art direction: authoritative roadside-assistance platform.
   Deep graphite/navy neutrals + a single amber "spark" accent (battery/jump-start
   motif) — deliberately avoiding the blue-purple AI-gradient cliché.
   Display: Cabinet Grotesk (Fontshare) · Body: Satoshi (Fontshare)
   ========================================================================== */

:root {
  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  --text-hero: clamp(2.5rem, 0.5rem + 4.6vw, 4.75rem);

  /* 4px spacing system */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.3rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.85rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1180px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

/* LIGHT MODE (default) */
:root,
[data-theme='light'] {
  --color-bg: #f5f4f1;
  --color-surface: #ffffff;
  --color-surface-2: #fbfaf8;
  --color-surface-offset: #ebe9e4;
  --color-surface-offset-2: #e2dfd8;
  --color-surface-dynamic: #dad6cc;
  --color-divider: #ddd9d1;
  --color-border: #cfcbc0;

  --color-text: #1a1d1f;
  --color-text-muted: #5b5f61;
  --color-text-faint: #9a9d9e;
  --color-text-inverse: #f5f4f1;

  /* Primary accent — spark amber */
  --color-primary: #b5670e;
  --color-primary-hover: #8f5009;
  --color-primary-active: #6f3e08;
  --color-primary-highlight: #f1ddc2;

  /* Deep graphite/navy — secondary structural tone */
  --color-navy: #171c24;
  --color-navy-2: #20272f;

  --color-warning: #964219;
  --color-warning-hover: #713417;
  --color-warning-highlight: #ddcfc6;

  --color-error: #9c2c2c;
  --color-error-hover: #7a1f1f;
  --color-error-highlight: #e3cdcb;

  --color-success: #2f6b40;
  --color-success-hover: #204d2d;
  --color-success-highlight: #cfe0d1;

  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.08);
  --shadow-md: 0 6px 16px oklch(0.2 0.01 80 / 0.10);
  --shadow-lg: 0 16px 40px oklch(0.15 0.01 80 / 0.16);
}

/* DARK MODE */
[data-theme='dark'] {
  --color-bg: #14171b;
  --color-surface: #1b1f24;
  --color-surface-2: #20242a;
  --color-surface-offset: #23272d;
  --color-surface-offset-2: #2a2f36;
  --color-surface-dynamic: #333941;
  --color-divider: #2b2f35;
  --color-border: #383d44;

  --color-text: #ececea;
  --color-text-muted: #a3a7ab;
  --color-text-faint: #6c7075;
  --color-text-inverse: #14171b;

  --color-primary: #e0973f;
  --color-primary-hover: #f0ac57;
  --color-primary-active: #f5bd75;
  --color-primary-highlight: #3a3120;

  --color-navy: #0d0f13;
  --color-navy-2: #171c24;

  --color-warning: #c98552;
  --color-warning-hover: #d69869;
  --color-warning-highlight: #3d332a;

  --color-error: #c96a6a;
  --color-error-hover: #d68484;
  --color-error-highlight: #3a2929;

  --color-success: #6fae7f;
  --color-success-hover: #85bd93;
  --color-success-highlight: #263429;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 16px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #14171b;
    --color-surface: #1b1f24;
    --color-surface-2: #20242a;
    --color-surface-offset: #23272d;
    --color-surface-offset-2: #2a2f36;
    --color-surface-dynamic: #333941;
    --color-divider: #2b2f35;
    --color-border: #383d44;
    --color-text: #ececea;
    --color-text-muted: #a3a7ab;
    --color-text-faint: #6c7075;
    --color-text-inverse: #14171b;
    --color-primary: #e0973f;
    --color-primary-hover: #f0ac57;
    --color-primary-active: #f5bd75;
    --color-primary-highlight: #3a3120;
    --color-navy: #0d0f13;
    --color-navy-2: #171c24;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 6px 16px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
  }
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-12));
}

.wrap--narrow {
  max-width: var(--content-narrow);
}

.wrap--default {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

section.section--tight {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header--hidden {
  transform: translateY(-100%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav__links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--color-text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

/* ---------- Sprachwaehler (Header-Dropdown) ---------- */
.lang-switcher {
  position: relative;
}

.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding-inline: var(--space-3);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-switcher__btn:hover,
.lang-switcher__btn[aria-expanded="true"] {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.lang-switcher__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 180px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  list-style: none;
}

.lang-switcher__menu[data-open="true"] {
  display: block;
}

.lang-switcher__item {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
}

.lang-switcher__item:hover,
.lang-switcher__item[aria-selected="true"] {
  background: var(--color-surface-offset);
  color: var(--color-primary);
}

/* Mobile: eigene, immer sichtbare Liste statt Dropdown-Popover, damit sie im
   aufklappbaren Vollbild-Menue nicht abgeschnitten wird. */
.lang-switcher__menu--mobile {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  position: static;
  box-shadow: none;
  border: none;
  padding: var(--space-4) 0 0;
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  max-height: none;
  min-width: 0;
}

.lang-switcher__menu--mobile .lang-switcher__item {
  text-align: center;
  border: 1px solid var(--color-border);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

@media (max-width: 860px) {
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
  }
  /* Der "Kontakt"-Button ist bereits als Link im aufklappbaren Mobil-Menue
     enthalten (siehe #mobileMenu). Ohne dieses Ausblenden ueberlappt er auf
     schmalen Viewports mit dem Hamburger-Button und schiebt ihn aus dem
     sichtbaren Bereich. */
  .nav__actions .btn {
    display: none;
  }
  .nav__actions {
    gap: var(--space-1);
  }
  /* Sprachwaehler-Button verschlanken: auf schmalen Viewports reicht der Platz
     nicht fuer Logo + "DE"-Textlabel + Theme-Toggle + Hamburger nebeneinander,
     der Hamburger wurde sonst aus dem sichtbaren Bereich gedraengt. Text-Label
     ausblenden, nur das Globus-Icon zeigen (Funktion bleibt ueber Klick/Tap
     identisch, das international uebliche Sprach-Icon ist verstaendlich). */
  .lang-switcher__btn {
    width: 40px;
    padding-inline: 0;
    justify-content: center;
  }
  .lang-switcher__btn span {
    display: none;
  }
  .lang-switcher__menu {
    right: -8px;
  }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--color-bg);
  padding: var(--space-6);
}

.mobile-menu[data-open='true'] {
  display: flex;
  flex-direction: column;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-12);
}

.mobile-menu__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  list-style: none;
}

.mobile-menu__links a {
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}

.btn--primary {
  background: var(--color-primary);
  color: #fffaf3;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-primary-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--color-surface-offset);
}

.btn--on-dark {
  background: var(--color-primary);
  color: #17130a;
}

.btn--on-dark:hover {
  background: var(--color-primary-hover);
  color: #fffaf3;
}

/* Ghost-Button-Variante fuer dunkle Flaechen (Hero, CTA-Band), die im Light-
   Mode dauerhaft dunkel bleiben. Nutzt feste helle Werte statt der
   theme-abhaengigen --color-text/--color-border Tokens, damit der Button auf
   navy-Hintergrund in beiden Farbmodi sichtbar bleibt. */
.btn--ghost-on-dark {
  background: transparent;
  color: #faf7f2;
  border: 1px solid rgba(250, 247, 242, 0.35);
}

.btn--ghost-on-dark:hover,
.btn--ghost-on-dark:focus-visible {
  background: rgba(250, 247, 242, 0.08);
  border-color: rgba(250, 247, 242, 0.55);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: var(--color-navy);
  color: var(--color-text-inverse);
  overflow: hidden;
  padding-block: clamp(var(--space-20), 12vw, var(--space-32)) clamp(var(--space-16), 9vw, var(--space-24));
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e0973f;
  margin-bottom: var(--space-5);
}

.hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: #e0973f;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: #faf7f2;
  margin-bottom: var(--space-6);
  max-width: 16ch;
}

.hero h1 em {
  font-style: normal;
  color: #e0973f;
}

.hero__lede {
  font-size: var(--text-lg);
  color: #c7c9cc;
  max-width: 46ch;
  margin-bottom: var(--space-8);
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero__meta-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 650;
  color: #faf7f2;
}

.hero__meta-label {
  font-size: var(--text-xs);
  color: #9a9ea3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-navy-2);
  box-shadow: var(--shadow-lg);
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__art-caption {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  right: var(--space-5);
  background: oklch(0.12 0.01 260 / 0.72);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  color: #e8e6e1;
}

/* ==========================================================================
   Trust bar
   ========================================================================== */

.trustbar {
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}

.trustbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8) var(--space-10);
  padding-block: var(--space-8);
  align-items: baseline;
}

.trustbar__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.trustbar__num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 650;
  color: var(--color-text);
}

.trustbar__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Section headings
   ========================================================================== */

.section-head {
  max-width: 56ch;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.section-head--wide {
  max-width: 72ch;
}

.section-kicker {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

.section-head p {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

/* ==========================================================================
   How it works — asymmetric step flow
   ========================================================================== */

.flow {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: start;
}

@media (max-width: 900px) {
  .flow {
    grid-template-columns: 1fr;
  }
}

.flow__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.flow__steps .step:first-child {
  border-top: none;
  padding-top: 0;
}

.step__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 650;
  color: var(--color-primary);
}

.step h3 {
  font-size: var(--text-lg);
  font-weight: 650;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.step p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

.flow__panel {
  background: var(--color-navy);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  color: #e8e6e1;
}

.flow__panel h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 650;
  color: #faf7f2;
  margin-bottom: var(--space-4);
  max-width: 20ch;
}

.flow__panel p {
  color: #b9bbbe;
  margin-bottom: var(--space-6);
}

.flow__panel-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.flow__panel-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: #d7d5cf;
}

.flow__panel-item svg {
  flex-shrink: 0;
  color: #e0973f;
  margin-top: 2px;
}

/* ==========================================================================
   Roles — two-column split (requesters vs helpers)
   ========================================================================== */

.roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-6), 4vw, var(--space-8));
}

@media (max-width: 800px) {
  .roles {
    grid-template-columns: 1fr;
  }
}

.role-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-8), 4vw, var(--space-10));
}

.role-card__icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}

.role-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 650;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.role-card p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.role-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.role-card__list li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  align-items: flex-start;
}

.role-card__list svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 3px;
}

.role-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.role-card__link:hover {
  color: var(--color-primary-hover);
}

/* ==========================================================================
   Trust / safety full-bleed band
   ========================================================================== */

.safety {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.safety__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(var(--space-8), 4vw, var(--space-10));
}

@media (max-width: 860px) {
  .safety__grid {
    grid-template-columns: 1fr;
  }
}

.safety__item h3 {
  font-size: var(--text-lg);
  font-weight: 650;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.safety__item p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.safety__num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  display: block;
}

/* ==========================================================================
   Pricing / fee transparency
   ========================================================================== */

.pricing {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: start;
}

@media (max-width: 900px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}

.pricing__table {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pricing__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  flex-wrap: wrap;
}

.pricing__row:last-child {
  border-bottom: none;
}

.pricing__row dt {
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--text-sm);
  flex: 1 1 auto;
  min-width: 9rem;
}

.pricing__row dd {
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--color-primary);
  font-size: var(--text-base);
  text-align: right;
  white-space: nowrap;
  flex: 0 0 auto;
}

.pricing__note {
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   FAQ (accordion)
   ========================================================================== */

.faq {
  display: flex;
  flex-direction: column;
  max-width: var(--content-default);
}

.faq-item {
  border-top: 1px solid var(--color-divider);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--color-divider);
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-6);
  text-align: left;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
}

.faq-item__q svg {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--transition-interactive);
}

.faq-item[data-open='true'] .faq-item__q svg {
  transform: rotate(45deg);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item__a-inner {
  padding-bottom: var(--space-6);
  color: var(--color-text-muted);
  max-width: 68ch;
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta {
  background: var(--color-navy);
  color: #faf7f2;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-12), 7vw, var(--space-20));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
}

.cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 650;
  max-width: 24ch;
}

.cta p {
  color: #b9bbbe;
  margin-top: var(--space-3);
  max-width: 40ch;
}

.cta__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.legal h1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 650;
  margin-bottom: var(--space-3);
}

.legal .legal__updated {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-10);
}

.legal__body {
  max-width: 70ch;
}

.legal__body h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 650;
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.legal__body p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

.legal__draft-note {
  margin-top: var(--space-12);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-navy);
  color: #b9bbbe;
  border-top: 1px solid var(--color-divider);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-block: clamp(var(--space-16), 8vw, var(--space-20));
}

@media (max-width: 860px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: #faf7f2;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.footer__brand svg {
  width: 30px;
  height: 30px;
  color: var(--color-primary);
}

.footer__desc {
  max-width: 34ch;
  font-size: var(--text-sm);
  color: #9a9ea3;
}

.footer__col h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7d8085;
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}

.footer__col a {
  color: #c7c9cc;
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer__col a:hover {
  color: #faf7f2;
}

.footer__bottom {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: #7d8085;
}
