/* tokens.css -- the ONLY place a colour, size, radius or space is defined. Prepended to site.css by build.mjs. */
@font-face { font-family: "Fraunces"; src: url("/assets/fraunces.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/geist.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #FFFFFF; --ink: #1B1A18; --paper: #F6F3EE; --g2: #625E57; --line: #D9D4CB; --accent: #B2412C;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --fs-hero: 68px; --lh-hero: 72px; --fs-title: 44px; --lh-title: 50px; --fs-heading: 28px; --lh-heading: 34px;
  --fs-lead: 20px; --lh-lead: 30px; --fs-body: 17px; --lh-body: 26px; --fs-small: 14px; --lh-small: 20px;
  --r-s: 10px; --r-m: 16px; --r-l: 28px; --r-pill: 999px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --shadow-m: 0 2px 4px rgba(27,26,24,.08), 0 12px 24px rgba(27,26,24,.12);
  --shadow-l: 0 30px 70px rgba(27,26,24,.18);
  --shadow-art: 0 1px 2px rgba(27,26,24,.16), 0 10px 22px rgba(27,26,24,.22);
  --scrim: rgba(255,255,255,.94);
  --veil: rgba(27,26,24,.88);
  --gutter: 32px; --maxw: 1180px; --ease: cubic-bezier(.2,.7,.2,1);
}
@media (max-width: 767px) {
  :root { --fs-hero: 40px; --lh-hero: 44px; --fs-title: 30px; --lh-title: 36px; --fs-heading: 24px; --lh-heading: 30px; --fs-lead: 18px; --lh-lead: 27px; --gutter: 20px; }
}

/* site.css -- layout and components. Every colour, size, radius and space comes from tokens.css (prepended at build). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/var(--lh-body) var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul, ol, fieldset, blockquote, figure { margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: -.02em; }
h2 { font-size: var(--fs-heading); line-height: var(--lh-heading); letter-spacing: -.01em; }
a { color: var(--accent); text-underline-offset: 3px; }
.link:first-child { padding-left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* a file input laid transparently over its own button: a real tap target as big as the button (not a 1 px sr-only box), and the picker opens even if the for= link were wrong */
label:has(> .cover) { position: relative; overflow: hidden; }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
label:has(> .cover:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn[aria-busy="true"] .cover { pointer-events: none; }
.skip { position: absolute; left: var(--s-4); top: -80px; background: var(--ink); color: var(--bg); padding: var(--s-3) var(--s-4); border-radius: var(--r-pill); z-index: 30; }
.skip:focus { top: var(--s-3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-s); }
[tabindex="-1"]:focus-visible { outline: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.small { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--g2); }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--g2); max-width: 36rem; margin-top: var(--s-4); }
[hidden] { display: none !important; }

/* header and footer */
.site-header { display: flex; align-items: center; justify-content: space-between; max-width: var(--maxw); margin: 0 auto; padding: var(--s-4) var(--gutter); }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-heading); line-height: var(--lh-heading); color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.site-footer { border-top: 1px solid var(--line); margin-top: var(--s-8); padding: var(--s-7) 0 var(--s-8); }
.foot { display: grid; gap: var(--s-2); }
.foot-brand { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink); }
.foot-links a { color: var(--g2); margin-right: var(--s-4); }

