/*
 * weBBlanca — styles.css
 * 3-theme marketing site: webblanca | bmw | apple
 * All styles, all themes, all components.
 * No build step — plain CSS + CSS custom properties.
 */

/* =========================================================
   0. @import (Google Fonts)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;600;700&family=Archivo:wght@300;400;600;800&family=Inter:wght@300;400;600;700&display=swap');

/* =========================================================
   1. TOKEN SYSTEM — DEFAULT (webblanca)
   ========================================================= */
:root {
  /* --- 1.1 Semantic colour tokens (webblanca default) --- */
  --canvas:            #fffaf0;
  --canvas-2:          #faf5e8;
  --surface:           #fffdf7;
  --surface-2:         #f5f0e0;
  --surface-contrast:  #0a1a1a;
  --on-contrast:       #ffffff;
  --ink:               #0a0a0a;
  --body:              #3a3a3a;
  --muted:             #6a6a6a;
  --hairline:          #e8e2d2;
  --accent:            #0a0a0a;
  --accent-press:      #1f1f1f;
  --on-accent:         #ffffff;
  --link:              #0a0a0a;
  --link-on-dark:      #ffd6a0;
  --focus-ring:        #ff4d8b;

  /* --- Card palette (webblanca) --- */
  --card-1:  #ff4d8b; --on-1: #ffffff;
  --card-2:  #1a3a3a; --on-2: #ffffff;
  --card-3:  #b8a4ed; --on-3: #0a0a0a;
  --card-4:  #ffb084; --on-4: #0a0a0a;
  --card-5:  #e8b94a; --on-5: #0a0a0a;

  /* --- Tier featured --- */
  --tier-feat-bg:  #1a3a3a;
  --tier-feat-ink: #ffffff;

  /* --- 1.2 Typography --- */
  --font-display:       "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body:          "Inter", system-ui, sans-serif;
  --display-weight:     600;
  --display-transform:  none;
  --display-tracking:   -0.02em;
  --display-lh:         1.05;
  --body-weight:        400;
  --eyebrow-transform:  uppercase;

  /* Responsive type scale */
  --fs-display: clamp(2.6rem, 6vw, 4.5rem);
  --fs-h2:      clamp(2rem, 4vw, 3rem);
  --fs-h3:      clamp(1.3rem, 2.2vw, 1.6rem);
  --fs-lead:    clamp(1.1rem, 1.6vw, 1.4rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9375rem;
  --fs-eyebrow: 0.8125rem;

  /* --- 1.3 Shape tokens --- */
  --r-sm:    8px;
  --r-md:    12px;
  --r-lg:    20px;
  --r-xl:    28px;
  --r-btn:   12px;
  --r-pill:  9999px;
  --r-input: 12px;
  --r-chip:  9999px;

  /* --- 1.4 Motion + effects --- */
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --dur-fast:  160ms;
  --dur:       260ms;
  --dur-slow:  600ms;

  --shadow-sm:    0 2px 8px rgba(20, 15, 0, .06);
  --shadow-card:  0 10px 30px rgba(20, 15, 0, .08);
  --shadow-media: 0 18px 50px rgba(0, 0, 0, .22);

  --m-stripe: linear-gradient(
    90deg,
    #0066b1 0 33.3%,
    #1c69d4 33.3% 66.6%,
    #e22718 66.6% 100%
  );

  /* --- 1.5 Nav + footer --- */
  --nav-bg:    rgba(255, 250, 240, .82);
  --nav-ink:   #0a0a0a;
  --footer-bg: #faf5e8;
  --footer-ink: #3a3a3a;

  /* --- 2. Spacing scale --- */
  --s1: .25rem;
  --s2: .5rem;
  --s3: .75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4rem;
  --s9: 6rem;
}

/* =========================================================
   1A. THEME: webblanca (explicit override, same as root)
   ========================================================= */
:root[data-theme="webblanca"] {
  --canvas:            #fffaf0;
  --canvas-2:          #faf5e8;
  --surface:           #fffdf7;
  --surface-2:         #f5f0e0;
  --surface-contrast:  #0a1a1a;
  --on-contrast:       #ffffff;
  --ink:               #0a0a0a;
  --body:              #3a3a3a;
  --muted:             #6a6a6a;
  --hairline:          #e8e2d2;
  --accent:            #0a0a0a;
  --accent-press:      #1f1f1f;
  --on-accent:         #ffffff;
  --link:              #0a0a0a;
  --link-on-dark:      #ffd6a0;
  --focus-ring:        #ff4d8b;

  --card-1:  #ff4d8b; --on-1: #ffffff;
  --card-2:  #1a3a3a; --on-2: #ffffff;
  --card-3:  #b8a4ed; --on-3: #0a0a0a;
  --card-4:  #ffb084; --on-4: #0a0a0a;
  --card-5:  #e8b94a; --on-5: #0a0a0a;

  --tier-feat-bg:  #1a3a3a;
  --tier-feat-ink: #ffffff;

  --font-display:       "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body:          "Inter", system-ui, sans-serif;
  --display-weight:     600;
  --display-transform:  none;
  --display-tracking:   -0.02em;
  --display-lh:         1.05;
  --body-weight:        400;
  --eyebrow-transform:  uppercase;

  --r-sm:    8px;
  --r-md:    12px;
  --r-lg:    20px;
  --r-xl:    28px;
  --r-btn:   12px;
  --r-pill:  9999px;
  --r-input: 12px;
  --r-chip:  9999px;

  --shadow-sm:   0 2px 8px rgba(20, 15, 0, .06);
  --shadow-card: 0 10px 30px rgba(20, 15, 0, .08);

  --nav-bg:     rgba(255, 250, 240, .82);
  --nav-ink:    #0a0a0a;
  --footer-bg:  #faf5e8;
  --footer-ink: #3a3a3a;
}

/* =========================================================
   1B. THEME: bmw
   ========================================================= */
:root[data-theme="bmw"] {
  --canvas:            #000000;
  --canvas-2:          #0d0d0d;
  --surface:           #1a1a1a;
  --surface-2:         #262626;
  --surface-contrast:  #0d0d0d;
  --on-contrast:       #ffffff;
  --ink:               #ffffff;
  --body:              #bbbbbb;
  --muted:             #7e7e7e;
  --hairline:          #3c3c3c;
  --accent:            #ffffff;
  --accent-press:      #e6e6e6;
  --on-accent:         #000000;
  --link:              #5b9bff;
  --link-on-dark:      #5b9bff;
  --focus-ring:        #5b9bff;

  --card-1:  #1a1a1a; --on-1: #ffffff;
  --card-2:  #1a1a1a; --on-2: #ffffff;
  --card-3:  #1a1a1a; --on-3: #ffffff;
  --card-4:  #1a1a1a; --on-4: #ffffff;
  --card-5:  #1a1a1a; --on-5: #ffffff;

  --tier-feat-bg:  #0d0d0d;
  --tier-feat-ink: #ffffff;

  --font-display:       "Archivo", "Inter", system-ui, sans-serif;
  --font-body:          "Inter", system-ui, sans-serif;
  --display-weight:     800;
  --display-transform:  uppercase;
  --display-tracking:   0.005em;
  --display-lh:         1.0;
  --body-weight:        300;
  --eyebrow-transform:  uppercase;

  --r-sm:    0;
  --r-md:    0;
  --r-lg:    0;
  --r-xl:    0;
  --r-btn:   0;
  --r-pill:  0;
  --r-input: 0;
  --r-chip:  0;

  --shadow-sm:   none;
  --shadow-card: none;

  --nav-bg:     rgba(0, 0, 0, .82);
  --nav-ink:    #ffffff;
  --footer-bg:  #000000;
  --footer-ink: #bbbbbb;
}

/* =========================================================
   1C. THEME: apple
   ========================================================= */
:root[data-theme="apple"] {
  --canvas:            #ffffff;
  --canvas-2:          #f5f5f7;
  --surface:           #ffffff;
  --surface-2:         #f5f5f7;
  --surface-contrast:  #1d1d1f;
  --on-contrast:       #ffffff;
  --ink:               #1d1d1f;
  --body:              #1d1d1f;
  --muted:             #6e6e73;
  --hairline:          #e3e3e6;
  --accent:            #0066cc;
  --accent-press:      #0055b3;
  --on-accent:         #ffffff;
  --link:              #0066cc;
  --link-on-dark:      #2997ff;
  --focus-ring:        #0071e3;

  --card-1:  #f5f5f7; --on-1: #1d1d1f;
  --card-2:  #ffffff; --on-2: #1d1d1f;
  --card-3:  #f5f5f7; --on-3: #1d1d1f;
  --card-4:  #ffffff; --on-4: #1d1d1f;
  --card-5:  #f5f5f7; --on-5: #1d1d1f;

  --tier-feat-bg:  #1d1d1f;
  --tier-feat-ink: #ffffff;

  --font-display:       -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-body:          -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --display-weight:     600;
  --display-transform:  none;
  --display-tracking:   -0.022em;
  --display-lh:         1.07;
  --body-weight:        400;
  --eyebrow-transform:  uppercase;

  --r-sm:    8px;
  --r-md:    12px;
  --r-lg:    18px;
  --r-xl:    24px;
  --r-btn:   9999px;
  --r-pill:  9999px;
  --r-input: 9999px;
  --r-chip:  9999px;

  --shadow-sm:   0 4px 20px rgba(0, 0, 0, .06);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, .10);

  --nav-bg:     rgba(255, 255, 255, .72);
  --nav-ink:    #1d1d1f;
  --footer-bg:  #f5f5f7;
  --footer-ink: #6e6e73;
}

