/* ==========================================================================
   Bye Bye Junk v2: quote page only
   --------------------------------------------------------------------------
   Without JS this is one long readable form: every step shows, the road and
   step buttons stay hidden. quote-ui.js sets [data-live] on the form, hides
   the steps that are not current, and un-hides the road.
   ========================================================================== */

.quote {
  position: relative; overflow: clip; background: var(--paper-2);
  padding: calc(var(--hh) + clamp(1.4rem, 3vw, 3rem)) 0 clamp(3.5rem, 8vw, 7rem);
}
.quote-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; position: relative; }

/* intro rise (CSS only, so there is no flash and no-JS stays readable) */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.motion-on .rise { animation: rise .85s var(--ease-out) backwards; animation-delay: calc(var(--d, 0) * 1ms); }

/* ---------- left: Hank + reassurance ---------- */
.side { position: relative; padding-bottom: 0; }
.side-eyebrow { color: var(--rust); margin-bottom: .7rem; }
.side-title {
  font-size: clamp(3rem, 13.4vw, 4.6rem); line-height: .9; text-transform: uppercase; text-wrap: balance;
  color: var(--ink); --mis: var(--orange); margin-bottom: 1.1rem;
}
.promises { display: grid; gap: .55rem; margin-bottom: .6rem; }
.promises li {
  position: relative; padding-left: 2.1rem; font: 600 1.02rem/1.3 var(--body);
}
.promises li::before {
  content: ""; position: absolute; left: 0; top: .02rem; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  border: 2.5px solid var(--ink); background: var(--yellow) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12.5l4 4 8-9' fill='none' stroke='%230E2233' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 78% no-repeat;
}

.hank-stage { display: none; } /* phone: no clipped sliver; the road is the progress cue there */
.hank { position: absolute; left: 0; top: 0; width: 100%; height: auto; transform-origin: 50% 100%; }
.motion-on .hank { animation: sway 3.4s ease-in-out infinite alternate; }
@keyframes sway { from { rotate: -1.8deg; } to { rotate: 1.8deg; } }
.board, .twinkle { display: none; }

/* ---------- the card ---------- */
.qcard-wrap { position: relative; z-index: 2; }
.qcard {
  container: qcard / inline-size;
  position: relative; background: var(--paper); border: 3px solid var(--ink); border-radius: 26px;
  box-shadow: 7px 7px 0 var(--ink);
  padding: clamp(1.1rem, 3.4vw, 2.5rem) clamp(1rem, 3.4vw, 2.5rem) clamp(1.3rem, 3.4vw, 2.5rem);
  scroll-margin-top: calc(var(--hh) + 12px);
}

/* ---------- progress road ---------- */
.progress { margin: 0 0 1.3rem; padding-bottom: .9rem; border-bottom: 3px dashed rgba(14, 34, 51, .22); }
.road-run { --tx: 17px; --prog: 0; position: relative; height: 66px; overflow-x: clip; }
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; border-radius: 999px; background: var(--ink); overflow: hidden; }
.road::after {
  content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 3px; margin-top: -1.5px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 12px, transparent 12px 24px);
}
.road-fill { position: absolute; inset: 0; background: var(--blue); transform-origin: left center; transform: scaleX(var(--prog)); transition: transform var(--drive, .9s) var(--ease-io); }
.truck {
  position: absolute; left: 0; bottom: 3px; width: 76px; height: auto; z-index: 2;
  translate: calc(var(--tx) - 38px) 0; scale: var(--flip, 1) 1;
  transition: translate var(--drive, .9s) var(--ease-io);
}
.truck.is-driving { animation: bob .16s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-2.5px); } }
.puff { position: absolute; bottom: 8px; left: 0; width: 38px; height: auto; pointer-events: none; z-index: 1; }
.motion-off .road-fill, .motion-off .truck { transition: none; }