/* buttons: one filled primary per screen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 52px; padding: 0 var(--s-6); border-radius: var(--r-pill); border: 0; font: 600 var(--fs-body)/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn-lg { min-height: 60px; padding: 0 var(--s-7); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-m); }
.btn-primary:active { transform: translateY(0) scale(.99); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { background: var(--line); color: var(--g2); cursor: default; transform: none; box-shadow: none; }
.btn-outline { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.link { background: none; border: 0; padding: var(--s-2) var(--s-3); font: 400 var(--fs-body)/var(--lh-body) var(--font); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }

/* upload block (landing hero and repeats) */
.upload { margin-top: var(--s-6); display: grid; justify-items: start; gap: var(--s-3); }
.upload:has(.btn[aria-busy="true"]) .upload-micro { visibility: hidden; }
.btn[aria-busy="true"] { background: var(--paper); color: var(--ink); pointer-events: none; }
.btn[aria-busy="true"] span::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: var(--s-2); border-radius: var(--r-pill); background: var(--accent); animation: dot 1s var(--ease) infinite; }
@keyframes dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.upload-error { background: var(--paper); border-radius: var(--r-m); padding: var(--s-4) var(--s-5); display: grid; gap: var(--s-3); max-width: 34rem; }
.upload-error p { font-weight: 600; }
.upload-error-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.upload-error-actions .btn { min-height: 44px; padding: 0 var(--s-5); }
.chapter-cta .upload { justify-items: start; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr; gap: var(--s-6); max-width: var(--maxw); margin: 0 auto; padding: var(--s-3) var(--gutter) var(--s-7); align-items: center; }
.hero h1 { font-size: var(--fs-hero); line-height: var(--lh-hero); letter-spacing: -.03em; }
.hero-trust { margin-top: var(--s-5); }
.hero-visual { min-width: 0; }
.wipe { position: relative; display: block; overflow: hidden; border-radius: var(--r-l); background: var(--paper); aspect-ratio: 3 / 4; width: min(100%, calc((100svh - 130px) * .75)); margin: 0 auto; box-shadow: var(--shadow-l); --p: 50%; animation: settle .9s var(--ease) both; }
@keyframes settle { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wipe .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--p)); }
.wipe-line { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: var(--bg); pointer-events: none; }
.wipe-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: var(--r-pill); background: var(--bg); box-shadow: var(--shadow-m); }
.wipe-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.wipe:has(.wipe-range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.wipe.still .wipe-line { display: none; }

/* chapters: one claim, bold-lead bullets, one 3:4 visual, alternating sides */
.chapter { padding: var(--s-8) 0; }
.band { background: var(--paper); }
.chapter-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-7); align-items: center; }
.chapter h2 { font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: -.02em; max-width: 16ch; }
.lead-list { list-style: none; display: grid; gap: var(--s-4); margin-top: var(--s-6); max-width: 30rem; }
.lead-list li { padding-left: var(--s-5); position: relative; color: var(--g2); }
.lead-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--accent); }
.lead-list strong { color: var(--ink); font-weight: 600; }
.from { display: inline-block; margin-left: var(--s-2); color: var(--ink); font-weight: 600; }
.chapter-visual { min-width: 0; justify-self: center; width: min(100%, 440px); }

/* the phone with the user's own pet in four styles */
.phone { background: var(--bg); border-radius: var(--r-l); padding: var(--s-4) var(--s-4) var(--s-5); box-shadow: var(--shadow-l); }
.phone-bar { width: 72px; height: 6px; border-radius: var(--r-pill); background: var(--line); margin: 0 auto var(--s-4); }
.phone-h { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lead); line-height: var(--lh-lead); margin: 0 var(--s-1) var(--s-3); }
.phone-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
.phone-grid figure img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-m); width: 100%; height: auto; }
.phone-grid figcaption { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--g2); padding: var(--s-1) var(--s-1) 0; }

/* close-up: photo against artwork on the same patch of the face */
.closeup { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.closeup figure { display: grid; gap: var(--s-2); }
.closeup figcaption { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--g2); }
.zoom { position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: var(--r-l); background: var(--paper); }
.zoom img { position: absolute; width: calc(100% * var(--zz)); height: calc(100% * var(--zz)); max-width: none; object-fit: cover; left: calc(50% - var(--zx) * var(--zz)); top: calc(50% - var(--zy) * var(--zz)); }
.tag { position: absolute; top: var(--s-3); left: var(--s-3); background: var(--bg); color: var(--ink); border-radius: var(--r-pill); font-size: var(--fs-small); line-height: var(--lh-small); padding: var(--s-1) var(--s-3); box-shadow: var(--shadow-m); }

