/* Fonts are served from this site (no Google Fonts: no third-party requests, no GDPR question). */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/fonts/space-grotesk-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("/fonts/space-grotesk-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/fonts/inter-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ------------------------------------------------------------------ tokens */
:root {
  /* Soft black on warm off-white: the same look as pure black on white, with less glare.
     Every surface uses --paper; only the 3D view stays white (a window onto the model). */
  --ink: #1f1f1f;
  --mute: #6f6f6f;
  --line: #e0e0dc;
  --paper: #f6f6f3;
  --soft: #ebebe6;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  color-scheme: light;
}

/* ------------------------------------------------------------------- base */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--body); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(28px, 7.5vw, 34px); line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
input, select, textarea { background-color: var(--paper); }   /* browsers default to white */
/* Touch: no grey flash on tap (iOS, Android) and no ring after a tap or a click. The ring stays for the
   keyboard (:focus-visible): without it, someone using Tab cannot see where they are. */
html { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hint { color: var(--mute); font-size: 13.5px; line-height: 1.4; }

/* ---------------------------------------------------------------- layout */
/* Mobile first: one column. On wider screens the same column is centred. */
.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(10px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
.topbar { display: flex; align-items: center; justify-content: space-between; height: 44px; position: relative; }
.brand { font-family: var(--display); font-weight: 700; font-size: 17px; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.brand-mark { width: 22px; height: 30px; flex: none; color: var(--ink); }
.screen { flex: 1; display: flex; flex-direction: column; }

/* ------------------------------------------------------ language switcher */
.lang { position: relative; }
.lang > summary {
  list-style: none; cursor: pointer;
  height: 32px; padding: 0 10px 0 12px; border: 1.5px solid var(--ink); border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang[open] > summary { background: var(--ink); color: var(--paper); }
.lang-menu {
  position: absolute; right: 0; top: 40px; z-index: 10; width: 200px;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 6px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.12);
}
.lang-menu form { margin: 0; }
.lang-menu button {
  width: 100%; height: 46px; padding: 0 12px; border: 0; border-radius: 11px; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; font-size: 16px; text-align: left;
}
.lang-menu button:hover { background: var(--soft); }
.lang-menu button[aria-current="true"] { background: #f1f1f1; font-weight: 600; }
.lang-menu button span { font-family: var(--display); font-weight: 700; font-size: 12px; color: var(--mute); letter-spacing: 0.06em; }

/* ------------------------------------------------------------------ mascot */
.mascot { color: var(--ink); width: 72px; height: 72px; flex: none; }

/* ----------------------------------------------------------- step 1: start */
.hello { display: flex; align-items: flex-end; gap: 6px; margin: 10px 0 8px; }
.bubble { border: 1.5px solid var(--ink); border-radius: 16px 16px 16px 4px; padding: 7px 12px; font-weight: 500; font-size: 15px; margin-bottom: 42px; }
.steps { list-style: none; counter-reset: step; margin: 16px 0 20px; padding: 0; display: grid; gap: 9px; }
.steps li { counter-increment: step; display: flex; gap: 12px; align-items: center; font-size: 15.5px; }
.steps li::before {
  content: counter(step);
  font-family: var(--display); font-size: 13px; font-weight: 700;
  width: 26px; height: 26px; flex: none; border: 1.5px solid var(--ink); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer;
  border: 2px dashed var(--ink); border-radius: 20px; padding: 20px 18px 18px;
}
.drop:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.drop-title { font-family: var(--display); font-weight: 700; font-size: 22px; margin-top: 4px; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--mute); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.link-form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.paste { display: flex; height: 54px; border: 1.25px solid var(--ink); border-radius: 14px; overflow: hidden; }
.paste input { flex: 1; min-width: 0; border: 0; padding: 0 14px; font-size: 16px; background: transparent; }
.paste input:focus { outline: none; }
.paste:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.paste button { width: 54px; border: 0; background: var(--ink); color: var(--paper); font-size: 20px; cursor: pointer; }
.link-form .hint { margin-top: 8px; }

/* ----------------------------------------------------------------- buttons */
.btn {
  height: 58px; border-radius: var(--radius); background: var(--ink); color: var(--paper); border: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer;
}

/* ------------------------------------------------------------------ errors */
.error { margin-top: 60px; display: grid; gap: 14px; }
.error .btn { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------- shared step parts */
.push { margin-top: auto; }
.center { text-align: center; }
.alert { border: 1.5px solid #b3261e; color: #b3261e; border-radius: 14px; padding: 10px 13px; font-size: 14.5px; margin: 0 0 14px; }
.notice { margin-top: 8px; border-left: 3px solid var(--ink); background: #f4f4f4; border-radius: 0 10px 10px 0; padding: 8px 11px; font-size: 13.5px; }
.label { font-family: var(--display); font-size: 17px; margin: 16px 0 8px; }
.link-button {
  display: block; width: 100%; margin-top: 14px; padding: 6px; border: 0; background: none; cursor: pointer;
  font-weight: 500; font-size: 15px; text-align: center; text-decoration: underline; text-underline-offset: 4px;
}
.btn:disabled { background: #bdbdbd; cursor: not-allowed; }
.step { flex: 1; display: flex; flex-direction: column; }
.upload .btn { margin-top: 12px; width: 100%; }
.drop.sending { opacity: 0.6; pointer-events: none; }

/* wizard header */
.wizard { display: flex; align-items: center; justify-content: space-between; height: 32px; font-size: 15px; }
.wizard form { margin: 0; }
.wizard .back { font: inherit; font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.wizard .count { font-family: var(--display); font-weight: 500; color: var(--mute); }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 16px; }
.progress span { height: 4px; border-radius: 2px; background: var(--line); }
.progress span.on { background: var(--ink); }

/* file card */
.file-card { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 14px; padding: 9px 14px; }
.file-card .ok { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.file-card div { flex: 1; min-width: 0; }
.file-card strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.file-card a { font-size: 14px; font-weight: 500; text-underline-offset: 3px; }

/* 3D preview, under the file card */
.preview { margin: 8px 0 0; }
.preview-view { aspect-ratio: 4 / 3; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: #ffffff; }   /* white, like the 3D scene */
.preview-view canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.preview figcaption { margin-top: 6px; text-align: center; }
.preview[data-state="failed"] .preview-view { display: none; }
.preview-none { margin-top: 8px; }

/* ----------------------------------------------------- step 2: material */
.question { display: flex; align-items: flex-end; justify-content: space-between; margin: 14px 0 8px; }
.question h2 { font-size: 22px; letter-spacing: -0.01em; }
.question .mascot { width: 48px; height: 48px; }
.options { border: 0; margin: 0; padding: 0; display: grid; gap: 7px; }
.option { border: 1.5px solid var(--line); border-radius: 15px; padding: 10px 13px; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.option input { appearance: none; width: 22px; height: 22px; flex: none; margin: 1px 0 0; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-content: center; }
.option input::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); transform: scale(0); }
.option input:checked::after { transform: scale(1); }
.option:has(input:checked) { border: 2px solid var(--ink); padding: 9.5px 12.5px; }
.option:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.option strong { display: block; font-family: var(--display); font-size: 17px; line-height: 1.25; }
.option strong + span { display: block; font-size: 14px; color: #444; line-height: 1.35; }
.option.soon { border: 1.5px dashed #b4b4b4; color: var(--mute); cursor: default; }
.option.soon strong { color: #555; font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.option.soon strong .pill { margin-left: 0; }   /* the gap spaces it; on a new line it starts under the name */
.pill { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border: 1.2px solid #8a8a8a; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }

/* colour */
.colour-row { width: 100%; display: flex; align-items: center; gap: 12px; border: 1.25px solid var(--ink); border-radius: 15px; padding: 8px 13px; background: none; cursor: pointer; text-align: left; }
.colour-row b { flex: 1; font-weight: 600; font-size: 16px; }
.colour-row u { font-size: 14.5px; font-weight: 500; text-underline-offset: 3px; }
.swatch { display: block; width: 30px; height: 30px; flex: none; }
.swatch.clear {
  border-radius: 50%; border: 1.5px solid rgb(0 0 0 / 0.18);
  background: repeating-conic-gradient(#e3e3e3 0% 25%, #ffffff 0% 50%) 0 0 / 10px 10px;
}

/* colour picker: bottom sheet on phones, centred dialog on wide screens */
dialog.sheet {
  background: var(--paper); color: var(--ink);
  border: 0; padding: 10px 22px max(26px, env(safe-area-inset-bottom)); width: 100%; max-width: 480px;
  margin: auto auto 0; border-radius: 26px 26px 0 0; max-height: 80dvh; overflow-y: auto;
}
dialog.sheet::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: #cfcfcf; margin: 0 auto 12px; }
dialog.sheet::backdrop { background: rgb(10 10 10 / 0.45); }
@media (min-width: 700px) {
  dialog.sheet { margin: auto; border-radius: 26px; max-width: 600px; padding-top: 24px; }
  dialog.sheet::before { display: none; }
  dialog.sheet .swatches { grid-template-columns: repeat(6, 1fr); }
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sheet-head h2 { font-size: 22px; }
.close { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; cursor: pointer; font-size: 16px; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 6px; margin: 18px 0; }
.swatch-choice { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; text-align: center; cursor: pointer; }
.swatch-choice .swatch { width: 52px; height: 52px; border-radius: 50%; }
.swatch-choice:has(input:checked) { font-weight: 600; }
.swatch-choice:has(input:checked) .swatch { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5.5px var(--ink); }
.swatch-choice:has(input:focus-visible) .swatch { outline: 3px solid var(--ink); outline-offset: 5px; }

/* quantity */
.quantity { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 14px; }
.quantity label { font-family: var(--display); font-weight: 700; font-size: 17px; }
.quantity-limit { margin: -6px 0 12px; text-align: right; visibility: hidden; }
.quantity-limit.shown { visibility: visible; }
.stepper { display: flex; align-items: center; border: 1.25px solid var(--ink); border-radius: 14px; height: 46px; overflow: hidden; }
.stepper button { width: 44px; height: 100%; border: 0; background: none; font-size: 22px; cursor: pointer; }
.stepper input { width: 40px; border: 0; background: transparent; text-align: center; font-family: var(--display); font-weight: 700; font-size: 18px; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------------------------------------------------------------- strength */
.strength { border: 1.5px solid var(--line); border-radius: 16px; margin: 18px 0 6px; }
.strength > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.strength > summary::-webkit-details-marker { display: none; }
.strength > summary strong { font-weight: 600; font-size: 15px; }
.strength > summary .now { color: var(--mute); font-size: 14px; margin-left: auto; white-space: nowrap; }
.strength > summary .chev { width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); margin: 0 3px 0 2px; flex: none; }
.strength[open] > summary .chev { transform: rotate(45deg); }
.strength-body { display: grid; grid-template-columns: 1fr 84px; gap: 6px 16px; padding: 2px 14px 14px; }
.strength .sliders { display: grid; gap: 14px; align-content: start; }
.strength label { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 500; margin-bottom: 6px; }
.strength label output { font-weight: 700; font-variant-numeric: tabular-nums; }
.strength input[type=range] { width: 100%; accent-color: var(--ink); margin: 0; }
.strength .scale { display: flex; justify-content: space-between; color: var(--mute); font-size: 12px; margin-top: 2px; }
.strength .hint { grid-column: 1 / -1; margin: 4px 0 0; }
/* As tall as both sliders (grid stretch). Defaults match 15 % and 2 walls until the script takes over. */
.infill-pic { --s: 13px; border-radius: 8px; background-color: var(--paper);
  background-image: linear-gradient(90deg, var(--ink) 0 1px, transparent 1px), linear-gradient(0deg, var(--ink) 0 1px, transparent 1px);
  background-size: var(--s) var(--s); background-position: center;
  box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3.5px var(--paper), inset 0 0 0 5.5px var(--ink); }

/* ------------------------------------------------------------ mascot motion */
/* While a price is being calculated: the mascot prints. It moves across the block laying a line of
   plastic, then goes back. One cycle is 2 s, the same as the page's status check, so the restart when
   the order reloads lands at the end of a cycle and is not seen as a jump.
   Off for people who asked their system for less motion (rule above). */
.mascot-print .head { animation: nozzle 2s ease-in-out infinite; }
.mascot-print .layer { stroke-dasharray: 36; animation: lay 2s ease-in-out infinite; }
@keyframes nozzle { 0%, 100% { transform: translateX(-9px); } 70% { transform: translateX(9px); } }
@keyframes lay { 0% { stroke-dashoffset: 36; opacity: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* Three dots in place of the price, lighting up one after another. */
.price.dots { display: flex; gap: 10px; align-items: center; height: 0.9em; }
.price.dots i { width: 0.2em; height: 0.2em; border-radius: 50%; background: var(--ink); animation: dot 1s ease-in-out infinite; }
.price.dots i:nth-child(2) { animation-delay: 0.15s; }
.price.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.2; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-0.06em); } }

/* ------------------------------------------------------- step 3: order */
.price-head { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 4px; }
.price-head .mascot { width: 96px; height: 96px; }
.price { font-family: var(--display); font-weight: 700; font-size: clamp(52px, 16vw, 68px); letter-spacing: -0.04em; line-height: 1; margin-top: 6px; }
.order-status { color: var(--mute); font-size: 14.5px; margin-top: 6px; }

/* parts */
.parts { list-style: none; margin: 16px 0 10px; padding: 0; display: grid; gap: 8px; }
.part { border: 1.5px solid var(--line); border-radius: 15px; padding: 11px 13px; }
.part.failed { border: 1.5px dashed var(--ink); }
.part-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.part-head strong { font-size: 15.5px; overflow-wrap: anywhere; }
.part-head .amount { font-family: var(--display); font-weight: 700; font-size: 17px; white-space: nowrap; }
.part.busy .amount { color: var(--mute); font-family: var(--body); font-weight: 500; font-size: 14px; }
/* The part still being calculated: a thin line going back and forth along its bottom edge. */
.part.busy { position: relative; overflow: hidden; }
.part.busy::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 28%; border-radius: 2px; background: #9a9a9a; animation: scan 2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(257%); } }
.part-meta { margin-top: 3px; font-size: 14px; color: #444; }
.part-note { margin-top: 6px; font-size: 14px; }
.part-actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; font-weight: 500; }
.part-actions form { margin: 0; }
.part-actions a, .part-actions button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.part-actions { align-items: center; }
.part-actions .part-next { border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 13px; text-decoration: none; font-weight: 600; }
.summary-colour { display: inline-block; vertical-align: -3px; }   /* sits on the text line */
.summary-colour .swatch { width: 16px; height: 16px; }
.summary-colour .swatch.clear { background-size: 6px 6px; }
.add-file {
  display: flex; align-items: center; justify-content: center; height: 50px; border: 1.5px dashed var(--ink); border-radius: 15px;
  font-weight: 600; font-size: 15.5px; text-decoration: none;
}
.rows .total dt, .rows .total dd { font-family: var(--display); font-weight: 700; font-size: 18px; }
.rows .sub dt, .rows .sub dd { color: var(--mute); font-weight: 400; font-size: 14px; }
.rows + .hint { margin-bottom: 16px; }
.free-delivery { font-size: 14px; font-weight: 600; margin: -8px 0 16px; }
.row-note { display: block; color: var(--mute); font-size: 12.5px; font-weight: 400; }
.rows { margin: 22px 0 14px; border-top: 1.5px solid var(--ink); }
.rows div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.rows dt { color: var(--ink); }
.rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.actions { display: grid; gap: 4px; }
.actions form { margin: 0; }
.actions .btn { width: 100%; }

/* ------------------------------------------------------ step 4: checkout */
.section-title { font-family: var(--display); font-size: 22px; margin: 22px 0 4px; }
.methods { margin-top: 8px; }
.option .price-tag { margin-left: auto; padding-left: 8px; font-family: var(--display); font-weight: 700; font-size: 16px; white-space: nowrap; }
.option > span:nth-of-type(1) { flex: 1; }
.field { display: grid; gap: 5px; margin-top: 12px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select {
  height: 50px; width: 100%; box-sizing: border-box; padding: 0 13px; border: 1.25px solid var(--ink); border-radius: 14px;
  background: var(--paper); font: inherit; font-size: 16px;   /* 16px: no zoom on iPhone */
}
.field select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.field.invalid input, .field.invalid select { border: 2px solid #b3261e; }
.field .locker-filter { appearance: none; }
.field .locker-filter + .hint { margin: 0; }
.field textarea {
  width: 100%; box-sizing: border-box; padding: 12px 13px; border: 1.25px solid var(--ink); border-radius: 14px;
  background: var(--paper); font: inherit; font-size: 16px; line-height: 1.45; resize: vertical; min-height: 140px;
}
.field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.field.invalid textarea { border: 2px solid #b3261e; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact > p:not(.hint) { margin: 8px 0 6px; }
.contact .actions { margin-top: 24px; }
.contact-sent { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 18px 0 8px; }
.order-question { margin-top: 14px; }
.req { color: #b3261e; font-weight: 600; }
.required-note { margin: 2px 0 6px; }
.field-error { color: #b3261e; font-size: 13.5px; font-weight: 500; margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.invoice-note { margin-top: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 6px; font-size: 14.5px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }
.check a { text-underline-offset: 3px; }
.check.invalid input { outline: 2px solid #b3261e; outline-offset: 2px; }
.checkout .actions { margin-top: 10px; }
.checkout .rows { margin-top: 22px; }
.checkout .split-aside .question + .rows { margin-top: 12px; }

/* test payment and drafts: impossible to mistake for the real thing */
.test-banner { border: 2px dashed #b3261e; color: #b3261e; border-radius: 14px; padding: 10px 13px; font-weight: 600; font-size: 14.5px; margin: 10px 0 18px; }
.preview-banner { border: 2px dashed #b3261e; color: #b3261e; border-radius: 14px; padding: 8px 13px; font-weight: 600; font-size: 13.5px; margin: 10px 0 0; text-align: center; }
.pay-box { border: 1.5px solid var(--ink); border-radius: 18px; padding: 18px; text-align: center; }
.pay-box .price { margin: 6px 0 4px; }

/* ---------------------------------------------------------- tracking */
.timeline { list-style: none; padding: 0; margin: 18px 0 14px; }
.timeline li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding-bottom: 16px; position: relative; }
.timeline li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px dashed #9a9a9a; box-sizing: border-box; }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { content: "✓"; border: 0; background: var(--ink); color: var(--paper); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.timeline li.now::before { border: 2px solid var(--ink); }
.timeline b { display: block; font-size: 15.5px; }
.timeline span { display: block; color: var(--mute); font-size: 13.5px; }
.timeline a { color: var(--ink); text-underline-offset: 3px; }
.timeline li.later b { color: var(--mute); font-weight: 500; }
.box { border: 1.5px solid var(--line); border-radius: 15px; padding: 11px 13px; margin-top: 8px; font-size: 14.5px; overflow-wrap: anywhere; }
.box b { display: block; font-size: 15px; margin-bottom: 2px; }
.plain { list-style: none; margin: 0; padding: 0; }
.tracking-note { margin-top: 14px; }
.legal h1 { margin: 10px 0 6px; }
.legal h2 { font-size: 18px; margin: 26px 0 6px; }
.legal p, .legal li { font-size: 15px; line-height: 1.55; }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { padding-left: 20px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14.5px; margin: 8px 0; }
.legal th, .legal td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .updated { color: var(--mute); font-size: 13.5px; }
.resume { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1.25px solid var(--ink); border-radius: 14px; padding: 9px 8px 9px 14px; margin: 8px 0 4px; font-size: 14.5px; font-weight: 600; }
.resume a { text-underline-offset: 3px; }
.resume-close { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; font-size: 15px; cursor: pointer; color: var(--mute); }
.resume-close:hover { background: var(--soft); color: var(--ink); }
.guide-link { margin: 10px 0 0; font-size: 14.5px; font-weight: 500; text-align: center; }
.guide-link a { text-underline-offset: 3px; }
.guide h1 { margin-bottom: 10px; }
.guide ol, .guide ul { margin: 6px 0 14px; }
.guide li { margin: 3px 0; }
.guide-cta { margin: 26px 0 0; }
.guide-cta .btn { width: 100%; text-decoration: none; }
.legal-back { margin: 4px 0 0; }
.legal-back:last-child { margin-top: 28px; }
.legal-back .back { font-weight: 500; text-decoration: none; }

.site-footer { margin-top: 40px; padding: 18px 0 26px; border-top: 1px solid var(--line); color: var(--mute); font-size: 12.5px; line-height: 1.5; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.site-footer nav a { color: var(--ink); }
.site-footer p { margin: 0 0 8px; }
.site-footer .cards img { height: 24px; width: auto; margin-right: 8px; vertical-align: middle; }

/* Bank transfer details: value and a small copy button on one line; long values wrap before the button. */
.rows.bank dd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; text-align: right; }
.rows.bank dt { flex-shrink: 0; margin-right: 12px; }
.copy { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink); background: none; border: 1.2px solid #8a8a8a; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.copy:hover { border-color: var(--ink); }
.copy[hidden] { display: none; }
.bank-box .hint { margin: 8px 0; }

/* ------------------------------------------------------------ wide screens */
/* Phones keep the single column above. From 960 px the page widens; pages with a .split get two
   columns, the others a comfortable centred column. Nothing here changes the phone layout. */
.split { display: flex; flex-direction: column; flex: 1; }
.split > :last-child { display: flex; flex-direction: column; flex: 1; }   /* the button at the bottom on phones (.push) */
@media (min-width: 960px) {
  .page { max-width: 1040px; padding-left: max(40px, env(safe-area-inset-left)); padding-right: max(40px, env(safe-area-inset-right)); }
  .screen > * { width: 100%; max-width: 600px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
  .screen > .step:has(.split) { max-width: none; }
  .screen > .legal { max-width: 720px; }   /* about 70 characters a line: still easy to read */

  .split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 48px; align-items: start; margin-top: 8px; }
  .split-media, .split-aside { position: sticky; top: 20px; }
  .split-main .question:first-child, .split-main > :first-child { margin-top: 0; }
  /* The first heading on the right starts level with the top of the left column: no margin, no line spacing above. */
  .split-main > :first-child > .label:first-child { margin-top: 0; line-height: 1; }
  .split-main .push { margin-top: 24px; }

  /* Step 2: a bigger model; on short laptop screens it gives way so the page still fits. */
  .split-media .preview-view { max-height: calc(100vh - 170px); width: 100%; }

  /* Step 3 and checkout: the money and the button on the right, beside what they are about. */
  .split-aside .rows:first-child { margin-top: 0; }
  .split-aside .push { margin-top: 18px; }
}
