/* File2Forge — design system
   Precision-industrial aesthetic. Charcoal + white + laser-orange accent.
   Orange (#E97F2A range) reads as heat / laser / industrial — it lives on
   eyebrows, primary CTAs, hover borders, and as a glow on the dark marking
   spotlight. Modeled on SendCutSend's clean upload-first UX, with a sharper
   edge. */

/* ============================================================
   Reset + tokens
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:root {
  /* Color */
  --ink: #0F1115;
  --ink-2: #2B2F38;
  --muted: #6B7280;
  --muted-2: #9CA3AF;
  --rule: #E5E7EB;
  --rule-2: #F1F2F4;
  --paper: #FFFFFF;
  --paper-2: #FAFAFA;
  --paper-3: #F4F5F7;
  --accent: #E97F2A;        /* laser orange — eyebrows, links, hover borders, glow */
  --accent-hover: #C9651D;  /* darker burnt orange — button bg + hovers (AA contrast) */
  --accent-soft: #FDF2E6;   /* warm cream tint — soft backgrounds + accent halos */
  --accent-glow: #FFB370;   /* lighter sunrise — used only inside dark sections */
  --accent-ink: #B4540F;    /* darker burnt orange — orange TEXT on light bg (AA ~5:1) */
  --success: #00A86B;
  --warning: #FFB020;
  --danger: #E53935;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(15, 17, 21, 0.06);
  --sh-2: 0 4px 12px rgba(15, 17, 21, 0.08);
  --sh-3: 0 12px 32px rgba(15, 17, 21, 0.10);

  /* Easing */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Layout */
  --header-h: 64px;
  --max-w: 1280px;
}

/* ============================================================
   Base
   ============================================================ */
html, body { background: var(--paper); color: var(--ink); }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 700;
  color: var(--ink);
}
h1 {
  font-size: clamp(44px, 7.5vw, 84px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.028em;
}
h3 { font-size: clamp(20px, 2.2vw, 24px); }
h4 { font-size: 18px; font-weight: 600; }

p { color: var(--ink-2); }
.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
}
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--s-6); }
}

.section {
  padding: var(--s-8) 0;
}
@media (min-width: 768px) {
  .section { padding: var(--s-9) 0; }
}
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--paper); }
.section-ink p, .section-ink .lead { color: rgba(255,255,255,0.78); }

.section-head { margin-bottom: var(--s-7); max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: var(--s-5); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
/* Leading hairline mark — a small beam segment that punctuates every
   eyebrow with the laser motif. Renders inline so the text flows next
   to it; centered vertical of the cap line. */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: currentColor;
  opacity: 0.85;
  border-radius: 1px;
  vertical-align: middle;
}
.eyebrow.on-dark { color: var(--accent-glow); }
.eyebrow.on-dark::before { box-shadow: 0 0 10px rgba(255, 179, 112, 0.55); }
.eyebrow.muted { color: var(--muted); }
.eyebrow.muted::before { opacity: 0.4; }
.section-head.center .eyebrow,
.center .eyebrow { justify-content: center; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0 var(--s-5);
  height: 44px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: background 160ms var(--ease), color 160ms var(--ease),
              border-color 160ms var(--ease), transform 160ms var(--ease),
              box-shadow 160ms var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform 200ms var(--ease); }
.btn:hover .arr { transform: translateX(2px); }

.btn-primary {
  background: var(--accent-hover);
  color: #FFFFFF;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, var(--sh-1);
}
.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 6px 18px rgba(233, 127, 42, 0.32);
}

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--paper-3); }

.btn-light { background: var(--paper); color: var(--ink); border-color: var(--rule); }
.btn-light:hover { border-color: var(--ink); }

.btn-sm { height: 36px; font-size: 14px; padding: 0 var(--s-4); }
.btn-lg { height: 52px; font-size: 16px; padding: 0 var(--s-6); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--rule);
  background: rgba(255,255,255,0.95);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--s-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-size: 18px;
}
.brand .mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
/* Tiny laser-hit dot in the top-right corner of the F2 monogram —
   architectural detail that signals "marked by laser" without words.
   Pulses subtly on header hover. */
.brand .mark::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(233, 127, 42, 0.8);
}
.brand:hover .mark::after {
  background: var(--accent-glow);
  box-shadow: 0 0 10px rgba(255, 179, 112, 0.95);
}
.brand .word {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.brand .word .word-title { display: block; font-size: 18px; }
.brand .word b { font-weight: 800; }
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.nav a {
  position: relative;
  padding: var(--s-2) var(--s-3);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: color 120ms var(--ease), background 120ms var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--paper-3); }
.nav a.active { color: var(--ink); font-weight: 600; }
.nav a.active::after {
  content: "";
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(233, 127, 42, 0.55);
}
.nav .btn { margin-left: var(--s-3); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  font-size: 22px;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { background: var(--paper-3); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: var(--s-3);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms var(--ease), transform 160ms var(--ease);
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); }
  .nav .btn { margin: var(--s-2) var(--s-4) 0; }
}

/* ============================================================
   Hero — upload-first
   ============================================================ */
.hero {
  padding: var(--s-9) 0 var(--s-8);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(233, 127, 42, 0.08), transparent 60%),
    var(--paper);
}
.hero .container { text-align: center; }
.hero h1 {
  margin: var(--s-2) auto var(--s-5);
  max-width: 16ch;
}
.hero .lead {
  margin: 0 auto var(--s-7);
  max-width: 56ch;
}

/* Upload zone — the centerpiece */
.upload-zone {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  background: var(--paper);
  border: 2px dashed var(--rule);
  border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-6);
  transition: border-color 160ms var(--ease), background 160ms var(--ease),
              box-shadow 200ms var(--ease);
}
.upload-zone:hover { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--sh-3);
}

.upload-icons {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--s-1);
  margin-bottom: var(--s-5);
  height: 56px;
}
.upload-icons .file-icon {
  position: relative;
  width: 48px;
  height: 56px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 4px 4px 4px 4px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.upload-icons .file-icon::before {
  content: '';
  position: absolute;
  top: -1.5px; right: -1.5px;
  width: 12px;
  height: 12px;
  background: var(--paper-3);
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.upload-icons .file-icon:nth-child(odd) { transform: translateY(-4px); }

.upload-zone h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: var(--s-4);
}
.upload-zone .or {
  font-style: italic;
  color: var(--muted);
  margin: var(--s-3) 0;
  font-size: 14px;
}
.upload-zone .security {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
  font-size: 13px;
  color: var(--muted);
}
.upload-zone .security::before {
  content: '';
  width: 12px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'><path d='M6 0L1 2v4c0 3.5 2.3 6.5 5 8 2.7-1.5 5-4.5 5-8V2L6 0z' fill='black'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'><path d='M6 0L1 2v4c0 3.5 2.3 6.5 5 8 2.7-1.5 5-4.5 5-8V2L6 0z' fill='black'/></svg>") center/contain no-repeat;
}

/* Alt order paths under upload zone */
.alt-paths {
  margin-top: var(--s-7);
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.alt-paths .card {
  text-align: center;
  background: linear-gradient(180deg, var(--paper), var(--accent-soft));
  box-shadow: var(--sh-2);
  padding: var(--s-6) var(--s-5) var(--s-7);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.alt-paths .card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--sh-3);
}
.alt-paths .card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--s-3);
  color: var(--ink);
}
.alt-paths .card p {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: var(--s-5);
  flex: 1;
}
.alt-paths .card .btn { align-self: center; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: border-color 160ms var(--ease), transform 200ms var(--ease),
              box-shadow 200ms var(--ease);
}
.card:hover { border-color: var(--ink); }
.card h3 { margin-bottom: var(--s-3); }
.card p { font-size: 15px; }

