/* ============================================================
   AMT PostPro - Benchmarking Portal
   Report-matched design system (navy + Bebas Neue + turquoise)
   On-screen twin of the benchmark PDF report. Light theme.
   Tokens first; no gradients, no glow shadows, no font soup.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand ink + accent (from the PDF report) */
  --navy:          #0D1B32;   /* strong rules, headers, ink */
  --navy-soft:     #1F304A;
  --turquoise:     #4FC3CA;   /* AMT accent - scalpel, not paintbucket */
  --turquoise-dark:#3BA8AE;   /* hover */
  --turquoise-tint: rgba(79, 195, 202, 0.10);

  /* Neutrals (tinted toward the brand hue) */
  --paper:     #F6F9FB;       /* page background */
  --surface:   #FFFFFF;       /* cards, inputs, raised */
  --panel:     #F1F6F8;       /* soft panels, table label cells */
  --panel-alt: #F8FBFC;       /* alt rows */
  --text:           #122131;  /* body, headings */
  --text-secondary: #334155;
  --text-muted:     #64748B;

  --border:        #E3EAEF;
  --border-strong: #CBD5E1;
  --hairline:      #ECF1F4;

  /* Semantic status (label + shape + color, never color alone) */
  --success: #0F9D77;
  --success-tint: rgba(15, 157, 119, 0.12);
  --warning: #E5710B;
  --warning-tint: rgba(229, 113, 11, 0.12);
  --error:   #DC2626;
  --error-tint: rgba(220, 38, 38, 0.12);
  --info:    #3B82F6;
  --info-tint: rgba(59, 130, 246, 0.12);
  --violet:  #7C5CFC;
  --violet-tint: rgba(124, 92, 252, 0.12);

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bebas Neue', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing (4px base) */
  --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;

  /* Radii (sharper, professional) */
  --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-full: 999px;

  /* Elevation (subtle, two-shadow) */
  --shadow-card: 0 1px 0 rgba(15,23,42,0.04), 0 1px 2px rgba(15,23,42,0.05);
  --shadow-pop:  0 4px 6px -1px rgba(15,23,42,0.08), 0 2px 4px -2px rgba(15,23,42,0.05);

  /* Motion */
  --motion-fast: 120ms cubic-bezier(0.2, 0, 0.2, 1);
  --motion-normal: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1120px;
}

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

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

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--turquoise-tint); }

.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Display / headings ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.012em;
  line-height: 0.98;
  color: var(--navy);
  text-transform: uppercase;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise-dark);
}

/* Section header: Bebas title over a strong navy rule (report motif) */
.section-head { margin-bottom: var(--space-8); }
.section-head .eyebrow { display: block; margin-bottom: var(--space-3); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  color: var(--navy);
}
.section-head .rule {
  height: 2px; background: var(--navy); border: 0;
  margin-top: var(--space-4); width: 100%;
}
.section-head.center { text-align: center; }
.section-head.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--space-6); padding-right: var(--space-6); }
.section { padding: var(--space-20) 0; }
.section.tight { padding: var(--space-12) 0; }

/* ---------- Header (navy, report-matched) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-soft);
}
.site-header .bar {
  max-width: var(--maxw); margin: 0 auto;
  height: 68px; padding: 0 var(--space-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; min-width: 0; }
.brand img { height: 28px; }
.brand .divider { width: 1px; height: 22px; background: rgba(255,255,255,0.22); }
.brand .wordmark {
  font-family: var(--font-display); font-size: 22px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #fff; white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: var(--space-2); }
.site-nav a.link {
  text-decoration: none; color: rgba(255,255,255,0.74);
  font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: var(--radius-md);
  transition: color var(--motion-fast), background var(--motion-fast);
}
.site-nav a.link:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* Hamburger toggle (mobile only) */
.nav-toggle { display: none; }
.nav-toggle-bars { display: block; position: relative; width: 22px; height: 16px; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: #fff;
  transition: top var(--motion-fast), transform var(--motion-fast), opacity var(--motion-fast);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 7px; }
