/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:            #f9f7ff;
  --bg-deep:       #f3effb;
  --surface:       #ffffff;
  --glass:         rgba(255,255,255,0.72);
  --glass-border:  rgba(255,255,255,0.55);
  --text:          #1c1a2e;
  --muted:         #6b6880;
  --line:          rgba(100, 80, 160, 0.10);
  --accent:        #e8788a;
  --accent-2:      #9b6fd4;
  --accent-glow:   rgba(232,120,138,0.30);
  --accent-2-glow: rgba(155,111,212,0.22);
  --shadow-sm:     0 4px 16px rgba(40,20,80,0.07);
  --shadow-md:     0 12px 36px rgba(40,20,80,0.11);
  --shadow-lg:     0 28px 64px rgba(40,20,80,0.14);
  --radius-xl:     28px;
  --radius-lg:     20px;
  --radius-md:     14px;
  --header-h:      76px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 10% -10%, rgba(155,111,212,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 5%,  rgba(232,120,138,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(155,111,212,0.08) 0%, transparent 60%);
  background-attachment: fixed;
}

/* ============================================================
   HEADER MAYART
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(155,111,212,0.10);
  box-shadow: 0 2px 20px rgba(40,20,80,0.06);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  height: var(--header-h);
  gap: 24px;
}

.nav-logo img { display: block; }

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 36px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

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

.nav-links a.nav-active {
  color: var(--accent);
  font-weight: 700;
}

.nav-actions { display: flex; align-items: center; gap: 16px; }

.nav-icon {
  display: flex;
  align-items: center;
  color: #555;
  transition: color 0.2s;
}
.nav-icon:hover { color: var(--accent); }

/* ============================================================
   SHELL
   ============================================================ */
.shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 100px;
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  text-align: center;
  padding: 48px 0 64px;
  max-width: 720px;
  margin: 0 auto 8px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0 0 20px;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}

.page-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  background: linear-gradient(135deg, #2a1a4a 0%, var(--accent-2) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-sub {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ============================================================
   ÉTAPES
   ============================================================ */
.step-section { margin-bottom: 64px; }

.step-label {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 0 6px var(--accent-2-glow), 0 8px 24px var(--accent-glow);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 6px;
}

.step-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 6px;
}

.step-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.step-body { padding-left: 68px; }

/* ============================================================
   SÉPARATEUR UPLOAD / CONFIG
   ============================================================ */
.step-divider {
  border: none;
  border-top: 1px solid rgba(155,111,212,0.18);
  margin: 4px 0;
}

/* ============================================================
   ÉTAPE 1 — UPLOAD (legacy, kept for print media)
   ============================================================ */
.upload-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 740px;
}

.bridge-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  color: var(--muted);
}

.bridge-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(107,104,128,0.18);
}

.bridge-badge.is-idle  { color: var(--muted); }
.bridge-badge.is-running {
  color: #b06000;
  background: rgba(255,244,210,0.85);
  border-color: rgba(176,96,0,0.18);
}
.bridge-badge.is-success {
  color: #1a6a46;
  background: rgba(220,248,233,0.85);
  border-color: rgba(26,106,70,0.18);
}
.bridge-badge.is-error {
  color: #9e2c20;
  background: rgba(255,232,228,0.85);
  border-color: rgba(158,44,32,0.18);
}

.dropzone {
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  border-radius: var(--radius-xl);
  border: 2px dashed rgba(155,111,212,0.30);
  background: var(--glass);
  backdrop-filter: blur(12px);
  padding: 44px 32px;
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  animation: dropzone-pulse 4s ease-in-out infinite;
}

@keyframes dropzone-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(155,111,212,0); }
  50%       { box-shadow: 0 0 0 8px rgba(155,111,212,0.07); }
}

.dropzone:hover,
.dropzone.is-dragover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
  background: rgba(245,240,255,0.85);
  box-shadow: 0 0 0 6px var(--accent-2-glow), var(--shadow-md);
  animation: none;
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon { color: var(--accent-2); opacity: 0.75; }

.dropzone-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.dropzone-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.91rem;
}

.status-stack { display: grid; gap: 8px; }

.file-state,
.warning {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  color: var(--muted);
}

.warning {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(200,130,60,0.10);
  color: #8a4a10;
}

.progress-card {
  display: grid;
  gap: 10px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-copy strong { font-size: 0.94rem; color: var(--text); }

.progress-copy span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--accent-2);
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(155,111,212,0.12);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 220ms ease;
}

