/* ==========================================================================
   Apex Detail Co. — demo design system (No404)
   Premium mobile auto detailing: cool light surfaces, midnight-navy darks,
   ceramic-teal "gloss" accent, amber for ratings. Space Grotesk + Inter.
   Shared by: index.html · services.html · book.html
   ========================================================================== */

/* ---------- Custom properties ---------- */
:root {
  /* color */
  --porcelain: #f4f6f9;        /* page background (cool light gray) */
  --porcelain-deep: #e9edf3;   /* alternate band */
  --white: #ffffff;
  --sky-50: #e6faf9;           /* light teal tint */
  --sky-100: #c9f1f0;
  --blue: #15b8b3;             /* primary — ceramic teal */
  --blue-deep: #0e9690;        /* hover / emphasis */
  --blue-ink: #0a5d59;         /* dark teal text on light teal */
  --slate-900: #0e1726;        /* darkest band background (midnight) */
  --slate-800: #15233a;        /* headings */
  --slate-600: #44546c;        /* body text */
  --slate-400: #8190a3;        /* muted */
  --sun: #f5b53f;              /* amber accent (ratings, flags) */
  --sun-soft: #fceccb;
  --line: #dce2ea;
  --line-soft: #eaeef4;

  /* type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* shape & depth */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(14, 23, 38, 0.07);
  --shadow: 0 10px 30px rgba(14, 23, 38, 0.1);
  --shadow-lg: 0 24px 60px rgba(14, 23, 38, 0.16);

  /* rhythm */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.25rem;
  --space-7: 5rem;

  --container: 1140px;
  --header-h: 76px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate-600);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: inline-block; vertical-align: middle; max-width: 100%; }
ul, ol { list-style: none; }
a { color: var(--blue-deep); text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 700; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--slate-800);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }

h1 em, h2 em { font-style: normal; color: var(--blue-deep); }

::selection { background: var(--sky-100); color: var(--slate-800); }

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

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section { padding-block: var(--space-7); }
.section--tight { padding-block: var(--space-6); }
.section--alt { background: var(--porcelain-deep); }
.section--white { background: var(--white); }
.section--sky { background: linear-gradient(180deg, var(--sky-50), var(--sky-100)); }
.section--slate { background: var(--slate-900); }
.section--slate h2, .section--slate h3 { color: var(--white); }
.section--slate p { color: rgba(233, 237, 243, 0.78); }

.section-head { max-width: 620px; margin-bottom: var(--space-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--space-3); font-size: 1.1rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: var(--space-3);
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.section-head--center .kicker::after {
  content: "";
  width: 26px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(21, 184, 179, 0.35);
}
.btn--primary:hover { background: var(--blue-deep); box-shadow: 0 12px 26px rgba(14, 150, 144, 0.42); }

.btn--ghost {
  background: transparent;
  color: var(--slate-800);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-deep); background: var(--sky-50); }

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }

.btn--lg { padding: 1.05rem 2.2rem; font-size: 1.08rem; }
.btn--sm { padding: 0.55rem 1.15rem; font-size: 0.92rem; }
.btn--block { width: 100%; }

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 246, 249, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { flex: 0 0 auto; border-radius: 12px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--slate-800);
  line-height: 1.05;
  display: flex;
  flex-direction: column;
  letter-spacing: -0.01em;
}
.brand__name small {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--slate-600);
  position: relative;
  padding-block: 0.35rem;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2.5px;
  background: var(--blue);
  border-radius: 2px;
  transition: right 0.22s ease;
}
.main-nav a:not(.btn):hover { color: var(--slate-800); }
.main-nav a:not(.btn):hover::after,
.main-nav a.is-active::after { right: 0; }
.main-nav a.is-active { color: var(--slate-800); }