/* =========================================================
   2. THEME TRANSITION CLASS
   ========================================================= */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition:
    background-color var(--dur-slow) var(--ease),
    color var(--dur-slow) var(--ease),
    border-color var(--dur-slow) var(--ease),
    box-shadow var(--dur-slow) var(--ease) !important;
}

/* =========================================================
   3. MODERN RESET
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--body-weight);
  line-height: 1.6;
  color: var(--body);
  background-color: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease);
}

a:hover {
  opacity: .75;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* =========================================================
   4. BASE ELEMENT STYLES (headings, etc.)
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-lh);
  text-transform: var(--display-transform);
  color: var(--ink);
}

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

/* =========================================================
   5. ACCESSIBILITY
   ========================================================= */

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -9999px;
  left: var(--s4);
  z-index: 9999;
  padding: var(--s3) var(--s5);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  border-radius: var(--r-md);
  text-decoration: none;
  white-space: nowrap;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: var(--s4);
}

/* =========================================================
   6. LAYOUT PRIMITIVES
   ========================================================= */
.container {
  width: min(100% - 2.5rem, 1200px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
  background-color: var(--canvas);
}

.section--alt {
  background-color: var(--canvas-2);
}

.section--contrast {
  background-color: var(--surface-contrast);
  color: var(--on-contrast);
}

.section--contrast h1,
.section--contrast h2,
.section--contrast h3,
.section--contrast h4,
.section--contrast h5,
.section--contrast h6 {
  color: var(--on-contrast);
}

.section--contrast .ink,
.section--contrast p {
  color: var(--on-contrast);
}

/* Section header group */
.section__head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--s7);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-lh);
  text-transform: var(--display-transform);
  color: var(--ink);
  margin-bottom: var(--s4);
}

.section--contrast .section__title {
  color: var(--on-contrast);
}

.section__intro {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.55;
}

.section--contrast .section__intro {
  color: rgba(255, 255, 255, .72);
}

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: var(--eyebrow-transform);
  color: var(--muted);
  margin-bottom: var(--s4);
}

.section--contrast .eyebrow {
  color: rgba(255, 255, 255, .6);
}

/* =========================================================
   7. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: .85rem 1.4rem;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--r-btn);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    opacity var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

/* BMW uppercase buttons */
:root[data-theme="bmw"] .btn {
  text-transform: uppercase;
  letter-spacing: .08em;
}

.btn:active {
  transform: scale(.97);
}

