/* VitalPath — Weight Management Business Card Website */
/* Design tokens following 60-30-10 rule, 8pt grid, fluid type */

:root {
  /* 60% — Dominant (backgrounds) */
  --color-bg: #fafafa;
  --color-bg-elevated: #ffffff;
  --color-bg-muted: #f4f4f4;
  --color-bg-card: #ffffff;

  /* 30% — Secondary (structure, text) */
  --color-text: #1a1a2e;
  --color-text-muted: #6b6b7b;
  --color-text-subtle: #9a9aa8;
  --color-border: #e8e8ed;
  --color-border-strong: #d0d0db;

  /* 10% — Accent (CTAs, highlights) */
  --color-accent: #0066cc;
  --color-accent-hover: #0052a3;
  --color-accent-light: #e8f0fe;
  --color-accent-strong: #004499;

  /* Semantic */
  --color-success: #059669;
  --color-warning: #d97706;
  --color-error: #dc2626;

  /* Dark mode */
  --color-bg-dark: #0f0f12;
  --color-bg-elevated-dark: #18181c;
  --color-bg-muted-dark: #1f1f26;
  --color-bg-card-dark: #18181c;
  --color-text-dark: #f4f4f5;
  --color-text-muted-dark: #a1a1aa;
  --color-text-subtle-dark: #71717a;
  --color-border-dark: #27272a;
  --color-border-strong-dark: #3f3f46;
  --color-accent-dark: #60a5fa;
  --color-accent-hover-dark: #93c5fd;
  --color-accent-light-dark: #1e3a5f;

  /* Typography — fluid clamp */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs: clamp(0.7rem, 0.68rem + 0.1vw, 0.75rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.16vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.88rem + 0.28vw, 1rem);
  --text-lg: clamp(1.0625rem, 0.97rem + 0.46vw, 1.125rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.375rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 1.75rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.25rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3rem);
  --text-5xl: clamp(3rem, 2.25rem + 3.75vw, 4rem);

  /* Spacing — 8pt grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --container-max: 1200px;
  --container-padding: var(--space-6);
  --header-height: 72px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

  /* Transitions */
  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* Dark mode */
[data-theme="dark"] {
  --color-bg: var(--color-bg-dark);
  --color-bg-elevated: var(--color-bg-elevated-dark);
  --color-bg-muted: var(--color-bg-muted-dark);
  --color-bg-card: var(--color-bg-card-dark);
  --color-text: var(--color-text-dark);
  --color-text-muted: var(--color-text-muted-dark);
  --color-text-subtle: var(--color-text-subtle-dark);
  --color-border: var(--color-border-dark);
  --color-border-strong: var(--color-border-strong-dark);
  --color-accent: var(--color-accent-dark);
  --color-accent-hover: var(--color-accent-hover-dark);
  --color-accent-light: var(--color-accent-light-dark);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -1px rgba(0,0,0,0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -2px rgba(0,0,0,0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5), 0 10px 10px -5px rgba(0,0,0,0.2);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Self-hosted Inter font */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Inter-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Inter-ExtraBold.woff2') format('woff2');
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: var(--color-accent-light); color: var(--color-accent-strong); }
[data-theme="dark"] ::selection { background: var(--color-accent-light-dark); color: var(--color-accent-hover-dark); }

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--color-bg-elevated);
  background: color-mix(in srgb, var(--color-bg-elevated) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: var(--z-sticky);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand-icon { width: 32px; height: 32px; color: var(--color-accent); flex-shrink: 0; }
.brand-text { font-weight: 700; font-size: var(--text-xl); letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: var(--space-2); }
.nav-link { padding: var(--space-2) var(--space-4); font-weight: 500; font-size: var(--text-sm); color: var(--color-text-muted); border-radius: var(--radius-md); transition: color var(--transition-fast), background var(--transition-fast); }
.nav-link:hover { color: var(--color-text); background: var(--color-bg-muted); }
.nav-cta { background: var(--color-accent); color: white; padding: var(--space-2) var(--space-5); }
.nav-cta:hover { background: var(--color-accent-hover); color: white; }
.theme-toggle { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-full); color: var(--color-text-muted); transition: color var(--transition-fast), background var(--transition-fast); }
.theme-toggle:hover { color: var(--color-text); background: var(--color-bg-muted); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.mobile-menu-toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.mobile-menu-toggle span { display: block; width: 20px; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform var(--transition-base), opacity var(--transition-base); }
.mobile-menu { position: fixed; top: var(--header-height); left: 0; right: 0; background: var(--color-bg-elevated); border-bottom: 1px solid var(--color-border); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); box-shadow: var(--shadow-lg); z-index: var(--z-dropdown); }
.mobile-menu[hidden] { display: none; }
.mobile-nav-link { padding: var(--space-3) var(--space-4); font-weight: 500; font-size: var(--text-base); color: var(--color-text-muted); border-radius: var(--radius-md); }
.mobile-nav-link:hover { color: var(--color-text); background: var(--color-bg-muted); }
.mobile-nav-cta { background: var(--color-accent); color: white; text-align: center; margin-top: var(--space-2); }
.mobile-nav-cta:hover { background: var(--color-accent-hover); }

/* Hero */
.hero { padding: calc(var(--header-height) + var(--space-20)) 0 var(--space-20); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-12); align-items: center; }
.hero-badge { display: inline-block; padding: var(--space-1) var(--space-3); font-size: var(--text-sm); font-weight: 500; color: var(--color-accent); background: var(--color-accent-light); border-radius: var(--radius-full); margin-bottom: var(--space-5); }
.hero-title { font-size: var(--text-5xl); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: var(--space-5); }
.highlight { color: var(--color-accent); }
.hero-description { font-size: var(--text-xl); color: var(--color-text-muted); max-width: 560px; margin-bottom: var(--space-8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-10); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-3) var(--space-6); font-weight: 600; font-size: var(--text-base); border-radius: var(--radius-md); transition: all var(--transition-fast); white-space: nowrap; }
.btn-primary { background: var(--color-accent); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-accent-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-secondary { background: var(--color-bg-elevated); color: var(--color-text); border: 1px solid var(--color-border); }
.btn-secondary:hover { background: var(--color-bg-muted); border-color: var(--color-border-strong); }
.btn-inline { padding: var(--space-2) var(--space-5); font-size: var(--text-sm); }
.btn-full { width: 100%; }
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.trust-item { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.trust-item svg { width: 18px; height: 18px; color: var(--color-success); flex-shrink: 0; }
.hero-visual { display: none; }
.visual-card { background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.visual-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--color-accent), var(--color-success)); }
.visual-content { text-align: center; }
.stat-ring { width: 140px; height: 140px; margin: 0 auto var(--space-6); position: relative; }
.stat-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--color-border); stroke-width: 8; }
.ring-progress { fill: none; stroke: var(--color-accent); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s ease-out; }
.stat-number { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: var(--text-4xl); font-weight: 800; color: var(--color-text); }
.stat-labels { display: flex; flex-direction: column; gap: var(--space-2); text-align: center; }
.stat-label { font-size: var(--text-sm); color: var(--color-text-muted); }
.stat-label strong { color: var(--color-text); }
.visual-accent { position: absolute; bottom: 0; right: 0; width: 120px; height: 120px; background: radial-gradient(circle at top left, var(--color-accent-light) 0%, transparent 70%); border-radius: 0 0 var(--radius-xl) 0; pointer-events: none; }
[data-theme="dark"] .visual-accent { background: radial-gradient(circle at top left, var(--color-accent-light-dark) 0%, transparent 70%); }