.card.elevated { box-shadow: var(--sh-1); }
.card.flat { border-color: var(--rule-2); }

.capability-card {
  position: relative;
  padding: var(--s-7) var(--s-6);
  background: linear-gradient(180deg, var(--paper), var(--accent-soft));
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  transition: border-color 160ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.capability-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--sh-3);
}

/* Featured variant — same look as the others now, kept for future emphasis */
.capability-card-feature {
  border-color: var(--ink);
}
.capability-card .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--s-4);
}
.capability-card h3 { margin-bottom: var(--s-3); }
.capability-card p { margin-bottom: var(--s-5); }
.capability-card .more {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
}
.capability-card .more .arr { transition: transform 200ms var(--ease); }
.capability-card:hover .more .arr { transform: translateX(3px); }

/* ============================================================
   Trust signals
   ============================================================ */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-5);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trust {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.trust .icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid rgba(233, 127, 42, 0.25);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  font-weight: 700;
  font-size: 13px;
}
.trust .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.trust .sub { font-size: 12px; color: var(--muted); margin-top: 2px; display: block; }

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-5);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.stat b {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.stat span { font-size: 13px; color: var(--muted); }

/* ============================================================
   Materials preview chips
   ============================================================ */
.material-chip {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  transition: border-color 160ms var(--ease);
}
.material-chip:hover { border-color: var(--ink); }
.material-chip .swatch {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent-ink);
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.material-chip .swatch svg { width: 20px; height: 20px; }
.material-chip:hover .swatch { background: var(--accent); color: #fff; }
.material-chip .name { font-weight: 600; font-size: 14px; color: var(--ink); }
.material-chip .type { font-size: 12px; color: var(--muted); }

/* ============================================================
   Process steps
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
  counter-reset: step;
}
.process .step {
  position: relative;
  padding: var(--s-7) var(--s-6) var(--s-6);
  background: linear-gradient(180deg, var(--paper), var(--accent-soft));
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  overflow: hidden;
  transition: border-color 160ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.process .step:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--sh-3);
}
/* Step numeral — a big mono number floated into the top-right corner of
   the card as a faded watermark. The numeral lives in the corner so it
   never overlaps the headline regardless of text length. */
.process .step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -4px;
  right: var(--s-5);
  font-family: var(--mono);
  font-size: 72px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  opacity: 0.18;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  transition: opacity 200ms var(--ease), color 200ms var(--ease);
}
.process .step:hover::before {
  opacity: 0.32;
}
/* Small accent dot to the left of the title — matches the laser-dot motif
   on the brand mark, ties each step into the brand voice. */
.process .step h3 {
  position: relative;
  margin-bottom: var(--s-2);
  padding-left: var(--s-4);
}
.process .step h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(233, 127, 42, 0.45);
}
.process .step p { font-size: 15px; padding-left: var(--s-4); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding: var(--s-8) 0 var(--s-6);
  margin-top: var(--s-10);
}
.site-footer .brand { color: var(--paper); }
.site-footer .brand .mark { background: var(--paper); color: var(--ink); }
.site-footer .brand small { color: rgba(255,255,255,0.5); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--s-4);
}
.footer-grid ul li { margin-bottom: var(--s-2); }
.footer-grid a {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  transition: color 120ms var(--ease);
}
.footer-grid a:hover { color: var(--paper); }
.footer-grid a.btn-light { color: var(--ink); background: var(--paper); border-color: var(--rule); }
.footer-grid a.btn-light:hover { color: var(--ink); background: var(--paper); border-color: var(--ink); }
.footer-grid p { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: var(--s-3); max-width: 36ch; }

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   Badges + small UI
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 4px var(--s-3);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.badge.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

.divider { height: 1px; background: var(--rule); border: 0; margin: var(--s-7) 0; }

/* ============================================================
   Utility
   ============================================================ */
.center { text-align: center; }
.t-mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.hide-on-mobile { display: initial; }
@media (max-width: 720px) { .hide-on-mobile { display: none; } }

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   QUOTE TOOL — three-column app layout
   ============================================================ */
.page-quote { background: var(--paper-2); }
.page-quote .site-footer { margin-top: 0; }

.quote-app {
  display: grid;
  grid-template-columns: 320px 1fr 340px;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-6);
  max-width: 1840px;
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h));
  align-items: stretch;
}

@media (max-width: 1400px) {
  .quote-app { grid-template-columns: 300px 1fr 320px; padding: var(--s-4); }
}
@media (max-width: 1180px) {
  .quote-app { grid-template-columns: 280px 1fr 300px; }
}

/* Inner 2-column grid inside the center column: viewer (left) + config (right). */
.quote-center-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--s-4);
  align-items: start;
}
@media (max-width: 1400px) {
  .quote-center-grid { grid-template-columns: 360px 1fr; }
}
@media (max-width: 1180px) {
  .quote-center-grid { grid-template-columns: 1fr; }
}
.quote-app:not(.has-files) .quote-center-grid { display: none; }
@media (max-width: 980px) {
  .quote-app {
    grid-template-columns: 1fr;
    grid-template-areas:
      "center"
      "left"
      "right";
  }
  .quote-left   { grid-area: left; }
  .quote-center { grid-area: center; }
  .quote-right  { grid-area: right; }
}

.quote-left, .quote-right {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.quote-center {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

/* ============================================================
   Quote panels (left rail: Models + Cart, right rail: Price)
   ============================================================ */
.qpanel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.qpanel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
/* Collapsible variant: header becomes a button + chevron rotates */
.qpanel-toggle {
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: var(--paper-2);
  border: 0;
  font: inherit;
  color: inherit;
  transition: background 120ms var(--ease);
}
.qpanel-toggle:hover { background: var(--paper-3); }
.qpanel-head-tail {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.qpanel-chevron {
  font-size: 10px;
  color: var(--muted);
  transition: transform 180ms var(--ease);
  display: inline-block;
  line-height: 1;
}
.qpanel.is-collapsed .qpanel-chevron { transform: rotate(-90deg); }
.qpanel.is-collapsed .qpanel-body { display: none; }
.qpanel.is-collapsed .qpanel-head { border-bottom-color: transparent; }
.qpanel-head h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.qpanel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--paper-3);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--mono);
}
.qpanel-badge.accent { background: var(--accent-soft); color: var(--accent); }

.qpanel-body { padding: var(--s-4); }
.qpanel-empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: var(--s-3) 0;
}
.qpanel-actions { margin-top: var(--s-3); }

/* Models list */
.models-list { display: flex; flex-direction: column; gap: var(--s-2); }
.model-item {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--paper);
  transition: border-color 120ms var(--ease), background 120ms var(--ease);
}
.model-item.is-active { border-color: var(--accent); background: var(--accent-soft); }
.model-pick {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  text-align: left;
  font-size: 13px;
  min-width: 0;
}
.file-icon-mini {
  flex: 0 0 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--mono);
}
.file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 500;
}
.file-status {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.file-status.parsing { background: var(--accent-soft); color: var(--accent); }
.file-status.error { background: rgba(229,57,53,0.1); color: var(--danger); }
.model-remove {
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--muted);
  border-left: 1px solid var(--rule);
  transition: color 120ms var(--ease), background 120ms var(--ease);
}
.model-remove:hover { color: var(--danger); background: rgba(229,57,53,0.06); }

/* ============================================================
   Center: drop zone OR viewer
   ============================================================ */