.btn--primary {
  background-color: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.btn--primary:hover {
  background-color: var(--accent-press);
  border-color: var(--accent-press);
  opacity: 1;
}

.btn--primary:active {
  transform: scale(.97);
}

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

:root[data-theme="bmw"] .btn--ghost {
  border-color: currentColor;
}

.btn--ghost:hover {
  background-color: var(--accent);
  color: var(--on-accent);
  opacity: 1;
}

.btn--ghost:active {
  transform: scale(.97);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: var(--fs-lead);
  min-height: 56px;
}

/* Icon button — always circular */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 9999px;
  background: none;
  border: 1px solid var(--hairline);
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.icon-btn:hover {
  background-color: var(--surface-2);
}

.icon-btn:active {
  transform: scale(.97);
}

/* =========================================================
   8. NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: var(--nav-bg);
  color: var(--nav-ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--dur-fast) var(--ease),
    backdrop-filter var(--dur-fast) var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--hairline);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--s5);
  height: 64px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nav-ink);
  letter-spacing: -0.01em;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav__logo:hover {
  opacity: .8;
}

/* Double-B styling in logo */
.nav__logo .logo-bb {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s5);
  flex: 1;
  justify-content: center;
  list-style: none;
}

.nav__links a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--nav-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--dur-fast) var(--ease);
}

.nav__links a:hover {
  opacity: .65;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--s4);
  flex-shrink: 0;
  margin-left: auto;
}

/* Theme switch segmented control */
.nav__switch-wrap {
  display: flex;
  align-items: center;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  background-color: var(--surface-2);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.theme-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .75rem;
  border-radius: calc(var(--r-pill) - 3px);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.theme-switch__btn[aria-checked="true"] {
  background-color: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 0 0 1px var(--hairline);
}

.theme-switch__btn:hover:not([aria-checked="true"]) {
  color: var(--ink);
}

.nav__cta {
  font-size: var(--fs-small);
  padding: .6rem 1.1rem;
  min-height: 40px;
}

/* Hamburger toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s2);
  border-radius: var(--r-md);
  transition: background-color var(--dur-fast) var(--ease);
}

.nav__toggle:hover {
  background-color: var(--surface-2);
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--nav-ink);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
  transform-origin: center;
}

/* Hamburger → X animation */
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* Mobile nav sheet */
.nav__sheet {
  position: fixed;
  inset: 0;
  z-index: 400;
  background-color: var(--canvas);
  display: flex;
  flex-direction: column;
  padding: var(--s8) var(--s5) var(--s6);
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
  overflow-y: auto;
}

.nav__sheet.is-open {
  transform: translateX(0);
}

.nav__sheet-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-bottom: var(--s6);
}

.nav__sheet-links a {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--display-weight);
  color: var(--ink);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
}

.nav__sheet-links a:hover {
  opacity: .65;
}

.nav__sheet .theme-switch {
  align-self: flex-start;
}

.nav__sheet-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

/* Responsive nav */
@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }
}

/* =========================================================
   9. HERO
   ========================================================= */
.hero {
  background-color: var(--canvas);
  padding-block: clamp(4rem, 10vw, 8rem);
  overflow: hidden;
  position: relative;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: var(--eyebrow-transform);
  color: var(--muted);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-lh);
  text-transform: var(--display-transform);
  color: var(--ink);
}

.hero__lead {
  font-size: var(--fs-lead);
  color: var(--body);
  line-height: 1.55;
  max-width: 48ch;
}

@media (max-width: 900px) {
  .hero__lead {
    max-width: 100%;
  }
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: var(--s2);
}

@media (max-width: 900px) {
  .hero__actions {
    justify-content: center;
  }
}

.hero__trust {
  margin-top: var(--s3);
  font-size: var(--fs-small);
  color: var(--muted);
  letter-spacing: .02em;
}

/* =========================================================
   10. HERO ART — 3-THEME SCENE
   ========================================================= */
.hero__art {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .hero__art {
    min-height: 280px;
  }
}

/* All layers hidden by default */
.ha {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* Show only active theme's layer */
.ha--wb,
.ha--bmw,
.ha--apple { display: none; }
:root[data-theme="webblanca"] .ha--wb { display: block; }
:root[data-theme="bmw"]       .ha--bmw { display: block; }
:root[data-theme="apple"]     .ha--apple { display: flex; }

/* ---- webblanca: floating blobs + card ---- */
.ha--wb {
  position: relative;
  overflow: hidden;
}

.ha-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(40px);
  opacity: .7;
  pointer-events: none;
}

.ha-blob--1 {
  width: 260px;
  height: 260px;
  background-color: var(--card-1);
  top: -20px;
  right: 10%;
  opacity: .45;
}

.ha-blob--2 {
  width: 200px;
  height: 200px;
  background-color: var(--card-3);
  bottom: 10%;
  left: 5%;
  opacity: .5;
}

.ha-blob--3 {
  width: 180px;
  height: 180px;
  background-color: var(--card-4);
  bottom: 20%;
  right: 20%;
  opacity: .4;
}

.ha-blob--4 {
  width: 120px;
  height: 120px;
  background-color: var(--card-5);
  top: 30%;
  left: 20%;
  opacity: .5;
}

/* Blob float animations */
@media (prefers-reduced-motion: no-preference) {
  .ha-blob--1 {
    animation: blobFloat1 8s ease-in-out infinite;
  }

  .ha-blob--2 {
    animation: blobFloat2 10s ease-in-out infinite;
  }

  .ha-blob--3 {
    animation: blobFloat3 7s ease-in-out infinite;
  }

  .ha-blob--4 {
    animation: blobFloat4 9s ease-in-out infinite;
  }

  @keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(-12px, 18px) scale(1.04); }
    66%       { transform: translate(10px, -8px) scale(.97); }
  }

  @keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%       { transform: translate(15px, -20px) scale(1.06); }
    70%       { transform: translate(-8px, 10px) scale(.96); }
  }

  @keyframes blobFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(-14px, -12px) scale(1.05); }
  }

  @keyframes blobFloat4 {
    0%, 100% { transform: translate(0, 0); }
    45%       { transform: translate(10px, 15px) scale(1.08); }
  }
}

/* webblanca faux "browser card" */
.ha-card {
  position: relative;
  z-index: 2;
  width: min(360px, 90%);
  background-color: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--hairline);
  align-self: center;
  margin: auto;
}

.ha-card-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background-color: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
}