.nav-toggle-bars span:nth-child(3) { top: 14px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ---------- Buttons (no gradients, no glow) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--radius-md);
  font-family: var(--font-sans); font-weight: 600; font-size: 14px; line-height: 1;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--navy);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast);
}
.btn:hover { background: var(--panel); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--turquoise); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--turquoise); border-color: var(--turquoise); color: #06222A; }
.btn-primary:hover { background: var(--turquoise-dark); border-color: var(--turquoise-dark); color: #06222A; }

.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); border-color: var(--navy-soft); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--panel); }

.btn-white { background: #fff; border-color: #fff; color: var(--navy); }
.btn-white:hover { background: #EAF1F3; border-color: #EAF1F3; }

.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: var(--space-20) 0 var(--space-16); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-12); align-items: center;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(48px, 7vw, 88px); line-height: 0.92; letter-spacing: 0.005em;
  color: var(--navy); margin: var(--space-4) 0 var(--space-5);
}
.hero h1 .accent { color: var(--turquoise-dark); }
.hero .lead { font-size: 18px; color: var(--text-secondary); max-width: 46ch; }
.hero .cta-row { display: flex; gap: var(--space-3); margin-top: var(--space-8); flex-wrap: wrap; }
.hero .trust { margin-top: var(--space-6); font-size: 13px; color: var(--text-muted); }

/* Angled brand tab (report motif) */
.tab {
  display: inline-flex; align-items: center; height: 26px; padding: 0 22px 0 12px;
  background: var(--turquoise); color: #06222A;
  font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.tab.navy { background: var(--navy); color: #fff; }
.tab.right { padding: 0 12px 0 22px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); }

/* ---------- Before / After showcase (draggable slider + carousel) ---------- */
.hero-showcase { display: flex; flex-direction: column; gap: var(--space-4); }
.ba-carousel {
  position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-pop);
}
.ba-slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.015);
  transition: opacity var(--motion-normal), transform var(--motion-normal); pointer-events: none;
}
.ba-slide.active { opacity: 1; transform: none; pointer-events: auto; }

.ba-slider { position: relative; width: 100%; height: 100%; --pos: 50%; background: #fff; touch-action: none; user-select: none; cursor: ew-resize; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-lbl-before, .ba-lbl-after { position: absolute; top: 0; z-index: 4; }
.ba-lbl-before { left: 0; }
.ba-lbl-after { right: 0; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-50%); z-index: 5; box-shadow: 0 0 0 1px rgba(13,27,50,0.18); }
.ba-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--border-strong);
  display: grid; place-items: center; color: var(--navy); box-shadow: var(--shadow-pop); cursor: ew-resize;
}
.ba-knob:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--turquoise-tint), var(--shadow-pop); border-color: var(--turquoise); }
.ba-mat-chip {
  position: absolute; left: 12px; bottom: 12px; z-index: 4;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--navy); background: rgba(255,255,255,0.86); border: 1px solid var(--border);
  padding: 4px 9px; border-radius: var(--radius-full); backdrop-filter: blur(2px);
}

.ba-caption { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 32px; }
.ba-meta { min-width: 0; }
.ba-part { font-weight: 600; color: var(--navy); font-size: 14px; }
.ba-hint { color: var(--text-muted); font-size: 12px; margin-left: 8px; }
.ba-nav { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.ba-nav[hidden] { display: none; }
.ba-arrow { width: 32px; height: 32px; border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: var(--surface); color: var(--navy); cursor: pointer; display: grid; place-items: center; line-height: 0; transition: background var(--motion-fast), border-color var(--motion-fast); }
.ba-arrow:hover { background: var(--panel); border-color: var(--turquoise); }
.ba-dots { display: flex; gap: 7px; }
.ba-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); border: none; padding: 0; cursor: pointer; transition: background var(--motion-fast), transform var(--motion-fast); }
.ba-dot.active { background: var(--turquoise); transform: scale(1.3); }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); position: relative; }
.steps::before {
  content: ''; position: absolute; left: 28px; right: 28px; top: 28px; height: 2px;
  background: var(--border); z-index: 0;
}
.step { position: relative; z-index: 1; }
.step .n {
  font-family: var(--font-display); font-size: 30px; line-height: 1;
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--navy); color: #fff; border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.step h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: var(--space-2); }
.step p { font-size: 14px; color: var(--text-muted); }

