/* ==========================================================================
   EDITORIAL NOCTURNE — Design System
   Warm dark, editorial typography, no glow/glass/emoji
   ========================================================================== */

/* ─── CSS Custom Properties (Design Tokens) ─── */
:root {
  /* Colors — Warm Dark */
  --bg-deep: #0c0b0a;           /* Page background */
  --bg-surface: #141210;        /* Cards, panels */
  --bg-surface-elevated: #1c1916; /* Elevated surfaces */
  --bg-input: #100f0d;          /* Form inputs */

  --text-primary: #f3eee6;      /* Ivory - primary text */
  --text-secondary: #a39a8e;    /* Sand - secondary text */
  --text-muted: #6b6359;        /* Muted */

  --accent: #e8ddd0;            /* Warm ivory - buttons, logo, key UI */
  --accent-hover: #f0e5d8;
  --accent-pressed: #d4c8b8;

  --danger: #c45c4a;            /* Red - close call, destructive */
  --danger-hover: #b04d3d;
  --danger-dim: rgba(196, 92, 74, 0.15);

  --success: #7a9a72;           /* Green - live, connected */
  --success-hover: #6d8a65;
  --success-dim: rgba(122, 154, 114, 0.15);

  --border-subtle: #2c2824;     /* Hairline borders */
  --border-default: #3a3530;    /* Default borders */
  --border-focus: var(--accent); /* Focus ring */

  /* Typography */
  --font-ui: 'Figtree', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  --font-size-xs: 0.65rem;    /* 10.4px - labels */
  --font-size-sm: 0.8125rem;  /* 13px */
  --font-size-base: 0.9375rem; /* 15px */
  --font-size-lg: 1.0625rem;  /* 17px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5625rem; /* 25px */
  --font-size-3xl: 2rem;      /* 32px */
  --font-size-4xl: 2.5rem;    /* 40px */
  --font-size-5xl: 3.5rem;    /* 56px */
  --font-size-6xl: 4.5rem;    /* 72px - hero title */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.05;
  --line-height-snug: 1.25;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.75;

  /* Label style: uppercase, wide tracking */
  --label-size: 0.65rem;
  --label-tracking: 0.18em;
  --label-weight: 500;

  /* Spacing */
  --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;

  /* Radius — Generous */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows — Soft, no glow */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35), 0 0 0 1px var(--border-subtle);

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

  /* Layout */
  --container-max: 72rem; /* 1152px / 16 = 72rem — narrow editorial width */
  --container-padding: var(--space-6);

  /* Pulse animation (for live indicator) */
  --pulse-duration: 2s;
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
    --pulse-duration: 0ms;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Font Faces ─── */
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-variable.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  font-stretch: 85% 100%;
}

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-variable.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  font-stretch: 75% 100%;
  font-optical-sizing: auto;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-primary);
  background-color: var(--bg-deep);
  min-height: 100vh;
  position: relative;
}

/* Grain texture overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

@media (prefers-reduced-motion: reduce) {
  .grain-overlay { opacity: 0.01; }
}

.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--font-size-6xl); font-weight: 600; }
h2 { font-size: var(--font-size-4xl); font-weight: 500; }
h3 { font-size: var(--font-size-2xl); font-weight: 500; }
h4 { font-size: var(--font-size-xl); font-weight: 500; }
h5 { font-size: var(--font-size-lg); font-weight: 500; }
h6 { font-size: var(--font-size-base); font-weight: 500; }

p { margin: 0 0 var(--space-4); color: var(--text-secondary); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}
a:hover { opacity: 0.75; }
a:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul, ol { margin: 0 0 var(--space-4) var(--space-6); padding: 0; }
li { margin-bottom: var(--space-2); }

img, video, picture, svg { display: block; max-width: 100%; height: auto; }

/* Forms */
input, select, textarea, button { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }

input, select, textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-base);
  line-height: 1.5;
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(232, 221, 208, 0.2);
}

