/* ==========================================================================
   Foodr — marketing site
   Design tokens ported 1:1 from the app theme:
     app/src/main/kotlin/com/overd/foodr/theme/FdrColors.kt
     app/src/main/kotlin/com/overd/foodr/theme/FdrMesh.kt
     app/src/main/kotlin/com/overd/foodr/theme/FdrGlass.kt
     app/src/main/kotlin/com/overd/foodr/theme/FdrShapes.kt
     app/src/main/kotlin/com/overd/foodr/theme/FdrTypography.kt
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --orange: #e67e00;
  --orange-light: #f3a34f;
  --orange-dark: #cc6f00;
  --orange-soft: #fff1e0;

  /* Neutrals (app Gray scale) */
  --white: #fff;
  --black: #000;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  --warm-black: #221b10;

  /* Feedback */
  --success: #4caf50;
  --error: #ca2b4d;
  --warning: #f7c94b;
  --info: #2196f3;

  /* Semantic surfaces */
  --bg: #fdf7ef;
  --surface: #fff;
  --text: var(--gray-900);
  --text-muted: var(--gray-700);
  --text-subtle: var(--gray-500);
  --border: var(--gray-300);
  --accent: var(--orange);
  --accent-hover: var(--orange-dark);
  --on-accent: #fff;

  /* Glass (app FdrGlass.light) */
  --glass-fill: rgba(255, 255, 255, 0.72);
  --glass-fill-solid: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(224, 224, 224, 0.7);
  --glass-blur: 18px;

  /* Radii (app FdrShapes) */
  --r-xs: 4px;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Type scale (app FdrTypography) */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --fs-display: clamp(2.6rem, 6vw, 4rem);
  --fs-h2: clamp(1.9rem, 3.6vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2.2vw, 1.5rem);
  --fs-body-l: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.9375rem;

  /* Layout */
  --container: 1160px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --shadow-sm: 0 1px 2px rgba(34, 27, 16, 0.06);
  --shadow-md: 0 8px 24px rgba(34, 27, 16, 0.08);
  --shadow-lg: 0 24px 60px rgba(34, 27, 16, 0.14);
  --shadow-glow: 0 14px 40px rgba(230, 126, 0, 0.28);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--bg);
}

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

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: var(--fs-display);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--orange);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-s) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

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

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-full);
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  font-size: var(--fs-body-l);
  color: var(--text-muted);
  line-height: 1.65;
}

.text-muted {
  color: var(--text-muted);
}

/* ---------- Mesh background (app FdrMesh.light) ---------- */
.mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 62% 62% at 12% 6%,
      rgba(243, 163, 79, 0.4),
      transparent 70%
    ),
    radial-gradient(
      ellipse 55% 55% at 88% 16%,
      rgba(255, 217, 160, 0.34),
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 60% at 30% 52%,
      rgba(255, 233, 214, 0.45),
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 50% at 92% 72%,
      rgba(127, 216, 206, 0.16),
      transparent 70%
    ),
    radial-gradient(
      ellipse 45% 45% at 6% 92%,
      rgba(108, 99, 210, 0.1),
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 50% at 70% 95%,
      rgba(230, 126, 0, 0.1),
      transparent 70%
    ),
    var(--bg);
}

/* A section that carries the mesh backdrop. `isolation` keeps the gradient
   inside the section's own stacking context so it can never bleed over the
   content of the next section. */
.mesh-section {
  position: relative;
  isolation: isolate;
}

.mesh-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(
      ellipse 62% 62% at 12% 6%,
      rgba(243, 163, 79, 0.4),
      transparent 70%
    ),
    radial-gradient(
      ellipse 55% 55% at 88% 16%,
      rgba(255, 217, 160, 0.34),
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 60% at 30% 52%,
      rgba(255, 233, 214, 0.45),
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 50% at 92% 72%,
      rgba(127, 216, 206, 0.16),
      transparent 70%
    ),
    radial-gradient(
      ellipse 45% 45% at 6% 92%,
      rgba(108, 99, 210, 0.1),
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 50% at 70% 95%,
      rgba(230, 126, 0, 0.1),
      transparent 70%
    );
  background-color: var(--bg);
}

.mesh-section > .container {
  position: relative;
  z-index: 1;
}

/* ---------- Glass surface ---------- */
.glass {
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-md);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-m);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease, color 0.16s ease;
  text-align: center;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-2px);
}

.btn--ghost {
  background: var(--glass-fill-solid);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  color: var(--accent-hover);
  border-color: var(--orange-light);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
}

