/* ============================================================
   X4 DIGITAL — styles.css
   System: Bold Creative × editorial SaaS
   Light: #F9F7F4 / #1A1512 / #B8956A
   Dark:  #0C0C16 / #F0EDF8 / #8B80D4
   Fonts: Syne (700,800) + Manrope (400,500)
   ============================================================ */

/* ── 1. TOKENS ─────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-page:          #F9F7F4;
  --bg-surface:       #F2EFE9;
  --bg-dark:          #0C0C16;
  --bg-dark-surface:  #141422;

  /* Text */
  --text-primary:     #1A1512;
  --text-muted:       #6B6459;
  --text-light:       #F0EDF8;
  --text-light-muted: #9B96B0;

  /* Accents */
  --accent:           #B8956A;
  --accent-dark:      #8B80D4;

  /* Borders */
  --border-light:     rgba(26, 21, 18, 0.12);
  --border-dark:      rgba(240, 237, 248, 0.10);

  /* Typography */
  --font-display:     'Syne', sans-serif;
  --font-body:        'Manrope', sans-serif;

  /* Type scale */
  --text-xs:    0.6875rem;   /* 11px */
  --text-sm:    0.875rem;    /* 14px */
  --text-base:  1rem;        /* 16px */
  --text-lg:    1.125rem;    /* 18px */
  --text-xl:    1.25rem;     /* 20px */
  --text-2xl:   1.5rem;      /* 24px */
  --text-3xl:   2rem;        /* 32px */
  --text-4xl:   2.5rem;      /* 40px */
  --text-5xl:   3.5rem;      /* 56px */
  --text-6xl:   4.5rem;      /* 72px */
  --text-price: clamp(6rem, 18vw, 9rem); /* €1 anchor */

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

  /* Motion */
  --ease-snap:    cubic-bezier(0.25, 0, 0, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --duration-hover:  0.15s;
  --duration-reveal: 0.65s;

  /* Layout */
  --container-max:  1200px;
  --container-read: 860px;
  --container-text: 640px;
  --radius-btn:     2px;
}

/* Dark mode — CSS class toggle + system preference fallback */
[data-theme="dark"],
.dark {
  --bg-page:          #0C0C16;
  --bg-surface:       #141422;
  --bg-dark:          #F9F7F4;       /* inverted for contrast sections */
  --bg-dark-surface:  #F2EFE9;
  --text-primary:     #F0EDF8;
  --text-muted:       #9B96B0;
  --text-light:       #1A1512;
  --text-light-muted: #6B6459;
  --accent:           #8B80D4;
  --accent-dark:      #B8956A;
  --border-light:     rgba(240, 237, 248, 0.10);
  --border-dark:      rgba(26, 21, 18, 0.12);
}

/* ── 2. RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

img.loaded {
  opacity: 1;
}

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

ul, ol {
  list-style: none;
}

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

/* ── 3. LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(var(--space-6), 5vw, var(--space-16));
}

.container-read {
  max-width: var(--container-read);
  margin: 0 auto;
  padding: 0 clamp(var(--space-6), 5vw, var(--space-16));
}

.container-text {
  max-width: var(--container-text);
  margin: 0 auto;
  padding: 0 clamp(var(--space-6), 5vw, var(--space-16));
}

/* Section rhythm */
.section-light {
  background: var(--bg-page);
  padding: clamp(var(--space-20), 12vw, var(--space-40)) 0;
  color: var(--text-primary);
}

.section-surface {
  background: var(--bg-surface);
  padding: clamp(var(--space-20), 12vw, var(--space-40)) 0;
  color: var(--text-primary);
}

.section-dark {
  background: #0C0C16;
  padding: clamp(var(--space-20), 12vw, var(--space-40)) 0;
  color: #F0EDF8;
}

/* Dark mode: keep dark sections truly dark */
[data-theme="dark"] .section-dark,
.dark .section-dark {
  background: #060610;
}

[data-theme="dark"] .section-light,
.dark .section-light {
  background: var(--bg-page);
}

[data-theme="dark"] .section-surface,
.dark .section-surface {
  background: var(--bg-surface);
}

/* Grid helpers */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

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

.grid-feature {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-16);
  align-items: center;
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-feature {
    grid-template-columns: 1fr;
  }
}

/* ── 4. TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-8);
}

.section-headline-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: var(--space-8);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-6);
  display: block;
}

.lead {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 52ch;
}

.body-text {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--text-muted);
}

/* Accent colour on inline text */
.accent-text {
  color: var(--accent);
}

/* Oversized price anchor — €1 */
.price-anchor {
  font-family: var(--font-display);
  font-size: var(--text-price);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  display: block;
}

.price-sub {
  font-family: var(--font-body);
  font-size: clamp(var(--text-lg), 2vw, var(--text-2xl));
  font-weight: 400;
  color: var(--text-muted);
  margin-top: var(--space-6);
  letter-spacing: 0;
}