/* the room: the artwork sized by its real width on the wall */
.room { container-type: inline-size; position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--paper); width: 100%; }
.room-bg { width: 100%; height: auto; }
.art { position: absolute; left: calc(var(--cx) * 100%); top: calc(var(--cy) * 100%); width: calc(var(--cm) * var(--ppcm) * 100cqw); aspect-ratio: var(--ar, .75); transform: translate(-50%, -50%); box-shadow: var(--shadow-art); transition: width .5s var(--ease), aspect-ratio .5s var(--ease), border-width .3s var(--ease); background: var(--paper); border: 0 solid var(--bg); }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art.framed { border-width: calc(var(--cm) * var(--ppcm) * 100cqw * .06); }
.art.canvas { box-shadow: var(--shadow-art), 4px 0 0 var(--line); }
.room .art { --ar: .75; }

/* price ladder */
.price-wrap { text-align: left; }
.ladder { width: 100%; max-width: 46rem; border-collapse: collapse; margin-top: var(--s-6); }
.ladder th, .ladder td { text-align: left; padding: var(--s-4) var(--s-3) var(--s-4) 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 600; }
.ladder th { font-weight: 400; color: var(--g2); width: 34%; }
.ladder .sz { display: block; font-weight: 400; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--g2); }
.chapter-cta { margin-top: var(--s-6); }

/* guarantee, faq, final */
.guar { list-style: none; display: grid; grid-template-columns: 1fr; gap: var(--s-5); margin-top: var(--s-6); }
.guar li { display: grid; gap: var(--s-1); align-content: start; }
.guar strong { font-weight: 600; font-size: var(--fs-lead); line-height: var(--lh-lead); }
.guar span { color: var(--g2); }
.calm { margin-top: var(--s-4); }
.faq-wrap { max-width: 52rem; }
.faq { margin-top: var(--s-5); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: var(--s-4) 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); min-height: 56px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: var(--fs-heading); line-height: 1; color: var(--accent); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--g2); padding-bottom: var(--s-5); max-width: 40rem; }
.final .duo, .duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.duo.single { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
.duo img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; height: auto; border-radius: var(--r-l); }
.final h2 { max-width: 14ch; }

/* text pages */
.prose { max-width: 42rem; margin: 0 auto; padding: var(--s-6) var(--gutter) 0; }
.prose h2 { margin-top: var(--s-7); }
.prose p { margin-top: var(--s-3); color: var(--g2); }
.prose .small { margin-top: var(--s-7); }
.prose ul { margin-top: var(--s-3); padding-left: var(--s-5); color: var(--g2); }
.prose li { margin-top: var(--s-2); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose .company { margin-top: var(--s-4); display: grid; gap: var(--s-2); }
.prose .company div { display: grid; grid-template-columns: minmax(6rem, 9rem) 1fr; gap: var(--s-3); }
.prose .company dt { color: var(--g2); }
.prose .company dd { color: var(--ink); overflow-wrap: anywhere; }
.prose .notice-box { margin-top: var(--s-4); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); }

/* ---------- studio ---------- */
.studio { max-width: var(--maxw); margin: 0 auto; padding: var(--s-3) var(--gutter) 0; min-height: 70svh; }
.progress { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-4); min-height: 44px; }
.back { background: none; border: 0; font: 400 var(--fs-small)/var(--lh-small) var(--font); color: var(--g2); cursor: pointer; padding: var(--s-2) var(--s-3) var(--s-2) 0; min-height: 44px; }
.back::before { content: "\2190"; margin-right: var(--s-2); }
.screen { animation: enter .35s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.screen > h1 { max-width: 20ch; }
.screen > .lead { margin-top: var(--s-3); }
.pet-row { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-5); }
.thumb { width: 88px; height: 112px; object-fit: cover; border-radius: var(--r-m); background: var(--paper); flex: none; }
.field { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.field label, .legend { font-weight: 600; font-size: var(--fs-small); line-height: var(--lh-small); }
.field .hint { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--g2); }
.field .err { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink); font-weight: 600; }
.input { width: 100%; min-height: 56px; border: 1px solid var(--line); border-radius: var(--r-m); padding: 0 var(--s-4); font: 400 var(--fs-body)/1 var(--font); color: var(--ink); background: var(--bg); transition: box-shadow .16s var(--ease), border-color .16s var(--ease); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.input[aria-invalid="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
textarea.input { padding: var(--s-3) var(--s-4); min-height: 96px; line-height: var(--lh-body); resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.row3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--s-3); }
.note { margin-top: var(--s-5); background: var(--paper); border-radius: var(--r-m); padding: var(--s-3) var(--s-4); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--g2); }
.check { display: flex; gap: var(--s-3); align-items: flex-start; margin-top: var(--s-4); cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--accent); flex: none; }
.check span { line-height: var(--lh-body); }