.header-cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--slate-800);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 86% -10%, var(--sky-100) 0%, rgba(201, 241, 240, 0) 60%),
    radial-gradient(1100px 600px at -10% 110%, rgba(245, 181, 63, 0.14) 0%, rgba(245, 181, 63, 0) 55%),
    var(--porcelain);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--space-6);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem);
}
.hero .lede {
  margin-top: var(--space-4);
  font-size: 1.2rem;
  max-width: 33rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: var(--space-5);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-800);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta svg { color: var(--blue); flex: 0 0 auto; }

.hero__art { position: relative; }
.hero__scene {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  line-height: 0;
  background: var(--slate-900);
}
.hero__scene svg { width: 100%; height: auto; }

.hero__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate-800);
  animation: chip-float 5.5s ease-in-out infinite;
}
.hero__chip svg { color: var(--blue); }
.hero__chip--tl { top: 8%; left: -1.6rem; }
.hero__chip--br { bottom: 9%; right: -1.2rem; animation-delay: 2.7s; }

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
}
.trust-strip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem var(--space-4);
  padding-block: 1.1rem;
}
.trust-strip__row li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--slate-800);
}
.trust-strip__row li svg { color: var(--blue); flex: 0 0 auto; }

/* ---------- Cards ---------- */
.card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4);
  text-decoration: none;
  color: var(--slate-600);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--sky-100);
}
.card h3 { margin-bottom: 0.55rem; }
.card p { font-size: 0.97rem; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--sky-50);
  color: var(--blue-deep);
  margin-bottom: var(--space-3);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.card:hover .card__icon { background: var(--blue); color: var(--white); transform: rotate(-4deg) scale(1.05); }

.card__link {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue-deep);
}

/* ---------- Price cards (teaser + packages) ---------- */
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card--featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow);
}
.price-card__tag {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  white-space: nowrap;
}
.price-card__home {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-400);
}
.price-card h3 { margin-top: 0.4rem; }
.price-card__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  color: var(--slate-800);
  line-height: 1;
  margin-block: var(--space-3) 0.4rem;
}
.price-card__amount small {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-400);
}
.price-card p { font-size: 0.95rem; }
.price-card__list {
  text-align: left;
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.price-card__list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--slate-600);
}
.price-card__list svg { color: var(--blue); flex: 0 0 auto; margin-top: 0.2rem; }

/* ---------- Steps ---------- */
.step {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4);
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sky-50);
  color: var(--blue-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.97rem; }

/* ---------- Reviews ---------- */
.review-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.stars { color: var(--sun); font-size: 1.05rem; letter-spacing: 0.18em; }
.review-card blockquote {
  font-size: 1rem;
  color: var(--slate-600);
  flex: 1;
}
.review-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
}
.review-card figcaption strong { display: block; color: var(--slate-800); }
.review-card figcaption span span { color: var(--slate-400); }
.review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--blue-ink);
  font-weight: 700;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

/* ---------- Chips & area pills ---------- */
.chip,
.area-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--slate-800);
}
.area-pill svg { color: var(--blue); }
.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ---------- Discount / membership band ---------- */
.discount-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.discount-tile {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4);
  text-align: center;
}
.discount-tile__pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--blue);
  line-height: 1;
}
.discount-tile h3 { margin-top: 0.55rem; font-size: 1.15rem; color: var(--white); }
.discount-tile p { font-size: 0.93rem; margin-top: 0.35rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 360px at 12% 0%, rgba(21, 184, 179, 0.28) 0%, rgba(21, 184, 179, 0) 60%),
    linear-gradient(135deg, var(--slate-900), #16304a);
  color: var(--white);
  padding-block: var(--space-7);
}
.cta-band__inner { text-align: center; max-width: 680px; margin-inline: auto; }
.cta-band h2 { color: var(--white); }
.cta-band p { margin-top: var(--space-3); font-size: 1.12rem; color: rgba(233, 237, 243, 0.88); }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* ---------- Forms (booking page primitives) ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3.5vw, var(--space-6));
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.form-grid .field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field > label,
.field__label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--slate-800);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--slate-800);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21, 184, 179, 0.16);
}
.field__hint { font-size: 0.85rem; color: var(--slate-400); }