/* Sections */
.section { padding: var(--space-20) 0; }
.section-alt { background: var(--color-bg-muted); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto var(--space-16); }
.section-tag { display: inline-block; font-size: var(--text-sm); font-weight: 600; color: var(--color-accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-3); }
.section-title { font-size: var(--text-4xl); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: var(--space-4); }
.section-subtitle { font-size: var(--text-lg); color: var(--color-text-muted); }

/* Programme */
.programme-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.phase-card { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8); transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base); position: relative; }
.phase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--color-border-strong); }
.phase-number { font-size: var(--text-sm); font-weight: 600; color: var(--color-accent); letter-spacing: 0.08em; margin-bottom: var(--space-3); }
.phase-title { font-size: var(--text-2xl); font-weight: 700; margin-bottom: var(--space-3); }
.phase-description { color: var(--color-text-muted); margin-bottom: var(--space-5); line-height: 1.7; }
.phase-features { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.phase-features li { font-size: var(--text-sm); color: var(--color-text-muted); display: flex; align-items: center; gap: var(--space-2); position: relative; padding-left: var(--space-5); }
.phase-features li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; background: var(--color-accent); border-radius: 50%; }
.phase-duration { display: inline-block; font-size: var(--text-xs); font-weight: 600; color: var(--color-text-subtle); padding: var(--space-1) var(--space-3); background: var(--color-bg-muted); border-radius: var(--radius-full); }