/* On dark sections */
.section-dark .price-anchor,
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark .section-headline,
.section-dark .section-headline-lg {
  color: #F0EDF8;
}

.section-dark .lead,
.section-dark .body-text,
.section-dark .price-sub {
  color: #9B96B0;
}

.section-dark .eyebrow {
  color: #8B80D4;
}

/* Oversized values strip (01 / 02 / 03) */
.value-numeral {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

/* ── 5. ACCENT RULE ─────────────────────────────────────────── */
.accent-rule {
  width: 36px;
  height: 3px;
  background: var(--accent);
  margin-bottom: var(--space-8);
  flex-shrink: 0;
}

/* ── 6. NAVIGATION ──────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5, 1.25rem) clamp(var(--space-6), 5vw, var(--space-16));
  background: color-mix(in srgb, var(--bg-page) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  border-color: var(--border-light);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  transition: color var(--duration-hover) ease;
}

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

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

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  opacity: 0.75;
  transition: opacity var(--duration-hover) ease, color var(--duration-hover) ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--accent);
}

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

/* Dark mode toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--duration-hover) ease, background var(--duration-hover) ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sun  { display: none; }
.icon-moon { display: block; }

[data-theme="dark"] .icon-sun,
.dark .icon-sun  { display: block; }

[data-theme="dark"] .icon-moon,
.dark .icon-moon { display: none; }

/* Mobile hamburger */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-btn);
  padding: 8px;
  cursor: pointer;
  transition: border-color var(--duration-hover) ease;
}

.nav-mobile-toggle:hover {
  border-color: var(--accent);
}

.nav-mobile-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--bg-page);
  z-index: 190;
  padding: var(--space-24) clamp(var(--space-6), 5vw, var(--space-16));
  gap: var(--space-8);
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-snap);
}

.nav-mobile.open {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  transition: color var(--duration-hover) ease;
}

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

.nav-mobile-close {
  position: absolute;
  top: var(--space-6);
  right: clamp(var(--space-6), 5vw, var(--space-16));
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-btn);
  cursor: pointer;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* ── 7. BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duration-hover) ease,
              color var(--duration-hover) ease,
              border-color var(--duration-hover) ease;
  min-height: 48px;
  padding: 0 var(--space-10);
  border-radius: var(--radius-btn);
  white-space: nowrap;
}

/* Solid — primary */
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-page);
  border: 2px solid var(--text-primary);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #F9F7F4;
}

/* Outline */
.btn-outline {
  position: relative;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--text-primary);
  transition: width 0.28s var(--ease-snap);
  z-index: 0;
}

.btn-outline span {
  position: relative;
  z-index: 1;
  transition: color 0.28s ease;
}

.btn-outline:hover::before {
  width: 100%;
}

.btn-outline:hover span {
  color: var(--bg-page);
}

/* On dark sections — invert outline */
.section-dark .btn-outline {
  border-color: #F0EDF8;
  color: #F0EDF8;
}

.section-dark .btn-outline::before {
  background: #F0EDF8;
}

.section-dark .btn-outline:hover span {
  color: #0C0C16;
}

.section-dark .btn-primary {
  background: #F0EDF8;
  border-color: #F0EDF8;
  color: #0C0C16;
}

.section-dark .btn-primary:hover {
  background: var(--accent-dark, #8B80D4);
  border-color: var(--accent-dark, #8B80D4);
  color: #F0EDF8;
}

/* Accent filled */
.btn-accent {
  background: var(--accent);
  color: #F9F7F4;
  border: 2px solid var(--accent);
}

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

/* ── 8. HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-40) 0 var(--space-32);
}

/* Subtle grid texture behind hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.04;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.hero-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-8);
  display: block;
  opacity: 0;
  animation: fade-up 0.6s var(--ease-out) 0.1s forwards;
}

/* Word-by-word reveal — each .word gets --i CSS variable set inline or by JS */
.hero-headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(32px);
  animation: word-in 0.65s var(--ease-out) forwards;
}

@keyframes word-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 46ch;
  margin-top: var(--space-8);
  opacity: 0;
  animation: fade-up 0.6s var(--ease-out) 0.85s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-10);
  opacity: 0;
  animation: fade-up 0.6s var(--ease-out) 1.05s forwards;
}

@media (max-width: 640px) {
  .hero {
    min-height: 85vh;
    padding-top: var(--space-32);
    align-items: flex-end;
    padding-bottom: var(--space-20);
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Dark-mode hero image wrapper */
.hero-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}

.hero-img-wrap > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── 9. HOW IT WORKS — NUMBERED STEPS ───────────────────────── */
.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-light);
}

.step-item {
  padding: var(--space-12) var(--space-8);
  border-right: 1px solid var(--border-light);
}