input::placeholder { color: var(--text-muted); }

/* Label style utility */
.label {
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Selection */
::selection { background: var(--accent); color: var(--bg-deep); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-default); }

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

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-ui);
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-base);
  cursor: pointer;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.btn:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; }

.btn__icon { flex-shrink: 0; width: 1.25em; height: 1.25em; }

/* Primary — Accent (warm ivory) on dark */
.btn--primary {
  background: var(--accent);
  color: var(--bg-deep);
  border-color: var(--accent);
}
.btn--primary:not(:disabled):hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn--primary:not(:disabled):active { background: var(--accent-pressed); transform: translateY(0); }

/* Secondary — Outline accent */
.btn--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-default);
}
.btn--secondary:not(:disabled):hover {
  border-color: var(--accent);
  background: rgba(232, 221, 208, 0.08);
}

/* Danger — Red for close call */
.btn--danger {
  background: var(--danger);
  color: var(--text-primary);
  border-color: var(--danger);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 0;
}
.btn--danger:not(:disabled):hover {
  background: var(--danger-hover);
  transform: scale(1.05);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding: var(--space-2) var(--space-4);
}
.btn--ghost:not(:disabled):hover { color: var(--text-primary); }

/* Full width */
.btn--full { width: 100%; }

/* ==========================================================================
   FORM
   ========================================================================== */
.form-row { margin-bottom: var(--space-5); }

.form-group { display: flex; flex-direction: column; gap: var(--space-1); }

.form-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
}

.form-input,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-base);
  line-height: 1.5;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-input);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}
.form-input:hover,
.form-select:hover { border-color: var(--border-default); }
.form-input:focus,
.form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(232, 221, 208, 0.2);
  background: var(--bg-surface);
}
.form-input:disabled,
.form-select:disabled { opacity: 0.4; cursor: not-allowed; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a39a8e' stroke-width='1.5' 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 var(--space-3) center;
  background-size: 20px;
  padding-right: var(--space-10);
}
.form-select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23e8ddd0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Checkbox groups */
.form-checkboxes { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--border-subtle); }

.checkbox-group { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; }
.checkbox-input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--accent);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: var(--bg-input);
  transition: all var(--transition-fast);
}
.checkbox-input:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.checkbox-input:checked { border-color: var(--accent); background: rgba(232, 221, 208, 0.15); box-shadow: inset 0 0 0 2px var(--accent); }

.checkbox-label {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  color: var(--text-secondary);
}
.checkbox-group:hover .checkbox-label { color: var(--text-primary); }
.checkbox-label a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.checkbox-label a:hover { opacity: 0.75; }

/* Validation styles */
.form-input.is-invalid,
.form-select.is-invalid {
  border-color: #c45c4a;
  box-shadow: 0 0 0 3px rgba(196, 92, 74, 0.15);
}
.form-input.is-valid,
.form-select.is-valid {
  border-color: #7a9a72;
  box-shadow: 0 0 0 3px rgba(122, 154, 114, 0.15);
}
.checkbox-input.is-invalid {
  border-color: #c45c4a;
  box-shadow: 0 0 0 3px rgba(196, 92, 74, 0.15);
}
.checkbox-input.is-valid {
  border-color: #7a9a72;
  box-shadow: 0 0 0 3px rgba(122, 154, 114, 0.15);
}

/* Error message */
.form-error {
  display: none;
  font-size: var(--font-size-xs);
  color: #c45c4a;
  margin-top: var(--space-1);
}
.form-group--error .form-error {
  display: block;
}