.quote-dropzone {
  background: var(--paper);
  border: 2px dashed var(--rule);
  border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-6);
  text-align: center;
  transition: border-color 160ms var(--ease), background 160ms var(--ease),
              box-shadow 200ms var(--ease);
  cursor: pointer;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.quote-dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.quote-dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--sh-3);
}
.quote-dropzone h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin: var(--s-4) 0 var(--s-3);
}
.quote-dropzone .security { margin-top: var(--s-5); }

/* Hide drop zone once a file is loaded; show viewer.
   Toggled by ui.js when files are added / removed. */
.quote-app:not(.has-files) .quote-viewer-wrap { display: none; }
.quote-app.has-files .quote-dropzone { display: none; }

/* Viewer */
.quote-viewer-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.quote-viewer {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 420px;
  aspect-ratio: 1 / 1;
}
.viewer-canvas {
  width: 100%;
  height: 100%;
  min-height: 420px;
  position: relative;
}
.viewer-canvas canvas { display: block; width: 100%; height: 100%; }
.viewer-loading {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  z-index: 5;
}
.viewer-loading[hidden] { display: none; }
.file-info[hidden] { display: none; }
.qpanel-empty[hidden] { display: none; }
.viewer-loading .loading-msg { color: var(--muted); font-size: 14px; }
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--rule);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.viewer-controls {
  position: absolute;
  bottom: var(--s-3);
  right: var(--s-3);
  display: flex;
  gap: var(--s-2);
  z-index: 4;
}
.vctrl {
  width: 36px; height: 36px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  font-size: 16px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-1);
  transition: background 120ms var(--ease), border-color 120ms var(--ease);
}
.vctrl:hover { background: var(--paper-3); border-color: var(--ink); }

/* File info card */
.file-info {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
}
.file-info-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 var(--s-3);
  color: var(--ink);
  word-break: break-all;
}
.file-info-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s-3) var(--s-5);
}
.file-info-rows .lbl {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.file-info-rows .val {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
}

/* Quote panels */
.price-panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.configurator {
  /* The configurator is a stack of bordered step cards now —
     no outer border / padding on the wrapper. */
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.configurator[hidden] { display: none; }
.placeholder.muted { font-size: 13px; color: var(--muted); padding: var(--s-3) 0; }

/* Individual step card (Material / Layer thickness / Infill / Color) */
.cfg-step-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  transition: border-color 160ms var(--ease);
}
.cfg-step-card:hover { border-color: var(--ink-2); }
/* A .cfg-row as the last element inside a step card (e.g. the marking
   Size & rotation card) shouldn't add its own bottom margin on top of
   the card padding. */
.cfg-step-card .cfg-row:last-child { margin-bottom: 0; }
.cfg-step-head {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--s-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.cfg-step-head .cfg-label-note {
  font-family: var(--font);
  text-transform: none;
  letter-spacing: 0;
}

/* "Add permanent laser marking" toggle card — final step card, looks
   like a clickable row, lights up in accent when on. */
.cfg-marking-toggle {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  cursor: pointer;
  padding: var(--s-4) var(--s-5);
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.cfg-marking-toggle:hover { border-color: var(--ink); }
.cfg-marking-toggle input {
  accent-color: var(--accent);
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 20px;
}
.cfg-marking-toggle-body { flex: 1; min-width: 0; }
.cfg-marking-toggle-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 2px;
}
.cfg-marking-toggle-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.cfg-marking-toggle.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.cfg-marking-toggle.is-on .cfg-marking-toggle-sub { color: var(--ink); font-weight: 500; }

/* ============================================================
   Configurator (center column below viewer)
   ============================================================ */
.cfg-block { margin-bottom: var(--s-4); }
.cfg-block:last-child { margin-bottom: 0; }
.cfg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
.cfg-row > .cfg-block { margin-bottom: 0; }
@media (max-width: 720px) {
  .cfg-row { grid-template-columns: 1fr; }
}
.cfg-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-3);
}
.cfg-select-wrap {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-2);
}
.cfg-select {
  flex: 1;
  height: 42px;
  padding: 0 var(--s-4);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  transition: border-color 120ms var(--ease);
}
.cfg-select:hover { border-color: var(--ink); }
.cfg-select:focus-visible { border-color: var(--accent); }
.cfg-spec-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}
.cfg-spec-link:hover { text-decoration: underline; }
.cfg-help {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.cfg-help-tag {
  color: var(--ink);
  font-weight: 600;
  margin-right: 4px;
}
.cfg-label-note {
  display: inline-block;
  margin-left: var(--s-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}
.cfg-warn {
  font-size: 13px;
  color: var(--warning);
  margin: var(--s-2) 0 0;
  padding: var(--s-2) var(--s-3);
  background: rgba(255,176,32,0.08);
  border-left: 3px solid var(--warning);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.cfg-locked {
  height: 42px;
  padding: 0 var(--s-4);
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

/* Process tier cards */
.process-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
@media (max-width: 720px) {
  .process-cards { grid-template-columns: 1fr; }
}
.process-card {
  position: relative;
  padding: var(--s-4) var(--s-3);
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
  text-align: center;
  transition: border-color 120ms var(--ease), background 120ms var(--ease), transform 120ms var(--ease);
  cursor: pointer;
}
.process-card:hover { border-color: var(--ink); }
.process-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.process-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  margin-bottom: var(--s-2);
  color: var(--ink);
}
.process-card.is-selected .process-card-icon { color: var(--accent); }
.process-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.process-card-tagline {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.process-card-check {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* Dedicated Laser Marking section (separate from configurator) */
/* Marking section now mirrors the model configurator: a transparent stack
   of bordered step cards (.cfg-step-card / .cfg-step-head), not a single
   monolithic card with a gradient header band. */
.marking-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.marking-section[hidden] { display: none; }
/* Section intro — orange-mono step-head label + muted sub, same language
   as the configurator step headers. */
.mark-head { display: flex; flex-direction: column; }
.mark-head .cfg-step-head { margin-bottom: 4px; }
/* Collapsed prompt card (shown before marking is enabled) */
.mark-collapsed-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.mark-collapsed-card .cfg-step-head { margin-bottom: 4px; }
.mark-section-cta {
  font-size: 12px;
  color: var(--accent-ink);
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .mark-collapsed-card { flex-direction: column; align-items: flex-start; }
}
.mark-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-5);
  padding: 0;
}
@media (max-width: 980px) {
  .mark-grid { grid-template-columns: 1fr; }
}
.mark-viewer-wrap { display: flex; flex-direction: column; gap: var(--s-3); }
.mark-viewer {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.mark-viewer canvas { display: block; width: 100% !important; height: 100% !important; }
.mark-viewer-hint { font-size: 12px; color: var(--muted); margin: 0; text-align: center; }
.mark-controls { display: flex; flex-direction: column; gap: var(--s-3); }

/* Left rail Laser Marking status panel rows */
.marking-status .mstat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px dashed var(--rule-2);
}
.marking-status .mstat-row:last-child { border-bottom: 0; }
.marking-status .mstat-key { color: var(--muted); font-weight: 500; }
.marking-status .mstat-val { font-family: var(--mono); color: var(--ink); font-weight: 600; text-align: right; max-width: 60%; word-break: break-word; }

/* Image upload (logo / QR for laser marking) */
.image-upload-btn {
  display: block;
  width: 100%;
  padding: var(--s-4) var(--s-5);
  background: var(--paper-2);
  border: 1.5px dashed var(--rule);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: center;
  transition: border-color 120ms var(--ease), background 120ms var(--ease);
}
.image-upload-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.image-upload-btn span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}
.image-upload-btn small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.image-upload-preview {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.image-upload-preview img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 4px;
}
.image-upload-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.image-upload-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-upload-remove {
  align-self: flex-start;
  font-size: 12px;
  color: var(--danger);
  font-weight: 500;
}
.image-upload-remove:hover { text-decoration: underline; }

/* Serialize preview chip (the toggle itself now reuses .cfg-marking-toggle) */
.serialize-preview {
  margin-top: 0;
  padding: var(--s-3) var(--s-4);
  background: var(--paper);
  border: 1px dashed var(--rule);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--ink-2);
}
.serialize-preview strong { font-family: var(--mono); color: var(--ink); font-weight: 600; }

/* Color picker */
.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.color-swatch {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px var(--s-3) 6px 6px;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 120ms var(--ease);
}
.color-swatch:hover { border-color: var(--ink); }
.color-swatch.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.color-swatch.is-disabled,
.color-swatch[disabled] {
  opacity: 0.4;
  filter: grayscale(0.85);
  cursor: not-allowed;
  pointer-events: none;
}
.color-swatch.is-disabled .swatch-dot,
.color-swatch[disabled] .swatch-dot { opacity: 0.7; }
.swatch-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  flex: 0 0 22px;
}
.swatch-extra {
  font-size: 11px;
  color: var(--muted);
  margin-left: var(--s-2);
}