.download-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ============================================================
   ÉTAPE 2 — CONFIG
   ============================================================ */
.config-body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.config-options {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Material cards */
.material-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.material-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--glass-border);
  cursor: pointer;
  transition: all 200ms ease;
  font: inherit;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.material-card:hover {
  transform: translateY(-2px);
  border-color: rgba(155,111,212,0.35);
  box-shadow: var(--shadow-md);
}

.material-card.is-active {
  background: linear-gradient(135deg, rgba(155,111,212,0.14), rgba(232,120,138,0.08));
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px var(--accent-2-glow), var(--shadow-md);
}

.material-card.is-active strong { color: var(--accent-2); }

.material-icon { font-size: 1.5rem; line-height: 1; }

.material-card strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.material-card span {
  font-size: 0.70rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}

select#material { display: none; }

/* Quantity & other options */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Color swatches */
.color-swatches-section {
  display: grid;
  gap: 10px;
}

.color-swatches-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.color-swatches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-swatch-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: all 180ms ease;
  outline: none;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
  padding: 0;
}

.color-swatch-btn:hover {
  transform: scale(1.18);
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}

.color-swatch-btn.is-active {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px var(--accent-2-glow), 0 4px 14px rgba(0,0,0,0.18);
  transform: scale(1.12);
}

select#color-option { display: none; }
label#color-option-field { display: none; }
.color-option-swatch { display: none; }

.render-spin-ring {
  width: 36px;
  height: 36px;
  border: 3px solid var(--accent-2-glow);
  border-top-color: var(--accent-2);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Swatches bloqués (résine) */
#color-swatches-grid[data-locked] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  position: relative;
}
#color-swatches-grid[data-locked]::after {
  content: "🔒 Couleur imposée pour la résine";
  display: block;
  font-size: 0.78rem;
  color: var(--accent-2);
  margin-top: 8px;
  font-style: italic;
  pointer-events: none;
}

/* Detected colors */
.detected-colors {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(155,111,212,0.08) 0%, rgba(232,120,138,0.06) 100%);
  border: 1.5px solid rgba(155,111,212,0.18);
  backdrop-filter: blur(10px);
}

.detected-colors-header span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--text);
}

.detected-colors-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.detected-colors-list { display: grid; gap: 12px; }

.detected-color-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) minmax(180px, 220px);
  gap: 12px;
  align-items: center;
}

.detected-color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.detected-color-copy strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}

.detected-color-copy span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Labels & inputs */
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

select,
input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--glass);
  backdrop-filter: blur(8px);
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  transition: border-color 180ms, box-shadow 180ms;
}

textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  resize: vertical;
  min-height: 160px;
}

select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px var(--accent-2-glow);
}

.field-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
}

label#color-mode-field,
label#color-count-field { display: flex; }

.config-preview {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 28px;
}

.card-header {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.card-header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.card-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

h1, h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

.preview-card { display: grid; gap: 14px; }

.part-selector { display: flex; flex-direction: column; gap: 8px; }

.preview-stage { position: relative; }

#model-preview {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(155,111,212,0.09), transparent 42%),
    linear-gradient(160deg, #f5f0ff, #ede8ff);
  cursor: grab;
  touch-action: none;
}

#model-preview.is-dragging { cursor: grabbing; }

.preview-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(249,247,255,0.80);
  backdrop-filter: blur(8px);
}

.preview-loading[hidden] { display: none !important; }

.preview-loading-card {
  width: min(280px, 100%);
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.preview-loading-card strong { font-size: 0.93rem; color: var(--text); }

.preview-loading-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(155,111,212,0.14);
  overflow: hidden;
}

.preview-loading-bar-fill {
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  animation: preview-loading-slide 1.2s ease-in-out infinite;
}

