/* Etcher: a laser bed at night. Charred ground, birch-ply text, the beam's ember for anything you press. */
:root {
  --bed: #14110e;
  --panel: #1c1813;
  --panel-2: #241f18;
  --line: #3a3128;
  --birch: #f0e5cf;
  --muted: #b5a68c;
  --faint: #8a7c66;
  --ember: #ff8a3d;
  --ember-2: #ffb26b;
  --ember-ink: #1a0f06;
  --ok: #9fd6a0;
  --bad: #ff8f8f;
  --r: 14px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bed); color: var(--birch); font: 16px/1.6 var(--body);
  /* the honeycomb a laser bed is made of, very faint */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='48' viewBox='0 0 28 48'%3E%3Cpath d='M14 0l14 8v16L14 32 0 24V8zM14 32l14 8v16M14 32L0 40v16' fill='none' stroke='%23f0e5cf' stroke-opacity='.035'/%3E%3C/svg%3E");
}
a { color: var(--ember-2); text-underline-offset: 3px; }
a:hover { color: var(--ember); }
img, canvas, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding-inline: 20px; }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ember-2); font-weight: 600; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ember); color: var(--ember-ink); padding: 8px 12px; border-radius: 8px; z-index: 9; }

/* header and footer */
.top { border-bottom: 1px solid var(--line); background: rgba(20, 17, 14, .86); backdrop-filter: blur(8px); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--birch); text-decoration: none; font-family: var(--display); font-size: 1.45rem; font-weight: 600; }
.brand svg { width: 30px; height: 30px; flex-shrink: 0; }
.nav { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--birch); }
.nav a.btn { color: var(--ember-ink); }
.nav a.btn.ghost { color: var(--birch); }
.foot { border-top: 1px solid var(--line); margin-top: 72px; padding-block: 32px; color: var(--faint); font-size: .92rem; }
.foot .wrap { display: flex; gap: 12px 28px; flex-wrap: wrap; justify-content: space-between; }
.foot a { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 0; background: var(--ember); color: var(--ember-ink); font: 600 1rem var(--body); text-decoration: none; cursor: pointer; box-shadow: 0 0 0 0 rgba(255, 138, 61, .5); transition: box-shadow .2s, background .2s; }
.btn:hover { background: var(--ember-2); color: var(--ember-ink); box-shadow: 0 0 24px rgba(255, 138, 61, .35); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--birch); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--ember); color: var(--birch); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--ember-2); outline-offset: 2px; }