/* Finish options */
.finish-options {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.finish-option {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 120ms var(--ease), background 120ms var(--ease);
}
.finish-option:hover { border-color: var(--ink); }
.finish-option.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.finish-option-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.finish-option-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.finish-price {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--mono);
}
.finish-option-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   Right rail — Price Panel
   ============================================================ */
.price-panel { position: sticky; top: calc(var(--header-h) + var(--s-3)); }
.pp-section { margin-bottom: var(--s-4); }
.pp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-3);
}
.pp-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.pp-bulk {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}
.pp-bulk:hover { text-decoration: underline; }

.pp-field { margin-bottom: var(--s-3); }
.pp-field-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
}
.qty-btn {
  width: 36px;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms var(--ease);
}
.qty-btn:hover { background: var(--paper-3); }
.qty-input {
  width: 56px;
  border: 0;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--mono);
  background: var(--paper);
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input { -moz-appearance: textfield; }

.pp-lead-est {
  font-size: 12px;
  color: var(--muted);
  margin: var(--s-2) 0 0;
  line-height: 1.5;
}
.pp-lead-est strong { color: var(--ink); font-weight: 600; }

.pp-divider {
  height: 1px;
  background: var(--rule);
  margin: var(--s-4) calc(-1 * var(--s-5));
}

.pp-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--rule-2);
}
.pp-line:last-child { border-bottom: 0; }
.pp-line .pp-detail {
  display: block;
  font-size: 11px;
  color: var(--accent);
  margin-top: 2px;
  font-weight: 500;
}
.pp-amt { font-family: var(--mono); font-weight: 500; color: var(--ink); }

.pp-line-subtotal {
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  border-bottom: 0 !important;
  font-weight: 600;
  color: var(--ink);
  margin-top: var(--s-2);
}
.pp-line-subtotal .pp-amt { font-weight: 600; }

.pp-line-total {
  padding-top: var(--s-3);
  margin-top: var(--s-2);
  border-top: 1px solid var(--ink);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.pp-line-total .pp-amt { font-size: 20px; font-weight: 700; }

.pp-disclaimer {
  font-size: 11px;
  color: var(--muted);
  background: var(--paper-2);
  padding: var(--s-3);
  border-radius: var(--r-sm);
  line-height: 1.5;
  margin: var(--s-4) 0;
}

.pp-cta { width: 100%; margin-top: var(--s-2); }
.pp-cta:disabled,
.pp-cta[disabled] {
  background: var(--rule);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1; /* override the default 0.5 disabled fade so the chip still reads */
}
.pp-cta:disabled:hover,
.pp-cta[disabled]:hover {
  background: var(--rule);
  box-shadow: none;
}

/* DFM acknowledgment gate — appears above Add to Cart when a wall-thickness
   warning is unacknowledged. Soft-amber tone (not red — it's a notice, not
   a stop), with a checkbox that unlocks the cart button. */
.pp-dfm-gate {
  margin: var(--s-3) 0 var(--s-2);
  padding: var(--s-3) var(--s-4);
  background: #FFF7EB;
  border: 1px solid #F5C77B;
  border-radius: var(--r-md);
}
.pp-dfm-gate.is-ack {
  background: var(--paper-2);
  border-color: var(--rule);
}
.pp-dfm-head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 4px;
}
.pp-dfm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E97F2A;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 12px;
  font-family: var(--mono);
  flex: 0 0 18px;
}
.pp-dfm-gate.is-ack .pp-dfm-icon { background: var(--success); }
.pp-dfm-body {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 var(--s-3);
}
.pp-dfm-body .pp-dfm-tip {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.pp-dfm-ack {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  cursor: pointer;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
}
.pp-dfm-ack input {
  accent-color: var(--accent-hover);
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  cursor: pointer;
}

.pp-help {
  display: block;
  text-align: center;
  margin-top: var(--s-3);
  font-size: 13px;
  color: var(--muted);
}
.pp-help .link-text { color: var(--accent); font-weight: 500; }
.pp-help:hover .link-text { text-decoration: underline; }

/* Bulk pricing modal */
.pp-bulk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,17,21,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--s-5);
}
.pp-bulk-modal {
  background: var(--paper);
  border-radius: var(--r-lg);
  max-width: 480px;
  width: 100%;
  padding: var(--s-6);
  box-shadow: var(--sh-3);
}
.pp-bulk-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-4);
}
.pp-bulk-head h3 { font-size: 18px; margin: 0; }
.pp-bulk-close {
  width: 32px;
  height: 32px;
  font-size: 22px;
  color: var(--muted);
}
.pp-bulk-close:hover { color: var(--ink); }
.pp-bulk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pp-bulk-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
}
.pp-bulk-table td {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule-2);
  font-family: var(--mono);
}
.pp-bulk-table td:first-child { font-family: var(--font); font-weight: 600; }
.pp-bulk-note {
  font-size: 12px;
  color: var(--muted);
  margin: var(--s-4) 0 0;
  line-height: 1.5;
}
.pp-bulk-note a { color: var(--accent); }
.pp-bulk-note a:hover { text-decoration: underline; }

/* ============================================================
   Engraving section (inside configurator)
   ============================================================ */
.cfg-divider {
  height: 1px;
  background: var(--rule);
  margin: var(--s-5) calc(-1 * var(--s-5));
}
.engraving-section .eng-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--s-4);
}

/* Toggle switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex: 0 0 42px;
  margin-top: 4px;
  cursor: pointer;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--rule);
  border-radius: 12px;
  transition: background 160ms var(--ease);
}
.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: var(--sh-1);
  transition: left 160ms var(--ease);
}
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle input:checked + .toggle-track .toggle-thumb { left: 20px; }
.toggle input:focus-visible + .toggle-track { box-shadow: 0 0 0 3px var(--accent-soft); }

.eng-body { margin-top: var(--s-4); }
.eng-body[hidden] { display: none; }

/* Type and Mode button groups */
.eng-type-group, .eng-mode-group {
  display: flex;
  gap: 0;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 3px;
}
.eng-type, .eng-mode {
  flex: 1;
  padding: 8px var(--s-3);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: background 120ms var(--ease), color 120ms var(--ease);
}
.eng-type:hover, .eng-mode:hover { color: var(--ink); }
.eng-type.is-selected, .eng-mode.is-selected {
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--sh-1);
}

/* Position presets */
/* Condensed face picker — one connected segmented row of 6 (was a 3-col grid
   of big padded buttons taking two rows). Matches the Text/Logo segmented look. */