.ha-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
}

.ha-card-dot:nth-child(1) { background-color: #ff5f57; }
.ha-card-dot:nth-child(2) { background-color: #febc2e; }
.ha-card-dot:nth-child(3) { background-color: #28c840; }

.ha-card-url {
  flex: 1;
  height: 18px;
  background-color: var(--hairline);
  border-radius: var(--r-pill);
  margin-inline: auto;
  max-width: 180px;
}

.ha-card-body {
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.ha-card-hero-block {
  height: 80px;
  background: linear-gradient(135deg, var(--card-1) 0%, var(--card-4) 100%);
  border-radius: var(--r-md);
  opacity: .6;
}

.ha-card-line {
  height: 10px;
  background-color: var(--hairline);
  border-radius: var(--r-pill);
}

.ha-card-line--short {
  width: 60%;
}

.ha-card-line--xshort {
  width: 40%;
}

.ha-card-btn-mock {
  height: 32px;
  width: 120px;
  background-color: var(--card-2);
  border-radius: var(--r-btn);
  opacity: .7;
}

/* ---- BMW scene ---- */
.ha--bmw {
  position: relative;
  overflow: hidden;
  background-color: transparent;
}

/* Perspective grid */
.ha-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .25;
  transform: perspective(400px) rotateX(35deg) scale(1.4);
  transform-origin: 50% 100%;
}

/* Speed lines */
.ha--bmw::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent 40%, var(--hairline) 40.5%, transparent 41%),
    linear-gradient(90deg, transparent 60%, var(--hairline) 60.5%, transparent 61%),
    linear-gradient(90deg, transparent 70%, var(--hairline) 70.5%, transparent 71%);
  opacity: .15;
  pointer-events: none;
}

/* BMW framed site card */
.ha-frame {
  position: relative;
  z-index: 2;
  width: min(340px, 88%);
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--hairline), 0 40px 80px rgba(0, 0, 0, .5);
  margin: auto;
}

.ha-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background-color: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
}

.ha-frame-dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background-color: var(--hairline);
}

.ha-frame-body {
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.ha-frame-hero {
  height: 70px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
}

.ha-frame-line {
  height: 8px;
  background-color: var(--hairline);
  opacity: .6;
}

.ha-frame-line--short { width: 55%; }

.ha-frame-btn-mock {
  height: 28px;
  width: 100px;
  background-color: var(--ink);
}

/* M-stripe accent bar */
.ha-stripe {
  display: block;
  width: 100%;
  height: 4px;
  background: var(--m-stripe);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

/* BMW shimmer */
@media (prefers-reduced-motion: no-preference) {
  .ha-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.04) 50%, transparent 70%);
    animation: bmwShimmer 3s linear infinite;
  }

  @keyframes bmwShimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
  }
}

/* ---- Apple device scene ---- */
.ha--apple {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ha-device {
  position: relative;
  z-index: 2;
  width: min(360px, 90%);
  background-color: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-media);
  border: 1px solid var(--hairline);
  overflow: hidden;
  margin: auto;
}

.ha-device-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background-color: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
}

.ha-device-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: var(--hairline);
}

.ha-device-url {
  flex: 1;
  height: 20px;
  background-color: var(--hairline);
  border-radius: var(--r-pill);
  max-width: 200px;
  margin-inline: auto;
}

.ha-device-body {
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.ha-device-hero-block {
  height: 100px;
  background-color: var(--surface-2);
  border-radius: var(--r-lg);
}

.ha-device-line {
  height: 10px;
  background-color: var(--hairline);
  border-radius: var(--r-pill);
}

.ha-device-line--short { width: 65%; }
.ha-device-line--xshort { width: 45%; }

.ha-device-btn-mock {
  height: 36px;
  width: 130px;
  background-color: var(--accent);
  border-radius: var(--r-btn);
  opacity: .85;
}

/* Apple fade+scale-in */
@media (prefers-reduced-motion: no-preference) {
  :root[data-theme="apple"] .ha-device {
    animation: appleDeviceIn 1.2s var(--ease-out) both;
  }

  @keyframes appleDeviceIn {
    from {
      opacity: 0;
      transform: scale(.92) translateY(20px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
}

/* =========================================================
   11. FEATURES GRID
   ========================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
}

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

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

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s6);
  background-color: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.feature:hover {
  box-shadow: var(--shadow-card);
}

/* webblanca: colorful feature cards via nth-child */
:root[data-theme="webblanca"] .feature:nth-child(1) {
  background-color: var(--card-1);
  color: var(--on-1);
  border-color: var(--card-1);
}

:root[data-theme="webblanca"] .feature:nth-child(2) {
  background-color: var(--card-2);
  color: var(--on-2);
  border-color: var(--card-2);
}

:root[data-theme="webblanca"] .feature:nth-child(3) {
  background-color: var(--card-3);
  color: var(--on-3);
  border-color: var(--card-3);
}

:root[data-theme="webblanca"] .feature:nth-child(4) {
  background-color: var(--card-4);
  color: var(--on-4);
  border-color: var(--card-4);
}

.feature__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background-color: rgba(255, 255, 255, .18);
  color: currentColor;
  flex-shrink: 0;
}

:root[data-theme="webblanca"] .feature:nth-child(1) .feature__icon,
:root[data-theme="webblanca"] .feature:nth-child(2) .feature__icon {
  background-color: rgba(255, 255, 255, .2);
}

:root[data-theme="webblanca"] .feature:nth-child(3) .feature__icon,
:root[data-theme="webblanca"] .feature:nth-child(4) .feature__icon {
  background-color: rgba(0, 0, 0, .08);
}

.feature__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-lh);
  text-transform: var(--display-transform);
  color: inherit;
}

.feature__body {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: inherit;
  opacity: .82;
}

/* =========================================================
   12. STATEMENT BAND
   ========================================================= */
.statement {
  background-color: var(--surface-contrast);
  color: var(--on-contrast);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.statement__inner {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.statement__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.2;
  text-transform: var(--display-transform);
  color: var(--on-contrast);
}

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

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

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

.step {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s5);
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  position: relative;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background-color: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  flex-shrink: 0;
}

:root[data-theme="bmw"] .step__num {
  border-radius: 0;
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-lh);
  text-transform: var(--display-transform);
  color: var(--ink);
}

