/* =========================================================================
   AirNanny — Design System & Site Styles
   Signature motif: "range rings" — concentric arcs that visualize the app's
   30m+ listening range. Used in the hero, as section dividers, behind the
   how-it-works numerals, and as a footer watermark.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand colors */
  --navy: #232a5c;
  --navy-deep: #1b2149;
  --navy-ink: #161b3d;
  --orange: #f7941e;
  --orange-bright: #ffa51f;
  --cream: #f4efe4;
  --cream-dim: #eae3d1;
  --sky: #a9d4f0;
  --purple: #6c5ca6;
  --white: #ffffff;

  /* Derived */
  --text-on-cream: #232a5c;
  --text-on-cream-soft: #4b527f;
  --text-on-navy: #f4efe4;
  --text-on-navy-soft: #b9bedb;
  --ring-line: rgba(244, 239, 228, 0.16);
  --ring-line-orange: rgba(247, 148, 30, 0.35);
  --shadow-soft: 0 20px 45px -20px rgba(27, 33, 73, 0.35);
  --shadow-card: 0 12px 30px -14px rgba(35, 42, 92, 0.22);
  --shadow-btn: 0 14px 30px -12px rgba(247, 148, 30, 0.55);

  /* Type */
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6.5rem;

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  /* Layout */
  --content-width: 1180px;
  --header-h: 76px;
}

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

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-on-cream);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p {
  margin: 0;
}

svg {
  display: block;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: var(--navy-deep);
  font-weight: 800;
  padding: 0.9rem 1.4rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 999;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Type scale ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  border-radius: var(--radius-pill);
}

.section-title {
  font-size: clamp(1.9rem, 1.55rem + 1.6vw, 2.9rem);
  font-weight: 900;
  margin-top: var(--space-sm);
}

.section-lede {
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--text-on-cream-soft);
  margin-top: var(--space-sm);
  max-width: 60ch;
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-2xl);
}

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

.section-head.center .eyebrow::before {
  display: none;
}

.section-head.on-navy .section-lede {
  color: var(--text-on-navy-soft);
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: clip;
}

.section--cream {
  background: var(--cream);
  color: var(--text-on-cream);
}

.section--navy {
  background: var(--navy);
  color: var(--text-on-navy);
}

.section--navy-deep {
  background: var(--navy-deep);
  color: var(--text-on-navy);
}

.section--tight {
  padding: var(--space-2xl) 0;
}

/* ---------- Range-ring divider (signature motif) ---------- */
.ring-divider {
  position: relative;
  height: 64px;
  overflow: hidden;
}

.ring-divider svg {
  position: absolute;
  left: 50%;
  top: -180px;
  transform: translateX(-50%);
  width: 900px;
  max-width: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius-pill);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-bright), var(--orange));
  color: var(--navy-deep);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -12px rgba(247, 148, 30, 0.65);
}

.btn-ghost {
  background: transparent;
  border: 2px solid var(--ring-line-orange);
  color: inherit;
}

.btn-ghost:hover {
  border-color: var(--orange);
  background: rgba(247, 148, 30, 0.08);
}

.btn-sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.85rem;
}

/* App Store badge (built from HTML/CSS + inline SVG, no hotlinked art) */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--navy-deep);
  color: var(--white);
  border-radius: 14px;
  padding: 0.7rem 1.35rem 0.7rem 1.1rem;
  box-shadow: var(--shadow-btn);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px -14px rgba(247, 148, 30, 0.7);
}

.store-badge svg {
  flex-shrink: 0;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-badge__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--sky);
}

.store-badge__name {
  font-size: 1.2rem;
  font-weight: 800;
  font-family: var(--font-body);
}

.store-badge--light {
  background: var(--white);
  color: var(--navy-deep);
}

.store-badge--light .store-badge__eyebrow {
  color: var(--orange);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(244, 239, 228, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(35, 42, 92, 0.08);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 24px -18px rgba(27, 33, 73, 0.4);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--navy);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 14px -6px rgba(35, 42, 92, 0.4);
}

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

.main-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-weight: 700;
  font-size: 0.95rem;
}