.eng-preset-group {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.eng-preset {
  padding: 7px 4px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-right: 1px solid var(--rule);
  border-radius: 0;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}
.eng-preset:last-child { border-right: 0; }
.eng-preset:hover { background: var(--rule-2); }
.eng-preset.is-selected { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }

/* Form inputs */
.cfg-input {
  width: 100%;
  height: 42px;
  padding: 0 var(--s-4);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  transition: border-color 120ms var(--ease);
  font-family: var(--font);
}
.cfg-input:focus { outline: none; border-color: var(--accent); }

/* Serial fields grid */
.serial-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
@media (max-width: 540px) {
  .serial-grid { grid-template-columns: 1fr 1fr; }
}
.serial-mini-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

/* Sliders */
.slider-wrap {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.cfg-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  outline: none;
}
.cfg-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--sh-1);
}
.cfg-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 0;
}
.slider-val {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  min-width: 60px;
  text-align: right;
}

/* Engraving cost summary */
.eng-summary {
  margin-top: 0;
  padding: var(--s-3) var(--s-4);
  background: var(--accent-soft);
  border-radius: var(--r-md);
  border-left: 3px solid var(--accent);
}
.eng-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink);
  padding: 4px 0;
}
.eng-summary-row .amt { font-family: var(--mono); font-weight: 600; }

/* ---- Multi-location marking UI ---- */
.mark-loc-card.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.mark-loc-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.mark-loc-head .cfg-step-head { margin-bottom: 0; }
.mark-loc-remove {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: var(--r-sm);
  font-size: 16px; line-height: 1; color: var(--muted);
  background: var(--paper-2); border: 1px solid var(--rule); cursor: pointer;
  transition: color 120ms var(--ease), border-color 120ms var(--ease);
}
.mark-loc-remove:hover { color: var(--danger); border-color: var(--danger); }
.mark-loc-card .eng-preset-group { margin-bottom: var(--s-3); }

/* Collapsed (non-active) location row — click to expand */
.mark-loc-collapsed { cursor: pointer; }
.mark-loc-collapsed:hover { border-color: var(--ink-2); }
.mark-loc-collapsed .mark-loc-head { margin-bottom: 0; }
.mark-loc-tail { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.mark-loc-summary { font-size: 12px; color: var(--muted); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Segmented toggles (content type, identical/incremental) */
.mark-seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  margin-bottom: var(--s-2); border: 1px solid var(--rule);
  border-radius: var(--r-md); overflow: hidden;
}
.mark-seg-btn {
  padding: 7px var(--s-3); font-size: 12px; font-weight: 500; color: var(--ink-2);
  background: var(--paper); border: 0; border-right: 1px solid var(--rule); cursor: pointer;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}
.mark-seg-btn:last-child { border-right: 0; }
.mark-seg-btn.is-on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }

/* "Data type" sub-header above the content-type toggle (matches the Size / Rotation labels) */
.mark-data-label { margin-top: var(--s-2); margin-bottom: var(--s-1); }

/* Add-location button */
.mark-add-btn {
  width: 100%; padding: var(--s-3); font-size: 13px; font-weight: 600;
  color: var(--accent-ink); background: var(--paper); border: 1.5px dashed var(--rule);
  border-radius: var(--r-md); cursor: pointer;
  transition: border-color 120ms var(--ease), background 120ms var(--ease);
}
.mark-add-btn:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Per-location captured snapshot */
.mark-snap { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-3); }
.mark-snap-img {
  width: 64px; height: 64px; object-fit: cover;
  border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--paper-2);
}

/* ============================================================
   3D scanning service section — photo + text side by side
   ============================================================ */
.section-scanning {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.scanning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 880px) {
  .scanning-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}
.scanning-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
  aspect-ratio: 3 / 2;
}
.scanning-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scanning-text .eyebrow { margin-bottom: var(--s-3); }
.scanning-text h2 { margin-bottom: var(--s-4); }
.scanning-text .lead {
  color: var(--ink-2);
  margin-bottom: var(--s-4);
}
.scanning-fineprint {
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  margin-bottom: var(--s-5);
}
.scanning-cta .btn { margin-top: var(--s-2); }

/* ============================================================
   Hero variant — use-case picker as centerpiece
   ============================================================ */
.hero-picker { padding-bottom: var(--s-8); }
.hero-picker .section-head { margin-bottom: var(--s-7); }
.hero-picker h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
}
.hero-picker .lead { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Split hero — bold type + CTA on the left, marked-part spotlight on the right */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(var(--s-6), 5vw, var(--s-9));
  align-items: center;
  text-align: left;
  margin-bottom: var(--s-9);
}
.hero-copy { text-align: left; }
.hero-copy .eyebrow { justify-content: flex-start; }
.hero-copy h1 {
  margin: var(--s-3) 0 var(--s-5);
  max-width: 16ch;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 0.98;
}
.hero-copy .lead { max-width: 50ch; margin: 0 0 var(--s-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-4); }

.hero-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0A0C10;
  box-shadow: var(--sh-3), 0 0 0 1px rgba(255, 179, 112, 0.18);
  isolation: isolate;
}
.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(460px 360px at 72% 18%, rgba(255, 179, 112, 0.30), transparent 62%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-visual-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: var(--s-6) var(--s-5) var(--s-4);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
}

.usecase-intro { text-align: center; margin-bottom: var(--s-6); }
.usecase-intro-h {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: var(--s-2);
}

#marking { scroll-margin-top: 88px; }

@media (max-width: 880px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--s-6);
    margin-bottom: var(--s-8);
  }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-copy h1, .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
}

/* ============================================================
   Skip-ahead upload band — for customers who already have a file
   ============================================================ */
.upload-band {
  padding: var(--s-8) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.upload-band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 880px) {
  .upload-band-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}