.step__body {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.55;
}

/* =========================================================
   14. TIERS (Pricing)
   ========================================================= */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  align-items: start;
}

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

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

.tier {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s6);
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.tier--featured {
  background-color: var(--tier-feat-bg);
  color: var(--tier-feat-ink);
  border-color: var(--tier-feat-bg);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  z-index: 1;
}

@media (max-width: 600px) {
  .tier--featured {
    transform: none;
  }
}

/* BMW featured top bar */
:root[data-theme="bmw"] .tier--featured::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--m-stripe);
}

.tier__badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: var(--r-pill);
  background-color: var(--accent);
  color: var(--on-accent);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  align-self: flex-start;
}

.tier__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.1;
  text-transform: var(--display-transform);
  color: inherit;
}

.tier__desc {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.55;
}

.tier--featured .tier__desc {
  color: rgba(255, 255, 255, .68);
}

.tier__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: var(--s3);
  border-block: 1px solid var(--hairline);
}

.tier--featured .tier__price {
  border-color: rgba(255, 255, 255, .15);
}

.tier__amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1;
  color: inherit;
}

.tier__cadence {
  font-size: var(--fs-small);
  color: var(--muted);
}

.tier--featured .tier__cadence {
  color: rgba(255, 255, 255, .6);
}

.tier__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  flex: 1;
}

.tier__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: var(--fs-small);
  color: inherit;
  line-height: 1.45;
}

.tier__list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  border-radius: 9999px;
  opacity: .25;
  margin-top: 2px;
}

.tier__list-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.tier--featured .tier__list-icon {
  color: #7de8b4;
}

.tier .btn {
  margin-top: auto;
}

.tiers-footnote {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: var(--s5);
}

/* =========================================================
   15. COMPARE TABLE
   ========================================================= */
.compare {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.compare__table caption {
  text-align: left;
  font-size: var(--fs-eyebrow);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: var(--s4);
  caption-side: top;
}

.compare__table th,
.compare__table td {
  padding: .875rem 1.25rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
  text-align: center;
}

.compare__table th:first-child,
.compare__table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.compare__table thead th {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  color: var(--ink);
  background-color: var(--surface-2);
  border-bottom: 2px solid var(--hairline);
}

.compare__table thead th:first-child {
  border-radius: var(--r-sm) 0 0 0;
}

.compare__table thead th:last-child {
  border-radius: 0 var(--r-sm) 0 0;
}

/* Featured column highlight */
.compare__table .col-featured {
  background-color: var(--tier-feat-bg);
  color: var(--tier-feat-ink);
}

.compare__table tbody tr:hover td {
  background-color: var(--surface-2);
}

.compare__table tbody tr:hover .col-featured {
  background-color: var(--tier-feat-bg);
}

/* Check / cross icons */
.compare-check {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.compare-cross {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsive stacked card layout < 720px */
@media (max-width: 720px) {
  .compare__table thead {
    display: none;
  }

  .compare__table,
  .compare__table tbody,
  .compare__table tr,
  .compare__table td {
    display: block;
    width: 100%;
  }

  .compare__table tr {
    background-color: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    margin-bottom: var(--s4);
    overflow: hidden;
  }

  .compare__table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    padding: .75rem var(--s4);
    border-bottom: 1px solid var(--hairline);
  }

  .compare__table td:last-child {
    border-bottom: none;
  }

  .compare__table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    flex: 1;
  }

  .compare__table td.col-featured {
    background-color: var(--tier-feat-bg);
    color: var(--tier-feat-ink);
  }
}

/* =========================================================
   16. NICHES — sector chips
   ========================================================= */
.niches__wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: center;
}

.niche {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1.1rem;
  border-radius: var(--r-chip);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1;
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
  cursor: default;
  user-select: none;
}

.niche:hover {
  transform: translateY(-2px);
}

/* webblanca: cycle card tints */
:root[data-theme="webblanca"] .niche:nth-child(5n+1) {
  background-color: color-mix(in srgb, var(--card-1) 18%, var(--surface));
  color: var(--card-1);
}

:root[data-theme="webblanca"] .niche:nth-child(5n+2) {
  background-color: color-mix(in srgb, var(--card-2) 14%, var(--surface));
  color: var(--card-2);
}

:root[data-theme="webblanca"] .niche:nth-child(5n+3) {
  background-color: color-mix(in srgb, var(--card-3) 22%, var(--surface));
  color: color-mix(in srgb, var(--card-3) 80%, #000);
}

:root[data-theme="webblanca"] .niche:nth-child(5n+4) {
  background-color: color-mix(in srgb, var(--card-4) 20%, var(--surface));
  color: color-mix(in srgb, var(--card-4) 80%, #000);
}

:root[data-theme="webblanca"] .niche:nth-child(5n+0) {
  background-color: color-mix(in srgb, var(--card-5) 20%, var(--surface));
  color: color-mix(in srgb, var(--card-5) 80%, #000);
}

/* BMW: outline chips */
:root[data-theme="bmw"] .niche {
  background-color: transparent;
  border: 1px solid var(--hairline);
  color: var(--body);
}

:root[data-theme="bmw"] .niche:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Apple: surface-2 pills */
:root[data-theme="apple"] .niche {
  background-color: var(--surface-2);
  color: var(--body);
  border: none;
}

:root[data-theme="apple"] .niche:hover {
  background-color: var(--hairline);
}

/* =========================================================
   17. MAINTENANCE CARDS
   ========================================================= */
.maint {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  max-width: 800px;
  margin-inline: auto;
}

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

.maint__card {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s6);
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.maint__card--pro {
  background-color: var(--tier-feat-bg);
  color: var(--tier-feat-ink);
  border-color: var(--tier-feat-bg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

/* BMW pro top bar */
:root[data-theme="bmw"] .maint__card--pro::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--m-stripe);
}

.maint__badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .7rem;
  border-radius: var(--r-pill);
  background-color: var(--accent);
  color: var(--on-accent);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  align-self: flex-start;
}

.maint__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  color: inherit;
}

.maint__price {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: var(--display-weight);
  color: inherit;
  line-height: 1;
}

.maint__price-note {
  font-size: var(--fs-small);
  color: var(--muted);
}

.maint__card--pro .maint__price-note {
  color: rgba(255, 255, 255, .6);
}

.maint__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  flex: 1;
}