.main-nav__list a {
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.main-nav__list a:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Language switcher */
.lang-switch {
  position: relative;
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(35, 42, 92, 0.15);
  background: var(--white);
  color: var(--navy);
}

.lang-switch__btn:hover {
  border-color: var(--orange);
}

.lang-switch__caret {
  transition: transform 0.15s ease;
}

.lang-switch[data-open="true"] .lang-switch__caret {
  transform: rotate(180deg);
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 0.5rem;
  min-width: 168px;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 50;
}

.lang-switch[data-open="true"] .lang-switch__menu {
  display: flex;
}

.lang-switch__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.lang-switch__menu a:hover {
  background: var(--cream);
}

.lang-switch__menu a[aria-current="true"] {
  color: var(--orange);
  background: rgba(247, 148, 30, 0.1);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(35, 42, 92, 0.15);
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: var(--radius-pill);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 140% at 15% -10%, #313a78 0%, var(--navy) 42%, var(--navy-deep) 100%);
  color: var(--text-on-navy);
  padding: var(--space-2xl) 0 var(--space-3xl);
  position: relative;
  overflow: clip;
}

.hero__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 22%, rgba(244,239,228,.55) 0, transparent 60%),
    radial-gradient(2px 2px at 28% 68%, rgba(244,239,228,.4) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 68% 15%, rgba(244,239,228,.5) 0, transparent 60%),
    radial-gradient(2px 2px at 82% 55%, rgba(244,239,228,.35) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 46% 82%, rgba(244,239,228,.4) 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 80%, rgba(244,239,228,.3) 0, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
}

.hero__copy h1 {
  font-size: clamp(2.35rem, 1.85rem + 2.4vw, 3.6rem);
  color: var(--white);
}

.hero__copy h1 .hl {
  color: var(--orange-bright);
}

.hero__sub {
  margin-top: var(--space-md);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  color: var(--text-on-navy-soft);
  max-width: 52ch;
}

.hero__cta-row {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.hero__trust {
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text-on-navy-soft);
  font-size: 0.95rem;
}

.hero__trust .stars {
  color: var(--orange-bright);
  letter-spacing: 0.05em;
}

.hero__chips {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(244, 239, 228, 0.08);
  border: 1px solid rgba(244, 239, 228, 0.18);
  color: var(--text-on-navy);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
}

.chip svg {
  color: var(--orange-bright);
  flex-shrink: 0;
}

/* Hero visual: phone + range rings */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}

.range-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.range-rings svg {
  width: 620px;
  max-width: 130%;
  height: auto;
}

.range-rings circle {
  fill: none;
  stroke: var(--ring-line-orange);
  stroke-width: 1.5;
}

.range-rings .ring-pulse {
  transform-origin: center;
  animation: ring-pulse 4.5s ease-out infinite;
}

.range-rings .ring-pulse.delay-1 {
  animation-delay: 1.5s;
}

.range-rings .ring-pulse.delay-2 {
  animation-delay: 3s;
}

@keyframes ring-pulse {
  0% {
    opacity: 0.9;
    transform: scale(0.72);
  }
  70% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.hero__blob--orange {
  width: 190px;
  height: 190px;
  background: radial-gradient(circle at 35% 30%, var(--orange-bright), transparent 70%);
  opacity: 0.55;
  top: 6%;
  right: 4%;
}

.hero__blob--sky {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 35% 30%, var(--sky), transparent 70%);
  opacity: 0.35;
  bottom: 4%;
  left: 2%;
}

.range-label {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-deep);
  border: 1px solid var(--ring-line-orange);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}

.range-label strong {
  color: var(--orange-bright);
}

/* ---------- Phone frame ---------- */
.phone-frame {
  position: relative;
  width: 250px;
  aspect-ratio: 1242 / 2208;
  background: var(--navy-ink);
  border-radius: 38px;
  padding: 10px;
  box-shadow: var(--shadow-soft), 0 0 0 2px rgba(244, 239, 228, 0.06) inset;
}

.phone-frame__screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: var(--navy);
}

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

.phone-frame__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 18px;
  background: var(--navy-ink);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-frame--lg {
  width: 290px;
}

/* ---------- Value / download band ---------- */
.value-band {
  background: var(--cream-dim);
}

.value-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
}

.value-band__copy h2 {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
}

.value-band__copy p {
  margin-top: var(--space-2xs);
  color: var(--text-on-cream-soft);
  max-width: 46ch;
}