/* selectable option cards (radio/checkbox wrappers) */
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  font-size: 0.95rem;
}
.choice-card:hover { border-color: var(--blue); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card strong { color: var(--slate-800); }
.choice-card small { color: var(--slate-400); font-size: 0.84rem; }
.choice-card.is-selected,
.choice-card:has(input:checked) {
  border-color: var(--blue);
  background: var(--sky-50);
  box-shadow: 0 0 0 3px rgba(21, 184, 179, 0.14);
}
.choice-card:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }

/* live price summary */
.summary-card {
  background: var(--slate-900);
  color: rgba(233, 237, 243, 0.85);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4);
}
.summary-card h3 { color: var(--white); }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 0.45rem;
  font-size: 0.95rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}
.summary-row:last-of-type { border-bottom: 0; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-weight: 700;
}
.summary-total .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--blue);
}

/* confirmation panel */
.confirm-panel {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: var(--space-6) var(--space-4);
  max-width: 620px;
  margin-inline: auto;
}
.confirm-panel__code {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--blue-ink);
  background: var(--sky-50);
  border: 1px dashed var(--blue);
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.3rem;
  margin-block: var(--space-3);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-900);
  color: rgba(233, 237, 243, 0.72);
  padding-top: var(--space-7);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
}
.footer-brand .brand__name { color: var(--white); }
.footer-brand .brand__name small { color: var(--blue); }
.footer-brand p { margin-top: var(--space-3); max-width: 30rem; }
.site-footer h4 {
  color: var(--white);
  margin-bottom: var(--space-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.site-footer ul li { padding-block: 0.22rem; }
.site-footer a { color: rgba(233, 237, 243, 0.72); }
.site-footer a:hover { color: var(--blue); }
.footer-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-3);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: var(--space-4) calc(var(--space-4) + 3.2rem);
  font-size: 0.84rem;
  color: rgba(233, 237, 243, 0.5);
}
.footer-bottom strong { color: rgba(233, 237, 243, 0.8); }

/* ---------- No404 badge ---------- */
.n404-badge {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(14, 23, 38, 0.93);
  color: rgba(233, 237, 243, 0.85);
  border: 1px solid rgba(21, 184, 179, 0.55);
  border-radius: 999px;
  padding: 0.4rem 0.85rem 0.4rem 0.45rem;
  font-size: 0.74rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(14, 23, 38, 0.35);
  backdrop-filter: blur(4px);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.n404-badge:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  color: var(--white);
}
.n404-badge strong { color: var(--blue); }
.n404-badge__dot {
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
}

/* ---------- Reveal-on-scroll utility ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.2s; }
.reveal--d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__chip { animation: none; }
  .btn, .card, .price-card { transition: none; }
}

/* ---------- Helpers ---------- */
.text-center { text-align: center; }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { gap: var(--space-5); }
  .hero__chip--tl { left: 0.5rem; }
  .hero__chip--br { right: 0.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 66px; }

  .grid-3, .discount-row { grid-template-columns: 1fr; }
  .grid-2, .form-grid { grid-template-columns: 1fr; }

  .hero__inner { grid-template-columns: 1fr; padding-block: 2.6rem 3rem; }
  .hero .lede { font-size: 1.1rem; }
  .hero__chip { font-size: 0.8rem; }

  .trust-strip__row { justify-content: flex-start; }

  /* mobile nav */
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: var(--shadow);
    padding: 0.6rem 1.2rem 1.2rem;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a:not(.btn) {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .btn { margin-top: 0.9rem; justify-content: center; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .section { padding-block: var(--space-6); }
  .grid-4, .choice-grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .cta-band__actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand__name { font-size: 1.18rem; }
  .n404-badge { font-size: 0.68rem; }
}