.maint__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  font-size: var(--fs-small);
  line-height: 1.45;
  color: inherit;
}

.maint__list-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.maint__card--pro .maint__list-icon {
  color: #7de8b4;
}

.maint__callout {
  margin-top: var(--s4);
  padding: var(--s4);
  background-color: rgba(255, 255, 255, .08);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: inherit;
}

.maint__card--pro .maint__callout {
  border-left-color: #7de8b4;
  color: rgba(255, 255, 255, .85);
}

/* =========================================================
   18. FAQ ACCORDION
   ========================================================= */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  max-width: 760px;
  margin-inline: auto;
}

.faq__item {
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

.faq__q:hover {
  background-color: var(--surface-2);
}

.faq__q[aria-expanded="true"] {
  background-color: var(--surface-2);
}

.faq__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform var(--dur) var(--ease);
}

.faq__q[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
}

/* Accordion body — grid-rows trick for smooth height */
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease);
}

.faq__a[aria-hidden="false"] {
  max-height: 600px;
}

.faq__a-inner {
  overflow: hidden;
}

.faq__a-inner p {
  padding: var(--s4) var(--s5) var(--s5);
  font-size: var(--fs-small);
  color: var(--body);
  line-height: 1.65;
  border-top: 1px solid var(--hairline);
}

/* =========================================================
   19. CTA BAND
   ========================================================= */
.cta-band {
  background-color: var(--surface-contrast);
  color: var(--on-contrast);
  padding-block: clamp(3.5rem, 7vw, 6rem);
  text-align: center;
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s5);
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-lh);
  text-transform: var(--display-transform);
  color: var(--on-contrast);
  max-width: 640px;
}

.cta-band__text {
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, .72);
  max-width: 560px;
  line-height: 1.55;
}

.cta-band__actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons on dark bg */
.cta-band .btn--ghost {
  border-color: rgba(255, 255, 255, .4);
  color: var(--on-contrast);
}

.cta-band .btn--ghost:hover {
  background-color: rgba(255, 255, 255, .1);
  color: var(--on-contrast);
}

/* =========================================================
   20. CONTACT
   ========================================================= */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--s8);
  align-items: start;
}

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

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.field__label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: .75rem 1rem;
  font-size: var(--fs-body);
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--surface);
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-input);
  outline: none;
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus-ring) 20%, transparent);
}

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a6a6a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.55;
}

.contact__form .btn {
  align-self: flex-start;
}

@media (max-width: 600px) {
  .contact__form .btn {
    align-self: stretch;
  }
}

/* Contact direct block */
.contact__direct {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
  padding: var(--s6);
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.contact__direct-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  color: var(--ink);
}

.contact__person {
  font-weight: 600;
  color: var(--ink);
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.contact__link {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--fs-small);
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--dur-fast) var(--ease);
}

.contact__link:hover {
  opacity: .72;
}

.contact__link svg {
  flex-shrink: 0;
  color: var(--muted);
}

.contact__small {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.55;
}

/* =========================================================
   21. FOOTER
   ========================================================= */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-ink);
  padding-block: var(--s8) var(--s6);
  border-top: 1px solid var(--hairline);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--s7);
}

.footer__top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--s8);
}

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

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.footer__tagline {
  font-size: var(--fs-small);
  color: var(--footer-ink);
  line-height: 1.55;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-top: var(--s2);
}

.footer__contact a {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--fs-small);
  color: var(--footer-ink);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease);
}

.footer__contact a:hover {
  opacity: .72;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}

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

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--s4);
}

.footer__col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.footer__col-links a {
  font-size: var(--fs-small);
  color: var(--footer-ink);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease);
  line-height: 1.4;
}

.footer__col-links a:hover {
  opacity: .72;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s4);
  padding-top: var(--s5);
  border-top: 1px solid var(--hairline);
}

.footer__copy {
  font-size: var(--fs-small);
  color: var(--muted);
}

.footer__bottom-links {
  display: flex;
  gap: var(--s5);
  list-style: none;
}

.footer__bottom-links a {
  font-size: var(--fs-small);
  color: var(--muted);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease);
}

.footer__bottom-links a:hover {
  opacity: .72;
}

/* =========================================================
   22. LEGAL PROSE WRAPPER
   ========================================================= */
.legal {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 5rem);
  line-height: 1.75;
  color: var(--body);
}

.legal h1 {
  font-size: var(--fs-h2);
  margin-bottom: var(--s5);
  color: var(--ink);
}

.legal h2 {
  font-size: var(--fs-h3);
  margin-top: var(--s7);
  margin-bottom: var(--s4);
  color: var(--ink);
}

.legal h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: var(--s5);
  margin-bottom: var(--s3);
  color: var(--ink);
}

.legal p {
  margin-bottom: var(--s4);
  color: var(--body);
}

.legal ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.legal ul li {
  color: var(--body);
  line-height: 1.65;
}

.legal a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  opacity: .75;
}

.legal .legal__back {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--fs-small);
  color: var(--muted);
  text-decoration: none;
  margin-bottom: var(--s6);
  transition: opacity var(--dur-fast) var(--ease);
}

.legal .legal__back:hover {
  opacity: .72;
}

.legal__meta {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: var(--s7);
  padding-top: var(--s4);
  border-top: 1px solid var(--hairline);
}

.legal__notice {
  font-size: var(--fs-small);
  color: var(--muted);
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-sm);
  margin-bottom: var(--s6);
  line-height: 1.55;
}

.legal__table-wrap {
  overflow-x: auto;
  margin-block: var(--s5);
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
  background: var(--surface);
}

.legal__table caption {
  text-align: left;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--hairline);
}

.legal__table th,
.legal__table td {
  padding: var(--s3) var(--s4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
  color: var(--body);
  line-height: 1.55;
}

.legal__table thead th {
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-2);
  white-space: nowrap;
}

.legal__table tbody tr:last-child td {
  border-bottom: none;
}