/* wait screen */
.wait-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); margin-top: var(--s-6); }
.slot { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-l); overflow: hidden; background: var(--paper); }
.slot img { width: 100%; height: 100%; object-fit: cover; animation: reveal .6s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.slot.empty { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.slot-name { position: absolute; left: var(--s-3); bottom: var(--s-3); background: var(--scrim); border-radius: var(--r-pill); padding: var(--s-1) var(--s-3); font-size: var(--fs-small); line-height: var(--lh-small); }
.stages { list-style: none; display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.stages li { display: flex; gap: var(--s-3); align-items: center; color: var(--g2); }
.stages li::before { content: ""; width: 10px; height: 10px; border-radius: var(--r-pill); border: 2px solid var(--line); flex: none; }
.stages li.done::before { background: var(--ink); border-color: var(--ink); }
.stages li.done { color: var(--ink); }
.stages li.active { color: var(--ink); font-weight: 600; }
.stages li.active::before { border-color: var(--accent); background: var(--accent); }
.wait-note { margin-top: var(--s-4); font-weight: 600; }
.mail-card { margin-top: var(--s-5); background: var(--paper); border-radius: var(--r-l); padding: var(--s-5); display: grid; gap: var(--s-3); max-width: 34rem; }
.mail-card .row2 { grid-template-columns: 1fr auto; align-items: end; }

/* pick (kies) */
.pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-3); margin-top: var(--s-6); list-style: none; }
.pick { display: grid; gap: var(--s-2); align-content: start; }
.pick-art { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--paper); border-radius: var(--r-l); overflow: hidden; aspect-ratio: 3 / 4; cursor: pointer; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.pick-art img { width: 100%; height: 100%; object-fit: cover; }
.pick-art:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.pick[aria-selected="true"] .pick-art { box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--accent); }
.pick-zoom { position: absolute; right: var(--s-2); top: var(--s-2); width: 44px; height: 44px; border-radius: var(--r-pill); border: 0; background: var(--scrim); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-m); }
.pick-zoom svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.pick-meta { display: flex; justify-content: space-between; gap: var(--s-2); align-items: baseline; flex-wrap: wrap; padding: 0 var(--s-1); }
.pick-name { font-weight: 600; }
.pick-claim { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--g2); width: 100%; }
.pick .link { padding: 0; min-height: 32px; font-size: var(--fs-small); }
.pick-fail { display: grid; place-items: center; gap: var(--s-3); text-align: center; padding: var(--s-4); height: 100%; font-weight: 600; }
.pick-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); }
.lightbox { position: fixed; inset: 0; z-index: 40; background: var(--veil); display: grid; grid-template-rows: auto 1fr; }
.lightbox-close { justify-self: end; margin: var(--s-4); }
.lightbox-scroll { overflow: auto; touch-action: pan-x pan-y pinch-zoom; display: grid; place-items: start center; padding: 0 var(--s-4) var(--s-5); }
.lightbox-scroll img { width: min(100%, calc((100svh - 100px) * .75)); height: auto; border-radius: var(--r-m); cursor: zoom-in; }
.lightbox-scroll img.big { width: min(220%, 2000px); max-width: none; cursor: zoom-out; }