/* ==========================================================================
   BADGES / PILLS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  font-family: var(--font-ui);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  line-height: 1;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge--live {
  background: var(--success-dim);
  color: var(--success);
  border-color: var(--success);
}
.badge--live .pulse-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-ring var(--pulse-duration) ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(2.5); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(12,11,10,0.95) 0%, rgba(12,11,10,0) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), background var(--transition-base);
}
.header.scrolled {
  border-bottom-color: var(--border-subtle);
  background: rgba(12,11,10,0.98);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 72px;
}

.header__logo { display: flex; align-items: center; gap: var(--space-4); }
.header__logo img { border-radius: var(--radius-sm); transition: opacity var(--transition-base); }
.header__logo:hover img { opacity: 0.75; }

.header__logotype {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.header__nav { display: flex; align-items: center; gap: var(--space-8); }
.header__link {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  padding: var(--space-1) 0;
  position: relative;
}
.header__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}
.header__link:hover { color: var(--accent); }
.header__link:hover::after { transform: scaleX(1); transform-origin: left; }

.header__cta {
  height: 48px;
  padding: 0 var(--space-5);
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: calc(72px + var(--space-24)) 0 var(--space-24);
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  align-items: start;
}

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.2fr 0.8fr; }
}

/* LEFT: Copy */
.hero__copy { display: flex; flex-direction: column; gap: var(--space-8); }

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--text-primary);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 40ch;
}

/* Form in hero */
.hero__form { display: flex; flex-direction: column; gap: var(--space-4); width: 100%; max-width: 28rem; }

.hero__form .form-row { margin-bottom: 0; }
.hero__form .form-checkboxes { margin-top: var(--space-2); padding-top: var(--space-4); }
.hero__form .btn--primary { height: 56px; font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }

.hero__meta { display: flex; align-items: center; padding-top: var(--space-4); border-top: 1px solid var(--border-subtle); }

.hero__counter {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot var(--pulse-duration) ease-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.counter-label { font-size: var(--label-size); letter-spacing: var(--label-tracking); text-transform: uppercase; }
.counter-value { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--text-primary); }

/* RIGHT: Mock Call */
.hero__mock { display: none; }

@media (min-width: 1024px) {
  .hero__mock { display: block; }
}

.mock-call {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.mock-call__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.mock-call__video {
  aspect-ratio: 4 / 5;
  position: relative;
  background: #080706;
  overflow: hidden;
}

.mock-call__remote { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.mock-call__local {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 112px;
  height: 144px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
  transform: scaleX(-1); /* Mirrored */
}
.mock-call__local .mock-avatar { width: 100%; height: 100%; }
.mock-call__you {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  background: var(--bg-deep);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.mock-avatar { width: 100%; height: 100%; color: var(--text-muted); }

.mock-call__footer {
  padding: var(--space-4);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}
.mock-call__name {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: var(--space-24) 0; }

.section-header { text-align: center; margin-bottom: var(--space-16); max-width: 42rem; margin-left: auto; margin-right: auto; }

.section-title { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; color: var(--text-primary); }
.section-lead { font-size: var(--font-size-lg); color: var(--text-secondary); margin-top: var(--space-3); }

/* ==========================================================================
   STEPS (Come funziona)
   ========================================================================== */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-base);
}
.step-card:hover {
  border-color: var(--border-default);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: var(--accent);
  stroke-width: 1.5;
}
.step-card__title { font-size: var(--font-size-xl); font-weight: 500; margin-bottom: var(--space-2); }
.step-card__desc { color: var(--text-secondary); font-size: var(--font-size-sm); line-height: var(--line-height-relaxed); }

/* ==========================================================================
   FEATURES (Perché / Sicurezza)
   ========================================================================== */
.features { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }

@media (min-width: 768px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}
.feature-card:hover {
  border-color: var(--border-default);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-card__title { font-size: var(--font-size-lg); font-weight: 500; margin-bottom: var(--space-2); }
.feature-card__desc { color: var(--text-secondary); font-size: var(--font-size-sm); line-height: var(--line-height-relaxed); }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-accordion { display: flex; flex-direction: column; gap: var(--space-3); max-width: 48rem; margin: 0 auto; }

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--accent); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--font-size-base);
  font-weight: 500;
  text-align: left;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
}
.faq-question:hover { color: var(--accent); }
.faq-question:focus-visible { outline: 2px solid var(--border-focus); outline-offset: -2px; }

