/* The paperback's QR pages: the hidden gift, the review ask, the review chooser.
   One lime band per page, cream for the ask, ink actions. Built to fit a phone screen without scrolling. */
.pg-39 { background: var(--lime); }
.pg-39 main { background: var(--cream); }
.pg-39 .top { background: var(--lime); }
.q-band { background: var(--lime); color: var(--on-lime); padding-block: 14px 40px; }
.q-band .h1 { font-size: clamp(42px, 11.6vw, 92px); color: #fff; }
.q-lede { margin-top: 16px; font-size: clamp(18px, 4.8vw, 22px); line-height: 1.42; font-weight: 520; max-width: 30em; }
.q-lede b { font-weight: 700; }
.q-band .q-lede, .g-form, .c-q, .c-note { color: var(--ink); } /* small text on lime is ink: white only passes at headline size */

/* Gift page: copy, the guide, the form */
.g-in { display: grid; gap: 26px; }
.g-pic, .a-pic { overflow: hidden; border-radius: var(--r-lg); }
.g-pic img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; animation: q-settle 1600ms var(--ease-out) both; }
.g-form { display: grid; gap: 14px; max-width: 30rem; }
.g-h { font-size: clamp(26px, 7vw, 34px); letter-spacing: -0.03em; line-height: 1.08; color: #fff; margin-bottom: 4px; }
.fld { display: grid; gap: 7px; font-size: 15px; font-weight: 600; }
.fld input { width: 100%; min-height: 56px; padding: 14px 16px; border: 2px solid transparent; border-radius: var(--r-md); background: #fff; color: var(--ink); font: 500 17px/1.2 var(--font); transition: border-color 160ms ease; }
.fld input:focus { outline: none; border-color: var(--ink); }
.fld input[aria-invalid="true"] { border-color: var(--chili); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* spam trap field, never seen; taste-skill-ignore */
.cap:empty { display: none; }
.g-send { margin-top: 6px; --cta-bg: var(--ink); --cta-text: var(--cream); min-height: 60px; font-size: 18px; }
.g-send[aria-busy="true"] { pointer-events: none; }
.g-send .lbl { transition: opacity 200ms ease, filter 200ms ease; }
.g-send[aria-busy="true"] .lbl { opacity: 0.7; filter: blur(1px); }
.g-msg { font-size: 16px; font-weight: 650; }
.g-msg:empty { display: none; }
.g-fine { font-size: 14px; line-height: 1.45; }
.g-note { margin-top: -6px; font-size: 14px; line-height: 1.4; }
.g-copy .q-lede + .q-lede { margin-top: 10px; }
.g-copy u { text-decoration-thickness: 0.08em; text-underline-offset: 0.12em; }

/* Ask page: the guide sits beside the answer, a reminder of what they were just given */
.a-ask { background: var(--cream); padding-block: 28px 48px; }
.a-box { max-width: 40rem; }
.a-box h2 { font-size: clamp(26px, 7.4vw, 44px); letter-spacing: -0.03em; line-height: 1.06; }
.a-box p { margin-top: 12px; font-size: 18px; line-height: 1.45; }
.a-box p.a-aside { margin-top: 8px; font-size: 16px; color: var(--text-muted); }
.a-row { display: grid; grid-template-columns: 1.45fr 1fr; gap: 12px; align-items: center; margin-top: 22px; }
.a-btns { display: grid; gap: 10px; }
.a-pic img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; animation: q-settle 1600ms var(--ease-out) 200ms both; }
.a-btns .btn { min-height: 58px; padding: 8px 14px; font-size: 17px; gap: 8px; white-space: normal; text-align: center; line-height: 1.15; }
.a-btns .no { font-size: 15px; font-weight: 560; }
.yes { --cta-bg: var(--ink); --cta-text: var(--cream); position: relative; overflow: hidden; isolation: isolate; }
.yes::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%; background: rgba(255, 255, 255, 0.22); transform: translateX(-170%) skewX(-20deg); pointer-events: none; animation: q-sheen 3.6s var(--ease-in-out) 1.6s infinite; }
.yes .em { display: inline-block; transform-origin: 60% 80%; animation: q-thumb 3.6s var(--ease-out) 1.6s infinite; }
.no { --cta-bg: transparent; --cta-text: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.a-done { transition: opacity 260ms var(--ease-out), filter 260ms var(--ease-out), transform 260ms var(--ease-out); }
.a-done.in-start { opacity: 0; filter: blur(2px); transform: translateY(8px); }
.a-done .link { color: var(--lime-ink); }
@keyframes q-sheen { 0% { transform: translateX(-170%) skewX(-20deg); } 32%, 100% { transform: translateX(400%) skewX(-20deg); } }
@keyframes q-thumb { 0%, 22%, 44%, 100% { transform: rotate(0); } 30% { transform: rotate(-14deg) scale(1.08); } 37% { transform: rotate(6deg); } }

/* Chooser page */
.c-pic { display: none; }
.c-note { margin-top: 18px; max-width: 24rem; font-size: 16px; line-height: 1.45; font-weight: 520; }
.c-q { margin-top: 18px; font-size: clamp(22px, 6vw, 30px); letter-spacing: -0.025em; line-height: 1.15; }
.c-btns { display: grid; gap: 12px; margin-top: 26px; max-width: 26rem; }
.pick { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 0 22px; border-radius: 999px; text-decoration: none; font: 640 19px/1 var(--font); letter-spacing: -0.01em; -webkit-tap-highlight-color: transparent; transition: transform 160ms var(--ease-out); }
.pick:active { transform: scale(0.97); }
.pick .arr { margin-left: auto; transition: transform 200ms var(--ease-out); }
.pick.tt { background: var(--ink); color: var(--cream); }
.pick.az { background: #fff; color: var(--ink); }
.pick.az img { width: 104px; height: auto; margin-top: 9px; }

/* Arrival: heading, then text, then the picture and the action */
.q-in { animation: q-rise 560ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 70ms + 60ms); }
@keyframes q-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes q-fade { from { opacity: 0; } }
@keyframes q-settle { from { transform: scale(1.07); } }

@media (hover: hover) and (pointer: fine) {
  .pick:hover { transform: translateY(-2px); }
  .pick:hover .arr { transform: translateX(4px); }
}

@media (min-width: 900px) {
  .q-band { padding-block: 48px 88px; }
  .g-in { grid-template-columns: 1fr 1fr; grid-template-areas: "copy pic" "form pic"; column-gap: 64px; row-gap: 36px; align-items: start; }
  .g-copy { grid-area: copy; } .g-pic { grid-area: pic; align-self: center; } .g-form { grid-area: form; }
  .g-pic img { aspect-ratio: auto; }
  .pg-39 .top .wrap { height: 76px; }
  .pg-pick .h1 { font-size: 72px; }
  .pg-pick .c-in { grid-template-columns: 1.5fr 1fr; }
  .a-box#ask { max-width: none; display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
  .a-row { gap: 24px; margin-top: 0; }
  .pg-ask .h1 { font-size: 104px; }
  .pg-gift .h1 { font-size: 80px; }
  .pg-ask .q-band { padding-block: 32px 56px; }
  .a-ask { padding-block: 48px 96px; }
  .a-btns .btn { font-size: 19px; min-height: 64px; }
  .a-btns .no { font-size: 17px; }
  .c-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
  .c-pic { display: block; }
  .c-pic { justify-self: center; }
  .c-pic img { width: min(100%, 340px); height: auto; border-radius: 4px 8px 8px 4px; transform: rotate(3deg); }
  .a-ask { padding-block: 64px 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .q-in { animation-name: q-fade; animation-duration: 240ms; }
  .g-pic img, .a-pic img { animation: none; }
  .yes::after, .yes .em { animation: none; }
  .yes::after { display: none; }
  .a-done.in-start { transform: none; filter: none; }
}