.upload-band-text h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: var(--s-3);
}
.upload-band-text .eyebrow { margin-bottom: var(--s-2); }
.upload-band-text p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.upload-zone-compact {
  padding: var(--s-4) var(--s-5);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  text-align: center;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
  cursor: pointer;
}
.upload-zone-compact:hover { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone-compact .upload-icons {
  display: flex;
  justify-content: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.upload-zone-compact .file-icon {
  padding: 3px var(--s-2);
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.upload-zone-compact h3 {
  font-size: 17px;
  margin-bottom: var(--s-3);
}
.upload-zone-compact .security {
  margin-top: var(--s-3);
  font-size: 11px;
  color: var(--muted);
}

/* ============================================================
   Use-case picker — "What are you making?" cards
   ============================================================ */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-5);
}
.usecase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: linear-gradient(180deg, var(--paper), var(--accent-soft));
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  overflow: hidden;
  transition: border-color 160ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
  text-decoration: none;
}
.usecase-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
}
.usecase-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}
.usecase-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms var(--ease);
}
.usecase-card:hover .usecase-photo img { transform: scale(1.03); }
.usecase-body {
  padding: var(--s-5) var(--s-5) var(--s-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.usecase-body-full { padding-top: var(--s-6); } /* talk-to-us card has no image */

.usecase-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px var(--s-3);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: var(--r-sm);
  text-transform: uppercase;
  z-index: 2;
}
/* Overlaid tag for image-cards — bottom-left of the photo */
.usecase-photo .usecase-tag {
  position: absolute;
  bottom: var(--s-3);
  left: var(--s-3);
  background: rgba(15, 17, 21, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.usecase-body .usecase-tag { margin-bottom: var(--s-4); }
.usecase-card h3 {
  margin-bottom: var(--s-3);
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
}
.usecase-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  flex: 1;
  margin-bottom: var(--s-5);
}
.usecase-card p strong { color: var(--ink); font-weight: 700; }
.usecase-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}
.usecase-card:hover .usecase-cta .arr { transform: translateX(3px); }
.usecase-cta .arr { transition: transform 200ms var(--ease); }

/* Featured variant for the "Serialized" card */
.usecase-card-feature {
  border-color: var(--ink);
  background: linear-gradient(180deg, var(--paper), var(--accent-soft) 70%, #F4D9B8 100%);
}
.usecase-card-feature .usecase-tag { background: var(--accent); }

/* Talk-to-us variant — softer, signals "no commitment" */
.usecase-card-help {
  background: var(--paper-2);
  border-style: dashed;
  border-color: var(--rule);
  box-shadow: none;
}
.usecase-card-help .usecase-tag { background: var(--muted); }
.usecase-card-help:hover { box-shadow: var(--sh-1); }

/* ============================================================
   Configurator preview — mock viewer + 4 picks
   ============================================================ */
.cfg-preview-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
  align-items: start;
}
@media (max-width: 980px) {
  .cfg-preview-layout { grid-template-columns: 1fr; }
}

/* Mock 3D viewer card */
.cfg-preview-viewer-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cfg-preview-viewer-svg {
  display: block;
  width: 100%;
  height: auto;
}
.cfg-preview-fileinfo-strip {
  padding: var(--s-3) var(--s-5);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  font-size: 12px;
  background: var(--paper-2);
}
.cfg-preview-fname {
  color: var(--ink);
  font-weight: 600;
}
.cfg-preview-fdims {
  font-family: var(--mono);
  color: var(--muted);
}
.cfg-preview-pill {
  margin: var(--s-3) var(--s-5) var(--s-4);
  align-self: flex-start;
  padding: 5px var(--s-3);
  font-size: 12px;
  font-weight: 500;
  color: var(--success);
  background: rgba(0, 168, 107, 0.08);
  border: 1px solid rgba(0, 168, 107, 0.3);
  border-radius: 999px;
}

/* Stacked picks column (was a horizontal grid before) */
.cfg-preview-picks {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.cfg-preview-card {
  padding: var(--s-5);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 160ms var(--ease);
}
.cfg-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--ink-2);
}
.cfg-preview-step {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.cfg-preview-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s-4);
  height: 44px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.cfg-preview-chev {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}
.cfg-preview-swatches {
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  flex-wrap: wrap;
  align-items: center;
}
.cfg-preview-swatch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.cfg-preview-swatch.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.cfg-preview-swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  display: inline-block;
}
.cfg-preview-swatch-label { line-height: 1; }
.cfg-preview-help {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.cfg-preview-help b { color: var(--ink); font-weight: 600; }
.cfg-preview-tagline {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--s-5);
  line-height: 1.55;
  font-style: italic;
}
.cfg-preview-cta {
  text-align: center;
  margin-top: var(--s-5);
}

/* ============================================================
   FAQ — accordion details/summary
   ============================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 160ms var(--ease), box-shadow 200ms var(--ease);
}
.faq-item:hover { border-color: var(--ink-2); }
.faq-item[open] {
  border-color: var(--ink);
  box-shadow: var(--sh-1);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--s-5) var(--s-6);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  transition: background 120ms var(--ease);
}
.faq-item summary:hover { background: var(--paper-2); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
  transition: transform 220ms var(--ease), background 180ms var(--ease);
  flex: 0 0 auto;
  line-height: 1;
}
.faq-item:hover summary::after {
  background: #FCE6CC;
  transform: scale(1.05);
}
.faq-item[open] summary::after {
  content: '\2212'; /* minus */
  background: var(--accent);
  color: var(--paper);
  box-shadow: 0 0 14px rgba(233, 127, 42, 0.45);
  transform: rotate(180deg);
}
.faq-body {
  padding: 0 var(--s-6) var(--s-5);
}
.faq-body p {
  color: var(--ink-2);
  line-height: 1.65;
  font-size: 15px;
  margin: 0;
}

/* ============================================================
   Print + Mark intro section ("ampersand" headline block)
   ============================================================ */
.section-ampersand {
  position: relative;
  padding: var(--s-10) 0;
  text-align: center;
  background: #0A0C10;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
/* Radial laser hot-spot suggesting the UV beam landing on the part.
   Centered horizontally, biased toward the top so the headline sits
   in the brightest zone. */
.section-ampersand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 28%, rgba(233, 127, 42, 0.22), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(233, 127, 42, 0.06), transparent 60%);
  z-index: -2;
  pointer-events: none;
}
/* Thin orange beam line above the headline — a visual punctuation that
   signals "this section is the laser pitch." */
.section-ampersand::after {
  content: "";
  position: absolute;
  top: var(--s-9);
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 14px rgba(233, 127, 42, 0.6);
  z-index: -1;
  pointer-events: none;
}
.section-ampersand .eyebrow {
  margin-bottom: var(--s-4);
  color: var(--accent-glow);
}
/* Architectural F2 watermark — giant, low-opacity letterform behind the
   headline. Anchored to the section center so it scales gracefully with
   viewport. Pointer-events disabled so it never blocks the CTA. */
.amp-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font);
  font-size: clamp(280px, 38vw, 520px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.85;
  color: var(--accent);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  white-space: nowrap;
}
.amp-headline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.05;
  flex-wrap: wrap;
  margin: 0 auto var(--s-5);
  letter-spacing: -0.025em;
  color: var(--paper);
}
.amp-line { color: var(--paper); }
.amp-line-mark {
  color: var(--accent);
  text-shadow:
    0 0 24px rgba(233, 127, 42, 0.55),
    0 0 56px rgba(233, 127, 42, 0.28);
}

.amp-headline-simple {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  margin: 0 auto var(--s-6);
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--paper);
  text-align: center;
  max-width: 920px;
}
.amp-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95em;
  line-height: 1;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(233, 127, 42, 0.35);
}
.amp-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
}
.amp-lead strong {
  color: var(--paper);
  font-weight: 700;
}
.amp-fineprint {
  margin-top: var(--s-4);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}
.amp-cta { margin-top: var(--s-7); }
/* On the dark marking section the outline button needs to flip:
   white border + white text, with an orange-tinted fill on hover. */
.section-ampersand .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--paper);
}
.section-ampersand .btn-outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
  box-shadow: 0 6px 18px rgba(233, 127, 42, 0.35);
}

/* ============================================================
   DFM check pill — stacked group of one or more pills
   ============================================================ */
.dfm-pill-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--s-2);
  margin: var(--s-2) 0;
}
.dfm-pill-group[hidden] { display: none; }
.dfm-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 6px var(--s-3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid;
  align-self: flex-start;
}
.dfm-pill-group .dfm-pill { margin: 0; align-self: stretch; }
.dfm-pill[hidden] { display: none; }
.dfm-pill.is-checking {
  background: var(--paper-3);
  color: var(--muted);
  border-color: var(--rule);
}
.dfm-pill.is-ok {
  background: rgba(0, 168, 107, 0.08);
  color: var(--success);
  border-color: rgba(0, 168, 107, 0.3);
}
.dfm-pill.is-warn {
  background: rgba(255, 176, 32, 0.08);
  color: #B07000;
  border-color: rgba(255, 176, 32, 0.4);
}
.dfm-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  background: currentColor;
  color: var(--paper);
}
.dfm-pill.is-ok .dfm-icon::before { content: '✓'; color: var(--paper); }
.dfm-pill.is-warn .dfm-icon { color: var(--paper); background: #B07000; }
.dfm-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--rule);
  border-top-color: var(--muted);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ============================================================
   Cart items (left rail Cart panel)
   ============================================================ */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.cart-list[hidden] { display: none; }
