/* My Furry Art order form. Phones first.
   Same colours and type as the main site (site/site.css). Change the variables below to try another look.

   Layout rules that keep every screen inside the phone at any width:
     - decorative shapes live in a fixed, clipped layer (.bg), never in the page's own flow
     - grid columns are minmax(0, 1fr); long words in answers may break anywhere
     - nothing relies on "overflow-x: hidden" on the page */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/poppins-700.woff2") format("woff2"); }
/* While Poppins is still downloading, text is drawn in Arial stretched to Poppins' proportions,
   so nothing on the page moves when the real font arrives. */
@font-face { font-family: "Poppins Fallback"; src: local("Arial"); size-adjust: 112.16%; ascent-override: 93.62%; descent-override: 31.21%; line-gap-override: 8.92%; }

:root {
  color-scheme: light;
  --pink: #e05ba2; --pink-strong: #d6006f; --pink-deep: #b0005c; --pink-soft: #fff0f7; --pink-line: #f6cfe3;
  --magenta: #c944b7; --orange: #f17b41; --mint: #e4f6ef;
  --ink: #0c0a0f; --text: #3a3740; --muted: #69656f; --line: #e7e3ed; --tint: #faf8fc;
  --error: #b3261e;
  --r: 20px; --r-sm: 14px; --gut: 20px;
  --shadow: 0 14px 34px rgba(40, 20, 60, 0.1); --shadow-sm: 0 2px 10px rgba(40, 20, 60, 0.06);
  --font: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (max-width: 359px) { :root { --gut: 14px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.55 var(--font); color: var(--text); background: #fff; min-height: 100dvh; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--pink-deep); text-underline-offset: 3px; }
h1, h2 { color: var(--ink); margin: 0; line-height: 1.2; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.45rem, 5vw, 2rem); font-weight: 700; }
h1:focus { outline: none; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--pink-strong); outline-offset: 3px; border-radius: 8px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* soft shapes behind everything */
.bg { position: fixed; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.bg i { position: absolute; display: block; }
.bg i:first-child { width: 70vmax; height: 70vmax; right: -34vmax; top: -34vmax; background: var(--mint); border-radius: 43% 57% 62% 38% / 48% 41% 59% 52%; }
.bg i:last-child { width: 46vmax; height: 46vmax; left: -26vmax; bottom: -24vmax; background: var(--pink-soft); border-radius: 58% 42% 44% 56% / 52% 58% 42% 48%; }

/* ---------- top ---------- */
.test-banner { background: #fff4d6; color: #5a4100; font-size: 0.8rem; line-height: 1.35; text-align: center; padding: 6px var(--gut); }
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 6px var(--gut); padding-top: max(6px, env(safe-area-inset-top)); min-height: 56px; display: flex; align-items: center; gap: 12px; }
.logo { height: 26px; width: auto; flex: none; }
@media (max-width: 519px) { .where-name { display: none; } }
.where { flex: 1; min-width: 0; text-align: right; font-size: 0.82rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linkbtn { flex: none; background: none; border: 0; padding: 10px 2px; min-height: 44px; font-size: 0.85rem; font-weight: 600; color: var(--pink-deep); cursor: pointer; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.progress { height: 5px; background: #f1eef5; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--magenta)); border-radius: 0 99px 99px 0; transition: width 0.35s ease; }

/* ---------- page ---------- */
.layout { max-width: 1120px; margin: 0 auto; padding: 20px var(--gut) 32px; display: grid; gap: 28px; }
body.has-bar .layout { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
.stage { min-width: 0; width: 100%; max-width: 680px; margin-inline: auto; }
.stage:has(.chooser) { max-width: 940px; }
.aside { display: none; }
@media (min-width: 1000px) {
  .layout.with-aside { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .layout.with-aside .stage { max-width: none; margin-inline: 0; }
  .aside:not([hidden]) { display: grid; gap: 14px; position: sticky; top: 84px; }
  /* The order card beside the questions already shows the total, so the strip does not repeat it. */
  .bar-total { visibility: hidden; }
}
.linkbtn.quiet { color: var(--muted); font-weight: 500; }
.screen { display: grid; gap: 16px; min-width: 0; }
.screen.enter { animation: enter 0.28s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Archie says */
.say { display: flex; align-items: flex-start; gap: 12px; }
.say-face { width: 48px; height: 48px; border-radius: 50%; flex: none; background: var(--mint); }
.say-text { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; padding: 12px 16px; box-shadow: var(--shadow-sm); font-size: 0.98rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.say-text b { display: block; margin-bottom: 2px; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pink-deep); }

/* ---------- a question ---------- */
.fields { display: grid; gap: 14px; min-width: 0; }
.field { margin: 0; min-width: 0; display: grid; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; transition: border-color 0.15s, background 0.15s; }
fieldset.field > legend { float: left; width: 100%; padding: 0; }
fieldset.field > legend + * { clear: both; }
.field.appear { animation: appear 0.25s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.field.invalid { border-color: #e8a09a; background: #fffafa; }
.f-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 1.05rem; font-weight: 600; line-height: 1.35; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.f-opt { font-size: 0.72rem; font-weight: 600; color: var(--muted); background: var(--tint); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.saletag { font-size: 0.72rem; font-weight: 700; color: var(--pink-deep); background: var(--pink-soft); border-radius: 99px; padding: 2px 9px; white-space: nowrap; }
.f-help { font-size: 0.9rem; line-height: 1.45; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.f-err { color: var(--error); font-weight: 600; font-size: 0.92rem; }
.control { display: grid; gap: 10px; min-width: 0; }
input[type="text"], input[type="email"], textarea { width: 100%; padding: 13px 14px; font-size: 1.0625rem; line-height: 1.45; border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
textarea { resize: vertical; min-height: 104px; }
textarea.small { min-height: 72px; }
input::placeholder, textarea::placeholder { color: #a7a3b0; }
input[type="text"]:focus, input[type="email"]:focus, textarea:focus { outline: none; border-color: var(--pink-strong); box-shadow: 0 0 0 4px var(--pink-soft); }
.field.invalid input[type="text"], .field.invalid input[type="email"], .field.invalid textarea { border-color: #e8a09a; }

/* things to tap instead of type */
.hints { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hints-label { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-right: 2px; }
.hints:has(.chip:nth-of-type(8)) .hints-label { flex-basis: 100%; }
.chip { min-height: 40px; padding: 6px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-size: 0.9rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.chip::before { content: "+ "; color: var(--pink-strong); }
.chip:hover { border-color: var(--pink); }
.chip[aria-pressed="true"] { background: var(--pink-soft); border-color: var(--pink-strong); color: var(--pink-deep); }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.picked { font-size: 0.85rem; font-weight: 600; color: var(--pink-deep); }
.picked.over { color: #8a4b00; background: #fff6e5; border-radius: 10px; padding: 8px 12px; font-weight: 500; }
.picked:empty, .tip:empty { display: none; }
.tip { font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.tip-btn { max-width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--pink-line); background: var(--pink-soft); color: var(--pink-deep); font-size: 0.92rem; font-weight: 600; text-align: left; overflow-wrap: anywhere; cursor: pointer; }

/* choices */
.opts { display: grid; gap: 8px; }
/* Short answers with no price ("No / Maybe a bit risqué / Yes") sit side by side once there is room for all of them. */
@media (min-width: 600px) { .opts.compact { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.f-lead { font-weight: 600; color: var(--ink); }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.1s; }
.opt:hover { border-color: var(--pink); }
.opt:active { transform: scale(0.99); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c9c4d3; background: #fff; }
.opt:has(input:checked) { border-color: var(--pink-strong); background: var(--pink-soft); }
.opt:has(input:checked)::before { border-color: var(--pink-strong); background: radial-gradient(circle, var(--pink-strong) 0 42%, #fff 46%); }
.opt:has(input:focus-visible) { outline: 3px solid var(--pink-strong); outline-offset: 3px; }
.opt-body { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.opt-text { display: flex; flex-direction: column; min-width: 0; }
.opt-name { font-weight: 600; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.opt-desc { font-size: 0.86rem; color: var(--muted); }
.price { display: flex; flex-direction: column; align-items: flex-end; flex: none; line-height: 1.2; white-space: nowrap; }
.price strong { font-size: 1.1rem; font-weight: 700; color: var(--pink-deep); }
.price s { font-size: 0.8rem; color: var(--muted); }
.price.quote, .price.free { font-size: 0.86rem; color: var(--muted); }
/* On the narrowest phones "Custom quote" goes on two lines, so the option's name keeps its room. */
@media (max-width: 379px) { .price.quote { white-space: normal; max-width: 4.4em; text-align: right; } }
.pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pics .opt { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
/* On a picture, the round mark gets a white ring and a soft shadow so it stands clear of the artwork. */
.pics .opt::before { position: absolute; top: 14px; left: 14px; z-index: 1; box-shadow: 0 0 0 3px #fff, 0 1px 6px rgba(0, 0, 0, 0.25); }
.opt-img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: var(--tint); }
.pics .opt-body { flex-direction: column; text-align: center; gap: 2px; }
.pics .opt-text { align-items: center; }
.pics .price { flex-direction: row; align-items: baseline; gap: 6px; }

/* a tick box */
.check { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 6px 0; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; border: 2px solid #c9c4d3; background: #fff; display: grid; place-items: center; transition: background 0.15s, border-color 0.15s; }
.check input:checked + .check-box { background: var(--pink-strong); border-color: var(--pink-strong); }
.check input:checked + .check-box::after { content: "✓"; color: #fff; font-weight: 700; font-size: 15px; line-height: 1; }
.check input:focus-visible + .check-box { outline: 3px solid var(--pink-strong); outline-offset: 3px; }
.check-text { font-weight: 600; line-height: 1.45; color: var(--ink); }
.field.kind-age_gate { background: #fffaf0; border-color: #f0dcae; }
.field.kind-age_gate.invalid, .field.kind-legal.invalid { background: #fffafa; border-color: #e8a09a; }

/* uploads */
.dropzone { display: flex; align-items: center; gap: 14px; padding: 14px; border: 2px dashed #cfc9d9; border-radius: var(--r-sm); background: #fff; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.dropzone:hover, .dropzone.over { border-color: var(--pink-strong); background: var(--pink-soft); }
.upload input:focus-visible + .dropzone { outline: 3px solid var(--pink-strong); outline-offset: 3px; }
.drop-plus { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--pink-soft); color: var(--pink-deep); display: grid; place-items: center; font-size: 1.6rem; font-weight: 600; line-height: 1; }
.dropzone strong { display: block; color: var(--ink); }
.dropzone small { display: block; font-size: 0.84rem; color: var(--muted); }
.upload { display: grid; gap: 10px; min-width: 0; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.file { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.file.failed { border-color: #f1b8b3; background: #fff6f5; }
.thumb { flex: none; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--tint); }
.thumb.doc { display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.file-name { flex: 1; min-width: 0; font-size: 0.94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name small { display: block; font-size: 0.8rem; color: var(--muted); white-space: normal; }
.file-name .file-error { color: var(--error); }
.file-name progress { display: block; width: 100%; height: 6px; margin-top: 6px; accent-color: var(--pink-strong); }
.remove { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1rem; cursor: pointer; }
.remove:hover { background: var(--tint); color: var(--ink); }

/* example artwork */
.examples { min-width: 0; }
.examples h2 { margin: 4px 0 8px; font-size: 0.9rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; scrollbar-width: thin; }
.example { flex: none; width: min(56vw, 220px); padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; scroll-snap-align: start; }
.example img { width: 100%; height: 160px; object-fit: contain; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--tint); }
.example span { display: block; padding: 4px 2px 0; font-size: 0.82rem; color: var(--muted); }
.lightbox { border: 0; border-radius: 18px; padding: 14px; max-width: min(94vw, 760px); box-shadow: var(--shadow); text-align: center; }
.lightbox::backdrop { background: rgba(20, 10, 30, 0.7); }
.lightbox img { max-height: 72vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox p { margin: 10px 0; font-size: 0.9rem; color: var(--muted); }

/* ---------- buttons and the bottom strip ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 24px; border-radius: 99px; border: 2px solid transparent; font-size: 1rem; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--pink-strong); color: #fff; box-shadow: 0 8px 20px rgba(214, 0, 111, 0.22); }
.btn.primary:hover { background: var(--pink-deep); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--pink); }
.btn:disabled { opacity: 0.65; cursor: progress; }
.btn.busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bar[hidden] { display: none; }
.bar-in { max-width: 1120px; margin: 0 auto; padding: 10px var(--gut); display: flex; align-items: center; gap: 10px; }
.bar .btn { min-height: 50px; padding: 8px 18px; }
.bar .btn.primary { padding-inline: 26px; }
.bar-total { flex: 1; min-width: 0; text-align: center; }
.sum { display: block; font-size: 0.8rem; line-height: 1.25; color: var(--muted); }
.sum strong { display: block; font-size: 1.2rem; font-weight: 700; color: var(--ink); }

/* ---------- picking a service ---------- */
.chooser-head { display: flex; align-items: center; gap: 14px; }
.chooser-art { flex: none; width: clamp(84px, 24vw, 150px); }
.chooser h1 { font-size: clamp(1.45rem, 5.4vw, 2.3rem); }
.sale-banner { display: inline-block; margin-top: 10px; padding: 5px 14px; border-radius: 99px; background: var(--pink-soft); color: var(--pink-deep); font-size: 0.9rem; font-weight: 700; }
.chooser-q { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .services { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.service { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px 14px; border: 2px solid var(--line); border-radius: var(--r); background: #fff; text-align: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.service:hover { border-color: var(--pink); transform: translateY(-3px); box-shadow: var(--shadow); }
.service.chosen { border-color: var(--pink-strong); background: var(--pink-soft); }
.service-img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.service-name { font-weight: 600; line-height: 1.25; color: var(--ink); }
/* Two cards share a row on phones: names keep room for two lines, so the prices under them line up. */
@media (max-width: 699px) { .service-name { min-height: 2.5em; display: flex; align-items: center; } }
.service-from { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; font-size: 0.88rem; color: var(--muted); }
.service-from strong { color: var(--ink); font-size: 1.02rem; }

/* ---------- cards: the order, the last screen ---------- */
.card { min-width: 0; display: grid; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm); }
.card h2 { font-size: 1.1rem; letter-spacing: 0; }
.card .field { border: 0; border-radius: 0; padding: 0; background: none; }
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink-deep); }
.order-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.order-thumb { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: var(--tint); }
.order-head strong { display: block; color: var(--ink); line-height: 1.3; }
.order-head span { display: block; font-size: 0.9rem; color: var(--muted); overflow-wrap: anywhere; }
.order-lines ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.order-lines li, .order-sum { display: flex; justify-content: space-between; gap: 12px; }
.order-lines li span { min-width: 0; }
.order-lines li strong { font-weight: 600; white-space: nowrap; color: var(--ink); }
.order-sum { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 1.15rem; }
.order-sum strong { font-weight: 700; color: var(--pink-deep); }
.order-note { margin-top: 8px; font-size: 0.92rem; }
.promises { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.promises li::before { content: "✓ "; color: var(--pink-strong); }
.side-quote { margin: 0; padding: 16px 18px; border-radius: var(--r); background: var(--pink-soft); }
.side-quote blockquote { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink); }
.side-quote figcaption { margin-top: 8px; font-size: 0.8rem; color: var(--muted); }
.review { border-top: 1px solid var(--line); }
.review summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-weight: 600; color: var(--pink-deep); cursor: pointer; }
.review summary::-webkit-details-marker { display: none; }
.review summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; transition: transform 0.2s; }
.review[open] summary::after { transform: rotate(45deg); }
.review-group { padding: 10px 0; border-top: 1px solid var(--line); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review dl { margin: 0; }
.review dt { margin-top: 8px; font-size: 0.8rem; color: var(--muted); }
.review dd { margin: 0; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.review dd.empty { color: #a7a3b0; }
.pay-area { display: grid; gap: 10px; }
.pay-area h2 { font-size: 1.25rem; }
.btn.pay { min-height: 64px; width: 100%; padding: 10px 26px; font-size: 1.12rem; justify-content: space-between; text-align: left; }
.pay-label { display: grid; line-height: 1.2; }
/* Full white: at 92% it fell just short of the contrast a small label needs on this pink. */
.pay-label small { font-size: 0.78rem; font-weight: 600; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field.kind-legal { gap: 6px; }
.field.kind-legal .f-help { font-size: 0.84rem; padding-left: 38px; }
.btn.pay:not(:has(strong)) { justify-content: center; }
.btn.pay strong { font-size: 1.25rem; white-space: nowrap; }
.btn.chat { width: 100%; min-height: 54px; }
.pay-methods, .guarantee { font-size: 0.85rem; line-height: 1.45; color: var(--muted); text-align: center; }
.error { color: var(--error); font-weight: 600; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--mint); color: #114b3a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }

/* ---------- endings ---------- */
.done { justify-items: center; text-align: center; padding-top: 12px; }
.done .btn { width: 100%; max-width: 420px; }
.hero { width: min(56vw, 240px); }
.spinner { width: 44px; height: 44px; margin-top: 40px; border-radius: 50%; border: 4px solid var(--pink-soft); border-top-color: var(--pink-strong); animation: spin 0.8s linear infinite; }

@media (max-width: 399px) {
  .field, .card { padding: 14px; }
  .bar .btn { padding-inline: 14px; }
  .bar .btn.primary { padding-inline: 20px; }
}
@media (min-width: 700px) {
  .layout { padding-top: 32px; }
  .pics { gap: 14px; }
}

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

/* ---------- the reference sheet builder ---------- */
.multi { display: grid; gap: 10px; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); } }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 96px; padding: 10px 6px 9px; border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.1s; }
.tile:hover { border-color: var(--pink); }
.tile:active { transform: scale(0.98); }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--pink-strong); transform: scale(0); transition: transform 0.12s; }
.tile:has(input:checked) { border-color: var(--pink-strong); background: var(--pink-soft); }
.tile:has(input:checked)::after { transform: scale(1); }
.tile:has(input:focus-visible) { outline: 3px solid var(--pink-strong); outline-offset: 3px; }
.tile-art { display: block; width: 34px; height: 34px; color: #b9b2c6; flex: none; }
.tile-art.tall { width: 38px; height: 57px; }
.tile:has(input:checked) .tile-art { color: var(--pink-strong); }
.tile-name { font-weight: 600; font-size: 0.9rem; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.tile-note { font-size: 0.74rem; line-height: 1.3; color: var(--muted); }
.tiles-rule { font-size: 0.86rem; color: var(--muted); }
.unit strong { color: var(--pink-deep); font-weight: 700; }
.unit s { margin-left: 5px; font-size: 0.8rem; }
.tiles-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; font-size: 0.92rem; color: var(--text); }
.tiles-sum strong { color: var(--ink); }
.tiles-amount { margin-left: auto; font-weight: 700; font-size: 1.05rem; color: var(--pink-deep); }

/* Basic, Detailed and Fursuit-Ready as one-tap starting points */
.sizes { display: grid; gap: 8px; }
.sizes-label { font-size: 0.86rem; color: var(--muted); }
.sizes-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.size { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 76px; padding: 6px 4px 8px; font: inherit; border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; text-align: center; transition: border-color 0.15s, background 0.15s; }
.size:hover { border-color: var(--pink); }
.size.on { border-color: var(--pink-strong); background: var(--pink-soft); }
.size-name { font-weight: 700; font-size: 0.9rem; line-height: 1.2; color: var(--ink); }
.size-what { font-size: 0.74rem; line-height: 1.3; color: var(--muted); }
.size-price { font-weight: 700; color: var(--pink-deep); }
.size-tag { display: none; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 1px 9px; border-radius: 99px; background: var(--pink-strong); color: #fff; font-size: 0.68rem; font-weight: 700; white-space: nowrap; }
.size.suggested .size-tag { display: block; }
.sizes-tip { color: var(--text); }

/* the diagram of the sheet */
.sheet { display: grid; gap: 8px; margin-top: 6px; min-width: 0; }
.sheet-cap { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pink-deep); }
.sheet-paper { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: repeating-linear-gradient(135deg, #fbf9fd 0 14px, #f6f2fa 14px 28px); min-width: 0; }
.sheet-name { font-weight: 700; font-size: 1.05rem; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.sheet-poses, .sheet-extras { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.sheet-empty { font-size: 0.86rem; color: var(--muted); }
.slot { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 6px 4px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 0.7rem; font-weight: 600; line-height: 1.2; color: var(--text); text-align: center; animation: pop 0.18s ease-out; }
.sheet-poses .slot { width: 60px; }
.sheet-poses .slot-art { width: 34px; height: 51px; color: var(--magenta); }
.sheet-extras .slot { width: 60px; }
.sheet-extras .slot-art { width: 26px; height: 26px; color: var(--pink-strong); }
.slot-art { display: block; }
.slot-art.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.slot-art.swatches i { border-radius: 3px; background: var(--magenta); }
.slot-art.swatches i:nth-child(2) { background: var(--pink); }
.slot-art.swatches i:nth-child(3) { background: var(--orange); }
.slot-art.swatches i:nth-child(4) { background: #2a2530; }
.slot-art.lines { display: grid; gap: 4px; align-content: center; }
.slot-art.lines i { height: 3px; border-radius: 2px; background: #b9b2c6; }
.slot-art.lines i:last-child { width: 60%; }
.size-img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 8px; background: var(--tint); margin-bottom: 4px; }
.sheet-lines { display: grid; gap: 2px; }
.sheet-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.9rem; color: var(--text); }
.sheet-line.saving { color: #0a7a4b; font-weight: 600; }
.sheet-line.total { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.sheet-line.total span:last-child { font-size: 1.15rem; color: var(--pink-deep); }
.sheet-nudge { font-size: 0.88rem; line-height: 1.45; color: #0a7a4b; background: #eaf7f0; border-radius: 10px; padding: 8px 12px; }
.sheet-nudge:empty { display: none; }
.sheet-incl { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.82rem; color: var(--muted); }
.sheet-incl li::before { content: "✓ "; color: var(--pink-strong); font-weight: 700; }
@keyframes pop { from { transform: scale(0.85); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .slot { animation: none; } .tile::after { transition: none; } }

/* quick, low-stakes choices as a row of small rounded buttons */
.opts.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.opts.pills .opt { min-height: 44px; padding: 8px 16px; border-radius: 99px; }
.opts.pills .opt::before { display: none; }
.opts.pills .opt-name { font-size: 0.94rem; }

/* ---------- the thank-you screen is a receipt ---------- */
.muted.small, .small { font-size: 0.86rem; line-height: 1.5; }
.screen.done .card { width: 100%; text-align: left; }
.receipt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.receipt-ref { display: block; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--ink); overflow-wrap: anywhere; }
.pill { flex: none; padding: 4px 12px; border-radius: 99px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.pill.ok { background: #eaf7f0; color: #0a6b42; }
.pill.wait { background: #fff6e5; color: #8a4b00; }
.receipt-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.receipt-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.receipt-lines li span { min-width: 0; overflow-wrap: anywhere; }
.receipt-lines li strong { flex: none; color: var(--ink); }
.next-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.next-steps li { padding-left: 2px; }
.next-steps li::marker { font-weight: 700; color: var(--pink-strong); }
.chat-note { text-align: center; }
/* a long email address must wrap inside the card, not widen it */
.screen.done > * { min-width: 0; max-width: 100%; }
.screen.done .card { overflow-wrap: anywhere; }
.screen.done .hero { max-width: min(200px, 44vw); }

/* ---------- the customer's order page (/o/...) ---------- */
.order-page .stage { max-width: 620px; }
.op { gap: 16px; }
.op-head { display: grid; gap: 6px; }
.op-head.center, .center { text-align: center; }
.op-hero { justify-self: center; width: min(34vw, 150px); height: auto; }
/* Where the order stands: a row of steps joined by a line. */
.op-track { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.op-track li { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; font-size: 0.72rem; font-weight: 600; line-height: 1.2; text-align: center; color: var(--muted); }
.op-track li::before { content: ""; position: absolute; top: 9px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.op-track li:first-child::before { display: none; }
.op-track i { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.op-track li.is-done, .op-track li.is-now { color: var(--ink); }
.op-track li.is-done::before, .op-track li.is-now::before { background: var(--pink-strong); }
.op-track li.is-done i { background: var(--pink-strong); border-color: var(--pink-strong); }
.op-track li.is-done i::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.op-track li.is-now i { border-color: var(--pink-strong); box-shadow: 0 0 0 4px var(--pink-soft); }
.op-track li.is-now i::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--pink-strong); }
.pill.off { background: #efedf2; color: #55515c; }
.op-track li > span { padding: 0 2px; }
.op-track.five li { font-size: 0.68rem; }
@media (max-width: 359px) { .op-track li, .op-track.five li { font-size: 0.62rem; letter-spacing: -0.01em; } }
/* A badge that is also the shortcut to the pay button is big enough to tap. */
a.pill { text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; padding: 4px 16px; }
.op .receipt-lines small { text-wrap: pretty; }
a.btn { text-decoration: none; }

/* The order number never breaks in two: on a narrow phone the badge drops under it instead. */
.order-page .receipt-head { flex-wrap: wrap; gap: 6px 12px; }
.order-page .receipt-ref { white-space: nowrap; overflow-wrap: normal; }
/* A message about what the customer just did sits inside the card it is about, and stands out from the page behind it. */
.order-page .notice { background: #f1fbf6; border: 1px solid #a9dcc8; }
.order-page .notice.bad { background: #fdecea; border-color: #f0b8b1; }
/* A jump from a button lands with the card clear of the sticky header. */
.order-page #pay, .order-page #updates, .order-page #note { scroll-margin-top: 72px; }
/* The mint shape stays off the words: beside the column on a wide screen, gone on a phone. */
@media (min-width: 700px) { .order-page .bg i:first-child { right: auto; left: calc(50% + 334px); } }
@media (max-width: 699px) { .order-page .bg i:first-child { display: none; } }
/* The header lines up with the column of cards. */
.order-page .top-in { max-width: 660px; }
.order-page .pay-methods, .order-page .guarantee, .order-page .op-head p, .op-half > span { text-wrap: balance; }
@media (max-width: 359px) { .op-half { padding-inline: 14px; } }
@media (min-width: 600px) { .op-remind-row input[type="date"] { flex: 0 1 220px; } }
.op-message textarea { resize: none; }
.op-why { padding: 10px 12px; border-radius: var(--r-sm); background: var(--tint); font-size: 0.95rem; line-height: 1.45; color: var(--text); }
.op-why b { color: var(--ink); }
.order-page .card.next .btn { justify-self: start; }
.op .receipt-lines li span { display: grid; gap: 2px; }
.op .receipt-lines small { font-size: 0.8rem; line-height: 1.4; color: var(--pink-deep); }
.op .receipt-lines s { margin-left: 6px; font-size: 0.82rem; font-weight: 400; color: var(--muted); }
.op-row { display: flex; justify-content: space-between; gap: 12px; color: var(--text); }
.op-row strong { color: var(--ink); }
.op-row.due { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.op-row.due strong { color: var(--pink-deep); }
.pill.part { background: #e8f0ff; color: #1d4a9c; }
.op-pay { gap: 10px; }
.op-pay form { display: grid; }
.op-big { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.op-half { min-height: 58px; display: grid; gap: 1px; justify-items: center; line-height: 1.25; }
.op-half small { font-size: 0.78rem; font-weight: 400; color: var(--muted); }
.op-later { display: grid; gap: 8px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.op-later-title { font-weight: 600; color: var(--ink); }
.op-later .linkbtn { justify-self: start; }
.op-remind { display: grid; gap: 8px; margin-top: 2px; font-size: 0.94rem; }
.op-remind label { font-weight: 600; color: var(--ink); }
.op-remind-row { display: flex; gap: 8px; flex-wrap: wrap; }
.op-remind-row input[type="date"] { flex: 1 1 150px; min-width: 0; min-height: 52px; padding: 10px 12px; font: inherit; border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.op-remind-row input[type="date"]:focus { outline: none; border-color: var(--pink-strong); box-shadow: 0 0 0 4px var(--pink-soft); }
.op-remind-row .btn { flex: none; }
.op-note { padding: 12px 14px; border-radius: 4px 18px 18px 18px; background: var(--pink-soft); color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }
.op-note b { display: block; margin-bottom: 2px; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pink-deep); }
.op-updates { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.op-updates li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; font-size: 0.94rem; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.op-updates time { font-size: 0.8rem; color: var(--muted); padding-top: 2px; }
.op-updates li.mine span { padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--tint); }
.op-details { border-top: 0; }
.op-details summary { min-height: 44px; }
.order-page .card:has(> .op-details) { padding-top: 8px; padding-bottom: 8px; }
.order-page .top a { display: inline-flex; align-items: center; min-height: 44px; }
.op-message { display: grid; gap: 10px; }
.op-message .btn { justify-self: start; }
.notice.bad { background: #fdecea; color: #8a1c13; }
/* The way back to an order already sent from this device, on the form's first screens. */
.last-order { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; justify-content: space-between; margin: 0 0 4px; }
.last-order { align-items: center; padding-top: 4px; padding-bottom: 4px; background: #f1fbf6; border: 1px solid #a9dcc8; }
.last-order a { color: inherit; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.op-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 18px; }
.op-foot .linkbtn { display: inline-flex; align-items: center; }
@media print {
  .top, .bg, .test-banner, .op-pay form, .op-later, .guarantee, .pay-methods, #note, .op-foot, .op-hero, .notice { display: none !important; }
  .card { box-shadow: none; break-inside: avoid; }
  .op-details[open] summary::after, .op-details summary::after { content: ""; }
}

/* ---------- The order page: signing in, answers before paying, the studio's own look ---------- */
.studio-banner { background: #17141c; color: #fff; }
.op-faq { display: grid; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.op-faq details { border-top: 1px solid var(--line); }
.op-faq details:first-of-type { border-top: 0; }
.op-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 6px 0; font-size: 0.94rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.op-faq summary::-webkit-details-marker { display: none; }
.op-faq summary::after { content: "+"; flex: none; font-size: 1.3rem; font-weight: 400; color: var(--pink-deep); transition: transform 0.2s; }
.op-faq details[open] summary::after { transform: rotate(45deg); }
.op-faq details p { padding: 0 0 14px; font-size: 0.92rem; line-height: 1.55; color: var(--text); }
.op-foot form { display: inline-flex; }
.order-page #art { scroll-margin-top: 72px; }
.op-message label:not(.sr-only) { font-weight: 600; color: var(--ink); }

/* ---------- The form's last screen: half now, answers, a question ---------- */
.pay-area .op-half { margin-top: 0; }
.pay-faq { margin-top: 6px; }
.pay-ask { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 4px; }
.pay-ask > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 46px; font-size: 0.94rem; font-weight: 600; color: var(--pink-deep); cursor: pointer; }
.pay-ask > summary::-webkit-details-marker { display: none; }
.pay-ask > summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; transition: transform 0.2s; }
.pay-ask[open] > summary::after { transform: rotate(45deg); }
.pay-ask[open] { padding-bottom: 4px; }
.pay-ask textarea { min-height: 84px; }

/* ---------- Pictures added from the order page ---------- */
.op-attach { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.op-attach[hidden] { display: none; }
.op-files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.op-files:empty { display: none; }
.op-files li { display: grid; gap: 2px; width: 96px; align-content: start; font-size: 0.76rem; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
.op-files img, .op-file-blank { display: grid; place-items: center; width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--tint); font-weight: 700; color: var(--muted); }
.op-files .linkbtn { min-height: 32px; padding: 2px 0; justify-self: start; font-size: 0.8rem; }
.op-attach-btn { min-height: 46px; padding: 8px 18px; font-size: 0.94rem; cursor: pointer; }
.op-attach-btn:focus-within { outline: 3px solid var(--pink-strong); outline-offset: 3px; }
.op-more { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }

/* The art is the product: on a wide screen the order page gives it more room. */
@media (min-width: 900px) { .order-page .stage { max-width: 760px; } .order-page .top-in { max-width: 800px; } }
.op-updates li.theirs span { padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: var(--pink-soft); color: var(--ink); }

/* A tip, once the finished artwork is theirs. One tap on an amount opens the payment page. */
.op-tip .op-big { margin-bottom: 2px; }
.tip-form { display: grid; gap: 10px; margin-top: 14px; }
.tip-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tip-picks .btn { min-height: 56px; font-size: 1.15rem; padding-left: 8px; padding-right: 8px; }
.tip-other { display: grid; gap: 6px; margin-top: 2px; }
.tip-pick-title { font-weight: 600; color: var(--ink); margin: 4px 0 -2px; }
.tip-form label { font-weight: 600; color: var(--ink); }
.tip-form label .muted { font-weight: 400; }
.tip-other .op-remind-row input[type="text"] { flex: 1 1 120px; min-width: 0; min-height: 52px; }
.tip-given { list-style: none; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #f1fbf6; border: 1px solid #a9dcc8; color: #114b3a; display: grid; gap: 4px; overflow-wrap: anywhere; }
.tip-safe { margin: 0; }
/* After a tip the form is folded away: the card is a thank-you then, not a second ask. */
.tip-more { margin-top: 10px; }
.tip-more > summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; font-size: 0.94rem; font-weight: 600; color: var(--pink-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tip-more > summary::-webkit-details-marker { display: none; }
.tip-more[open] > summary { text-decoration: none; color: var(--ink); }
/* The way to object, on a line of its own. (Kept on one line it was wider than a phone, and took the whole card with it.) */
.art-lead a { display: block; margin-top: 6px; }
@media print { .op-tip { display: none !important; } }
