/* Hootreel — the questionnaire's own styles (form-flow, .contracts/form-flow.md Result 7; journey-questionnaire: stage 1
   of the order journey, eight screens, the five-stage bar, the photos, the saving screen and the read-back, in the look of
   the walk-through the owner approved, research/2026-10-23-order-journey), on a phone first (375 px).
   b.css stays site B's (test/site.test.ts pins it), so everything new to /order lives here; the look follows the
   order-form reference of research/2026-10-20-order-form (v4). Tap targets at least 44×44 CSS px,
   inputs at least 16 px, nothing wider than the screen. index.html loads it for the ticket's stamp. */

/* the home ticket: the stamp reads "Ready in 48 hours" on three lines */
.stamp.ready-in { height: auto; padding-bottom: 8px; }
.stamp.ready-in b + b { margin-top: 2px; }

/* the bar: the wordmark and Close are full-size tap targets */
body.flow .top .mark, body.flow .top .textlink { min-height: 44px; display: inline-flex; align-items: center; }
body.flow .top .textlink { border-bottom: 0; text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 4px; min-width: 44px; justify-content: center; }

/* the journey's bar: "Step 1 of 5 · Your details" and the steps left, a fill of the stages done,
   the five stage names under it and "Question i of 8"; the same on a phone and a computer */