/* three steps; the right 40px belongs to the flag, which is the finish line and not a step */
.stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: .7rem; padding-right: 40px; }
.stop { display: flex; flex-direction: column; align-items: center; gap: .35rem; min-width: 0; text-align: center; }
.stop-n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--paper); font: 400 1.1rem/1 var(--display);
  transition: background-color .3s, transform .45s cubic-bezier(.3, 1.7, .5, 1);
}
.stop-t { font: 600 .82rem/1.15 var(--body); letter-spacing: .04em; text-transform: uppercase; color: rgba(14, 34, 51, .72); }
.stop.is-current .stop-n { background: var(--yellow); transform: scale(1.14); }
.stop.is-current .stop-t { color: var(--ink); }
.stop.is-done .stop-n {
  font-size: 0; background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12.5l4 4 8-9' fill='none' stroke='%23FFF4E1' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 70% no-repeat;
}
.stop.is-done .stop-t { color: var(--ink); }
/* the checkered flag stands at the end of the road: the truck drives under it when the request is checked */
.flag { position: absolute; right: 14px; bottom: 18px; width: 30px; height: 46px; pointer-events: none; z-index: 1; transform-origin: 0 100%; }
.flag::before { content: ""; position: absolute; left: 0; bottom: 0; width: 4px; height: 100%; border-radius: 2px; background: var(--ink); }
.flag i {
  position: absolute; left: 3px; top: 0; width: 26px; height: 18px; border: 3px solid var(--ink); border-radius: 2px 5px 5px 2px;
  background: conic-gradient(var(--ink) 25%, var(--paper) 0 50%, var(--ink) 0 75%, var(--paper) 0) 0 0 / 10px 10px; transform-origin: 0 50%;
}
.road-note { position: absolute; left: 2px; top: 4px; font-size: 1.2rem; line-height: 1; color: var(--blue); rotate: -2deg; opacity: 0; transition: opacity .2s; pointer-events: none; }
.road-run.is-busy .road-note { opacity: 1; }
.motion-on .road-run.is-finished .flag i { animation: flag-wave .9s ease-in-out 1 both; }
@keyframes flag-wave { 0%, 100% { transform: skewY(0) scaleX(1); } 20% { transform: skewY(-12deg) scaleX(.86); } 45% { transform: skewY(9deg) scaleX(1.04); } 70% { transform: skewY(-5deg) scaleX(.94); } }

/* ---------- steps ---------- */
.step + .step { margin-top: 2.6rem; padding-top: 2.2rem; border-top: 3px dashed rgba(14, 34, 51, .22); }
.qform[data-live] .step + .step { margin-top: 0; padding-top: 0; border-top: 0; }
.step-head { margin-bottom: 1.2rem; }
.step-no { margin: 0 0 .5rem; font: 600 .85rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--rust); }
.step-head h2 { font-size: clamp(2.3rem, 7vw, 3.1rem); line-height: .9; text-transform: uppercase; --mis: var(--orange); }
.step-head h2:focus-visible { outline-offset: 6px; }
.step-lede { font: 600 1.15rem/1.35 var(--body); margin: -.2rem 0 1.4rem; max-width: 38ch; }
.note { margin: 0 0 1.2rem; padding: .8rem 1rem; border: 3px solid var(--ink); border-radius: 14px; background: var(--yellow); font-weight: 600; }

/* checking: the button stays put, reads "Checking..." and looks pressed in */
.qform[aria-busy="true"] #submit-btn:disabled { --bg: var(--yellow); cursor: progress; transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--sh); }
.qform[aria-busy="true"] #submit-btn::after { content: ""; width: .9em; height: .9em; border: 3px solid var(--ink); border-right-color: transparent; border-radius: 50%; }
.motion-on .qform[aria-busy="true"] #submit-btn::after { animation: spin .7s linear infinite; }
@keyframes spin { to { rotate: 1turn; } }