/* ---------- Outcomes (value props as a bordered table-grid, no top stripes) ---------- */
.outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.outcome { padding: var(--space-8); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.outcome:nth-child(2n) { border-right: 0; }
.outcome:nth-last-child(-n+2) { border-bottom: 0; }
.outcome .ico { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--turquoise-tint); display: grid; place-items: center; margin-bottom: var(--space-4); color: var(--turquoise-dark); }
.outcome h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: var(--space-2); }
.outcome p { font-size: 14px; color: var(--text-muted); }

/* ---------- CTA band (committed navy moment) ---------- */
.cta-band { background: var(--navy); color: #fff; }
.cta-band .inner { max-width: var(--maxw); margin: 0 auto; padding: var(--space-16) var(--space-6); text-align: center; }
.cta-band h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 5vw, 52px); line-height: 1; letter-spacing: 0.01em; margin-bottom: var(--space-4); }
.cta-band p { color: rgba(255,255,255,0.72); font-size: 16px; max-width: 52ch; margin: 0 auto var(--space-8); }
.cta-band .accent-rule { width: 64px; height: 3px; background: var(--turquoise); margin: 0 auto var(--space-6); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.site-footer .inner { max-width: var(--maxw); margin: 0 auto; padding: var(--space-10) var(--space-6); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.site-footer a { color: var(--turquoise-dark); text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .muted { color: var(--text-muted); font-size: 13px; }

/* ---------- Cards / panels ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-card); }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5); }

/* ---------- Main container (interior pages) ---------- */
.page { max-width: 960px; margin: 0 auto; padding: var(--space-12) var(--space-6) var(--space-16); }
.page-head { margin-bottom: var(--space-8); }
.page-head .eyebrow { display: block; margin-bottom: var(--space-2); }
.page-head h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 5vw, 52px); line-height: 1; color: var(--navy); }
.page-head .rule { height: 2px; background: var(--navy); border: 0; margin-top: var(--space-4); }
.page-head .sub { color: var(--text-muted); font-size: 15px; margin-top: var(--space-3); }

/* ---------- Forms ---------- */
.field { margin-bottom: var(--space-5); }
.field > label, .form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: var(--space-2); }
.form-label .required, .req { color: var(--error); }
.input, .form-input, .form-select, .form-textarea, select.input, textarea.input {
  width: 100%; background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 0 12px; height: 42px; font-family: var(--font-sans); font-size: 15px;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}
textarea.input, .form-textarea { height: auto; padding: 10px 12px; min-height: 96px; line-height: 1.5; resize: vertical; }
.input:focus, .form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--turquoise);
  box-shadow: 0 0 0 3px var(--turquoise-tint);
}
.input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-hint, .field-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.form-group { margin-bottom: var(--space-5); }
.form-group.full-width, .full-width { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Form sections with eyebrow numbering (no gradient bubbles) */
.form-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8); margin-bottom: var(--space-6); box-shadow: var(--shadow-card); }
.form-section-title { display: flex; align-items: baseline; gap: var(--space-3); font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: var(--space-6); }
.form-section-title .number { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--turquoise-dark); letter-spacing: 0.04em; }

