/* ============================================================
   x4digital — styles.css
   Bold Creative (primary) + Friendly Tech (secondary influence)
   Syne 800 / DM Sans 400,500 / Space Mono 400
   ============================================================ */

/* --- Token Declaration --- */
:root {
  /* Backgrounds */
  --canvas: #F9F7F4;
  --surface-alt: #F0EDE8;
  --canvas-dark: #0E0C12;
  --surface-dark: #1A1724;

  /* Text */
  --ink: #1C1920;
  --ink-muted: #6E6A76;
  --ink-light: #F0EDE8;
  --ink-light-muted: #9B96A3;

  /* Accent */
  --vermillion: #E34A2F;
  --vermillion-glow: rgba(227, 74, 47, 0.35);
  --vermillion-hover: #C93D24;

  /* Borders */
  --rule-light: rgba(28, 25, 32, 0.08);
  --rule-dark: rgba(240, 237, 232, 0.1);

  /* Overlay */
  --overlay-dark: rgba(14, 12, 18, 0.72);

  /* Typography */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Type scale */
  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-6xl: clamp(3.5rem, 7.5vw, 6rem);

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

  /* Motion */
  --ease-reveal: cubic-bezier(0.25, 0, 0, 1);
  --dur-reveal: 0.6s;
  --dur-hover: 0.18s;

  /* Active theme tokens (light default) */
  --bg: var(--canvas);
  --bg-alt: var(--surface-alt);
  --bg-dark-section: var(--canvas-dark);
  --text: var(--ink);
  --text-muted: var(--ink-muted);
  --text-on-dark: var(--ink-light);
  --text-on-dark-muted: var(--ink-light-muted);
  --border: var(--rule-light);
  --border-on-dark: var(--rule-dark);
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --bg: var(--canvas-dark);
  --bg-alt: var(--surface-dark);
  --bg-dark-section: var(--canvas);
  --text: var(--ink-light);
  --text-muted: var(--ink-light-muted);
  --text-on-dark: var(--ink);
  --text-on-dark-muted: var(--ink-muted);
  --border: var(--rule-dark);
  --border-on-dark: var(--rule-light);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* --- Containers --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-6); }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 var(--sp-6); }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 var(--sp-6); }

/* --- Sections --- */
.section {
  padding: 160px 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.section-dense { padding: 110px 0; }
.section-light {
  background: var(--bg);
  color: var(--text);
}
.section-dark {
  background: var(--canvas-dark);
  color: var(--ink-light);
}
[data-theme="dark"] .section-dark {
  background: var(--surface-dark);
}
.section-alt {
  background: var(--bg-alt);
  color: var(--text);
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-dense { padding: 64px 0; }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--text);
  transition: color 0.3s ease;
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--ink-light); }

p {
  max-width: 64ch;
  line-height: 1.65;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
  display: block;
}
.section-dark .eyebrow { color: var(--ink-light-muted); }

.subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 50ch;
  line-height: 1.6;
}

.accent-text { color: var(--vermillion); }

/* --- Links / Underline --- */
.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--vermillion);
  transition: width 0.3s var(--ease-reveal);
}
.link-underline:hover::after { width: 100%; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 40px;
  border: none;
  cursor: pointer;
  transition: background var(--dur-hover) ease, color var(--dur-hover) ease, transform var(--dur-hover) ease;
  min-height: 48px;
  min-width: 160px;
  justify-content: center;
}

.btn-primary {
  background: var(--ink);
  color: var(--canvas);
  border-radius: 0;
}
.btn-primary:hover {
  background: var(--vermillion);
  color: #fff;
  transform: translateY(-2px);
}
[data-theme="dark"] .btn-primary {
  background: var(--ink-light);
  color: var(--canvas-dark);
}
[data-theme="dark"] .btn-primary:hover {
  background: var(--vermillion);
  color: #fff;
}

.btn-accent {
  background: var(--vermillion);
  color: #fff;
  border-radius: 999px;
}
.btn-accent:hover {
  background: var(--vermillion-hover);
  transform: translateY(-2px);
}

.btn-outline {
  position: relative;
  border: 2px solid var(--text);
  color: var(--text);
  background: transparent;
  border-radius: 0;
  padding: 16px 38px;
  overflow: hidden;
  z-index: 0;
}
.btn-outline::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 100%;
  background: var(--text);
  transition: width 0.3s var(--ease-reveal);
  z-index: -1;
}
.btn-outline:hover { color: var(--bg); }
.btn-outline:hover::before { width: 100%; }