/* option cards (product, size, gift) */
.layout2 { display: grid; grid-template-columns: 1fr; gap: var(--s-5); margin-top: var(--s-5); }
.stage-room { position: sticky; top: 0; z-index: 4; background: var(--bg); padding-bottom: var(--s-2); }
.rooms { display: flex; gap: var(--s-2); margin-top: var(--s-2); }
.rooms button { flex: 1; border: 0; padding: 0; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 16 / 9; cursor: pointer; background: var(--paper); opacity: 1; }
.rooms button img { width: 100%; height: 100%; object-fit: cover; }
.rooms button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.opts { list-style: none; display: grid; gap: var(--s-3); }
.opt { width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-4); align-items: baseline; padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg); font: inherit; color: var(--ink); cursor: pointer; transition: box-shadow .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); min-height: 72px; }
.opt:hover { border-color: var(--ink); transform: translateY(-1px); }
.opt[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.opt b { font-weight: 600; }
.opt .opt-price { font-weight: 600; white-space: nowrap; }
.opt .opt-line { grid-column: 1 / -1; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--g2); }
.frames { display: flex; gap: var(--s-3); margin-top: var(--s-4); flex-wrap: wrap; }
.frame-chip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4) 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg); font: inherit; cursor: pointer; }
.frame-chip i { width: 20px; height: 20px; border-radius: var(--r-pill); border: 1px solid var(--line); }
.frame-chip[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.hint-line { color: var(--g2); font-size: var(--fs-small); line-height: var(--lh-small); margin-top: var(--s-3); }

/* review */
.rev-thumb { display: grid; place-items: center; margin-top: var(--s-5); }
.rev-thumb .room { max-width: 460px; }
.rows { margin-top: var(--s-5); border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rows dt { color: var(--g2); }
.rows dd { font-weight: 600; text-align: right; }
.rows dd a, .rows dd button { font-weight: 400; margin-left: var(--s-3); }
.rows .total dd { font-size: var(--fs-lead); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-5); }
.pair .opt { grid-template-columns: 1fr; min-height: 56px; text-align: center; font-weight: 600; }
.gift-box { margin-top: var(--s-4); display: grid; gap: var(--s-3); }
.tpl { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tpl button { border: 1px solid var(--line); background: var(--bg); border-radius: var(--r-pill); padding: var(--s-2) var(--s-4); font: inherit; font-size: var(--fs-small); cursor: pointer; text-align: left; min-height: 44px; }
.delivery { margin-top: var(--s-5); font-weight: 600; }
.notice { margin-top: var(--s-5); padding: var(--s-4) var(--s-5); background: var(--paper); border-radius: var(--r-m); }
.ctry { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-2); }
.ctry .opt { grid-template-columns: 1fr; min-height: 56px; text-align: center; font-weight: 600; }

/* pay */
.bankgrid { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.bankgrid .opt { min-height: 56px; grid-template-columns: 1fr; font-weight: 600; }
.pay-methods { margin-top: var(--s-5); }
.test-banner { margin-top: var(--s-4); background: var(--paper); border-radius: var(--r-m); padding: var(--s-3) var(--s-4); font-weight: 600; }

/* done */
.done-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-6); margin-top: var(--s-5); }
.timeline { list-style: none; display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.timeline li { padding-left: var(--s-6); position: relative; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: var(--r-pill); border: 2px solid var(--accent); background: var(--bg); }
.timeline li:first-child::before { background: var(--accent); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 1.5em; bottom: -1.2em; width: 2px; background: var(--line); }
.done-art { justify-self: center; width: min(100%, 360px); }
.done-art .art-frame { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-l); aspect-ratio: 3 / 4; }
.done-art img { width: 100%; height: 100%; object-fit: cover; }
.done-actions { display: grid; gap: var(--s-3); justify-items: start; margin-top: var(--s-5); }

/* sticky action bar */
.actionbar { position: sticky; bottom: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin: var(--s-6) calc(var(--gutter) * -1) 0; padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom)); background: var(--scrim); border-top: 1px solid var(--line); }
.actionbar .btn { flex: 1; max-width: 26rem; margin-left: auto; }
.actionbar .sum { font-weight: 600; display: grid; line-height: var(--lh-small); }
.actionbar .sum small { font-weight: 400; font-size: var(--fs-small); color: var(--g2); }