/* Wizard progress rail */
.wizard-progress { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-8); flex-wrap: wrap; }
.wizard-step { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; font-weight: 600; color: var(--text-muted); }
.wizard-step .dot { width: 26px; height: 26px; border-radius: var(--radius-full); border: 1px solid var(--border-strong); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); background: var(--surface); }
.wizard-step.active { color: var(--navy); }
.wizard-step.active .dot { background: var(--turquoise); border-color: var(--turquoise); color: #06222A; }
.wizard-step.done .dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.wizard-step .bar { width: 28px; height: 2px; background: var(--border); }

/* Batches */
.batches-container { display: flex; flex-direction: column; gap: var(--space-4); }
.batch-container { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5); }
.batch-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--border); }
.batch-title { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
.batch-remove { background: var(--error-tint); border: 1px solid transparent; color: var(--error); cursor: pointer; font: 600 13px var(--font-sans); padding: 6px 12px; border-radius: var(--radius-md); }
.batch-remove:hover { border-color: var(--error); }
.add-batch-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; background: var(--surface); border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); color: var(--text-secondary); font: 600 14px var(--font-sans); cursor: pointer; transition: border-color var(--motion-fast), color var(--motion-fast); }
.add-batch-btn:hover { border-color: var(--turquoise); color: var(--turquoise-dark); }

/* Checkbox group */
.checkbox-group { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-5); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); }
.checkbox-group input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--turquoise-dark); cursor: pointer; }
.checkbox-label { font-size: 14px; color: var(--text); }
.checkbox-label strong { display: block; margin-bottom: 2px; font-weight: 600; color: var(--navy); }
.checkbox-label span { color: var(--text-muted); font-size: 13px; }

/* File / parts upload zone */
.upload-zone { border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--panel-alt); padding: var(--space-8); text-align: center; cursor: pointer; transition: border-color var(--motion-fast), background var(--motion-fast); }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--turquoise); background: var(--turquoise-tint); }
.upload-zone .icon { color: var(--turquoise-dark); margin-bottom: var(--space-2); }

/* Submit / nav buttons */
.submit-btn { width: 100%; height: 50px; background: var(--turquoise); color: #06222A; border: none; font: 700 16px var(--font-sans); cursor: pointer; border-radius: var(--radius-md); transition: background var(--motion-fast); }
.submit-btn:hover { background: var(--turquoise-dark); }
.submit-btn:disabled { background: var(--border-strong); color: #fff; cursor: not-allowed; }

/* ---------- Badges / status pills (label + dot) ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: 12px; font-weight: 600; border-radius: var(--radius-full); background: var(--panel); color: var(--text-secondary); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge-cyan { background: var(--turquoise-tint); color: var(--turquoise-dark); }
.badge-green { background: var(--success-tint); color: var(--success); }
.badge-blue, .badge-info { background: var(--info-tint); color: var(--info); }
.badge-purple { background: var(--violet-tint); color: var(--violet); }
.badge-orange, .badge-warning { background: var(--warning-tint); color: var(--warning); }
.badge-red { background: var(--error-tint); color: var(--error); }
.badge-gray { background: var(--panel); color: var(--text-muted); }

/* ---------- Messages ---------- */
.error-message { display: none; background: var(--error-tint); border: 1px solid var(--error); color: var(--error); padding: var(--space-4); border-radius: var(--radius-md); font-size: 14px; margin-bottom: var(--space-5); }
.warning-message { background: var(--warning-tint); border: 1px solid var(--warning); color: #8a4408; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: 13px; }
.success-message { display: none; background: var(--success-tint); border: 1px solid var(--success); color: var(--success); padding: var(--space-8); border-radius: var(--radius-lg); text-align: center; }
.success-message h3 { font-size: 22px; margin-bottom: var(--space-4); color: var(--success); }

/* ---------- Tracking stepper (calm, no pulse) ---------- */
.stepper { position: relative; padding-left: 44px; }
.stepper::before { content: ''; position: absolute; left: 17px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.stepper-item { position: relative; padding-bottom: var(--space-6); }
.stepper-item:last-child { padding-bottom: 0; }
.stepper-dot { position: absolute; left: -44px; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); display: grid; place-items: center; font: 600 12px var(--font-mono); color: var(--text-muted); }
.stepper-item.done .stepper-dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.stepper-item.active .stepper-dot { background: var(--turquoise); border-color: var(--turquoise); color: #06222A; }
.stepper-item h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.stepper-item.pending h4 { color: var(--text-muted); font-weight: 600; }
.stepper-item p { font-size: 13px; color: var(--text-muted); }

.current-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 13px; font-weight: 700; border-radius: var(--radius-full); margin-top: var(--space-4); }
.current-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.current-status.form_submitted { background: var(--turquoise-tint); color: var(--turquoise-dark); }
.current-status.parts_received { background: var(--violet-tint); color: var(--violet); }
.current-status.processing { background: var(--warning-tint); color: var(--warning); }
.current-status.processed { background: var(--info-tint); color: var(--info); }
.current-status.shipped, .current-status.completed { background: var(--success-tint); color: var(--success); }

.tracking-info { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5); margin-top: var(--space-6); }
.tracking-info h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); margin-bottom: var(--space-2); }
.tracking-info a { color: var(--turquoise-dark); text-decoration: none; font-weight: 600; }