.section-dark .btn-outline {
  border-color: var(--ink-light);
  color: var(--ink-light);
}
.section-dark .btn-outline::before { background: var(--ink-light); }
.section-dark .btn-outline:hover { color: var(--canvas-dark); }

/* --- Nav (data-nav-role contract) --- */
[data-nav-role="header"] {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

[data-nav-role="header"].is-scrolled {
  border-color: var(--border);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

[data-nav-role="desktop-nav"] {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

[data-nav-role="desktop-nav"] a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur-hover) ease;
  text-decoration: none;
}
[data-nav-role="desktop-nav"] a:hover { color: var(--text); }
[data-nav-role="desktop-nav"] a[aria-current="page"] { color: var(--text); }

.nav-cta {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--vermillion);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: background var(--dur-hover) ease, transform var(--dur-hover) ease;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--vermillion-hover);
  transform: translateY(-1px);
}

/* Theme toggle */
[data-theme-toggle] {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--dur-hover) ease, background var(--dur-hover) ease;
}
[data-theme-toggle]:hover {
  color: var(--text);
  background: var(--border);
}
[data-theme-toggle] .icon-sun,
[data-theme-toggle] .icon-moon { display: none; }
[data-theme="dark"] [data-theme-toggle] .icon-sun { display: block; }
[data-theme="light"] [data-theme-toggle] .icon-moon { display: block; }
:root:not([data-theme]) [data-theme-toggle] .icon-moon { display: block; }

/* Mobile hamburger */
[data-nav-role="mobile-toggle"] {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  z-index: 110;
}

/* Mobile drawer */
[data-nav-role="mobile-drawer"] {
  display: none;
}

[data-nav-role="mobile-drawer"][aria-expanded="true"] {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--bg);
  padding: 100px var(--sp-6) var(--sp-12);
  gap: var(--sp-3);
  animation: drawer-in 0.3s var(--ease-reveal) forwards;
}

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

[data-nav-role="mobile-drawer"] a {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color var(--dur-hover) ease;
}
[data-nav-role="mobile-drawer"] a:hover { color: var(--vermillion); }

[data-nav-role="mobile-drawer"] .nav-cta {
  margin-top: var(--sp-8);
  text-align: center;
  font-size: var(--text-sm);
  padding: 18px 32px;
  display: inline-block;
  align-self: flex-start;
}

@media (max-width: 1023px) {
  [data-nav-role="desktop-nav"] { display: none; }
  [data-nav-role="mobile-toggle"] { display: inline-flex; }
}

@media (min-width: 1024px) {
  [data-nav-role="mobile-drawer"] { display: none !important; }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 0 clamp(24px, 5vw, 80px);
  transition: background-color 0.3s ease;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
}
.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[data-theme="dark"] .hero-bg-image { opacity: 0.12; }

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

.hero-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-8);
  display: block;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: var(--sp-8);
  transition: color 0.3s ease;
}

.hero-headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: word-reveal 0.6s var(--ease-reveal) forwards;
  animation-delay: calc(var(--i) * 0.12s + 0.2s);
}

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

.hero-headline .euro-anchor {
  font-size: clamp(80px, 12vw, 148px);
  color: var(--vermillion);
  line-height: 0.85;
  display: inline-block;
}
[data-theme="dark"] .hero-headline .euro-anchor {
  text-shadow: 0 0 60px var(--vermillion-glow), 0 0 120px var(--vermillion-glow);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: var(--sp-10);
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 0.7s var(--ease-reveal) 0.9s forwards;
}

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

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.7s var(--ease-reveal) 1.1s forwards;
}

@media (max-width: 768px) {
  .hero {
    min-height: 85vh;
    padding-top: 100px;
    align-items: flex-start;
  }
  .hero-headline { line-height: 1.0; }
}

/* --- Stat Strip --- */
.stat-strip {
  display: flex;
  gap: var(--sp-12);
  padding: var(--sp-12) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 180px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--vermillion);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .stat-strip { flex-direction: column; gap: var(--sp-8); }
}

/* --- How It Works (horizontal timeline) --- */
.timeline-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  position: relative;
}

.timeline-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: var(--border);
}