@keyframes preview-loading-slide {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.preview-help { margin: 0; font-size: 0.86rem; color: var(--muted); }

.metric-list,
.quote-breakdown { display: grid; gap: 12px; }

.quote-breakdown { margin-top: 16px; }

.metric,
.quote-breakdown div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.metric span,
.quote-breakdown span { color: var(--muted); font-size: 0.9rem; }

.metric strong,
.quote-breakdown strong { font-size: 1.02rem; }

/* ============================================================
   ÉTAPE 3 — CONTACT + DEVIS
   ============================================================ */
#pricing-form { display: contents; }

.contact-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   QUOTE CARD (Estimation)
   ============================================================ */
.accent {
  background: linear-gradient(140deg, #2a1a4a 0%, #6c3aa0 50%, #b0506a 100%);
  border: 1px solid rgba(255,255,255,0.10);
  color: #fff;
}

.accent .card-header { border-bottom-color: rgba(255,255,255,0.12); }
.accent .card-header h2 { color: #fff; }
.accent .card-header p,
.accent .quote-breakdown span,
.accent .quote-total span { color: rgba(255,240,255,0.65); }
.accent .quote-breakdown div { border-bottom-color: rgba(255,255,255,0.10); }
.accent .quote-breakdown strong { color: #fff; }

.quote-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 20px;
}

.quote-total {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quote-total span { font-size: 0.82rem; color: rgba(255,240,255,0.65); }

.quote-total strong {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.quote-chip {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  min-width: 120px;
}

.quote-chip span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,240,255,0.65);
  margin-bottom: 4px;
}

.quote-chip strong { color: #fff; }

.quote-internal[hidden] { display: none !important; }

.quote-cta { margin-top: 22px; display: grid; gap: 14px; }

.quote-cta p {
  margin: 0;
  color: rgba(255,240,255,0.75);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================================
   CTA BUTTON
   ============================================================ */
.cta-button {
  border: 0;
  border-radius: 999px;
  padding: 17px 30px;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.92) 100%);
  color: #5a22a8;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.8);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.8);
}

.cta-button:disabled { cursor: wait; opacity: 0.80; }

.cta-button-spinner {
  width: 18px;
  height: 18px;
  display: none;
  border-radius: 999px;
  border: 2.5px solid rgba(90,34,168,0.25);
  border-top-color: #5a22a8;
  animation: button-spin 0.8s linear infinite;
}

.cta-button.is-loading .cta-button-spinner { display: inline-block; }
.cta-button.is-loading .cta-button-label { opacity: 0.94; }
.cta-button.is-done { background: rgba(255,255,255,0.9); }

@keyframes button-spin { to { transform: rotate(360deg); } }

.secondary-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
  box-shadow: var(--shadow-sm);
}

.secondary-button:hover { transform: translateY(-1px); opacity: 0.92; }

/* ============================================================
   FOOTER MAYART
   ============================================================ */
.site-footer {
  background: linear-gradient(160deg, #fdf4f6 0%, #f5eef8 50%, #eef0fd 100%);
  border-top: 1px solid rgba(155,111,212,0.10);
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.5fr;
  gap: 48px;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 48px;
}

.footer-brand img { display: block; margin-bottom: 18px; }

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 28ch;
}

.footer-heading {
  font-family: "Manrope", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 20px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  color: #666;
  font-size: 0.93rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-newsletter p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  border-radius: 999px;
  overflow: hidden;
  border: 1.5px solid rgba(155,111,212,0.20);
  background: rgba(255,255,255,0.80);
  box-shadow: var(--shadow-sm);
}

.newsletter-form input {
  flex: 1;
  border: none;
  border-radius: 0;
  padding: 12px 18px;
  font: inherit;
  font-size: 0.9rem;
  background: transparent;
  outline: none;
  min-width: 0;
  backdrop-filter: none;
  box-shadow: none;
}

.newsletter-btn {
  border: none;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.87rem;
  padding: 12px 22px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.newsletter-btn:hover { opacity: 0.88; }

.footer-bottom {
  border-top: 1px solid rgba(155,111,212,0.10);
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p { margin: 0; font-size: 0.85rem; color: var(--muted); }

.footer-legal { display: flex; gap: 24px; }

.footer-legal a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--accent); }

/* ============================================================
   MISC
   ============================================================ */
button:disabled { opacity: 0.5; cursor: not-allowed; }

.request-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--glass);
}

.request-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.request-meta { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer,
  .upload-body, .step-label,
  .secondary-button, .warning { display: none !important; }
  body { background: #fff; }
  .shell { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; background: #fff; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .config-body { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .step-body { padding-left: 0; }
  .contact-body { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .options-grid { grid-template-columns: 1fr; }
  .material-cards { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); padding: 32px 0 60px; }
  .page-hero { padding: 28px 0 36px; }
  .step-number { width: 40px; height: 40px; font-size: 0.95rem; }
}