.steps-bar.journey .prog { max-width: 640px; margin: 0 auto; padding: 10px var(--pad) 12px; }
.prog .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 600 13px/1.2 var(--font-display); }
.prog .left { color: var(--brand); white-space: nowrap; }
.prog .pbar { height: 8px; margin-top: 7px; background: var(--blush); border-radius: 9px; overflow: hidden; }
.prog .pbar i { display: block; height: 100%; background: var(--brand); border-radius: 9px; transition: width .3s; }
.steps-bar.journey .prog ol { list-style: none; display: flex; gap: 4px; margin: 6px 0 0; padding: 0; overflow: visible; max-width: none; }
.steps-bar.journey .prog li { flex: 1; min-width: 0; padding: 0; border-radius: 0; background: none; font: 500 10px/1.2 var(--font-body); letter-spacing: 0; color: var(--muted);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps-bar.journey .prog li.done { color: var(--plum); }
.steps-bar.journey .prog li.now { color: var(--plum); background: none; font-weight: 700; }
.prog li button { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; display: block; min-height: 24px; overflow: hidden; text-overflow: ellipsis; }
.prog li button:focus-visible { outline: 2px solid var(--brand); }
.prog .qof { margin: 6px 0 0; font: 600 12px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
/* the one sentence under the bar: what happens now, what comes next */
.say-now { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--paper); border-left: 4px solid var(--brand);
  font: 500 14px/1.4 var(--font-body); color: var(--plum); max-width: 620px; }

/* the screen */
body.flow { overflow-x: hidden; }
.order .wrap { max-width: 640px; }
.order h1 { font-size: 32px; line-height: 1.05; }
.field input[type="text"], .field input[type="email"], .own input, .say input { width: 100%; min-height: 52px; font-size: 16px; }
.say { display: grid; gap: 8px; }
.say button { min-height: 44px; min-width: 44px; }
.say .btn-link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--plum); color: var(--cream); font: 600 15px/1 var(--font-body); cursor: pointer; }
.say .nv-c { display: inline-grid; place-items: center; width: 18px; height: 18px; }
.say .nv-i { width: 14px; height: 14px; fill: currentColor; }
.say [data-nv="playing"] .nv-ip, .say [data-nv="idle"] .nv-ipa, .say [data-nv="loading"] .nv-ipa { display: none; }
.say [data-say-check] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.say [data-say-check][hidden], .say [data-say-fix][hidden] { display: none; }
.say [data-say-fix] { display: grid; gap: 8px; }
.say input.input { font: 500 16px/1.3 var(--font-body); color: var(--plum); background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; }
.say .err { color: var(--brand); font-size: 14px; }
.chip.big { min-width: 52px; font-size: 18px; font-weight: 600; }
.agerow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.agerow .chips { display: contents; }
.agerow input, .field .agerow input[type="text"] { width: 130px; min-height: 52px; text-align: center; font: 500 16px/1.3 var(--font-body); color: var(--plum);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; }
.agerow input.on { border-color: var(--brand); background: #fff; }

/* picture cards, two to a row; a wide card spans both */
.sect { font: 600 12px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 4px 0 10px; }
.cards + .sect, .more + .own, .cards + .own { margin-top: 18px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { position: relative; display: block; width: 100%; padding: 0; border: 3px solid transparent; border-radius: 18px; overflow: hidden;
  background: var(--plum); color: var(--cream); aspect-ratio: 3 / 4; cursor: pointer; text-align: left; font: inherit; }
.card > .slot { position: absolute; inset: 0; }
.card .media-fill { object-position: center top; }
.card .ph { display: none; }
.card .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 28px 12px 10px; background: linear-gradient(transparent, rgba(42, 22, 49, .92));
  font: 600 16px/1.15 var(--font-display); }
.card .cap small { display: block; font: 400 12.5px/1.3 var(--font-body); opacity: .85; margin-top: 3px; }
.card[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--blush); }
.card[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 8px; right: 8px; z-index: 4; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.more { width: 100%; min-height: 56px; margin-top: 14px; border-radius: 16px; border: 2px solid var(--plum); background: var(--paper);
  font: 600 16px var(--font-display); color: var(--plum); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.more::before { content: "+"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--plum); color: var(--cream); font-size: 18px; line-height: 1; }

/* the family's own idea: always open, typing into it picks it */
.own { display: grid; gap: 4px; border-radius: 18px; border: 3px solid transparent; background: linear-gradient(135deg, #3a2142, #5a3466); padding: 16px; color: var(--cream); }
.own.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--blush); }
.own b { font: 600 18px var(--font-display); }
.own span { font-size: 13px; opacity: .85; }
.own input { margin-top: 8px; font: 500 16px/1.3 var(--font-body); color: var(--plum); background: var(--paper); border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 12px; padding: 0 14px; }


/* the family */
.person-row { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }

/* the photos: one slot per person, the child first — the photos in a row with Change and Remove under each, the
   person's name and "Add photo" beside them; the tips; the tick */
.slots { display: grid; gap: 12px; }
.person { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.pf-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pf { margin: 0; display: grid; gap: 6px; align-content: start; min-width: 0; }
.pf img, .pf .pf-img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 12px; background: var(--blush); }
.pf.pending img, .pf.pending .pf-img { opacity: .55; }
.pf figcaption { display: grid; gap: 6px; }
.pf .btn.small { min-height: 44px; width: 100%; padding: 0 6px; font-size: 13px; }
.pf.add { color: var(--plum); font: 600 13px/1.2 var(--font-display); text-align: center; }
.pf.add .pf-img { display: grid; place-items: center; border: 2px dashed var(--line); background: var(--cream); font-size: 30px; color: var(--brand); }
.pf-who h3 { font-size: 18px; }
.pf-who .who { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.upload-btn { position: relative; overflow: hidden; cursor: pointer; }
.upload-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.btn.small.upload-btn { min-height: 44px; }
.tips { background: var(--paper); border: 1px dashed var(--line); border-radius: 14px; padding: 10px 14px; font-size: 14px; color: var(--muted); }
.tips b { color: var(--plum); font-family: var(--font-display); }
.tips p { margin: 4px 0 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.thumbs img { display: block; width: 40px; height: 50px; object-fit: cover; border-radius: 8px; background: var(--blush); }

/* "Saving your order": a spinner while Save's request is on its way; still with reduced motion */
.wait { display: grid; gap: 14px; justify-items: center; text-align: center; margin-top: 18px; }
.spin { width: 64px; height: 64px; border-radius: 50%; border: 6px solid var(--blush); border-top-color: var(--brand); animation: hr-spin 1s linear infinite; }
@keyframes hr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* the read-back of a saved order: each row says what changing it costs now */
.review .cost { display: block; font-style: normal; font-size: 13px; font-weight: 600; color: var(--brand); }
.review label.change { display: inline-flex; align-items: center; }

/* the check */
.review { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.review .rrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 6px 8px 14px; border-top: 1px solid var(--line); }
.review .rrow:first-child { border-top: 0; }
.review .rrow > div { min-width: 0; overflow-wrap: anywhere; }
.review b { display: block; font-weight: 600; }
.review span { color: var(--muted); font-size: 14px; }
.review .change { flex: none; min-height: 44px; min-width: 64px; padding: 0 10px; border: 0; background: none; color: var(--brand);
  font: 600 14px/1 var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.consent { min-height: 44px; }
.consent input { width: 24px; height: 24px; }
.consent a { color: var(--brand); display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle; }

/* Turnstile's check, shown only to a visitor it doubts (appearance interaction-only): just above the bar at the bottom,
   centred, never under it; empty and zero-size for everyone else */
#turnstile-widget { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom));
  z-index: 26; max-width: calc(100% - 24px); }
#turnstile-widget[hidden] { display: none; }
/* the bar at the bottom: Back and Continue, or one button back to the check */
.flowbar .wrap { height: auto; min-height: 78px; padding-top: 12px; padding-bottom: 12px; }
.flowbar .back { min-height: 44px; min-width: 64px; display: inline-flex; align-items: center; background: none; border: 0; padding: 0;
  font: 600 15px/1 var(--font-body); color: var(--muted); cursor: pointer; }
.flowbar .btn { flex: 1; max-width: 360px; }
.flowbar .wrap.one { justify-content: center; }

/* Pay marks under step 5: official files, unaltered, equal height (Apple: "Don't display a mark that's smaller than other
   payment identities"; Google: "Adjust the height to match the other brand identities"). The Google Pay file carries its own
   empty margin around the mark (170 of 742 units each side), so it is drawn larger and pulled in by that margin. */
.pay-tap { display: block; margin-top: 8px; color: var(--plum); font-weight: 600; }
.pay-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.pay-marks img { display: block; height: 30px; width: auto; }
.pay-marks .gpay { height: 55.65px; margin: -12.8px; }
.pay-marks .stripe { height: 26px; }