/* ---------- fields ---------- */
.field { margin: 0 0 1.35rem; padding: 0; border: 0; min-width: 0; }
.label { display: block; padding: 0; margin-bottom: .45rem; font: 600 1.02rem/1.25 var(--body); }
.req, .opt {
  display: inline-block; margin-left: .35em; padding: .08em .5em; border-radius: 999px; vertical-align: .08em;
  font: 600 .68rem/1.5 var(--body); letter-spacing: .1em; text-transform: uppercase;
}
.req { background: var(--ink); color: var(--paper); }
.opt { border: 2px solid rgba(14, 34, 51, .5); color: rgba(14, 34, 51, .78); line-height: 1.3; }
.input {
  display: block; width: 100%; min-height: 3.2rem; padding: .7rem 1rem;
  border: 3px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink);
  font: 400 1rem/1.4 var(--body); box-shadow: 3px 3px 0 var(--ink); appearance: none; -webkit-appearance: none;
  transition: box-shadow .18s var(--ease-out), background-color .15s, transform .18s var(--ease-out);
}
.input::placeholder { color: rgba(14, 34, 51, .55); }
.input:focus { background: #FFFBE6; }
.input:focus-visible { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.textarea { min-height: 7.6rem; resize: vertical; }
input[type="date"].input { min-height: 3.2rem; }
.help { margin: .5rem 0 0; font-size: .92rem; line-height: 1.4; color: rgba(14, 34, 51, .82); max-width: 54ch; }
.field-error {
  display: flex; align-items: flex-start; gap: .5rem; margin: .55rem 0 0;
  font: 600 .96rem/1.35 var(--body); color: var(--rust);
}
.field-error[hidden] { display: none; }
.field-error::before {
  content: "!"; flex: none; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; margin-top: .02rem;
  background: var(--rust); color: var(--paper); font: 400 .95rem/1 var(--display);
}
[aria-invalid="true"].input { border-color: var(--rust); box-shadow: 3px 3px 0 var(--rust); background: #FFF1EC; }
.group-note { margin: 0 0 .7rem; font-size: .98rem; }
.row-2 { display: grid; gap: 0 1.1rem; grid-template-columns: minmax(0, 1fr); }
@container qcard (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.contact-error { margin-top: -.6rem; margin-bottom: 1.3rem; }

/* ---------- service tiles ---------- */
.tiles { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin-top: .2rem; }
.tile { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tile-input { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.tile-card {
  position: relative; display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); align-items: center; gap: .9rem;
  padding: .8rem 1rem .8rem .8rem; border: 3px solid var(--ink); border-radius: 22px; background: #fff;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .25s, color .25s;
}
.tile-img { width: 100%; height: auto; transform-origin: 50% 100%; transition: transform .35s var(--ease-out); }
.tile-title { display: block; font: 400 clamp(1.5rem, 5.4vw, 1.9rem)/.95 var(--display); text-transform: uppercase; letter-spacing: -.005em; margin-bottom: .35rem; }
.tile-sub { display: block; font: 600 .96rem/1.3 var(--body); }
.tile:hover .tile-card { transform: translate(-2px, -3px); box-shadow: 8px 9px 0 var(--ink); }
.tile:hover .tile-img { transform: rotate(-4deg) scale(1.04); }
.tile:active .tile-card { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); transition-duration: .06s; }
.tile-input:focus-visible ~ .tile-card { outline: 3px solid var(--ink); outline-offset: 4px; }
.tile-tick {
  position: absolute; top: -.8rem; right: -.5rem; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--yellow) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12.5l4 4 8-9' fill='none' stroke='%230E2233' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 70% no-repeat;
  transform: scale(0) rotate(-30deg); transition: transform .45s cubic-bezier(.3, 1.7, .5, 1);
}
.tile-input:checked ~ .tile-card .tile-tick { transform: none; }
.tile-blue .tile-input:checked ~ .tile-card { background: var(--blue); color: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
.tile-orange .tile-input:checked ~ .tile-card { background: var(--orange); color: var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.tile-input:checked ~ .tile-card .tile-img { transform: scale(1.06); }
/* the characters wave when you hover or tab to a tile, and sway softly once picked */
.motion-on .tile-input:checked ~ .tile-card .tile-img { animation: tile-sway 2.6s ease-in-out infinite alternate; }
.motion-on .tile-input:focus-visible ~ .tile-card .tile-img { animation: tile-wave .5s ease-in-out infinite alternate; }
@media (hover: hover) { .motion-on .tile:hover .tile-input ~ .tile-card .tile-img { transform: scale(1.05); animation: tile-wave .5s ease-in-out infinite alternate; } }
@keyframes tile-wave { from { rotate: -5deg; } to { rotate: 6deg; } }
@keyframes tile-sway { from { rotate: -2deg; } to { rotate: 2.4deg; } }
.field.is-invalid .tile-card { border-color: var(--rust); box-shadow: 5px 5px 0 var(--rust); }
@container qcard (min-width: 540px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .tile { display: flex; }
  .tile-card { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: .5rem; padding: 1rem 1.1rem 1.2rem; text-align: left; }
  .tile-img { width: auto; height: clamp(104px, 11vw, 132px); margin: 0 auto; }
  .tile-title { font-size: clamp(1.7rem, 3vw, 2.2rem); }
}

/* ---------- photos ---------- */
.drop {
  position: relative; display: grid; justify-items: center; gap: .8rem; text-align: center;
  padding: 1.6rem 1.2rem 1.4rem; border: 3px dashed var(--ink); border-radius: 22px; background: #fff;
  transition: background-color .2s, transform .25s var(--ease-out), border-color .2s;
}
.drop.is-over { background: #FFF1B8; transform: scale(1.015); border-style: solid; }
.drop:focus-within { outline: 3px solid var(--ink); outline-offset: 4px; }
.drop-icon { width: 58px; height: 58px; }
.motion-on .drop.is-over .drop-icon { animation: hop .5s var(--ease-out) infinite alternate; }
@keyframes hop { to { transform: translateY(-8px) rotate(-6deg); } }
.drop-title { margin: 0; font: 400 clamp(1.7rem, 5vw, 2.2rem)/1 var(--display); text-transform: uppercase; }
.drop .help { margin-top: 0; text-align: center; }
.only-coarse { display: none; }
@media (pointer: coarse) { .only-fine { display: none; } .only-coarse { display: inline; } }
.drop.has-files { padding: .9rem 1rem; gap: .5rem; }
.drop.has-files .drop-icon, .drop.has-files .drop-title { display: none; }
.drop.is-full { background: var(--paper-2); border-style: solid; }
.drop.is-full #pick-btn { opacity: .5; pointer-events: none; }
.file-input { display: block; width: 100%; }
.qform[data-live] .file-input { position: absolute; width: 1px; height: 1px; margin: -1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.qform:not([data-live]) .drop #pick-btn, .qform:not([data-live]) .drop .only-fine, .qform:not([data-live]) .drop .only-coarse { display: none; }
.qform:not([data-live]) .photo-count { display: none; }
.photo-count { margin: .8rem 0 0; font: 600 .98rem/1.3 var(--body); }
.photo-notes { margin-top: .8rem; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.6rem, 7.8rem)); gap: 1.1rem .9rem; margin-top: 1rem; padding: .3rem .2rem 0; }
.photos li { position: relative; min-width: 0; }
.photos li:nth-child(odd) .ph { rotate: -2.2deg; }
.photos li:nth-child(even) .ph { rotate: 1.8deg; }
.ph { display: block; background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: .35rem .35rem .3rem; box-shadow: 4px 4px 0 var(--ink); }
.ph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--paper-2); }
.ph-name { display: block; margin-top: .3rem; font: 600 .78rem/1.2 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-name small { display: block; font-weight: 400; color: rgba(14, 34, 51, .75); font-size: .74rem; }
/* the button is a 44px square (a real touch target); the orange circle you see is drawn inside it */
.ph-x {
  position: absolute; top: -1.05rem; right: -.95rem; z-index: 2; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer;
}
.ph-x::before {
  content: ""; position: absolute; inset: .325rem; border-radius: 50%; border: 3px solid var(--ink); background: var(--orange);
  box-shadow: 2px 2px 0 var(--ink); transition: transform .15s var(--ease-out);
}
.ph-x svg { position: absolute; inset: 0; margin: auto; width: 1.15rem; height: 1.15rem; }
.ph-x:hover::before { transform: scale(1.12) rotate(8deg); }
.ph-x:active::before { transform: scale(.92); }

/* ---------- consent rows ---------- */
.consent { display: grid; gap: .8rem; }
.consent .label { margin-bottom: .1rem; }
.check {
  display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; cursor: pointer;
  padding: .85rem 1rem; border: 3px solid var(--ink); border-radius: 16px; background: #fff;
  transition: background-color .2s, box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.check:hover { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--ink); }
.check:has(input:checked) { background: #FFE9A8; }
.check strong { display: block; font-weight: 600; line-height: 1.3; }
.check-sub { display: block; margin-top: .15rem; font-size: .92rem; line-height: 1.35; color: rgba(14, 34, 51, .85); }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; width: 1.7rem; height: 1.7rem; margin: .05rem 0 0;
  border: 3px solid var(--ink); border-radius: 8px; background: #fff; cursor: pointer;
}
.check input:checked {
  background: var(--orange) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5.5 12.5l4.2 4.2 8.8-9.4' fill='none' stroke='%230E2233' stroke-width='3.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 82% no-repeat;
}
.check:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.check input:focus-visible { outline: none; }
.consent .field-error { margin-top: -.2rem; }

/* ---------- step buttons ---------- */
.step-actions { display: flex; flex-direction: column-reverse; gap: .9rem; margin-top: 2rem; }
.step-actions .btn { width: 100%; min-height: 3.5rem; }
.btn-go { font-size: 1.2rem; }
.qform[data-live] .step-actions { margin-top: 1.7rem; }
.qform:not([data-live]) [data-next], .qform:not([data-live]) [data-back] { display: none; }
.qform:not([data-live]) .step-actions { margin-top: 1rem; }
@container qcard (min-width: 460px) {
  .step-actions { flex-direction: row; justify-content: space-between; align-items: center; }
  .step-actions .btn { width: auto; min-width: 11rem; }
  .step:first-of-type .step-actions { justify-content: flex-end; }
}

.send-status {
  margin: 0 0 1rem; padding: .9rem 1.1rem; border: 3px solid var(--ink); border-radius: 16px; background: var(--yellow); font-weight: 600;
}
.send-status.is-error { background: #FFE0D6; border-color: var(--rust); }
.send-status .btn { margin-top: .7rem; }

/* ---------- result panel ---------- */
.result { position: relative; }
.result-head { position: relative; padding-right: 0; }
.result h2 { font-size: clamp(2.3rem, 7vw, 3.5rem); line-height: .92; text-transform: uppercase; --mis: var(--orange); margin: 0 0 1rem; }
.result h2 .sub { display: block; margin-top: .45rem; font-size: .62em; color: var(--blue); text-shadow: none; }
.result h2:focus-visible { outline-offset: 6px; }
.result-lead { font: 600 1.1rem/1.4 var(--body); max-width: 46ch; margin-bottom: 1.2rem; }
.stamp-wrap { position: relative; display: block; width: max-content; isolation: isolate; margin: 3.5rem auto 3.6rem; }
.burst { position: absolute; left: 50%; top: 50%; width: 190%; max-width: none; height: auto; translate: -50% -50%; rotate: -8deg; z-index: -1; pointer-events: none; }
.stamp {
  display: block; width: min-content; margin: 0; padding: .35rem .85rem .4rem; border: 4px solid var(--rust); border-radius: 10px; background: var(--paper);
  font: 400 clamp(2.2rem, 9vw, 2.7rem)/.95 var(--display); letter-spacing: .05em; text-align: center; text-transform: uppercase; color: var(--rust);
  outline: 2px solid var(--rust); outline-offset: 3px; rotate: -5deg; box-shadow: 5px 5px 0 var(--ink);
}
.is-received .stamp { color: var(--blue); border-color: var(--blue); outline-color: var(--blue); }
.ticket {
  position: relative; margin: 1.8rem 0 .4rem; padding: .4rem 1.1rem .7rem; border: 3px dashed var(--ink); border-radius: 18px; background: #FFFDF7;
}
.sum-group { padding: .9rem 0 .5rem; }
.sum-group + .sum-group { border-top: 2px dashed rgba(14, 34, 51, .25); }
.sum-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.sum-head h3 { font-size: 1.35rem; line-height: 1; text-transform: uppercase; color: var(--blue); }
.link-btn {
  padding: .35rem .2rem; border: 0; background: none; cursor: pointer; font: 600 .95rem/1 var(--body);
  text-decoration: underline; text-decoration-thickness: .14em; text-underline-offset: .2em; text-decoration-color: var(--orange);
}
.link-btn:hover { text-decoration-color: currentColor; }
.sum-group dl { display: grid; gap: .5rem 1rem; margin: 0; }
.sum-group .row { display: grid; gap: .1rem; }
.sum-group dt { font: 600 .76rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: rgba(14, 34, 51, .72); }
.sum-group dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; }
.sum-group dd .muted { font-weight: 400; color: rgba(14, 34, 51, .78); }
@container qcard (min-width: 520px) {
  .sum-group .row { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; }
}
.result-actions { display: flex; flex-direction: column; gap: .9rem; }
.result-actions .btn { width: 100%; min-height: 3.5rem; }
@container qcard (min-width: 520px) { .result-actions { flex-direction: row; flex-wrap: wrap; } .result-actions .btn { width: auto; } }
.result-foot { margin: 1.4rem 0 0; font-size: 1.5rem; color: var(--rust); rotate: -2deg; }

/* wide card: heading on the left, the slam sticker on the right */
@container qcard (min-width: 560px) {
  .result-head { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; column-gap: .8rem; align-items: center; }
  .result-head > * { grid-column: 1; }
  .result-head > .stamp-wrap { grid-column: 2; grid-row: 1 / span 3; justify-self: center; margin: 0; }
  .result h2 { font-size: clamp(2rem, 6.7cqi, 2.6rem); }
  .stamp { font-size: 2.7rem; }
}

/* ---------- desktop: sticky Hank side ---------- */
@media (min-width: 900px) {
  .quote-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 4.6vw, 5rem); align-items: start; }
  .side {
    position: sticky; top: calc(var(--hh) + 1.5rem); display: flex; flex-direction: column;
    max-height: calc(100svh - var(--hh) - 2rem);
  }
  .side-title { font-size: clamp(3rem, min(5.6vw, 9.4svh), 5.8rem); margin-bottom: 1.3rem; }
  .promises { gap: .7rem; margin-bottom: 0; }
  .promises li { font-size: 1.1rem; padding-left: 2.3rem; }
  .promises li::before { width: 1.65rem; height: 1.65rem; }
  .hank-stage {
    display: block; position: relative; width: 100%; height: clamp(220px, 36svh, 360px); margin-top: 1.4rem;
    overflow: visible; pointer-events: none;
  }
  .hank { left: auto; right: 7%; top: auto; bottom: 0; width: auto; height: 100%; }
  .board, .twinkle { display: block; }
  .board {
    position: absolute; left: 3%; bottom: 6%; height: 74%; aspect-ratio: 4 / 5; rotate: -8deg; z-index: 0;
    padding: .55rem .5rem .5rem; background: var(--kraft); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--ink);
  }
  .board-clip { position: absolute; left: 50%; top: -.8rem; width: 38%; height: 1.5rem; translate: -50% 0; background: #C9D2DB; border: 3px solid var(--ink); border-radius: 7px; }
  .board-sheet { height: 100%; padding: 1.1rem .6rem .5rem; background: #FFFDF7; border-radius: 6px; border: 2px solid rgba(14, 34, 51, .35); font-size: clamp(1.05rem, 1.55vw, 1.35rem); line-height: 1.1; }
  .board-sheet p { margin: 0; }
  .board-h { text-transform: uppercase; color: var(--blue); margin-bottom: .25rem !important; letter-spacing: .04em; }
  .tick { display: flex; align-items: center; gap: .5em; line-height: 1.3; }
  .tick .box { position: relative; display: block; flex: none; width: .78em; height: .78em; border: 2px solid var(--ink); border-radius: 3px; background: #fff; }
  /* hand-drawn tick, overshooting its box like a real pencil mark; DrawSVG draws it on */
  .tick svg { position: absolute; left: -.2em; bottom: -.06em; width: 1.3em; height: 1.3em; max-width: none; overflow: visible; opacity: 0; fill: none; stroke: var(--orange); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
  .tick.is-done svg { opacity: 1; }
  .twinkle { position: absolute; width: clamp(34px, 4vw, 58px); height: auto; right: 2%; top: 4%; z-index: 2; }
  .motion-on .twinkle { animation: twinkle 2.6s ease-in-out infinite; }
  @keyframes twinkle { 0%, 100% { transform: scale(.8) rotate(0); opacity: .85; } 50% { transform: scale(1.15) rotate(18deg); opacity: 1; } }
  .qcard { box-shadow: 10px 10px 0 var(--ink); }
}
@media (min-width: 900px) and (max-height: 700px) {
  .hank-stage { height: 190px; margin-top: .8rem; }
  .board-sheet { font-size: .92rem; padding-top: .9rem; }
  .promises { gap: .45rem; }
}
@media (max-width: 899px) {
  .qcard { border-top-left-radius: 26px; }
}
@media (max-width: 420px) {
  .promises li { font-size: .98rem; }
}

/* ---------- phone polish ---------- */
.input, .check, .tile, .drop, .step-actions { scroll-margin-block: 6.5rem; }
@media (max-width: 899px) {
  .side-eyebrow { display: none; }
  .side-title { font-size: clamp(2.7rem, 12.4vw, 4.4rem); margin-bottom: .9rem; }
}

/* Lilita buttons are wider than the old Barlow ones: keep them on one line at 320 where it helps */
@media (max-width: 380px) {
  .tile-card { grid-template-columns: 4.4rem minmax(0, 1fr); gap: .65rem; padding-right: .8rem; }
  .tile-title { font-size: 1.32rem; }
  .stop-t { font-size: .72rem; letter-spacing: .02em; }
  .drop .btn { padding-inline: .7rem; letter-spacing: .03em; font-size: 1.05rem; white-space: nowrap; }
  .step-actions .btn { padding-inline: 1rem; letter-spacing: .03em; font-size: 1.1rem; }
  .result-actions .btn { padding-inline: 1rem; font-size: 1.1rem; }
}