.step-card {
  text-align: center;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--vermillion);
  width: 48px;
  height: 48px;
  border: 2px solid var(--vermillion);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-6);
  background: var(--bg);
  position: relative;
  z-index: 1;
  transition: background-color 0.3s ease;
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--sp-3);
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 28ch;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline-steps { grid-template-columns: 1fr; gap: var(--sp-10); }
  .timeline-steps::before { display: none; }
}

/* --- How It Works visual column --- */
.hiw-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-16);
  align-items: center;
}

.hiw-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 0;
}
.hiw-image-wrap > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .hiw-layout { grid-template-columns: 1fr; }
  .hiw-image-wrap { aspect-ratio: 16 / 9; }
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.comparison-table thead th {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 800;
  text-align: left;
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 2px solid var(--border);
  color: var(--text);
}

.comparison-table thead th:first-child {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
}

.comparison-table thead th.highlight {
  color: var(--vermillion);
}

.comparison-table tbody tr {
  transition: background-color var(--dur-hover) ease;
}

.comparison-table tbody tr:nth-child(odd) {
  background: var(--bg-alt);
}
[data-theme="dark"] .comparison-table tbody tr:nth-child(odd) {
  background: var(--surface-dark);
}

.comparison-table tbody td {
  padding: var(--sp-3) var(--sp-6);
  color: var(--text);
  vertical-align: middle;
}

.comparison-table tbody td:first-child {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.comparison-table tbody td.highlight {
  font-weight: 500;
  color: var(--text);
}

.comparison-table .check { color: var(--vermillion); font-weight: 700; }
.comparison-table .cross { color: var(--text-muted); opacity: 0.5; }

@media (max-width: 640px) {
  .comparison-table { font-size: var(--text-xs); }
  .comparison-table thead th,
  .comparison-table tbody td { padding: var(--sp-2) var(--sp-3); }
}

/* --- Testimonials / Social Proof (dark section, large quotes) --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
}

.testimonial-card {
  padding: var(--sp-10);
  border-left: 3px solid var(--vermillion);
}

.testimonial-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-light);
  margin-bottom: var(--sp-6);
  max-width: none;
}

.testimonial-card .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--vermillion);
  display: block;
  margin-bottom: var(--sp-3);
}

.testimonial-card cite {
  font-style: normal;
  display: block;
}
.testimonial-card .reviewer-name {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vermillion);
}
.testimonial-card .reviewer-title {
  font-size: var(--text-sm);
  color: var(--ink-light-muted);
  margin-top: var(--sp-1);
}

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

/* --- Pricing Cards --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  align-items: start;
}

.pricing-card {
  background: var(--bg);
  padding: var(--sp-10) var(--sp-8);
  border: 1px solid var(--border);
  border-radius: 0;
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--vermillion);
  border-width: 2px;
  transform: translateY(-8px);
}

.pricing-card .badge {
  position: absolute;
  top: -14px;
  left: var(--sp-8);
  background: var(--vermillion);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
}

.pricing-card .plan-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--sp-3);
}

.pricing-card .plan-price {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.pricing-card .plan-price .cadence {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card .plan-features {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.pricing-card .plan-features li {
  font-size: var(--text-sm);
  color: var(--text);
  padding: var(--sp-2) 0;
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}
.pricing-card .plan-features li::before {
  content: '—';
  color: var(--vermillion);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .plan-cta {
  margin-top: var(--sp-8);
}

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.featured { transform: none; }
}
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* --- Pricing comparison table (dark/light showcase) --- */
.pricing-comparison { overflow-x: auto; }
.pricing-comparison table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.pricing-comparison th,
.pricing-comparison td {
  padding: var(--sp-3) var(--sp-6);
  text-align: left;
  font-size: var(--text-sm);
}
.pricing-comparison thead th {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  border-bottom: 2px solid var(--border);
}
.pricing-comparison tbody tr:nth-child(odd) {
  background: var(--bg-alt);
}
[data-theme="dark"] .pricing-comparison tbody tr:nth-child(odd) {
  background: var(--surface-dark);
}

/* --- FAQ Accordion --- */
[data-accordion] {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-6) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  transition: color var(--dur-hover) ease;
}
.accordion-trigger:hover { color: var(--vermillion); }