/* Guide */
.guide-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-12); align-items: start; }
.guide-visual { display: none; }
.guide-mockup { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.mockup-header { padding: var(--space-3) var(--space-4); background: var(--color-bg-muted); border-bottom: 1px solid var(--color-border); display: flex; gap: var(--space-2); }
.mockup-dots { display: flex; gap: 6px; margin-top: 4px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border-strong); }
.mockup-dots span:first-child { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:last-child { background: #28ca42; }
.mockup-content { padding: var(--space-6); }
.mockup-section { margin-bottom: var(--space-6); }
.mockup-title { height: 20px; width: 60%; background: var(--color-border); border-radius: var(--radius-sm); margin-bottom: var(--space-3); }
.mockup-text { height: 14px; width: 100%; background: var(--color-border); border-radius: var(--radius-sm); margin-bottom: var(--space-2); }
.mockup-text.short { width: 70%; }
.mockup-chart { height: 120px; background: linear-gradient(180deg, var(--color-accent-light) 0%, transparent 100%); border-radius: var(--radius-md); }
[data-theme="dark"] .mockup-chart { background: linear-gradient(180deg, var(--color-accent-light-dark) 0%, transparent 100%); }
.mockup-list { display: flex; flex-direction: column; gap: var(--space-2); }
.mockup-list span { height: 18px; width: 80%; background: var(--color-border); border-radius: var(--radius-sm); }
.mockup-list span:nth-child(2) { width: 60%; }
.mockup-list span:nth-child(3) { width: 90%; }
.guide-lead { font-size: var(--text-lg); color: var(--color-text-muted); margin-bottom: var(--space-8); }
.guide-features { display: flex; flex-direction: column; gap: var(--space-5); margin-bottom: var(--space-8); }
.guide-features li { display: flex; gap: var(--space-4); padding: var(--space-5); background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.guide-features li:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-md); }
.guide-features svg { width: 24px; height: 24px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.guide-features strong { display: block; font-size: var(--text-base); margin-bottom: var(--space-1); }
.guide-features span { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.5; }

/* Services */
.services-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.service-card { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8); transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base); display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--color-accent); }
.service-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--color-accent-light); border-radius: var(--radius-lg); color: var(--color-accent); margin-bottom: var(--space-5); }
[data-theme="dark"] .service-icon { background: var(--color-accent-light-dark); color: var(--color-accent-dark); }
.service-title { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-3); }
.service-description { color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-5); flex: 1; }
.service-details { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid var(--color-border); }
.service-details li { font-size: var(--text-sm); color: var(--color-text-muted); display: flex; align-items: center; gap: var(--space-2); position: relative; padding-left: var(--space-5); }
.service-details li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; background: var(--color-success); border-radius: 50%; }
.service-price { font-size: var(--text-lg); font-weight: 700; color: var(--color-accent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-12); align-items: start; }
.contact-lead { font-size: var(--text-lg); color: var(--color-text-muted); margin-bottom: var(--space-8); }
.contact-methods { display: flex; flex-direction: column; gap: var(--space-5); }
.contact-method { display: flex; gap: var(--space-4); padding: var(--space-5); background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.contact-method:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-md); }
.contact-method svg { width: 24px; height: 24px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.contact-method strong { display: block; font-size: var(--text-base); margin-bottom: var(--space-1); }
.contact-method span { font-size: var(--text-sm); color: var(--color-text-muted); }
.contact-form { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8); }
.form-row { margin-bottom: var(--space-5); }
.form-row label { display: block; font-size: var(--text-sm); font-weight: 500; margin-bottom: var(--space-2); color: var(--color-text); }
.required { color: var(--color-error); }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: var(--space-3) var(--space-4); font-size: var(--text-base); color: var(--color-text); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-light); }
[data-theme="dark"] .form-row input:focus, [data-theme="dark"] .form-row select:focus, [data-theme="dark"] .form-row textarea:focus { box-shadow: 0 0 0 3px var(--color-accent-light-dark); }
.form-row textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: var(--text-xs); color: var(--color-text-subtle); margin-top: var(--space-4); text-align: center; }
.form-note a { color: var(--color-accent); text-decoration: underline; }