.faq-question::after {
  content: '';
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a39a8e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--transition-base);
}
.faq-item[open] .faq-question::after { transform: rotate(180deg); }

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  animation: faq-slide var(--transition-base) ease-out;
}
@keyframes faq-slide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-answer p { margin: 0; font-size: var(--font-size-sm); }
.faq-answer a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   RESOURCES
   ========================================================================== */
.resources-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }

@media (min-width: 768px) {
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .resources-grid { grid-template-columns: repeat(4, 1fr); }
}

.resource-card {
  display: block;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}
.resource-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.resource-card__title { font-size: var(--font-size-lg); font-weight: 500; margin-bottom: var(--space-2); }
.resource-card__desc { color: var(--text-secondary); font-size: var(--font-size-sm); line-height: var(--line-height-relaxed); }

.pillar-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--border-subtle); justify-content: center; }
.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-ui);
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}
.pillar-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(232, 221, 208, 0.08);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  margin-top: auto;
  padding: var(--space-20) 0 var(--space-12);
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, transparent 0%, var(--bg-surface) 100%);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  text-align: center;
}

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

.footer__brand { max-width: 20rem; margin: 0 auto; }
.footer__logo { display: flex; align-items: center; justify-content: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.footer__logo img { border-radius: var(--radius-sm); transition: opacity var(--transition-base); }
.footer__logo:hover img { opacity: 0.75; }

.footer__logotype {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.footer__copyright { margin: 0 0 var(--space-2); font-size: var(--font-size-sm); color: var(--text-muted); }
.footer__company { margin: 0; font-size: var(--font-size-xs); color: var(--text-muted); line-height: var(--line-height-relaxed); }
.footer__company a { color: var(--text-muted); transition: color var(--transition-fast); }
.footer__company a:hover { color: var(--accent); }

.footer__heading { margin: 0 0 var(--space-4); font-size: var(--label-size); font-weight: var(--label-weight); font-family: var(--font-ui); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-muted); }
.footer__nav ul { list-style: none; margin: 0; padding: 0; }
.footer__nav li { margin-bottom: var(--space-3); }
.footer__nav a { font-size: var(--font-size-sm); color: var(--text-secondary); font-weight: var(--font-weight-medium); transition: color var(--transition-fast); }
.footer__nav a:hover { color: var(--accent); }

/* ==========================================================================
   PWA REDIRECT SPLASH
   ========================================================================== */
.pwa-redirect-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-deep);
  z-index: 999999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.pwa-redirect-splash.active {
  display: flex;
}

.pwa-redirect-splash img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  animation: pwa-pulse 1.5s ease-in-out infinite;
}

.pwa-redirect-splash .splash-text {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.pwa-redirect-splash .splash-dots {
  display: flex;
  gap: var(--space-2);
}

.pwa-redirect-splash .splash-dots span {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: pwa-dot 1.4s ease-in-out infinite;
}

.pwa-redirect-splash .splash-dots span:nth-child(2) { animation-delay: 0.2s; }
.pwa-redirect-splash .splash-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pwa-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 16px rgba(232, 221, 208, 0.5)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 24px rgba(232, 221, 208, 0.8)); }
}

@keyframes pwa-dot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1023px) {
  .hero { padding-top: calc(72px + var(--space-16)); }
  .hero__form { max-width: 100%; }
}

@media (max-width: 767px) {
  .header__inner { height: 64px; }
  .header__nav { display: none; }
  .header__cta { height: 44px; padding: 0 var(--space-4); }
  
  .hero { padding-top: calc(64px + var(--space-12)); }
  .hero__title { font-size: clamp(2rem, 6vw, 3rem); }
  .hero__form .btn--primary { height: 52px; }
  
  .section { padding: var(--space-16) 0; }
  .section-title { font-size: clamp(1.75rem, 5vw, 2.5rem); }
  
  .footer__grid { text-align: center; }
}