@media (min-width: 768px) {
  .hero { grid-template-columns: 1.05fr .95fr; gap: var(--s-8); min-height: calc(100svh - 84px); padding-top: 0; padding-bottom: var(--s-5); }
  .chapter { padding: var(--s-9) 0; min-height: 80svh; display: grid; align-items: center; }
  .chapter-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .chapter-grid.flip .chapter-visual { order: -1; }
  .chapter-visual { width: min(100%, 460px); }
  .final { min-height: 0; }
  .guar { grid-template-columns: repeat(4, 1fr); }
  .wait-grid { grid-template-columns: repeat(4, 1fr); }
  .wait-grid.three { grid-template-columns: repeat(3, 1fr); }
  .wait-layout { display: grid; grid-template-columns: 1fr; }
  .pick-grid { gap: var(--s-6) var(--s-5); max-width: 760px; }
  .layout2 { grid-template-columns: 1.15fr .85fr; gap: var(--s-7); align-items: start; }
  .stage-room { top: var(--s-4); }
  .done-grid { grid-template-columns: 1fr 360px; gap: var(--s-8); align-items: start; }
  .done-art { order: 2; }
  .actionbar { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; background: var(--scrim); }
  .studio { padding-top: var(--s-5); }
  .screen > h1 { font-size: var(--fs-title); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}

/* two pets: tap the animal */
.tap-photo { position: relative; margin-top: var(--s-5); width: min(100%, 420px); border-radius: var(--r-l); overflow: hidden; background: var(--paper); }
.tap-photo img { width: 100%; height: auto; }
.animal-box { position: absolute; border: 3px solid var(--bg); border-radius: var(--r-m); background: transparent; box-shadow: var(--shadow-m); cursor: pointer; transition: border-color .16s var(--ease); }
.animal-box:hover, .animal-box:focus-visible { border-color: var(--accent); }

/* single-column screens read best in a narrow measure */
.screen.narrow { max-width: 36rem; }
.screen.narrow .actionbar { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
.upload-micro { margin-top: calc(var(--s-1) * -1); }
.hero-trust { margin-top: var(--s-2); }
.wait-photo { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); color: var(--g2); font-size: var(--fs-small); line-height: var(--lh-small); }
.wait-photo img { width: 56px; height: 72px; object-fit: cover; border-radius: var(--r-s); }
@media (min-width: 768px) {
  .screen.narrow .actionbar { margin-left: 0; margin-right: 0; }
  .pick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; gap: var(--s-5); }
  .pick-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 880px; }
}
.lead-list strong::after { content: ":"; }

/* ---- customer-craft flow fixes ---- */
.mode-ribbon { position: fixed; top: 0; right: 0; z-index: 50; padding: 0 var(--s-3); background: var(--ink); color: var(--bg); font-size: var(--fs-small); line-height: var(--lh-small); border-bottom-left-radius: var(--r-s); opacity: .8; pointer-events: none; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; }
.check { min-height: 44px; padding: var(--s-2) 0; }
.check input, .wipe-range { font-size: var(--fs-body); }
.pick .link { min-height: 44px; padding: var(--s-2) 0; }
.ai-note { margin-top: var(--s-3); }
.wipe-cap { position: absolute; left: 50%; bottom: var(--s-3); transform: translateX(-50%); z-index: 3; width: max-content; max-width: calc(100% - var(--s-5)); padding: var(--s-1) var(--s-4); border-radius: var(--r-pill); background: var(--scrim); color: var(--ink); font-size: var(--fs-small); line-height: var(--lh-small); text-align: center; pointer-events: none; }
.cta-note { flex: 1 1 100%; margin: 0; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--g2); }
.cta-note:empty { display: none; }
.actionbar { flex-wrap: wrap; }
.pay-sum { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-5); padding: var(--s-3); background: var(--paper); border-radius: var(--r-m); }
.pay-thumb { width: 64px; height: 85px; object-fit: cover; border-radius: var(--r-s); flex: none; }
.pay-sum b { display: block; }
.pay-sum span { display: block; color: var(--g2); font-size: var(--fs-small); line-height: var(--lh-small); }
.pay-sum .pay-total { color: var(--ink); font-weight: 600; font-size: var(--fs-body); line-height: var(--lh-body); }
.trust { list-style: none; display: grid; gap: var(--s-2); margin-top: var(--s-5); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-m); }
.trust li { display: flex; gap: var(--s-3); align-items: center; }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--ink); flex: none; }
.trust li:empty { display: none; }
/* phone: the primary sits at the bottom of the screen (thumb zone) even when the screen is short */
@media (max-width: 767px) {
  .screen:has(> .actionbar) { display: flex; flex-direction: column; min-height: calc(100svh - 170px); }
  .screen > .actionbar { margin-top: auto; }
  .screen:has(> .actionbar) > :nth-last-child(2) { margin-bottom: var(--s-6); }
  .review .rev-side { order: -1; }
  .rev-thumb .room { max-width: 230px; }
  .review .trust { margin-top: var(--s-3); }
}
html { scroll-padding-bottom: 110px; }
.review .rev-main > .rows { margin-top: 0; }
@media (min-width: 768px) { .review .rev-side { position: sticky; top: var(--s-4); } }
picture { display: contents; }
@media (min-width: 768px) {
  .review .rows > div { padding: var(--s-2) 0; }
  .review .notice { margin-top: var(--s-4); padding: var(--s-3) var(--s-5); }
  .review .pair { margin-top: var(--s-4); }
  .review .check { margin-top: var(--s-3); }
  .review.layout2 { margin-top: var(--s-4); }
}
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.progress[hidden] { display: flex !important; visibility: hidden; }   /* keep its 44 px: showing it later would push the whole screen down (CLS 0,53 on the choose screen) */