/* Google Play badge (official brand asset styling) */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.4rem 0.7rem 1.1rem;
  background: var(--black);
  color: #fff;
  border-radius: var(--r-m);
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.play-badge:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.play-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.play-badge__small {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.play-badge__large {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 247, 239, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid rgba(224, 224, 224, 0.6);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 2px;
  background: var(--accent);
  transition: right 0.2s ease;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after {
  right: 0;
}

.nav__cta {
  padding: 0.6rem 1.15rem;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--glass-fill-solid);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  align-items: center;
  justify-content: center;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
}

.nav-toggle__bars::before {
  transform: translateY(-6px);
}

.nav-toggle__bars::after {
  transform: translateY(6px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__title {
  margin-bottom: 1rem;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  max-width: 34rem;
  margin-bottom: 2rem;
  font-size: var(--fs-body-l);
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero__note {
  font-size: var(--fs-small);
  color: var(--text-subtle);
  margin: 0;
}

/* ---------- Phone mockup ---------- */
/* The screenshots are captured from a Pixel 10 Pro emulator and already carry
   the device bezel, so no CSS frame is drawn around them any more. */
.phone {
  position: relative;
  width: min(300px, 78vw);
  margin-inline: auto;
  filter: drop-shadow(0 22px 40px rgba(24, 18, 10, 0.28));
}

.phone__screen {
  position: relative;
  overflow: hidden;
}

.phone__screen img {
  display: block;
  width: 100%;
  height: auto;
}

.phone--tilt {
  transform: rotate(-3deg);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__glow {
  position: absolute;
  inset: 8% 4%;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(243, 163, 79, 0.5),
    transparent 65%
  );
  filter: blur(40px);
  z-index: -1;
}

/* ---------- Value strip ---------- */
.value-strip {
  position: relative;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-block: 1px solid rgba(224, 224, 224, 0.7);
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.value-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.value {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.value__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-m);
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.value__icon svg {
  width: 21px;
  height: 21px;
}

.value__title {
  margin: 0 0 0.15rem;
  font-size: 1rem;
  font-weight: 600;
}

.value__text {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Problem ---------- */
.problem {
  position: relative;
}

.problem__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.problem__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.problem__item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-sm);
  font-size: 1.02rem;
  color: var(--text);
}

.problem__item svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--accent);
}

/* ---------- Feature rows ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.feature + .feature {
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
}

.feature--reverse .feature__media {
  order: -1;
}

.feature__copy h3 {
  margin-bottom: 0.6rem;
}

.feature__copy p {
  color: var(--text-muted);
  font-size: 1.03rem;
  max-width: 30rem;
}

.feature__list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.feature__list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text);
  font-size: 0.98rem;
}

.feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cc6f00' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.feature__media {
  position: relative;
  display: flex;
  justify-content: center;
}

.feature__media .phone {
  width: min(268px, 72vw);
}

/* Split pair (map + chat card) */
.feature__pair {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
}

.feature__pair .phone {
  width: min(250px, 58vw);
}

/* Two phones side by side (scanner + receipt scanner) */
.feature__pair--phones .phone {
  width: min(235px, 55vw);
}

.phone--overlap {
  margin-left: -2.75rem;
  transform: translateY(1.75rem) rotate(3deg);
  z-index: 1;
}

.chat-card {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(330px, 68vw);
  margin-top: 3.5rem;
  margin-left: -1.75rem;
  padding: 0.6rem;
  background: var(--glass-fill-solid);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

.chat-card img {
  width: 100%;
  border-radius: var(--r-m);
  background: var(--gray-50);
}

.chat-card figcaption {
  padding: 0.7rem 0.55rem 0.35rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  counter-reset: step;
}

.step {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.step__num {
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  border-radius: var(--r-full);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow-glow);
}

.step__num::before {
  content: counter(step);
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---------- Roger band ---------- */
.band {
  position: relative;
  overflow: hidden;
  background: var(--warm-black);
  color: #f3ece3;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 50% 60% at 10% 4%,
      rgba(230, 126, 0, 0.44),
      transparent 70%
    ),
    radial-gradient(
      ellipse 45% 50% at 90% 14%,
      rgba(255, 138, 61, 0.36),
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 55% at 94% 60%,
      rgba(59, 47, 143, 0.34),
      transparent 70%
    ),
    radial-gradient(
      ellipse 45% 45% at 6% 66%,
      rgba(19, 78, 74, 0.3),
      transparent 70%
    ),
    var(--warm-black);
}

.band__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.band h2 {
  color: #fff;
}

.band .lead {
  color: rgba(243, 236, 227, 0.78);
}

.band .eyebrow {
  background: rgba(243, 163, 79, 0.16);
  color: var(--orange-light);
}

.band .feature__list li {
  color: rgba(243, 236, 227, 0.92);
}

.band .feature__list li::before {
  background-color: rgba(243, 163, 79, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3a34f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* ---------- Extra grid ---------- */
.extras {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.extra {
  padding: 1.5rem 1.35rem;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.extra:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.extra__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  border-radius: var(--r-m);
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.extra__icon svg {
  width: 21px;
  height: 21px;
}

.extra h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.extra p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 50rem;
  margin-inline: auto;
}

.faq__item {
  background: var(--glass-fill-solid);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq__item[open] {
  box-shadow: var(--shadow-md);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-size: 1.03rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q:hover {
  color: var(--accent-hover);
}

.faq__q::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__q::after {
  transform: rotate(-135deg) translateY(-2px);
}

.faq__a {
  padding: 0 1.4rem 1.35rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 42rem;
}

.faq__a p:last-child {
  margin-bottom: 0;
}

.faq__a a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Final CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.cta__box {
  position: relative;
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-lg);
}

.cta__box h2 {
  margin-bottom: 0.6rem;
}

.cta__box p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--warm-black);
  color: rgba(243, 236, 227, 0.72);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  font-size: 0.92rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(243, 236, 227, 0.12);
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer .brand:hover {
  color: #fff;
}

.site-footer__tagline {
  max-width: 24rem;
  color: rgba(243, 236, 227, 0.62);
  line-height: 1.6;
}

.site-footer h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer a {
  color: rgba(243, 236, 227, 0.72);
}

.site-footer a:hover {
  color: var(--orange-light);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  color: rgba(243, 236, 227, 0.55);
  font-size: 0.85rem;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.legal h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.legal__updated {
  color: var(--text-subtle);
  font-size: var(--fs-small);
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

/* ---------- Scroll reveal ----------
   Scoped to `.js` so the page is fully readable if the script is blocked or
   fails — content must never be permanently invisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media print {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid,
  .problem__grid,
  .feature,
  .band__inner {
    grid-template-columns: 1fr;
  }

  .feature--reverse .feature__media {
    order: 0;
  }

  .extras {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin-top: 1rem;
    justify-content: center;
  }

  .site-header__inner {
    position: relative;
  }
}

@media (max-width: 720px) {
  .value-strip__grid {
    grid-template-columns: 1fr;
  }

  .extras {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__actions,
  .cta__actions {
    justify-content: center;
  }

  .feature__pair {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .feature__pair {
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
  }

  .chat-card {
    width: min(300px, 78vw);
    margin: 0;
    transform: none;
  }

  .phone--overlap {
    margin-left: 0;
    transform: none;
  }
}

/* ---------- Dark mode (app FdrColors.dark / FdrMesh.dark) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #140f08;
    --surface: #000;
    --text: #fff;
    --text-muted: var(--gray-300);
    --text-subtle: var(--gray-500);
    --border: var(--gray-700);
    --accent: var(--orange-light);
    --accent-hover: var(--orange-dark);
    --on-accent: var(--gray-900);
    --orange-soft: rgba(243, 163, 79, 0.16);

    --glass-fill: rgba(66, 66, 66, 0.72);
    --glass-fill-solid: rgba(34, 34, 34, 0.92);
    --glass-border: rgba(154, 163, 199, 0.22);
  }

  .mesh {
    background-image:
      radial-gradient(
        ellipse 60% 60% at 10% 4%,
        rgba(230, 126, 0, 0.44),
        transparent 70%
      ),
      radial-gradient(
        ellipse 55% 55% at 90% 14%,
        rgba(255, 138, 61, 0.36),
        transparent 70%
      ),
      radial-gradient(
        ellipse 58% 58% at 94% 60%,
        rgba(59, 47, 143, 0.34),
        transparent 70%
      ),
      radial-gradient(
        ellipse 52% 52% at 6% 66%,
        rgba(19, 78, 74, 0.3),
        transparent 70%
      ),
      radial-gradient(
        ellipse 55% 55% at 50% 98%,
        rgba(243, 163, 79, 0.26),
        transparent 70%
      );
    background-color: #140f08;
  }

  .mesh-section::before {
    background-image:
      radial-gradient(
        ellipse 60% 60% at 10% 4%,
        rgba(230, 126, 0, 0.44),
        transparent 70%
      ),
      radial-gradient(
        ellipse 55% 55% at 90% 14%,
        rgba(255, 138, 61, 0.36),
        transparent 70%
      ),
      radial-gradient(
        ellipse 58% 58% at 94% 60%,
        rgba(59, 47, 143, 0.34),
        transparent 70%
      ),
      radial-gradient(
        ellipse 52% 52% at 6% 66%,
        rgba(19, 78, 74, 0.3),
        transparent 70%
      ),
      radial-gradient(
        ellipse 55% 55% at 50% 98%,
        rgba(243, 163, 79, 0.26),
        transparent 70%
      );
    background-color: #140f08;
  }

  .site-header {
    background: rgba(20, 15, 8, 0.78);
    border-bottom-color: rgba(66, 66, 66, 0.5);
  }

  .value-strip {
    background: rgba(0, 0, 0, 0.28);
    border-block-color: rgba(66, 66, 66, 0.6);
  }

  .value__icon,
  .extra__icon {
    background: rgba(243, 163, 79, 0.16);
    color: var(--orange-light);
  }

  .eyebrow {
    background: rgba(243, 163, 79, 0.16);
    color: var(--orange-light);
  }

  .btn--ghost {
    background: rgba(66, 66, 66, 0.5);
    border-color: var(--gray-700);
  }

  .nav-toggle {
    background: rgba(66, 66, 66, 0.5);
  }

  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    background: #fff;
  }

  .nav {
    background: var(--bg);
  }

  .nav__link {
    border-bottom-color: var(--gray-800);
  }

  .cta__box {
    background: rgba(34, 34, 34, 0.62);
    border-color: rgba(154, 163, 199, 0.2);
  }

  .problem__item,
  .step,
  .extra {
    background: rgba(66, 66, 66, 0.5);
  }

  .phone {
    filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.55));
  }
}