.cart-item {
  padding: var(--s-3);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
}
.cart-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-2);
}
.cart-item-title {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
  line-height: 1.35;
}
.cart-item-remove {
  width: 22px;
  height: 22px;
  font-size: 16px;
  color: var(--muted);
  border-radius: var(--r-sm);
}
.cart-item-remove:hover { color: var(--danger); background: rgba(229,57,53,0.06); }
.cart-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.cart-item-amt { font-family: var(--mono); color: var(--ink); font-weight: 600; }

.cart-total-row {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
}
.cart-total-row[hidden] { display: none; }
.cart-total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s-3);
}
.cart-total-line span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.cart-total-amt {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.cart-checkout-btn { width: 100%; }

/* ============================================================
   Checkout (Order Review) modal
   ============================================================ */
.checkout-modal { max-width: 540px; }
.checkout-intro {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 var(--s-4);
}
.checkout-summary {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin: 0 0 var(--s-4);
  padding: var(--s-4);
  background: var(--paper-2);
  border-radius: var(--r-md);
}
.checkout-summary li { padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule); }
.checkout-summary li:last-child { padding-bottom: 0; border-bottom: 0; }
.cs-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}
.cs-line strong { font-weight: 600; }
.cs-line span { font-family: var(--mono); font-weight: 600; }
.cs-meta { font-size: 12px; color: var(--muted); }
.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--s-3);
  border-top: 1px solid var(--ink);
  font-size: 16px;
  color: var(--ink);
}
.checkout-total strong {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
}
.checkout-actions {
  display: flex;
  gap: var(--s-3);
  justify-content: flex-end;
  margin-top: var(--s-4);
}

/* ============================================================
   Appearance refinement pass — 2026-06-01
   Precision-industrial polish: industrial display type, blueprint
   atmosphere, monospace spec-labels, deeper card/button depth, and a
   staggered hero reveal. Layered LAST so it wins by source order.
   Brand (laser-orange, beam motif, messaging) is unchanged.
   ============================================================ */
:root {
  --font-display: 'Archivo', 'Inter', -apple-system, system-ui, sans-serif;
  --sh-4: 0 26px 64px -16px rgba(15, 17, 21, 0.22);
}

/* Display typography — confident, engineered headlines */
h1, h2, h3, h4, .usecase-intro-h { font-family: var(--font-display); }
h1 { letter-spacing: -0.045em; font-weight: 800; }
h2 { letter-spacing: -0.035em; font-weight: 700; }
.hero-copy h1 { letter-spacing: -0.05em; }

/* Eyebrows + small labels become monospace spec-tags */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
}
.eyebrow::before { width: 26px; height: 1.5px; opacity: 0.9; }

/* Selection + focus polish */
::selection { background: rgba(233, 127, 42, 0.24); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Hero atmosphere — warm glow + faint blueprint grid, no more flat white */
body[data-page="home"] .hero {
  position: relative;
  background:
    radial-gradient(1100px 560px at 76% -6%, rgba(233, 127, 42, 0.12), transparent 56%),
    radial-gradient(720px 420px at 10% 116%, rgba(233, 127, 42, 0.05), transparent 60%),
    var(--paper);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 17, 21, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 17, 21, 0.045) 1px, transparent 1px);
  background-size: 46px 46px, 46px 46px;
  -webkit-mask-image: radial-gradient(920px 520px at 74% 10%, #000, transparent 76%);
          mask-image: radial-gradient(920px 520px at 74% 10%, #000, transparent 76%);
}
.hero > .container { position: relative; z-index: 1; }

/* Alt sections — a whisper of grid + a thin orange beam divider on top */
.section-alt {
  position: relative;
  background:
    linear-gradient(rgba(15, 17, 21, 0.022) 1px, transparent 1px) 0 0 / 46px 46px,
    var(--paper-2);
}
.section-alt::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 127, 42, 0.5), transparent);
}

/* A little more air above section bodies */
.section-head { margin-bottom: var(--s-8); }

/* Buttons — premium gradient + warm glow */
.btn-primary {
  background: linear-gradient(180deg, #F08C3A, var(--accent-hover));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 8px 20px -6px rgba(233, 127, 42, 0.5);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #F2954A, var(--accent));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 12px 28px -6px rgba(233, 127, 42, 0.55);
  transform: translateY(-1px);
}
.btn-outline { border-color: rgba(15, 17, 21, 0.22); }

/* Use-case cards — more depth, a growing accent beam, mono tag + CTA */
.usecase-card { border-radius: var(--r-xl); box-shadow: var(--sh-2); }
.usecase-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(233, 127, 42, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
  z-index: 4;
}
.usecase-card:hover { transform: translateY(-4px); box-shadow: var(--sh-4); border-color: var(--accent); }
.usecase-card:hover::after { transform: scaleX(1); }
.usecase-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 17, 21, 0.12));
}
.usecase-tag { z-index: 2; font-family: var(--mono); font-weight: 500; letter-spacing: 0.05em; }
.usecase-card h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
.usecase-cta { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

/* Monospace numerals on stats + trust chips — spec-sheet feel */
.stat b { font-family: var(--mono); letter-spacing: -0.01em; }
.trust .icon { font-family: var(--mono); }

/* Staggered hero reveal on load */
@keyframes f2-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy .lead,
  .hero-actions,
  .hero-visual { animation: f2-rise 0.7s var(--ease) both; }
  .hero-copy h1 { animation-delay: 0.08s; }
  .hero-copy .lead { animation-delay: 0.16s; }
  .hero-actions { animation-delay: 0.24s; }
  .hero-visual { animation-delay: 0.12s; animation-duration: 0.85s; }
}

/* ============================================================
   Visual pass 2 — 2026-06-01: hero upload CTA, marked-work gallery,
   material photo cards, mid-page conversion band, FAQ CTA.
   Appended last so it wins by source order.
   ============================================================ */

/* Hero — upload zone becomes the primary CTA; full-height image panel */
.hero-split { align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; max-width: 580px; }
.nowrap { white-space: nowrap; }
.hero-copy .upload-zone { width: 100%; max-width: 540px; margin: 0 0 var(--s-3); }
.hero-visual { aspect-ratio: auto; }
.hero-visual img { height: 100%; aspect-ratio: auto; min-height: 460px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; color: var(--muted);
  margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--rule);
}
.hero-trust li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-secondary { margin-top: var(--s-3); }
.hero-secondary a {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 500; color: var(--accent-ink);
}
.hero-secondary a:hover { color: var(--accent); }
.hero-secondary .arr { transition: transform 200ms var(--ease); }
.hero-secondary a:hover .arr { transform: translateX(3px); }

@media (max-width: 880px) {
  .hero-copy .upload-zone { margin-left: auto; margin-right: auto; }
  .hero-trust { justify-content: center; }
  .hero-secondary { text-align: center; }
  .hero-visual img { min-height: 300px; }
}

/* Hero staggered reveal — generic over all hero-copy children */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: f2-rise 0.7s var(--ease) both; }
  .hero-copy > *:nth-child(1) { animation-delay: 0.04s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.10s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.22s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.28s; }
  .hero-copy > *:nth-child(6) { animation-delay: 0.34s; }
}

/* Marked-work gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0A0C10;
  border: 1px solid var(--rule);
  box-shadow: var(--sh-2);
  aspect-ratio: 1 / 1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--s-6) var(--s-4) var(--s-3);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}
.gallery-item .mark-pill {
  position: absolute; top: var(--s-3); left: var(--s-3);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent-glow);
  background: rgba(10, 12, 16, 0.66);
  border: 1px solid rgba(255, 179, 112, 0.3);
  padding: 3px 8px; border-radius: 999px;
}

/* Material photo cards (replace the flat line-icon chips) */
.material-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-5);
}
.material-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule); border-radius: var(--r-xl); overflow: hidden;
  background: var(--paper); box-shadow: var(--sh-1);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.material-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--accent); }