/* Tracking timeline */
.timeline { position: relative; margin-top: var(--space-6); padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: var(--space-6); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -28px; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); }
.timeline-item.completed .timeline-dot { background: var(--navy); border-color: var(--navy); }
.timeline-item.completed .timeline-dot::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.timeline-item.active .timeline-dot { background: var(--turquoise); border-color: var(--turquoise); box-shadow: 0 0 0 4px var(--turquoise-tint); }
.timeline-content h4 { font-size: 14px; font-weight: 600; color: var(--navy); margin: 0 0 2px; }
.timeline-item.pending .timeline-content h4 { color: var(--text-muted); }
.timeline-content p { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); margin: 0; }

/* Button aliases (track / report) */
.btn-cyan { background: var(--turquoise); border-color: var(--turquoise); color: #06222A; }
.btn-cyan:hover { background: var(--turquoise-dark); border-color: var(--turquoise-dark); color: #fff; }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); border-radius: var(--radius-md); padding: 10px 18px; font: 600 14px var(--font-sans); cursor: pointer; transition: background var(--motion-fast); }
.btn-secondary:hover { background: var(--panel); }
.btn.disabled, .btn-cyan.disabled { opacity: 0.5; pointer-events: none; }

.page.narrow { max-width: 560px; }

/* Track status summary */
.track-summary { text-align: center; padding-bottom: var(--space-6); border-bottom: 1px solid var(--border); margin-bottom: var(--space-2); }
.track-num { font-size: 12px; color: var(--text-muted); margin-bottom: var(--space-2); }
.track-company { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 30px; line-height: 1.05; color: var(--navy); }
.track-number-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 14px; }
.track-number-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.track-number-row a { font-size: 16px; font-weight: 700; color: var(--turquoise-dark); text-decoration: none; }

.report-note { text-align: center; margin-top: var(--space-3); font-size: 12px; color: var(--success); background: var(--success-tint); border: 1px solid var(--success); border-radius: var(--radius-md); padding: 10px; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--hairline); font-size: 14px; }
thead th { background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
tbody tr:nth-child(even) { background: var(--panel-alt); }

/* ---------- Report page (mirror of the PDF) ---------- */
.report-shell { max-width: 960px; margin: 0 auto; padding: var(--space-10) var(--space-6) var(--space-16); }
.report-doc { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-pop); background: var(--surface); }
.report-header { background: var(--navy); color: #fff; padding: var(--space-10); display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-6); }
.report-header .eyebrow { color: var(--turquoise); }
.report-header h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 40px; line-height: 1; margin-top: var(--space-2); }
.report-header .subtitle { opacity: 0.78; font-size: 14px; margin-top: var(--space-2); }
.report-header-right { text-align: right; }
.report-header-right .benchmark-num { font-family: var(--font-mono); font-size: 22px; font-weight: 600; }
.report-header-right .date { font-size: 12px; opacity: 0.78; margin-top: 4px; }
.report-body { padding: var(--space-10); }