.legal__table code {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: .85em;
  background: var(--surface-2);
  padding: .1em .35em;
  border-radius: 4px;
  color: var(--ink);
}

/* =========================================================
   23. REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

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

/* Stagger children */
.reveal--stagger > *:nth-child(1)  { transition-delay:   0ms; }
.reveal--stagger > *:nth-child(2)  { transition-delay:  60ms; }
.reveal--stagger > *:nth-child(3)  { transition-delay: 120ms; }
.reveal--stagger > *:nth-child(4)  { transition-delay: 180ms; }
.reveal--stagger > *:nth-child(5)  { transition-delay: 240ms; }
.reveal--stagger > *:nth-child(6)  { transition-delay: 300ms; }
.reveal--stagger > *:nth-child(7)  { transition-delay: 360ms; }
.reveal--stagger > *:nth-child(8)  { transition-delay: 420ms; }
.reveal--stagger > *:nth-child(n+9) { transition-delay: 420ms; }

/* Stagger — base state for children */
.reveal--stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.reveal--stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

/* =========================================================
   24. M-STRIPE ACCENT (global usage)
   ========================================================= */
.m-stripe {
  display: block;
  width: 100%;
  height: 4px;
  background: var(--m-stripe);
}

/* =========================================================
   25. UTILITY CLASSES
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-muted    { color: var(--muted); }
.text-center   { text-align: center; }
.text-ink      { color: var(--ink); }
.text-accent   { color: var(--accent); }

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--hairline);
  border: none;
  margin: 0;
}

/* =========================================================
   26. REDUCED MOTION — SAFETY NET
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   27. PRINT
   ========================================================= */
@media print {
  .nav,
  .nav__sheet,
  .hero__art,
  .cta-band,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}

/* =========================================================
   ===== INTEGRATION RECONCILIATION =====
   Fixes class-name mismatches between index.html (canonical
   structure) and the CSS design system above.
   All rules use existing CSS tokens — no hardcoded colours.
   ========================================================= */

/* ---------------------------------------------------------
   NAV — hide .nav__right on ≤900px so only brand+hamburger
   show (hamburger is display:flex via existing rule above).
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .nav__right {
    display: none;
  }
}

/* ---------------------------------------------------------
   HERO — the text column sits inside .hero__content which
   is already defined in CSS (section 9). The hero__inner
   grid puts .hero__content col-1 and .hero__art col-2.
   On mobile the grid stacks (existing rule). No extra rules
   needed beyond confirming .hero__art is still the second
   direct child — which it is.
   --------------------------------------------------------- */

/* ---------------------------------------------------------
   SECTION GRID CONTAINERS
   The section element itself had grid/display rules in the
   original CSS (e.g. .features, .steps, .tiers, .maint
   were styled as grids). Now that the HTML wraps children
   in .features__grid / .steps__grid / .tiers__grid /
   .maint__grid / .niches__list / .contact__grid, we must:
   (a) neutralise the section-level grid so the container
       does not become a narrow grid cell, and
   (b) define the inner wrapper grids.
   --------------------------------------------------------- */

/* (a) Neutralise section-level grids */
.features,
.steps,
.tiers,
.maint,
.niches {
  display: block;
}

/* (b) Inner grid wrappers */
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
}

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

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

.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
  list-style: none;
}

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

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

.tiers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  align-items: start;
}

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

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

.maint__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  max-width: 800px;
  margin-inline: auto;
}

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

/* Niches chip list — HTML uses <ul class="niches__list">.
   CSS had .niches__wrap; we alias it here. */
.niches__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Contact grid — HTML uses <div class="container contact__grid">.
   CSS had .contact__inner. */
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s7);
  align-items: start;
}

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

/* ---------------------------------------------------------
   FEATURES — bare <h3> / <p> inside .feature
   (CSS had .feature__title / .feature__body)
   --------------------------------------------------------- */
.feature h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-lh);
  text-transform: var(--display-transform);
  color: inherit;
}

.feature p {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: inherit;
  opacity: .82;
}

/* ---------------------------------------------------------
   TIERS — sub-elements missing from CSS
   --------------------------------------------------------- */

/* .tier__cycle  ≡ CSS .tier__cadence */
.tier__cycle {
  font-size: var(--fs-small);
  color: var(--muted);
}

.tier--featured .tier__cycle {
  color: rgba(255, 255, 255, .6);
}

/* .tier__price-pre — "desde" inline prefix before amount */
.tier__price-pre {
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--muted);
  align-self: flex-end;
  margin-bottom: .2em;
  margin-right: var(--s1);
}

/* Make .tier__price a flex row so "desde" + amount sit inline */
.tier__price {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s1);
}

/* .tiers__note  ≡ CSS .tiers-footnote */
.tiers__note {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: var(--s5);
}

/* tier__list SVG checks — use accent color, match icon size */
.tier__list li {
  /* override the ::before dot now that HTML has inline SVGs */
  position: relative;
}

.tier__list li::before {
  display: none;
}

.tier__list li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--accent);
}

.tier--featured .tier__list li svg {
  color: #7de8b4;
}

/* ---------------------------------------------------------
   MAINTENANCE — sub-elements missing from CSS
   --------------------------------------------------------- */

/* Bare <h3> inside .maint__card  ≡ CSS .maint__name */
.maint__card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  color: inherit;
}

/* .maint__iva — small muted "+ IVA" note */
.maint__iva {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: calc(-1 * var(--s2));
}

.maint__card--pro .maint__iva {
  color: rgba(255, 255, 255, .6);
}

/* .maint__argument  ≡ CSS .maint__callout */
.maint__argument {
  margin-top: var(--s5);
  padding: var(--s4) var(--s5);
  background-color: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--body);
  max-width: 760px;
  margin-inline: auto;
}

/* Bare <ul> inside .maint__card (no class) */
.maint__card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  flex: 1;
}

.maint__card ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  font-size: var(--fs-small);
  line-height: 1.45;
  color: inherit;
}

.maint__card ul li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--accent);
}

.maint__card--pro ul li svg {
  color: #7de8b4;
}

/* ---------------------------------------------------------
   CONTACT — sub-elements missing from CSS
   --------------------------------------------------------- */