.material-card-photo { aspect-ratio: 4 / 3; background: #0A0C10; overflow: hidden; }
.material-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--ease); }
.material-card:hover .material-card-photo img { transform: scale(1.05); }
.material-card-body { padding: var(--s-4) var(--s-5) var(--s-5); }
.material-card .name { font-family: var(--mono); font-weight: 500; letter-spacing: 0.06em; color: var(--accent-ink); font-size: 13px; }
.material-card .type { color: var(--ink-2); font-size: 14px; line-height: 1.45; margin-top: var(--s-1); }

/* Mid-page conversion band */
.cta-band {
  background:
    radial-gradient(720px 320px at 82% 8%, rgba(255, 179, 112, 0.16), transparent 60%),
    var(--ink);
  color: var(--paper);
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
.cta-band h2 { color: var(--paper); margin: 0; }
.cta-band p { color: rgba(255, 255, 255, 0.7); margin: var(--s-2) 0 0; max-width: 52ch; }
.cta-band-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* FAQ closing CTA */
.faq-cta {
  margin-top: var(--s-7);
  display: flex; gap: var(--s-4); align-items: center; justify-content: center; flex-wrap: wrap;
}
.faq-cta-note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }

/* ============================================================
   Visual pass 3 — 2026-06-01: "What we do" 3-up + numbered "How to order"
   ============================================================ */
.wwd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-5); }
.wwd-item {
  position: relative;
  padding: var(--s-6);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  background: var(--paper);
  box-shadow: var(--sh-1);
}
.wwd-item::before {
  content: "";
  position: absolute; top: 0; left: var(--s-6); right: var(--s-6);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(233, 127, 42, 0));
}
.wwd-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink); }
.wwd-item h3 { margin: var(--s-3) 0 var(--s-2); }
.wwd-item p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }

.process .step { position: relative; }
.step-num {
  display: block;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.12em;
  color: var(--accent-ink);
  margin-bottom: var(--s-3);
}

/* ============================================================
   Dark luxe-industrial hero — 2026-06-03
   The hero-split sits in a full-bleed near-black "stage" that borrows the
   marking-spotlight treatment (radial laser hot-spot + faint grid + a giant
   F2 watermark). The use-case picker below stays on light paper.
   Appended LAST so it wins by source order.
   ============================================================ */
.hero-dark { padding-top: 0; }                       /* the dark stage owns the top spacing */
body[data-page="home"] .hero-dark { background: var(--paper); }
.hero-dark.hero::before { display: none; }           /* drop the light grid; the stage draws its own */

/* Full-bleed dark band */
.hero-dark .hero-stage {
  position: relative;
  z-index: 1;
  background: #0A0C10;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(var(--s-8), 7vw, var(--s-10)) 0 clamp(var(--s-8), 6vw, var(--s-9));
}
/* Radial laser hot-spot, biased right — lands behind the product shot */
.hero-dark .hero-stage::before {
  content: "";
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 56% 62% at 78% 26%, rgba(233, 127, 42, 0.28), transparent 66%),
    radial-gradient(ellipse 80% 70% at 50% 120%, rgba(233, 127, 42, 0.06), transparent 60%);
}
/* Faint engineering grid, masked to fade toward the edges */
.hero-dark .hero-stage::after {
  content: "";
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px, 52px 52px;
  -webkit-mask-image: radial-gradient(130% 120% at 50% 28%, #000 32%, transparent 80%);
          mask-image: radial-gradient(130% 120% at 50% 28%, #000 32%, transparent 80%);
}
/* Giant F2 watermark behind the copy */
.hero-dark .hero-watermark {
  position: absolute; left: -0.06em; top: 50%;
  transform: translateY(-50%);
  z-index: -1;
  font-family: var(--font-display);
  font-size: clamp(260px, 40vw, 560px);
  font-weight: 900; letter-spacing: -0.08em; line-height: 0.8;
  color: var(--accent); opacity: 0.05;
  pointer-events: none; user-select: none; white-space: nowrap;
}

/* Copy on dark */
.hero-dark .hero-copy h1 { color: var(--paper); }
.hero-dark .hero-copy .lead { color: rgba(255, 255, 255, 0.74); }
.hero-dark .hero-mark {
  color: var(--accent-glow);
  text-shadow: 0 0 26px rgba(233, 127, 42, 0.55), 0 0 60px rgba(233, 127, 42, 0.28);
}

/* CTA — clean primary button + mono format caption (no boxy dropzone) */
.hero-dark .hero-cta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--s-4); margin: 0 0 var(--s-3);
}
.hero-dark .hero-formats {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* Trust spec-bar + secondary link on dark */
.hero-dark .hero-trust {
  color: rgba(255, 255, 255, 0.62);
  border-top-color: rgba(255, 255, 255, 0.1);
}
.hero-dark .hero-trust li::before { box-shadow: 0 0 8px rgba(233, 127, 42, 0.7); }
.hero-dark .hero-secondary a { color: rgba(255, 255, 255, 0.7); }
.hero-dark .hero-secondary a:hover { color: var(--accent-glow); }

/* Product visual — lift it off the band with an orange hairline + glow */
.hero-dark .hero-visual {
  box-shadow:
    0 30px 70px -24px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 179, 112, 0.22),
    0 0 64px -12px rgba(233, 127, 42, 0.22);
}

/* Breathing room before the use-case picker */
.hero-dark .usecase-intro { margin-top: clamp(var(--s-7), 6vw, var(--s-9)); }

@media (max-width: 880px) {
  .hero-dark .hero-cta { justify-content: center; }
  .hero-dark .hero-watermark { font-size: 64vw; }
}

/* ============================================================
   Dark spotlight — two-column variant (copy + image) — 2026-06-03
   Lets the 3D-scanning section keep the .section-ampersand dark treatment
   while showcasing the example photo beside the copy.
   ============================================================ */
.amp-split { text-align: left; }
.amp-split .container { position: relative; z-index: 1; }
.amp-split-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(var(--s-6), 5vw, var(--s-9));
  align-items: center;
}
.amp-split .eyebrow { justify-content: flex-start; }
.amp-split .amp-headline-simple {
  text-align: left;
  max-width: none;
  margin: 0 0 var(--s-5);
}
.amp-split .amp-lead {
  text-align: left;
  margin: 0 0 var(--s-6);
  max-width: 52ch;
}
.amp-split .amp-cta { margin-top: 0; }

/* Example image — same glowing dark frame as the hero product shot */
.amp-split-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #05060A;
  isolation: isolate;
  box-shadow:
    0 30px 70px -24px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 179, 112, 0.22),
    0 0 64px -12px rgba(233, 127, 42, 0.22);
}
.amp-split-visual img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.amp-split-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: var(--s-6) var(--s-5) var(--s-4);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
}

@media (max-width: 880px) {
  .amp-split-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .amp-split-visual { order: -1; }
  .amp-split { text-align: center; }
  .amp-split .eyebrow { justify-content: center; }
  .amp-split .amp-headline-simple,
  .amp-split .amp-lead { text-align: center; margin-left: auto; margin-right: auto; }
}

/* ============================================================
   Use-case picker intro — larger, with an accent word + a supporting line
   ============================================================ */
.usecase-intro-h {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.02;
}
.usecase-intro-h .accent-word { color: var(--accent-ink); }
.usecase-intro-sub {
  margin: var(--s-3) auto 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}

/* Turnaround disclaimer under the trust bar */
.trust-note {
  margin: var(--s-5) 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