/* home */
.hero { padding-block: 56px 40px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero .copy { display: grid; gap: 20px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .facts { display: flex; gap: 8px 22px; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.hero .facts b { color: var(--birch); }
.piece { width: min(420px, 100%); justify-self: center; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); }
.glow { filter: drop-shadow(0 0 6px rgba(255, 138, 61, .9)); }
section { padding-block: 40px; }
.head { display: grid; gap: 10px; margin-bottom: 24px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; }
.steps li::before { counter-increment: s; content: counter(s); font-family: var(--display); font-size: 2rem; color: var(--ember); line-height: 1; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.swatch { height: 64px; border-radius: 10px; border: 1px solid var(--line); }
.swatch.cork { background: radial-gradient(circle at 20% 30%, #a77a4c 0 2px, transparent 3px) 0 0 / 11px 9px, radial-gradient(circle at 70% 60%, #d3ab79 0 1.5px, transparent 2.5px) 0 0 / 7px 13px, #c49e70; }
.swatch.bamboo { background: repeating-linear-gradient(90deg, #d8b98a 0 6px, #cfae7c 6px 7px, #dcc095 7px 15px, #c9a676 15px 16px); }
.swatch.acrylic { background: linear-gradient(135deg, #141416 0 50%, #b0161e 50% 100%); }
.swatch.steel { background: repeating-linear-gradient(90deg, #c4c8cc 0 2px, #b8bcc1 2px 3px), #c0c4c8; }
.swatch.leather { background: radial-gradient(circle at 30% 40%, #7a5034 0 1px, transparent 2px) 0 0 / 6px 6px, #8a5a38; }
.price { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.price div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 2px; text-align: center; }
.price b { font-family: var(--display); font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.dodont { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dodont ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.tick li::marker { content: "✓  "; color: var(--ok); }
.cross li::marker { content: "✕  "; color: var(--bad); }
.band { background: linear-gradient(120deg, rgba(255, 138, 61, .14), rgba(255, 138, 61, .02)); border: 1px solid rgba(255, 138, 61, .35); border-radius: var(--r); padding: 28px; display: flex; gap: 16px 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* guide */
.guide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-top: 40px; align-items: start; }
.guide.solo { grid-template-columns: minmax(0, 1fr); } /* a guide-style page with no side contents (Prices) */
.toc { position: sticky; top: calc(80px + env(safe-area-inset-top, 0px)); display: grid; gap: 4px; font-size: .95rem; }
.toc a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.toc a:hover { color: var(--birch); }
.prose { display: grid; gap: 16px; max-width: 70ch; min-width: 0; }
.prose h2 { margin-top: 36px; scroll-margin-top: 90px; }
.prose h3 { margin-top: 12px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.prose li > b:first-child { color: var(--birch); }
.note { border-left: 3px solid var(--ember); background: var(--panel); padding: 12px 16px; border-radius: 0 10px 10px 0; color: var(--muted); }
.note b { color: var(--birch); }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
details.faq { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin-top: 10px; color: var(--muted); }

/* the studio */
.studio-head { padding-block: 36px 8px; display: grid; gap: 10px; }
.studio { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; margin-top: 20px; align-items: start; }
.controls { display: grid; gap: 14px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; }
.step h2 { font-size: 1.25rem; display: flex; gap: 10px; align-items: baseline; }
.step h2 span { color: var(--ember); font-size: 1.5rem; }
.help { font-size: .9rem; color: var(--muted); }
.help a { color: var(--ember-2); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; display: flex; justify-content: space-between; gap: 8px; }
input[type="text"], input[type="email"], input[type="number"], input:not([type]), select { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bed); color: var(--birch); font: inherit; }
input[type="range"] { width: 100%; accent-color: var(--ember); }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.drop { display: grid; gap: 4px; place-items: center; padding: 26px 16px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--ember); background: rgba(255, 138, 61, .06); }
.drop b { font-family: var(--display); font-size: 1.2rem; }
.view { position: sticky; top: calc(80px + env(safe-area-inset-top, 0px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 14px; justify-items: center; }
.view canvas[data-preview] { width: min(100%, 520px); height: auto; aspect-ratio: 1; filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .55)); touch-action: none; cursor: grab; }
.view canvas[data-preview]:active { cursor: grabbing; }
.view .photo { width: min(100%, 520px); height: auto; border-radius: 10px; touch-action: none; cursor: crosshair; border: 1px solid var(--line); }
.own { display: grid; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line, #3a3a3a); }
.own .btn:not(.ghost) { justify-self: start; margin-top: 4px; }
.ask { width: min(520px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); overflow: auto; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--birch); }
.ask::backdrop { background: rgba(10, 8, 6, .72); }
.ask form { display: grid; gap: 14px; }
.ask h2 { margin: 0; font-family: var(--display); font-size: 1.6rem; }
.ask .choices { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.ask .choices label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.ask .choices label:hover, .ask .choices label:has(input:checked) { border-color: var(--ember); background: rgba(255, 138, 61, .07); }
.ask .choices input { margin-top: 4px; accent-color: var(--ember); }
.ask .choices small { display: block; color: var(--faint); margin-top: 2px; }
.ask .more { display: grid; gap: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.view .label { justify-self: start; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.empty { width: min(100%, 520px); aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; text-align: center; color: var(--faint); padding: 40px; }
.total { font-family: var(--display); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.msg { color: var(--ember-2); min-height: 0; }
.msg:empty { display: none; }
.thanks { background: rgba(159, 214, 160, .1); border: 1px solid rgba(159, 214, 160, .45); color: var(--birch); padding: 14px 16px; border-radius: 12px; }
details.tune summary { cursor: pointer; font-weight: 600; }
details.tune[open] { display: grid; gap: 12px; }
.pay-note { font-size: .85rem; color: var(--faint); }

/* Desktop: the photo and the preview both fit on screen beside the steps. */
@media (min-width: 901px) {
  .view .photo, .view canvas[data-preview] { width: auto; height: auto; max-width: 100%; max-height: calc(50vh - 100px); }
  .view .empty { width: auto; height: calc(50vh - 100px); max-width: 100%; }
}
/* The progress bar over the studio: each step lights up as it's done. */
.progress { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.progress li { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--faint); font-size: .9rem; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .2s, color .2s, background .2s; }
.progress li span { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); font-size: .8rem; }
.progress li.done { color: var(--birch); border-color: rgba(255, 138, 61, .55); background: rgba(255, 138, 61, .08); }
.progress li.done span { background: var(--ember); border-color: var(--ember); color: var(--ember-ink); }
@media (max-width: 640px) { .progress { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .hero, .studio, .guide { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc, .view { position: static; }
  .toc { display: flex; flex-wrap: wrap; gap: 4px 14px; }
}
@media (max-width: 560px) {
  .steps, .dodont, .price { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 32px; }
}
/* Phones: the photo sits right under step 1, where you draw on it, not below the whole form. */
@media (max-width: 900px) {
  .controls { display: contents; }
  .studio > .view { order: 2; }
  .controls > .step { order: 3; }
  .controls > .step:first-child { order: 1; }
}
@media (max-width: 560px) {
  .nav a:not(.btn):not(:first-child) { display: none; }
  .top .wrap, .nav { flex-wrap: nowrap; }
  .nav a.btn { padding-inline: 14px; }
  /* With Get a quote showing there's no room for a text link as well. */
  .nav:has(> [data-quote-btn]:not([hidden])) a:not(.btn) { display: none; }
}
@media (max-width: 420px) {
  .nav a.btn { padding-inline: 11px; font-size: .92rem; white-space: nowrap; }
  .nav { gap: 6px; }
  .brand { font-size: 1.2rem; gap: 6px; }
  .brand svg { width: 22px; height: 22px; }
}
@media (max-width: 360px) {
  .nav a.btn { padding-inline: 9px; font-size: .84rem; }
  .top .wrap { gap: 8px; }
}
@media (max-width: 340px) { .top .wrap { padding-inline: 10px; } .nav { gap: 4px; } .brand svg { display: none; } }
@media (max-width: 440px) { .two { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Photo tools (/tools): the picture on a checkerboard, so a removed background shows as see-through. */
.checker { background-color: #2a2420; background-image: linear-gradient(45deg, #3a322c 25%, transparent 25%), linear-gradient(-45deg, #3a322c 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #3a322c 75%), linear-gradient(-45deg, transparent 75%, #3a322c 75%); background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; border-radius: 10px; }
.view canvas.tool-view { width: auto; height: auto; max-width: 100%; max-height: 70vh; filter: none; }
.laser-opts { display: grid; gap: 12px; }

.check { display: flex; gap: 10px; align-items: center; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ember); }
input[type="number"]:disabled { opacity: .5; }

/* the price list (prices.js): each piece at the usual quantities, a table per shape */
.prices { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .95rem; margin: 6px 0 18px; }
.prices th, .prices td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices thead th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.prices tbody th { font-weight: 500; color: var(--birch); font-size: .95rem; text-transform: none; letter-spacing: 0; }
.prices .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prices th small { display: block; font-weight: 400; }
.scroll { overflow-x: auto; max-width: 100%; }
.prose > * { min-width: 0; }
/* on a phone each piece is a card: its name, then each quantity's price under a small label (data-q, prices.js) */
@media (max-width: 560px) {
  .prices { min-width: 0; }
  .prices thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .prices tbody tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 4px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .prices tbody th { grid-column: 1 / -1; border: 0; padding: 0 0 2px; }
  .prices tbody td { border: 0; padding: 0; text-align: left; display: grid; }
  .prices tbody td::before { content: attr(data-q); font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
}
.prices-closed { border: 1px solid var(--ember); color: var(--ember-2); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