.quality-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: var(--radius-full); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.quality-chip::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.quality-chip.yes { background: var(--success-tint); color: var(--success); }
.quality-chip.no { background: var(--error-tint); color: var(--error); }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); margin: var(--space-8) 0; }
@media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5); }
.info-card .label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.info-card .value { font-size: 17px; font-weight: 600; color: var(--navy); }
.machine-card { display: flex; gap: var(--space-4); align-items: center; }
.machine-card img { width: 72px; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px; }

.photos-section { margin: var(--space-10) 0; }
.photos-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
@media (max-width: 640px) { .photos-comparison { grid-template-columns: 1fr; } }
.photo-column .tab { margin-bottom: var(--space-4); }
.photos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.photo-item { aspect-ratio: 1; overflow: hidden; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }

.report-footer { border-top: 1px solid var(--border); padding: var(--space-5) var(--space-10); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); }

/* Report sections */
.section-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 22px; letter-spacing: 0.01em; color: var(--navy); margin: var(--space-8) 0 var(--space-5); display: flex; align-items: center; gap: var(--space-3); }
.section-title::before { content: ''; width: 4px; height: 20px; background: var(--turquoise); border-radius: 2px; flex-shrink: 0; }

.quality-section { margin-bottom: var(--space-6); }
.quality-badge { display: inline-flex; align-items: center; gap: var(--space-3); padding: 12px 20px; border-radius: var(--radius-md); font-weight: 700; font-size: 15px; }
.quality-badge .icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 14px; }
.quality-badge.yes { background: var(--success-tint); color: var(--success); border: 1px solid var(--success); }
.quality-badge.yes .icon { background: var(--success); }
.quality-badge.no { background: var(--error-tint); color: var(--error); border: 1px solid var(--error); }
.quality-badge.no .icon { background: var(--error); }

.photo-column h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); margin-bottom: var(--space-3); }
.batches-section, .features-section, .photos-section { margin-top: var(--space-8); }

.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }
.feature-item { display: flex; gap: var(--space-4); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-5); }
.feature-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.feature-text h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.feature-text p { font-size: 13px; color: var(--text-secondary); margin: 0; }

.report-actions { display: flex; gap: var(--space-3); }

/* ---------- Loading ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
.loading-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.35); border-radius: 50%; border-top-color: #fff; animation: spin 0.8s linear infinite; margin-right: 8px; vertical-align: middle; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--motion-normal), transform var(--motion-normal); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Scrollbars ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-full); border: 3px solid var(--paper); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-visual { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); text-align: center; }
  .steps::before { display: none; }
  .step .n { margin-left: auto; margin-right: auto; }
  .outcomes { grid-template-columns: 1fr; }
  .outcome { border-right: 0; }
  .outcome:nth-last-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .section { padding: var(--space-12) 0; }
  .wrap, .site-header .bar { padding-left: var(--space-4); padding-right: var(--space-4); }
  .steps { grid-template-columns: 1fr; }
  .brand .wordmark { font-size: 18px; }

  /* Collapse nav into a hamburger dropdown */
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; padding: 0; margin-right: -8px;
    background: transparent; border: 0; border-radius: var(--radius-md);
    cursor: pointer; color: #fff; -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle:hover { background: rgba(255,255,255,0.08); }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: var(--space-2);
    background: var(--navy); border-bottom: 1px solid var(--navy-soft);
    padding: var(--space-4); box-shadow: var(--shadow-pop);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a.link { padding: 12px 14px; font-size: 15px; }
  .site-nav .btn { width: 100%; }
  .form-section { padding: var(--space-5); }
  .report-header { flex-direction: column; padding: var(--space-6); }
  .report-header-right { text-align: left; }
  .report-body { padding: var(--space-6); }
  .input, .form-input, .form-select, .form-textarea { font-size: 16px; } /* prevent iOS zoom */
  .page, .report-shell { padding-left: var(--space-4); padding-right: var(--space-4); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .btn, .submit-btn { display: none !important; }
}