/* .contact__left wrapper — no special styling needed beyond
   inheriting flex from contact__grid, but ensure it's a
   flex column for the form layout */
.contact__left {
  display: flex;
  flex-direction: column;
  gap: var(--s6);
}

/* Bare <h3> inside .contact__direct  ≡ .contact__direct-title */
.contact__direct h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-transform);
  color: var(--ink);
}

/* .contact__direct-link  ≡ CSS .contact__link */
.contact__direct-link {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--fs-small);
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--dur-fast) var(--ease);
}

.contact__direct-link:hover {
  opacity: .72;
}

.contact__direct-link svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

/* .contact__direct-note  ≡ CSS .contact__small */
.contact__direct-note {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.55;
}

/* .contact__sent — success state, hidden until JS shows it */
.contact__sent {
  font-size: var(--fs-small);
  color: var(--muted);
  padding: var(--s3) var(--s4);
  background-color: var(--surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  line-height: 1.55;
}

.contact__sent[hidden] {
  display: none;
}

/* ---------------------------------------------------------
   FOOTER — sub-elements missing from CSS
   --------------------------------------------------------- */

/* .footer__wordmark  ≡ CSS .footer__logo */
.footer__wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* .logo-bb inside footer wordmark — accent colour */
.footer__wordmark .logo-bb {
  color: var(--accent);
}

/* .footer__col bare <ul>/<li>/<a>  ≡ CSS .footer__col-links */
.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.footer__col ul li a {
  font-size: var(--fs-small);
  color: var(--footer-ink);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease);
  line-height: 1.4;
}

.footer__col ul li a:hover {
  opacity: .72;
}

/* .footer__contact-link — icon+text row in footer contact mini */
.footer__contact-link {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--fs-small);
  color: var(--footer-ink);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease);
}

.footer__contact-link:hover {
  opacity: .72;
}

/* .footer__bottom bare <p>  ≡ CSS .footer__copy */
.footer__bottom p {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ---------------------------------------------------------
   COMPARE TABLE — check SVGs + .compare__no
   --------------------------------------------------------- */

/* Inline check SVGs in compare table — accent colour */
.compare__table td svg,
.compare__table th svg {
  display: inline-block;
  width: 18px;
  height: 18px;
  color: var(--accent);
  vertical-align: middle;
}

/* .compare__no — muted dash for "no" cells */
.compare__no {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
}

/* ---------------------------------------------------------
   HERO ART — shared .ha-bar / .ha-dot / .ha-line classes
   HTML uses generic names; CSS has context-specific names
   (ha-card-bar, ha-frame-bar, etc.). Add shared aliases.
   --------------------------------------------------------- */

/* .ha-bar — toolbar row shared by card / frame / device */
.ha-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background-color: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
}

/* .ha-dot — traffic-light dots */
.ha-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: var(--hairline);
}

.ha-dot--r { background-color: #ff5f57; }
.ha-dot--y { background-color: #febc2e; }
.ha-dot--g { background-color: #28c840; }

/* BMW theme: square dots */
:root[data-theme="bmw"] .ha-dot {
  border-radius: 0;
}

/* .ha-line — skeleton content lines inside the art cards */
.ha-line {
  height: 10px;
  background-color: var(--hairline);
  border-radius: var(--r-pill);
  margin: var(--s2) var(--s5);
}

.ha-line--title {
  height: 14px;
  width: 70%;
  margin-top: var(--s5);
}

.ha-line--sub {
  width: 85%;
}

.ha-line--short {
  width: 50%;
}

.ha-line--btn {
  height: 28px;
  width: 100px;
  background-color: var(--accent);
  border-radius: var(--r-btn);
  opacity: .75;
  margin-top: var(--s3);
  margin-bottom: var(--s5);
}

/* .ha-card — weBBlanca browser card (wraps .ha-bar + .ha-line*) */
.ha-card {
  position: relative;
  z-index: 2;
  width: min(360px, 90%);
  background-color: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin: auto;
}

/* ---------------------------------------------------------
   FAQ — grid-rows clip without .faq__a-inner wrapper
   The answer is <div class="faq__a"><p>…</p></div>.
   The existing grid-rows trick on .faq__a still works;
   the <p> needs min-height:0 and overflow:hidden to clip.
   --------------------------------------------------------- */
.faq__a > p {
  min-height: 0;
  overflow: hidden;
  margin: 0;
  padding: var(--s4) var(--s5) var(--s5);
  font-size: var(--fs-small);
  color: var(--body);
  line-height: 1.65;
  border-top: 1px solid var(--hairline);
}

/* ---------------------------------------------------------
   FAQ — .faq__q-wrap is the <h3> wrapping the button
   Reset heading styles so the button inside looks correct.
   --------------------------------------------------------- */
.faq__q-wrap {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: none;
  margin: 0;
}

/* ---------------------------------------------------------
   STEPS — bare <h3> / <p> inside .step
   (CSS had .step__title / .step__body)
   --------------------------------------------------------- */
.step h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-lh);
  text-transform: var(--display-transform);
  color: var(--ink);
}

.step p {
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.55;
}

/* ===== QA POLISH FIXES ===== */

/* Fix 7 — AA contrast for muted text */
:root[data-theme="webblanca"] { --muted: #5e5e5e; }
:root[data-theme="bmw"]       { --muted: #969696; }

/* Fix 8 — distinguishable prose links */
.legal a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }

/* Fix 9 — BMW feature-card motorsport identity: M-stripe accent bar via ::before */
:root[data-theme="bmw"] .feature { position: relative; }
:root[data-theme="bmw"] .feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--m-stripe);
}

/* ===== CONTACT FORM BACKEND ===== */
/* Honeypot field: visually hidden, off the tab order */
.contact__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
/* Error status message (success .contact__sent already styled). Theme-safe: ink text + M-red bar. */
.contact__error {
  margin-top: var(--s4);
  color: var(--ink);
  border-left: 3px solid #e22718;
  padding-left: 0.75rem;
  font-size: var(--fs-small);
  line-height: 1.5;
}
/* Submit button disabled (loading) state */
.contact__submit[disabled] { opacity: 0.65; cursor: progress; }