.step-item:last-child {
  border-right: none;
}

.step-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: var(--space-6);
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.step-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-muted);
}

.section-dark .step-item {
  border-color: var(--border-dark);
}

.section-dark .steps-row {
  border-color: var(--border-dark);
}

.section-dark .step-title {
  color: #F0EDF8;
}

.section-dark .step-desc {
  color: #9B96B0;
}

.section-dark .step-number {
  color: #8B80D4;
}

@media (max-width: 768px) {
  .steps-row {
    grid-template-columns: 1fr;
  }
  .step-item {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .step-item:last-child {
    border-bottom: none;
  }
  .section-dark .step-item {
    border-color: var(--border-dark);
  }
}

/* ── 10. PRICING ANCHOR ─────────────────────────────────────── */
.pricing-hero {
  text-align: center;
  padding: clamp(var(--space-20), 14vw, var(--space-40)) 0;
}

.pricing-hero .price-anchor {
  text-align: center;
}

.pricing-caption {
  font-family: var(--font-body);
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  font-weight: 400;
  color: var(--text-muted);
  margin-top: var(--space-6);
  letter-spacing: 0.01em;
}

/* Section-level price block */
.price-section {
  text-align: center;
}

.price-section .price-anchor {
  text-align: center;
}

.price-secondary {
  font-family: var(--font-body);
  font-size: clamp(var(--text-base), 2.5vw, var(--text-2xl));
  font-weight: 400;
  color: var(--text-muted);
  margin-top: var(--space-4);
  letter-spacing: 0;
}

.price-secondary .arrow {
  color: var(--accent);
  font-style: normal;
}

/* ── 11. FEATURE LIST TABLE ─────────────────────────────────── */
.feature-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-12);
}

.feature-table tr {
  border-bottom: 1px solid var(--border-light);
}

.feature-table tr:first-child {
  border-top: 1px solid var(--border-light);
}

.feature-table td {
  padding: var(--space-6) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-primary);
  vertical-align: middle;
}

.feature-table td:first-child {
  font-weight: 500;
  width: 100%;
}

.feature-table td:last-child {
  color: var(--accent);
  font-size: var(--text-lg);
  padding-left: var(--space-8);
  text-align: right;
  white-space: nowrap;
}

/* ── 12. FAQ ACCORDION ──────────────────────────────────────── */
.faq-list {
  margin-top: var(--space-12);
  border-top: 1px solid var(--border-light);
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-8) 0;
  font-family: var(--font-display);
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  background: transparent;
  line-height: 1.2;
  transition: color var(--duration-hover) ease;
}

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

.faq-trigger .faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--duration-hover) ease, transform 0.25s ease;
}

.faq-trigger .faq-icon::before {
  content: '+';
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1;
}

.faq-item.open .faq-trigger .faq-icon {
  transform: rotate(45deg);
  border-color: var(--accent);
}

.faq-item.open .faq-trigger .faq-icon::before {
  color: var(--accent);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-snap), padding 0.3s ease;
}

.faq-body p {
  padding-bottom: var(--space-8);
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 64ch;
}

.faq-item.open .faq-body {
  max-height: 400px;
}

/* ── 13. SPLIT LAYOUT (How It Works deep-dive) ──────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  align-items: center;
}

.split.reverse > :first-child {
  order: 2;
}

.split.reverse > :last-child {
  order: 1;
}

.split-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-surface);
}

.split-img-wrap > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-text {
  padding: var(--space-8) 0;
}

.split-text .section-headline {
  margin-bottom: var(--space-6);
}

.split-text .lead {
  margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split.reverse > :first-child,
  .split.reverse > :last-child {
    order: unset;
  }
}

/* ── 14. CTA STRIP ──────────────────────────────────────────── */
.cta-strip {
  padding: clamp(var(--space-20), 10vw, var(--space-32)) 0;
  text-align: center;
}

.cta-strip-headline {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: var(--space-10);
}

.cta-strip-headline em {
  font-style: normal;
  color: var(--accent);
}

.section-dark .cta-strip-headline {
  color: #F0EDF8;
}