.value-band__list {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.value-band__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.value-band__list svg {
  color: var(--orange);
  flex-shrink: 0;
}

.value-band__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.value-band__note {
  font-size: 0.82rem;
  color: var(--text-on-cream-soft);
  font-weight: 700;
}

/* ---------- Screenshot gallery ---------- */
.gallery {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  padding: var(--space-sm) var(--space-3xs) var(--space-lg);
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) transparent;
}

.gallery::-webkit-scrollbar {
  height: 8px;
}

.gallery::-webkit-scrollbar-thumb {
  background: rgba(247, 148, 30, 0.5);
  border-radius: var(--radius-pill);
}

.gallery__card {
  flex: 0 0 auto;
  width: 230px;
  scroll-snap-align: start;
  text-align: center;
}

.gallery__card .phone-frame {
  margin: 0 auto;
}

.gallery__caption {
  margin-top: var(--space-md);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--navy);
}

.gallery__sub {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-on-cream-soft);
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  overflow: hidden;
}

.step__ring {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  opacity: 0.5;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange));
  color: var(--navy-deep);
  font-weight: 900;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.step h3 {
  margin-top: var(--space-md);
  font-size: 1.1rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.step p {
  margin-top: 0.5rem;
  color: var(--text-on-navy-soft);
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
}

.step--carrot h3::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 0.4rem;
  background: var(--orange);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  border-radius: 2px;
  vertical-align: middle;
}

/* ---------- Guide cards ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.guide-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -16px rgba(35, 42, 92, 0.28);
}

.guide-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sky), #dff0fb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: var(--space-md);
}

.guide-card h3 {
  font-size: 1.12rem;
  color: var(--navy);
}

.guide-card p {
  margin-top: 0.5rem;
  color: var(--text-on-cream-soft);
  font-size: 0.92rem;
  flex-grow: 1;
}

.guide-card__link {
  margin-top: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  color: var(--orange);
  font-size: 0.92rem;
}

.guide-card__link svg {
  transition: transform 0.15s ease;
}

.guide-card:hover .guide-card__link svg {
  transform: translateX(4px);
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 1.15rem 1.4rem;
  background: none;
  border: none;
  text-align: left;
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-item__icon svg {
  transition: transform 0.2s ease;
}

.faq-item[data-open="true"] .faq-item__icon {
  background: var(--orange);
}

.faq-item[data-open="true"] .faq-item__icon svg {
  transform: rotate(45deg);
  color: var(--white);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-item[data-open="true"] .faq-item__a {
  max-height: 340px;
}

.faq-item__a-inner {
  padding: 0 1.4rem 1.3rem;
  color: var(--text-on-cream-soft);
  font-size: 0.96rem;
}

.faq-item__a-inner a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
  font-weight: 800;
  color: var(--orange);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: radial-gradient(120% 160% at 85% 0%, #3a447f 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
}

.cta-band__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.cta-band h2 {
  font-size: clamp(1.9rem, 1.55rem + 1.6vw, 2.7rem);
  max-width: 18ch;
}

.cta-band p {
  color: var(--text-on-navy-soft);
  max-width: 50ch;
  font-size: 1.05rem;
}

.cta-band__rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--text-on-navy-soft);
  padding: var(--space-2xl) 0 var(--space-lg);
  position: relative;
  overflow: clip;
}

.site-footer__watermark {
  position: absolute;
  right: -120px;
  bottom: -160px;
  opacity: 0.12;
  pointer-events: none;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  position: relative;
}

.footer-brand .brand {
  color: var(--white);
}

.footer-brand p {
  margin-top: var(--space-sm);
  max-width: 34ch;
  font-size: 0.92rem;
}

.footer-brand .lang-switch__btn {
  margin-top: var(--space-md);
  background: rgba(244, 239, 228, 0.06);
  border-color: rgba(244, 239, 228, 0.2);
  color: var(--white);
}

.footer-brand .lang-switch__menu {
  background: var(--white);
}

.footer-col h4 {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-bright);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--orange-bright);
}

.site-footer__bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(244, 239, 228, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.85rem;
  position: relative;
}

.site-footer__legal {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.site-footer__legal a:hover {
  color: var(--orange-bright);
}

/* ---------- Breadcrumbs (guide pages) ---------- */
.breadcrumbs {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-on-cream-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumbs a:hover {
  color: var(--orange);
}

.breadcrumbs__sep {
  opacity: 0.5;
}

.breadcrumbs [aria-current="page"] {
  color: var(--navy);
}

/* ---------- Article (guide) layout ---------- */
.article-hero {
  background: radial-gradient(120% 140% at 15% -10%, #313a78 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-2xl);
}

.article-hero .breadcrumbs,
.article-hero .breadcrumbs a {
  color: var(--text-on-navy-soft);
}

.article-hero .breadcrumbs [aria-current="page"] {
  color: var(--white);
}

.article-hero h1 {
  margin-top: var(--space-md);
  font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  max-width: 22ch;
}

.article-hero__lede {
  margin-top: var(--space-md);
  font-size: 1.1rem;
  color: var(--text-on-navy-soft);
  max-width: 62ch;
}

.article-hero__meta {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-2xl);
  align-items: start;
}

.prose {
  max-width: 68ch;
  font-size: 1.03rem;
}

.prose h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
  color: var(--navy);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-2xs);
}

