/* Spare3DPrinter
   Palette is taken from the print bench: glass bed, PETG teal, Kapton amber, ink blue. */
:root {
  --bed: #edf0f2;
  --paper: #ffffff;
  --ink: #11263d;
  --slate: #566676;
  --line: #cbd3da;
  --line-soft: #dde3e8;
  --teal: #00857c;
  --teal-dark: #006a63;
  --teal-wash: #e1f2f0;
  --amber: #f2a900;
  --amber-wash: #fff3d1;
  --danger: #b3261e;
  --danger-wash: #fbe9e7;
  --ok: #1e7b46;
  --ok-wash: #e4f3ea;
  --radius: 6px;
  --gutter: 20px;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bed);
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 {
  font-stretch: 80%;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.3rem; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 64ch; }
.muted { color: var(--slate); }
.small { font-size: 0.88rem; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(640px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.mid { width: min(860px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.section { padding: 64px 0; }
.section.tight { padding: 36px 0; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 4px 1.5rem; min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-stretch: 80%; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 28px; height: 28px; }
.site-nav { display: flex; gap: 0 1.25rem; flex-wrap: wrap; flex: 1 1 100%; }
@media (min-width: 760px) { .site-nav { flex: 1 1 0; } .site-nav .push { margin-left: auto; } }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--amber); }

/* buttons and forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-stretch: 90%;
  padding: 11px 20px; border-radius: var(--radius);
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink);
  text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.small { padding: 7px 14px; font-size: 0.9rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > label, .field > .label { font-weight: 600; font-stretch: 90%; }
.hint { color: var(--slate); font-size: 0.88rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=file], select, textarea {
  font: inherit; color: var(--ink); width: 100%;
  padding: 10px 12px; background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 3px solid var(--teal-wash); }
.cols-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
.cols-3 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cols-2 { grid-template-columns: 1fr 1fr; } .cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; }
.checks input { width: 18px; height: 18px; accent-color: var(--teal); }
.check-line { display: flex; gap: 10px; align-items: flex-start; }
.check-line input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); flex: none; }

/* flash messages */
.flash { padding: 12px 16px; border-radius: var(--radius); border-left: 5px solid var(--teal); background: var(--teal-wash); margin: 20px 0; }
.flash.error { border-color: var(--danger); background: var(--danger-wash); }
.flash.warn { border-color: var(--amber); background: var(--amber-wash); }

/* plates: panels that carry the stacked-layer edge. Used for the few things that matter most. */
.plate {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px 10px 4px 4px;
  padding: 24px;
  box-shadow: 0 2px 0 var(--paper), 0 3px 0 var(--line), 0 5px 0 var(--paper), 0 6px 0 var(--line);
  margin-bottom: 12px;
}
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; } }