/* Footer */
.footer { background: var(--color-bg-elevated); border-top: 1px solid var(--color-border); padding: var(--space-16) 0 var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-10); margin-bottom: var(--space-12); }
.footer-tagline { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: var(--space-4); max-width: 280px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.footer-nav-col h4 { font-size: var(--text-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-subtle); margin-bottom: var(--space-4); }
.footer-nav-col a { display: block; font-size: var(--text-sm); color: var(--color-text-muted); padding: var(--space-1) 0; transition: color var(--transition-fast); }
.footer-nav-col a:hover { color: var(--color-accent); }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); padding-top: var(--space-8); border-top: 1px solid var(--color-border); }
.copyright { font-size: var(--text-sm); color: var(--color-text-subtle); }
.footer-social { display: flex; gap: var(--space-4); }
.footer-social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-full); color: var(--color-text-muted); background: var(--color-bg-muted); transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast); }
.footer-social a:hover { color: var(--color-accent); background: var(--color-accent-light); transform: translateY(-2px); }
[data-theme="dark"] .footer-social a:hover { background: var(--color-accent-light-dark); }
.footer-social svg { width: 20px; height: 20px; }

/* Responsive */
@media (min-width: 640px) {
  .hero-actions { flex-wrap: nowrap; }
  .footer-nav { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .programme-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
  }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.2fr 1fr; }
  .hero-visual { display: block; }
  .guide-visual { display: block; }
  .guide-grid { grid-template-columns: 1fr 1.1fr; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .mobile-menu-toggle { display: none; }
  .nav { display: flex; }
  .theme-toggle { display: flex; }
}