/* ---- merged screens (round 2): name on the wait screen, product + size together, summary above the address ---- */
.name-card { margin-top: var(--s-5); padding: var(--s-4) var(--s-5); background: var(--paper); border-radius: var(--r-l); max-width: 34rem; }
.name-card .check { margin-top: var(--s-2); }
.name-card .input { background: var(--bg); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.seg-btn { min-height: 48px; padding: 0 var(--s-2); border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg); font: 600 var(--fs-small)/var(--lh-small) var(--font); color: var(--ink); cursor: pointer; transition: box-shadow .18s var(--ease), border-color .18s var(--ease); }
.seg-btn:hover { border-color: var(--ink); }
.seg-btn[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
#panel .hint-line { margin-top: var(--s-3); }
#panel .opts { margin-top: var(--s-3); }
.extras { margin-top: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0 var(--s-4); }
.extras summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; font-weight: 600; }
.extras[open] { padding-bottom: var(--s-4); }
.extras .rows { margin-top: var(--s-2); }
.rev-side .rows { margin-top: var(--s-3); }
.rev-main > .notice { margin-top: 0; }
@media (min-width: 768px) {
  .review.layout2 { grid-template-columns: 1fr 22rem; }
  .rev-side { grid-column: 2; grid-row: 1; }
  .rev-main { grid-column: 1; grid-row: 1; }
}
#sum { display: grid; line-height: var(--lh-small); }
@media (max-width: 767px) {
  /* the pinned wall must leave room for the sizes under it: a smaller room, thinner room strip */
  .screen[data-screen="formaat"] .stage-room .room, .screen[data-screen="formaat"] .rooms { max-width: 250px; margin-inline: auto; }
  .screen[data-screen="formaat"] .rooms button { aspect-ratio: auto; height: 44px; }
  .screen[data-screen="formaat"] .layout2 { margin-top: var(--s-3); gap: var(--s-3); }
  .screen[data-screen="formaat"] > h1 { font-size: var(--fs-heading); line-height: var(--lh-heading); }
}
@media (min-width: 768px) { .review .rev-thumb { margin-top: 0; } .rev-side .rows .link { white-space: nowrap; } }

/* more breeds (landing, /kat/ and /hond/) */
.more .lead { margin-top: var(--s-3); max-width: 40rem; }
.more-grid { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 72vw; gap: var(--s-4); margin-top: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-3); }
.more-grid li { scroll-snap-align: start; }
.more-grid figure { display: grid; gap: var(--s-2); }
.more-grid picture img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-l); background: var(--paper); }
.more-grid figcaption { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--g2); }
.more-grid figcaption b { color: var(--ink); font-weight: 600; margin-right: var(--s-2); }
@media (min-width: 768px) { .more-grid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; max-width: 1000px; } }
@media (max-width: 480px) { .prose .company div { grid-template-columns: 1fr; gap: 0; } }