/* The headline prints itself once, layer by layer, bottom to top. */
.print-head { position: relative; margin: 0 0 24px; font-size: clamp(2.5rem, 6.6vw, 4.9rem); line-height: 0.98; text-wrap: balance; }
.print-head .solid {
  display: block;
  color: transparent;
  background: repeating-linear-gradient(180deg, var(--ink) 0, var(--ink) 0.075em, #29496b 0.075em, #29496b 0.085em);
  -webkit-background-clip: text; background-clip: text;
  clip-path: inset(0 0 0 0);
}
.print-head .ghost {
  position: absolute; inset: 0; display: block;
  color: transparent; -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
}
.print-head .nozzle {
  position: absolute; left: -4px; right: -4px; height: 4px; top: 0;
  background: var(--amber); border-radius: 2px; opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .print-head .solid { animation: build 2.4s steps(26, end) 0.2s both; }
  .print-head .nozzle { animation: nozzle 2.4s steps(26, end) 0.2s both; }
}
@keyframes build { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes nozzle { from { top: 100%; opacity: 1; } 96% { opacity: 1; } to { top: 0; opacity: 0; } }

.lede { font-size: 1.2rem; max-width: 46ch; }

/* instant quote drop zone */
.dropzone {
  display: block; text-align: center; padding: 36px 20px;
  border: 2px dashed var(--teal); border-radius: 8px; background: var(--teal-wash);
  cursor: pointer;
}
.dropzone:hover, .dropzone.over { background: #cfebe8; }
.dropzone strong { display: block; font-stretch: 80%; font-weight: 800; font-size: 1.5rem; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { outline: 3px solid var(--amber); outline-offset: 3px; }
.readout { display: none; margin-top: 18px; }
.readout.on { display: block; }
.readout dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 16px; }
.readout dt { color: var(--slate); }
.readout dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.price-big { font-size: 2.2rem; font-stretch: 80%; font-weight: 800; line-height: 1; }

/* order progress: a build plate filling up */
.track { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.track li { position: relative; padding: 0 0 22px 36px; color: var(--slate); }
.track li::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 0; width: 3px; background: var(--line); }
.track li:last-child::before { display: none; }
.track li::after { content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 3px; background: var(--paper); border: 2px solid var(--line); }
.track li.done { color: var(--ink); }
.track li.done::before { background: var(--teal); }
.track li.done::after { background: var(--teal); border-color: var(--teal); }
.track li.now { color: var(--ink); font-weight: 600; }
.track li.now::after { background: var(--amber); border-color: var(--amber); }
.track small { display: block; font-weight: 400; color: var(--slate); }

/* lists */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list > li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.printer-item { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .printer-item { grid-template-columns: 120px 1fr auto; gap: 22px; } }
.thumb { width: 120px; height: 90px; border-radius: 4px; background: var(--bed) repeating-linear-gradient(180deg, transparent 0 5px, var(--line-soft) 5px 6px); object-fit: cover; border: 1px solid var(--line); }
.price-col { text-align: left; min-width: 150px; }
@media (min-width: 720px) { .price-col { text-align: right; } }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 0.82rem; font-weight: 600; background: var(--bed); border: 1px solid var(--line); }
.badge.ok { background: var(--ok-wash); border-color: #b9dcc6; color: var(--ok); }
.badge.warn { background: var(--amber-wash); border-color: #efd488; color: #7a5600; }
.badge.bad { background: var(--danger-wash); border-color: #efb9b3; color: var(--danger); }
.stars { color: #b87a00; letter-spacing: 1px; white-space: nowrap; }

table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-stretch: 90%; font-weight: 600; color: var(--slate); }
.scroll-x { overflow-x: auto; }

/* messages */
.msgs { display: grid; gap: 10px; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 12px 12px 12px 3px; background: var(--paper); border: 1px solid var(--line); }
.msg.mine { margin-left: auto; background: var(--teal-wash); border-color: #b5ddd9; border-radius: 12px 12px 3px 12px; }
.msg small { display: block; color: var(--slate); }
.msg p { margin: 0; white-space: pre-wrap; }

/* steps on the landing page */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 20px; } }
.steps li { counter-increment: s; border-top: 6px solid var(--teal); padding-top: 14px; }
.steps li:nth-child(odd) { border-top-color: var(--amber); }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
.steps p { font-size: 0.95rem; color: var(--slate); }

.split { display: grid; gap: 32px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.example { font-variant-numeric: tabular-nums; width: 100%; border-collapse: collapse; }
.example td { padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.example td:last-child { text-align: right; }
.example tr.total td { font-weight: 800; border-bottom: 0; font-size: 1.1rem; }

/* footer */
.site-footer { margin-top: 72px; background: var(--ink); color: #d6dee6; padding: 40px 0; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; gap: 24px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.empty { padding: 36px 20px; text-align: center; border: 1.5px dashed var(--line); border-radius: 8px; background: var(--paper); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.kv dt { color: var(--slate); }
.kv dd { margin: 0; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
.legal li { margin-bottom: 0.4em; }
.legal ul, .legal ol { max-width: 64ch; }

@media print { .site-header, .site-footer, .btn { display: none; } body { background: #fff; } }

.steps h3::before { content: counter(s) ". "; color: var(--teal-dark); }
.dropzone span { display: block; margin-top: 6px; color: var(--slate); }
[hidden] { display: none !important; }

.quote-result { display: grid; gap: 12px; }
.quote-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.quote-price .price-big { font-size: 1.8rem; }