@media (max-width: 1023px) {
  .nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* Animations — JS-controlled via .is-visible class */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { opacity: 0; transform: translateY(20px); }
.animate-fade-up.is-visible { animation: fadeUp 0.6s ease forwards; }
.phase-card:nth-child(1).is-visible { animation-delay: 0.1s; }
.phase-card:nth-child(2).is-visible { animation-delay: 0.2s; }
.phase-card:nth-child(3).is-visible { animation-delay: 0.3s; }
.service-card:nth-child(1).is-visible { animation-delay: 0.1s; }
.service-card:nth-child(2).is-visible { animation-delay: 0.2s; }
.service-card:nth-child(3).is-visible { animation-delay: 0.3s; }
.guide-features li:nth-child(1).is-visible { animation-delay: 0.1s; }
.guide-features li:nth-child(2).is-visible { animation-delay: 0.2s; }
.guide-features li:nth-child(3).is-visible { animation-delay: 0.3s; }
.guide-features li:nth-child(4).is-visible { animation-delay: 0.4s; }
.contact-method:nth-child(1).is-visible { animation-delay: 0.1s; }
.contact-method:nth-child(2).is-visible { animation-delay: 0.2s; }
.contact-method:nth-child(3).is-visible { animation-delay: 0.3s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Print */
@media print {
  .header, .hero-actions, .contact-form, .footer-social, .theme-toggle { display: none !important; }
  .hero { padding-top: var(--space-10); }
  body { background: white; color: black; }
  .section-alt { background: white !important; }
}
/* Legal Pages — Tables, Definition Lists, etc. */
.legal-content { line-height: 1.8; }
.legal-content h2 { font-size: var(--text-2xl); font-weight: 700; margin: var(--space-10) 0 var(--space-4); padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-border); }
.legal-content h3 { font-size: var(--text-xl); font-weight: 600; margin: var(--space-8) 0 var(--space-3); }
.legal-content p { margin-bottom: var(--space-4); }
.legal-content ul, .legal-content ol { margin: var(--space-4) 0 var(--space-4) var(--space-6); }
.legal-content li { margin-bottom: var(--space-2); }
.legal-content li::marker { color: var(--color-accent); }
.legal-content address { font-style: normal; color: var(--color-text-muted); line-height: 1.7; }
.legal-content a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--color-accent-hover); }
.legal-content code { font-family: var(--font-mono); font-size: 0.9em; background: var(--color-bg-muted); padding: 0.1em 0.4em; border-radius: var(--radius-sm); }
.legal-content .note { font-size: var(--text-sm); color: var(--color-text-muted); background: var(--color-bg-muted); padding: var(--space-4); border-radius: var(--radius-md); border-left: 3px solid var(--color-accent); margin: var(--space-4) 0; }

.legal-table { width: 100%; border-collapse: collapse; margin: var(--space-6) 0; font-size: var(--text-sm); }
.legal-table th, .legal-table td { padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.legal-table th { background: var(--color-bg-muted); font-weight: 600; color: var(--color-text); }
.legal-table tr:nth-child(even) td { background: var(--color-bg-muted); }
.legal-table thead th { position: sticky; top: 0; z-index: 1; }

.imprint-dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-6); margin: var(--space-4) 0; }
.imprint-dl dt { font-weight: 600; color: var(--color-text-muted); }
.imprint-dl dd { margin: 0; color: var(--color-text); }
.imprint-dl dd address { margin: 0; }

.legal-nav { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Form field errors (JS-driven, see script.js) */
.form-error { display: block; margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-error); }
.form-row input[aria-invalid="true"], .form-row select[aria-invalid="true"], .form-row textarea[aria-invalid="true"] { border-color: var(--color-error); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15); }

/* Cookie consent banner (markup injected by script.js) */
.cookie-banner { position: fixed; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); z-index: var(--z-toast); display: flex; justify-content: center; }
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { width: 100%; max-width: 560px; background: var(--color-bg-elevated); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); padding: var(--space-6); }
.cookie-banner-text h2 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.cookie-banner-text p { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-4); }
.cookie-banner-text a { color: var(--color-accent); text-decoration: underline; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cookie-prefs { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.cookie-prefs[hidden] { display: none; }
.cookie-prefs label { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); }
.cookie-prefs input { width: auto; }
.footer-cookie-btn { font: inherit; font-size: var(--text-sm); color: var(--color-text-subtle); background: none; border: none; cursor: pointer; padding: 0; text-decoration: underline; }
.footer-cookie-btn:hover { color: var(--color-accent); }