.prose p {
  margin-bottom: var(--space-md);
  color: var(--text-on-cream-soft);
}

.prose p strong {
  color: var(--navy);
}

.prose ul,
.prose ol {
  margin: 0 0 var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.prose ul li,
.prose ol li {
  padding-left: 1.7rem;
  position: relative;
  color: var(--text-on-cream-soft);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 9px;
  height: 9px;
  background: var(--orange);
  border-radius: 50%;
}

.prose ol {
  counter-reset: prose-step;
}

.prose ol li::before {
  counter-increment: prose-step;
  content: counter(prose-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-md);
  font-size: 0.92rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--cream-dim);
}

.prose th {
  color: var(--navy);
  font-weight: 800;
  background: var(--cream-dim);
}

.prose td {
  color: var(--text-on-cream-soft);
}

.callout {
  background: var(--white);
  border: 1px solid var(--cream-dim);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-card);
}

.callout p {
  margin-bottom: 0;
}

.mid-cta {
  margin: var(--space-xl) 0;
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  color: var(--white);
}

.mid-cta h3 {
  font-size: 1.05rem;
  color: var(--white);
}

.mid-cta p {
  color: var(--text-on-navy-soft);
  font-size: 0.88rem;
  margin-top: 0.25rem;
}

/* Article sidebar */
.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.aside-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.aside-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.aside-card .btn {
  width: 100%;
  margin-top: var(--space-sm);
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.aside-list a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-on-cream-soft);
  transition: color 0.15s ease;
}

.aside-list a:hover {
  color: var(--orange);
}

/* Mini FAQ in guides reuses .faq-item but left aligned, no max-width center */
.article-body .faq-list {
  max-width: none;
  margin: 0;
}

/* Related guides grid at end of article */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* Guides hub intro */
.hub-intro {
  max-width: 760px;
}

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

.text-center {
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0;
  }

  /* Flatten copy so the phone visual can sit between the trust line and the chips */
  .hero__copy {
    display: contents;
  }

  .hero__copy .eyebrow { order: 1; }
  .hero__copy h1 { order: 2; }
  .hero__sub { order: 3; }
  .hero__cta-row { order: 4; }
  .hero__trust { order: 5; }

  .hero__visual {
    order: 6;
    min-height: 380px;
    margin-top: var(--space-xl);
  }

  .hero__chips {
    order: 7;
  }

  .hero__cta-row,
  .hero__chips,
  .hero__trust {
    justify-content: center;
  }

  .hero__sub {
    margin-left: auto;
    margin-right: auto;
  }

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

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

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

  .article-body {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .article-aside .aside-card {
    flex: 1 1 260px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 68px;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--cream);
    padding: var(--space-lg);
    flex-direction: column;
    align-items: stretch;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow-y: auto;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 1.1rem;
  }

  .main-nav__list a {
    padding: 0.9rem 0.2rem;
    border-bottom: 1px solid rgba(35, 42, 92, 0.08);
  }

  .header-actions .btn-sm.store-badge-mini {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .value-band__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .value-band__list {
    justify-content: center;
  }

  .value-band__cta {
    align-items: center;
    width: 100%;
  }

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

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

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .mid-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .section {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding: 0 var(--space-md);
  }

  .gallery__card {
    width: 200px;
  }
}