.accordion-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}
.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--text);
  transition: transform 0.3s var(--ease-reveal);
}
.accordion-icon::before {
  top: 50%; left: 4px; right: 4px;
  height: 2px;
  transform: translateY(-50%);
}
.accordion-icon::after {
  left: 50%; top: 4px; bottom: 4px;
  width: 2px;
  transform: translateX(-50%);
}

[data-accordion].is-open .accordion-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-reveal), opacity 0.3s ease;
  opacity: 0;
}
[data-accordion].is-open .accordion-body {
  opacity: 1;
}

.accordion-body-inner {
  padding-bottom: var(--sp-6);
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 60ch;
}

/* --- CTA Band --- */
.cta-band {
  text-align: center;
  padding: 170px 0;
}
.cta-band h2 {
  margin-bottom: var(--sp-8);
}
.cta-band .btn {
  margin-top: var(--sp-4);
}

@media (max-width: 768px) {
  .cta-band { padding: 90px 0; }
}

/* --- €1 Dramatic Treatment --- */
.euro-dramatic {
  font-family: var(--font-display);
  font-size: clamp(96px, 14vw, 160px);
  font-weight: 800;
  color: var(--vermillion);
  line-height: 0.85;
  letter-spacing: -0.04em;
}
[data-theme="dark"] .euro-dramatic {
  text-shadow: 0 0 80px var(--vermillion-glow), 0 0 160px rgba(227, 74, 47, 0.2);
}

.euro-context {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

/* --- About Page --- */
.about-editorial {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
.about-editorial > *:first-child { padding-top: var(--sp-4); }

@media (max-width: 768px) {
  .about-editorial { grid-template-columns: 1fr; gap: var(--sp-8); }
}

.values-list {
  counter-reset: val;
}
.values-list li {
  counter-increment: val;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--border);
}
.values-list li::before {
  content: counter(val, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--vermillion);
  letter-spacing: 0.04em;
  padding-top: 3px;
}
.values-list li h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-2);
  line-height: 1.2;
}
.values-list li p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Accent Rule --- */
.accent-rule {
  width: 40px;
  height: 4px;
  background: var(--vermillion);
  margin-bottom: var(--sp-8);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-reveal) var(--ease-reveal),
              transform var(--dur-reveal) var(--ease-reveal);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.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.4s; }

/* Fallback: if JS never fires, make content visible after 2s */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-headline .word { opacity: 1; transform: none; animation: none; }
  .hero-sub { opacity: 1; animation: none; }
  .hero-actions { opacity: 1; animation: none; }
}

/* --- Footer --- */
.site-footer {
  padding: var(--sp-12) 0;
  border-top: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-6);
}

.footer-links {
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-hover) ease;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* --- Image containers (safety net) --- */
.img-cover-wrap {
  position: relative;
  overflow: hidden;
}
.img-cover-wrap > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image fade on load */
img { opacity: 0; transition: opacity 0.4s ease; }
img.loaded { opacity: 1; }

/* --- Utility --- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.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;
}

/* --- Responsive Spacing Helpers --- */
@media (max-width: 768px) {
  .hero-headline .euro-anchor {
    font-size: clamp(64px, 18vw, 100px);
  }
  .euro-dramatic {
    font-size: clamp(72px, 20vw, 120px);
  }
}


/* ── 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.

   :where() gives zero specificity so any explicit rule the Styles agent wrote
   (e.g. .hero-image-wrap { aspect-ratio: 4/5 }) wins. Without this, the broad
   [class*="image-wrap"] selector at equal specificity but later source order
   was overriding intended hero portrait ratios to landscape. */
:where(
  [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;
}

/* Nav role contract (Phase 6a+, 2026-04-20). Elements declare semantic role
   via data-nav-role; safety-net targets roles, not structural attributes.
   Roles: header | desktop-nav | mobile-toggle | mobile-drawer.
   Styles Agent stays free to invent any HTML + layout; must annotate roles.
   This replaces the earlier [data-mobile-nav]{display:none} rule, which
   collided when Styles used one container for both desktop + mobile nav. */
[data-nav-role="mobile-drawer"] { display: none; }
[data-nav-role="mobile-toggle"] { display: none; }
@media (max-width: 1023px) {
  [data-nav-role="desktop-nav"] { display: none; }
  [data-nav-role="mobile-toggle"] { display: inline-flex; }
  [data-nav-role="mobile-drawer"][aria-expanded="true"] { display: flex; }
}
[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 ── */