/* ── 15. SOCIAL PROOF STRIP ─────────────────────────────────── */
.proof-strip {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.proof-stat {
  flex: 1;
  min-width: 140px;
  padding: var(--space-8);
  border: 1px solid var(--border-light);
}

.proof-stat-num {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.proof-stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* ── 16. VALUES STRIP (01/02/03) ────────────────────────────── */
.values-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  border-top: 1px solid var(--border-light);
  padding-top: clamp(var(--space-12), 6vw, var(--space-20));
}

.value-item {}

.value-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.value-desc {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .values-strip {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* ── 17. ABOUT — manifesto text ─────────────────────────────── */
.manifesto {
  max-width: 66ch;
}

.manifesto-lead {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-10);
}

.manifesto-body {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  max-width: 58ch;
}

/* About hero background image wrap */
.about-hero-wrap {
  position: relative;
  overflow: hidden;
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.04;
}

.about-hero-content {
  position: relative;
  z-index: 1;
}

/* ── 18. PRODUCT PREVIEW IMAGE ──────────────────────────────── */
.product-preview {
  margin: 0 auto;
  max-width: 960px;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0C0C16;
}

.product-preview > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── 19. FOOTER ─────────────────────────────────────────────── */
.footer {
  background: #0C0C16;
  color: #F0EDF8;
  padding: clamp(var(--space-16), 8vw, var(--space-24)) 0 var(--space-12);
  border-top: 1px solid rgba(240, 237, 248, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-20));
  margin-bottom: var(--space-16);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #F0EDF8;
  display: block;
  margin-bottom: var(--space-4);
}

.footer-tagline {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: #9B96B0;
  max-width: 28ch;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #9B96B0;
  margin-bottom: var(--space-6);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: #F0EDF8;
  opacity: 0.7;
  transition: opacity var(--duration-hover) ease;
}

.footer-links a:hover {
  opacity: 1;
  color: #8B80D4;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(240, 237, 248, 0.06);
}

.footer-copy {
  font-size: var(--text-xs);
  color: #9B96B0;
  letter-spacing: 0.02em;
}

.footer-accent {
  color: #8B80D4;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

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

/* ── 20. SCROLL REVEAL ──────────────────────────────────────── */
/*
  SELECTOR CONVENTION: class-based
  JS uses: document.querySelectorAll('.reveal')
  Toggle class: .visible
  See scripts_agent.result.json → selectorConvention
*/
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-reveal) var(--ease-out),
    transform var(--duration-reveal) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings — JS sets --stagger-index on each child */
.reveal-stagger .reveal:nth-child(1) { transition-delay: 0.00s; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 0.40s; }

/* ── 21. CARD — generic surface ─────────────────────────────── */
.card {
  background: var(--bg-surface);
  padding: var(--space-8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-btn);
}

.section-dark .card {
  background: var(--bg-dark-surface);
  border-color: var(--border-dark);
}

/* ── 22. HORIZONTAL RULE / DIVIDER ──────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 0;
}

/* ── 23. SECTION LABEL + HEADLINE BLOCK ─────────────────────── */
.section-header {
  margin-bottom: clamp(var(--space-12), 5vw, var(--space-20));
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .lead {
  margin: 0 auto;
}

/* ── 24. DARK-MODE AWARE IMAGE PLACEHOLDER ──────────────────── */
/* Placeholder area before image resolves */
.img-placeholder {
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── 25. UTILITY ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-auto { margin-top: auto; }
.mb-4    { margin-bottom: var(--space-4); }
.mb-6    { margin-bottom: var(--space-6); }
.mb-8    { margin-bottom: var(--space-8); }
.mb-12   { margin-bottom: var(--space-12); }
.mb-16   { margin-bottom: var(--space-16); }
.mt-4    { margin-top: var(--space-4); }
.mt-6    { margin-top: var(--space-6); }
.mt-8    { margin-top: var(--space-8); }
.mt-10   { margin-top: var(--space-10); }
.mt-12   { margin-top: var(--space-12); }
.mt-16   { margin-top: var(--space-16); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ── 26. PRINT / REDUCED MOTION ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-headline .word {
    opacity: 1;
    transform: none;
  }

  .hero-tag,
  .hero-sub,
  .hero-actions {
    opacity: 1;
    transform: none;
  }

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


/* ── CSS safety-net (injected by proxy-orchestrator) ──
   Ensures image containers always have resolvable dimensions so imgs with
   height:100% don't collapse. Scoped to common container class patterns. */
[class*="image-col"],
[class*="image-wrap"],
[class*="img-wrap"],
[class*="img-container"],
[class*="image-container"],
[class*="photo-wrap"],
[class*="photo-container"],
.bento-card,
.listing-img-wrap,
.card-image,
.feature-image,
.hero-image,
.hero-media {
  min-height: 320px;
  aspect-ratio: 3 / 2;
  position: relative;
}
[class*="image-col"] > img,
[class*="image-wrap"] > img,
[class*="img-wrap"] > img,
[class*="img-container"] > img,
[class*="image-container"] > img,
[class*="photo-wrap"] > img,
[class*="photo-container"] > img,
.bento-card > img,
.bento-card-image > img,
.listing-img-wrap > img,
.card-image > img,
.feature-image > img,
.hero-image > img,
.hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .hero-image-col,
  .hero-media,
  .hero-image {
    aspect-ratio: auto;
    min-height: 100vh;
  }
}
/* Fallback for any bare img with percentage height */
img[style*="height: 100%"],
img[style*="height:100%"] {
  min-height: 320px;
}
/* ── end safety-net ── */
