/* The homepage, and the page behind the QR code on the business card. A belote table: green baize, a bank card dealt onto it like a playing
   card, paper bills. Sized in em so the whole table scales with the phone. */
.tour {
  --felt: #0f4d3a; --felt-deep: #0a3729; --ivory: #f5f4ec; --sage: #c5d6cb;
  --paper: #fffffb; --type: #14231d; --type-soft: #55665e; --rule: #dfe3dc;
  --red: #c4222f; --brass: #d9b65f;
  --serif: Didot, "Bodoni 72", "Bodoni MT", Georgia, "Noto Serif", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  background: var(--felt); color: var(--ivory);
}
html:has(body.tour) { background: var(--felt); }

/* ---------- the pinned frame: a tall section, and a screen that stays put while it scrolls past ---------- */
.story { position: relative; height: calc(100vh + 10 * 95vh); height: calc(100lvh + 10 * 95svh); }
.frame {
  position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden;
  background: radial-gradient(120% 75% at 50% 32%, #14614a 0%, var(--felt) 55%, var(--felt-deep) 100%);
}
.in { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; height: 100vh; height: 100svh; padding: 0 20px; padding-bottom: env(safe-area-inset-bottom); }

.bar { display: flex; align-items: center; justify-content: space-between; padding: max(10px, env(safe-area-inset-top)) 0 4px; position: relative; z-index: 3; }
.tour .merchant { color: var(--ivory); }
.bar-right { display: flex; align-items: center; gap: 12px; }
.tour .bar-link { color: var(--ivory); font-size: 13px; font-weight: 500; white-space: nowrap; }
.tour .bar-link:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 2px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 26px; }
.tour .foot-links a { color: var(--sage); font-size: 13px; }
.tour .foot-links a:hover { color: var(--ivory); }
.tour .logo { background: var(--paper); color: var(--red); font-family: var(--serif); }
.tour .lang { box-shadow: inset 0 0 0 1px rgba(245, 244, 236, 0.35); }
.tour .lang button { color: var(--sage); }
.tour .lang button.on { background: var(--ivory); color: var(--type); }
.tour .lang button:not(.on):hover { color: var(--ivory); }

.stage { --u: min(calc(100vw / 39), calc(53vh / 40)); position: relative; font-size: var(--u); width: 39em; height: 40em; margin: 0 auto; }
@supports (height: 1svh) { .stage { --u: min(calc(100vw / 39), calc(53svh / 40)); } }
.sprite { position: absolute; left: 50%; top: 50%; will-change: transform, opacity; opacity: 0; }

.captions { position: relative; z-index: 2; margin-top: 6px; }
.cap { position: absolute; inset: 0 0 auto; }
.cap h1, .cap h2 { color: var(--ivory); font-family: var(--serif); font-weight: 400; font-size: 29px; line-height: 1.13; letter-spacing: 0; }
.cap p { margin: 8px 0 0; color: var(--sage); font-size: 15.5px; line-height: 1.42; max-width: 34em; }

.deck { display: flex; align-items: center; justify-content: space-between; height: 56px; position: relative; z-index: 3; }
.dots { display: flex; gap: 5px; }
.dots svg { width: 11px; height: 11px; fill: rgba(245, 244, 236, 0.22); transition: fill 0.2s; }
.dots svg.on { fill: var(--ivory); }
.next { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ivory); color: var(--type); }
.next svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.next:focus-visible, .tour a:focus-visible, .tour .lang button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.next.bob svg { animation: bob 1.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }

/* ---------- the card: an ordinary bank card, with no network's logo on it. The hearts are the visits. ---------- */
.s-card { width: 24em; height: 15.1em; margin: -7.55em 0 0 -12em; z-index: 4; }
.bc {
  position: absolute; inset: 0; overflow: hidden; border-radius: 1.05em; color: #eef0f5;
  background:
    repeating-radial-gradient(circle at 118% -20%, rgba(255, 255, 255, 0.045) 0 0.08em, transparent 0.08em 0.62em),
    radial-gradient(90% 120% at 12% 0%, rgba(120, 150, 215, 0.32), transparent 60%),
    linear-gradient(128deg, #24365f 0%, #182645 46%, #101a33 100%);
  box-shadow: inset 0 0 0 0.05em rgba(255, 255, 255, 0.2), inset 0 0.09em 0.09em rgba(255, 255, 255, 0.16), 0 0.1em 0 #0a1020, 0 0.2em 0.3em rgba(0, 0, 0, 0.35), 0 1.1em 2.4em rgba(0, 0, 0, 0.42);
}
.bc.dealt { animation: deal 0.75s cubic-bezier(0.16, 0.8, 0.24, 1) both; }
@keyframes deal { from { transform: translate(55vw, -70vh) rotate(42deg) scale(0.86); } }
.bc-sheen { position: absolute; top: -20%; bottom: -20%; left: 25%; width: 42%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13) 50%, transparent); will-change: transform; pointer-events: none; }
.bc-bank { position: absolute; left: 1.15em; top: 0.85em; font-size: 1.3em; font-weight: 600; letter-spacing: 0.01em; }
.bc-hearts { position: absolute; right: 1.2em; top: 1em; display: flex; align-items: center; gap: 0.22em; }
.vis { margin-right: 0.45em; color: #ffd9dc; font-size: 1.12em; font-weight: 600; white-space: nowrap; }
.pip { flex: none; width: 1.5em; height: 1.5em; fill: none; stroke: rgba(255, 255, 255, 0.38); stroke-width: 1.5; transition: transform 0.28s cubic-bezier(0.2, 1.6, 0.4, 1), fill 0.15s; transform: scale(0.82); }
.pip.on { fill: #ff5a67; stroke: none; transform: none; }
.bc-chip { position: absolute; left: 1.6em; top: 4.35em; width: 3.9em; height: 2.95em; }
.bc-wave { position: absolute; left: 6em; top: 4.65em; width: 2.35em; height: 2.35em; stroke: rgba(238, 240, 245, 0.85); stroke-width: 2; stroke-linecap: round; }
.bc-num { position: absolute; left: 0.85em; top: 4.55em; font: 500 1.78em/1 ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace; letter-spacing: 0.02em; white-space: nowrap; text-shadow: 0 0.04em 0 rgba(0, 0, 0, 0.6), 0 -0.03em 0 rgba(255, 255, 255, 0.28); }
.bc-name { position: absolute; left: 1.4em; bottom: 1.05em; font-size: 1.14em; font-weight: 500; letter-spacing: 0.07em; white-space: nowrap; text-shadow: 0 0.05em 0 rgba(0, 0, 0, 0.6); }
.bc-exp { position: absolute; left: 11em; bottom: 1.05em; font-size: 1.14em; font-weight: 500; letter-spacing: 0.04em; text-shadow: 0 0.05em 0 rgba(0, 0, 0, 0.6); white-space: nowrap; }
.bc-exp small { display: block; margin-bottom: 0.15em; color: rgba(238, 240, 245, 0.72); font-size: 0.62em; letter-spacing: 0.02em; text-shadow: none; }
.bc-holo { position: absolute; right: 1.25em; bottom: 1.05em; width: 3.7em; height: 2.6em; border-radius: 0.35em; background: conic-gradient(from 210deg at 45% 55%, #e9d7ff, #b5e9ff, #c9ffd8, #fff3b5, #ffc9d9, #e9d7ff); opacity: 0.86; box-shadow: inset 0 0 0 0.05em rgba(255, 255, 255, 0.55); }
.fp { position: absolute; right: 1.3em; top: 3.05em; width: 5.1em; height: 5.1em; opacity: var(--fp-o, 0); stroke: #e7c978; stroke-width: 0.8; stroke-linecap: round; }
.fp path { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--fp, 0)); }

/* ---------- paper: bills, tags, the old stamp card ---------- */
.slip-paper { position: relative; padding: 1.6em 1.7em 1.5em; background: var(--paper); color: var(--type); box-shadow: 0 0.8em 1.8em rgba(0, 0, 0, 0.32); }
.slip-paper::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 0.7em; background: linear-gradient(135deg, var(--paper) 50%, transparent 50%) 0 0 / 1.4em 0.7em repeat-x, linear-gradient(225deg, var(--paper) 50%, transparent 50%) 0 0 / 1.4em 0.7em repeat-x; }
.bill-head { display: block; margin-bottom: 0.65em; color: var(--type); font: 400 1.9em/1.15 var(--serif); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6em; padding: 0.42em 0; font: 400 1.42em/1.25 var(--mono); }
.row > span:last-child { white-space: nowrap; }
.row.off { color: var(--red); }
.row.total { margin-top: 0.3em; padding-top: 0.55em; border-top: 0.1em dashed var(--type); }
.row.total b { font-size: 1.75em; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.row.total b.pop { animation: pop 0.3s ease-out; }
@keyframes pop { 40% { transform: scale(1.14); } }

.s-bill { width: 25em; margin: -14em 0 0 -12.5em; z-index: 3; }
.stamp { position: absolute; right: -2.2em; top: 0.2em; padding: 0.28em 0.5em; border: 0.2em solid var(--red); border-radius: 0.5em; color: var(--red); background: rgba(255, 255, 251, 0.9); font: 700 1.55em/1 var(--serif); white-space: nowrap; letter-spacing: 0.02em; text-transform: uppercase; will-change: transform, opacity; opacity: 0; }

.s-stampcard { width: 24em; height: 14.4em; margin: -7.2em 0 0 -12em; padding: 1.3em 1.5em; border-radius: 0.5em; background: #e9dcc0; color: #3d3423; box-shadow: 0 0.6em 1.4em rgba(0, 0, 0, 0.32); }
.s-stampcard b { display: block; font: 400 1.75em/1.1 var(--serif); }
.stamps { display: grid; grid-template-columns: repeat(5, 3em); justify-content: space-between; gap: 0.45em 0; margin: 0.9em 0 0.7em; }
.stamps i { width: 3em; height: 3em; border-radius: 50%; box-shadow: inset 0 0 0 0.1em rgba(61, 52, 35, 0.4); }
.stamps i.on { background: radial-gradient(circle at 42% 45%, rgba(196, 34, 47, 0.72) 0 38%, rgba(196, 34, 47, 0.28) 60%, transparent 72%); }
.s-stampcard small { display: block; font-size: 1.2em; line-height: 1.2; opacity: 0.8; }

.s-app { width: 14em; margin: -8.4em 0 0 -7em; display: grid; justify-items: center; gap: 0.7em; padding: 1.5em 1em; border-radius: 1.6em; background: #f3f4f6; color: #2a2f38; box-shadow: 0 0.6em 1.4em rgba(0, 0, 0, 0.32); text-align: center; }
.app-icon { width: 5.4em; height: 5.4em; border-radius: 1.25em; background: #8b93a3; }
.s-app b { font-weight: 600; font-size: 1.3em; line-height: 1.15; }
.app-get { padding: 0.28em 1em; border-radius: 99px; background: #dfe2e8; color: #4d5463; font-size: 1.25em; font-weight: 600; }

.s-step { display: flex; justify-content: space-between; gap: 0.5em; width: 13.6em; height: 3.5em; margin: -1.75em 0 0 -6.8em; padding: 0 1em; align-items: center; border-radius: 0.5em; background: rgba(245, 244, 236, 0.13); color: var(--ivory); z-index: 2; transition: background 0.18s, color 0.18s; }
.s-step span { font-size: 1.25em; white-space: nowrap; }
.s-step b { font: 600 1.4em/1 var(--mono); white-space: nowrap; }
.s-step.on { background: var(--paper); color: var(--type); }

.s-tag { display: flex; align-items: center; width: 16.5em; height: 7em; margin: -3.5em 0 0 -8.25em; padding: 0 1.2em; border-radius: 0.5em; background: var(--paper); color: var(--type); box-shadow: 0 0.5em 1.1em rgba(0, 0, 0, 0.28); }
.s-tag span { font-size: 1.42em; font-weight: 500; line-height: 1.2; }

.s-ledger { width: 31em; margin: -15em 0 0 -15.5em; z-index: 3; }
.s-ledger .bill-head { font-size: 1.85em; }
.s-ledger .row { font-size: 1.5em; }
.s-ledger .row b { font-size: 1.3em; font-weight: 600; white-space: nowrap; }
.reveal { opacity: 0; }

/* ---------- the phone ---------- */
.s-phone { width: 19em; height: 38.6em; margin: -19.3em 0 0 -9.5em; z-index: 3; }
.ph { position: absolute; inset: 0; padding: 0.65em; border-radius: 3em; background: #10171a; box-shadow: 0 0 0 0.09em #3a4449, 0 1.2em 2.6em rgba(0, 0, 0, 0.42); }
.screen { position: absolute; inset: 0.65em; display: none; flex-direction: column; padding: 2.6em 1.5em 1.5em; border-radius: 2.4em; background: #fff; color: var(--ink); overflow: hidden; }
.s-phone[data-screen="pay"] .scr-pay, .s-phone[data-screen="tap"] .scr-tap, .s-phone[data-screen="shop"] .scr-shop { display: flex; }
.scr-who { display: flex; align-items: center; gap: 0.5em; font-size: 1.3em; font-weight: 600; }
.scr-logo { display: grid; place-items: center; flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.85em; }
.scr-amount { margin-top: 0.42em; font-size: 3.5em; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.scr-sub { color: var(--muted); font-size: 1.25em; }
.scr-join { display: flex; gap: 0.75em; margin-top: 1.6em; padding: 1em; border-radius: 0.8em; box-shadow: inset 0 0 0 0.09em var(--line); transition: box-shadow 0.18s; }
.scr-join b { display: block; font-size: 1.28em; font-weight: 600; line-height: 1.2; }
.scr-join small { display: block; margin-top: 0.4em; color: var(--muted); font-size: 1.1em; line-height: 1.25; }
.scr-tick { position: relative; flex: none; width: 2.1em; height: 2.1em; border-radius: 0.45em; box-shadow: inset 0 0 0 0.14em var(--faint); transition: background 0.14s, box-shadow 0.14s; }
.scr-tick::after { content: ''; position: absolute; left: 0.72em; top: 0.3em; width: 0.56em; height: 1.1em; border: solid #fff; border-width: 0 0.24em 0.24em 0; transform: rotate(42deg) scale(0); transition: transform 0.16s cubic-bezier(0.2, 1.5, 0.4, 1); }
.s-phone:not([data-pay="0"]) .scr-tick { background: var(--brand); box-shadow: none; }
.s-phone:not([data-pay="0"]) .scr-tick::after { transform: rotate(42deg); }
.s-phone:not([data-pay="0"]) .scr-join { box-shadow: inset 0 0 0 0.15em var(--brand); }
.scr-btn { display: flex; justify-content: center; gap: 0.3em; margin-top: auto; padding: 0.75em; border-radius: 0.55em; background: var(--brand); color: #fff; font-size: 1.4em; font-weight: 600; transition: transform 0.12s; }
.s-phone[data-pay="2"] .scr-btn { transform: scale(0.96); }
.scr-paid { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.5em; background: #fff; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.s-phone[data-pay="3"] .scr-paid { opacity: 1; }
.scr-paid b { font-size: 2.2em; font-weight: 600; }
.scr-ok { position: relative; width: 6.6em; height: 6.6em; border-radius: 50%; background: var(--success); }
.scr-ok::after { content: ''; position: absolute; left: 2.5em; top: 1.3em; width: 1.6em; height: 3.2em; border: solid #fff; border-width: 0 0.5em 0.5em 0; transform: rotate(42deg); }
.scr-tap { align-items: center; text-align: center; }
.scr-hold { display: grid; justify-items: center; gap: 0.3em; color: var(--brand); font-size: 1.45em; font-weight: 600; }
.scr-hold svg { width: 3.4em; height: 3.4em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.scr-tap .scr-amount { margin-top: auto; }
.scr-tap .scr-sub { margin-bottom: auto; }
.scr-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5em; background: #fff; opacity: 0; transition: opacity 0.2s; }
.s-phone[data-tap="1"] .scr-done { opacity: 1; }
.scr-done b { margin-top: 0.7em; font-size: 1.7em; font-weight: 600; }
.scr-back { margin-top: 0.25em; color: var(--success-ink); font-size: 1.45em; font-weight: 600; }
.scr-done .scr-last { margin-top: 1.2em; }
.scr-shop { align-items: stretch; text-align: center; }
.scr-shop .scr-who { justify-content: center; }
.scr-qr { width: 13.4em; height: 13.4em; margin: 0.9em auto 0.5em; }
.scr-last { margin-top: auto; padding: 0.7em 0.6em; border-radius: 0.6em; background: var(--success-soft); color: var(--success-ink); font-size: 1.22em; font-weight: 600; line-height: 1.2; }

/* ---------- the terminal the iPhone replaces ---------- */
.s-terminal { width: 14em; height: 20em; margin: -10em 0 0 -7em; padding: 1.1em; border-radius: 1.3em; background: #3a4146; box-shadow: 0 0.7em 1.5em rgba(0, 0, 0, 0.34); z-index: 2; }
.term-screen { display: grid; place-items: center; height: 5.4em; border-radius: 0.4em; background: #a8b4a6; color: #2b322c; font: 500 1.15em/1 var(--mono); }
.term-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55em; margin-top: 1em; }
.term-keys i { height: 1.85em; border-radius: 0.35em; background: #596167; }
.s-terminal::after { content: ''; position: absolute; left: -2.5em; right: -2.5em; top: 50%; height: 0.75em; margin-top: -0.375em; border-radius: 0.4em; background: var(--red); box-shadow: 0 0.15em 0.4em rgba(0, 0, 0, 0.35); transform: rotate(-54deg) scaleX(var(--strike, 0)); }

/* ---------- the sums, on one long bill ---------- */
.sums { padding: 34px 14px 0; background: var(--felt-deep); }
.slip { position: relative; max-width: 560px; margin: 0 auto; padding: 26px 20px 26px; background: var(--paper); color: var(--type); }
.slip::before, .slip::after { content: ''; position: absolute; left: 0; right: 0; height: 9px; background-size: 18px 9px; background-repeat: repeat-x; }
.slip::before { bottom: 100%; background-image: linear-gradient(45deg, var(--paper) 50%, transparent 50%), linear-gradient(-45deg, var(--paper) 50%, transparent 50%); }
.slip::after { top: 100%; background-image: linear-gradient(135deg, var(--paper) 50%, transparent 50%), linear-gradient(225deg, var(--paper) 50%, transparent 50%); }
.slip h2 { color: var(--type); font: 400 31px/1.12 var(--serif); }
.sums-lead { margin: 8px 0 6px; color: var(--type-soft); font-size: 15px; }
.slip .calc-slider { border-top-color: var(--rule); }
.slip .setting-title { color: var(--type); font-size: 15px; }
.slip .calc-top output { color: var(--type); font-family: var(--mono); font-size: 15px; }
.slip .calc-hint { color: var(--type-soft); }
.slip .calc-slider input[type=range] { accent-color: var(--felt); height: 30px; }
.slip .calc-slider input[type=range]:focus-visible { outline: 2px solid var(--felt); outline-offset: 2px; }
.sum { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 8px -20px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 2px dashed var(--type); font-weight: 600; font-size: 15px; }
.sum b { font: 600 27px/1.1 var(--mono); letter-spacing: -0.02em; white-space: nowrap; }
.tour .gain { color: #0a6b36; }
.tour .loss { color: #b81c29; }
.slip .lines { margin-top: 6px; color: var(--type); font-size: 14px; font-weight: 400; }
.slip .lines td:last-child { font-family: var(--mono); }
.slip .scen button { box-shadow: inset 0 0 0 1px var(--rule); }
.slip .scen button b { color: var(--type); }
.slip .scen button small { color: var(--type-soft); }
.slip .scen button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--felt); background: #eef5f0; }
.slip .scen button:focus-visible { outline-color: var(--felt); }
.slip .sources { color: var(--type-soft); }
.slip .sources summary, .slip .sources a { color: var(--felt); }
.slip .sources a { text-decoration: underline; text-underline-offset: 2px; }
.verdict { margin: 14px 0 0; color: var(--type); font: 400 19px/1.3 var(--serif); }
.fine { margin: 14px 0 0; color: var(--type-soft); font-size: 13px; line-height: 1.4; }
.fine a { color: var(--felt); text-decoration: underline; text-underline-offset: 2px; }

.close { padding: 52px 20px max(30px, env(safe-area-inset-bottom)); background: var(--felt-deep); text-align: center; }
.close > * { max-width: 440px; margin-left: auto; margin-right: auto; }
.close h2 { color: var(--ivory); font: 400 31px/1.12 var(--serif); }
.close p { margin-top: 10px; margin-bottom: 22px; color: var(--sage); font-size: 15.5px; }
.tour .btn-primary, .tour .btn-primary:hover { background: var(--ivory); color: var(--type); box-shadow: none; }
.tour .btn-secondary, .tour .btn-secondary:hover { margin-top: 10px; background: none; color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(245, 244, 236, 0.45); }
.tour .powered { color: var(--sage); }
.tour .powered b { color: var(--ivory); }

/* ---------- small and wide screens ---------- */
@media (max-height: 620px) {
  .cap h1, .cap h2 { font-size: 24px; }
  .cap p { margin-top: 5px; font-size: 14px; line-height: 1.34; }
  .deck { height: 48px; }
  .stage { --u: min(calc(100vw / 39), calc(49vh / 40)); }
  @supports (height: 1svh) { .stage { --u: min(calc(100vw / 39), calc(49svh / 40)); } }
}
@media (min-width: 880px) and (min-height: 500px) {
  .in { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); grid-template-rows: auto minmax(0, 1fr) auto; column-gap: 48px; max-width: 1240px; margin: 0 auto; padding: 0 40px; }
  .bar { grid-column: 1 / -1; }
  .stage { --u: min(calc(52vw / 39), calc(80vh / 40)); grid-row: 2 / 4; align-self: center; }
  @supports (height: 1svh) { .stage { --u: min(calc(52vw / 39), calc(80svh / 40)); } }
  .captions { grid-column: 2; grid-row: 2; align-self: center; height: 22em; margin: 0; }
  .cap { top: 0; }
  .cap h1, .cap h2 { font-size: 46px; }
  .cap p { margin-top: 16px; font-size: 18px; }
  .deck { grid-column: 2; grid-row: 3; height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .bc.dealt, .next.bob svg { animation: none; }
  .pip, .bc-sheen, .scr-paid, .scr-done, .scr-tick, .scr-tick::after, .s-step, .dots svg { transition: none; }
  .row.total b.pop { animation: none; }
}

/* ---------- the assistant (ask.js) ---------- */
.ask-pill { margin-left: auto; height: 38px; padding: 0 14px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(245, 244, 236, 0.55); color: var(--ivory); font-size: 14px; font-weight: 500; white-space: nowrap; }
.ask-pill:focus-visible, .ask-inline:focus-visible, .ask button:focus-visible, .ask input:focus-visible, .ask a:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.ask-inline { display: block; margin-top: 14px; color: var(--felt); font-size: 14px; font-weight: 500; text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.close .btn[data-ask] { margin-top: 10px; }
.notify { margin-top: 38px; padding-top: 30px; border-top: 1px solid rgba(197, 214, 203, 0.25); text-align: left; }
.notify h3 { color: var(--ivory); font: 400 24px/1.15 var(--serif); text-align: center; }
.notify > p { text-align: center; }
.notify-field { display: block; margin-top: 12px; }
.notify-field > span, .notify-phones legend { display: block; color: var(--sage); font-size: 13px; margin-bottom: 5px; }
.notify input[type=email], .notify select { width: 100%; height: 46px; border: 0; border-radius: 10px; padding: 0 12px; background: var(--ivory); color: var(--type); font: inherit; font-size: 16px; }
.notify-phones { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.notify-phones legend { width: 100%; padding: 0; }
.notify-phones label { flex: 1; }
.notify-phones input { position: absolute; opacity: 0; pointer-events: none; }
.notify-phones span { display: block; text-align: center; padding: 11px 6px; border-radius: 10px; border: 1px solid rgba(245, 244, 236, 0.4); color: var(--ivory); font-size: 15px; cursor: pointer; }
.notify-phones input:checked + span { background: var(--ivory); color: var(--type); border-color: var(--ivory); }
.notify-phones input:focus-visible + span { outline: 2px solid var(--ivory); outline-offset: 2px; }
.notify-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--sage); font-size: 14px; line-height: 1.4; }
.notify-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ivory); }
.notify-consent a { color: var(--ivory); }
.notify .btn { width: 100%; margin-top: 16px; }
.notify-msg { min-height: 20px; color: var(--ivory) !important; text-align: center; }
.notify-trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
[data-ask][hidden] { display: none !important; }
@media (max-width: 349px) { .dots { display: none; } .tour .merchant span:last-child { display: none; } }
.deck .next { margin-left: auto; }
.deck .ask-pill:not([hidden]) + .next { margin-left: 8px; }

.ask { width: min(100%, 560px); max-width: none; height: min(86vh, 720px); height: min(86svh, 720px); max-height: none; margin: auto auto 0; padding: 0; border: 0; border-radius: 16px 16px 0 0; background: var(--paper); color: var(--type); overscroll-behavior: contain; }
.ask[open] { display: flex; flex-direction: column; }
.ask::backdrop { background: rgba(8, 28, 21, 0.62); }
@media (min-width: 620px) { .ask { margin: auto; border-radius: 16px; } }
.ask-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--rule); }
.ask-head h2 { color: var(--type); font: 400 24px/1.15 var(--serif); }
.ask-head p { margin: 3px 0 0; color: var(--type-soft); font-size: 13px; line-height: 1.35; }
.ask-close { flex: none; width: 36px; height: 36px; margin: -4px -6px 0 0; border-radius: 50%; color: var(--type-soft); font-size: 24px; line-height: 1; }
.ask-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 18px 4px; overscroll-behavior: contain; }
.ask-msg { margin-bottom: 12px; font-size: 15.5px; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-msg.me { width: fit-content; max-width: 86%; margin-left: auto; padding: 8px 12px; border-radius: 14px 14px 2px 14px; background: var(--felt); color: var(--ivory); }
.ask-msg.them { color: var(--type); }
.ask-msg.note { color: var(--type-soft); font-size: 14px; }
.ask-msg.waiting::after { content: '…'; display: inline-block; color: var(--type-soft); font-size: 22px; line-height: 1; animation: ask-wait 1.2s ease-in-out infinite; }
@keyframes ask-wait { 50% { opacity: 0.25; } }
.ask-msg sup { margin-left: 1px; font-size: 11px; line-height: 0; }
.ask-msg sup a { color: var(--felt); font-weight: 600; }
.ask-sources { margin: 8px 0 0; padding-left: 20px; color: var(--type-soft); font-size: 13px; line-height: 1.35; white-space: normal; }
.ask-sources li + li { margin-top: 3px; }
.ask-sources a { color: var(--felt); text-decoration: underline; text-underline-offset: 2px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 18px 10px; }
.ask-chips[hidden] { display: none; }
.ask-chips button { padding: 7px 11px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--rule); color: var(--type); font-size: 14px; text-align: left; }
.ask-form { display: flex; gap: 8px; padding: 10px 18px 6px; border-top: 1px solid var(--rule); }
.ask-form input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid #b9c2bc; border-radius: 10px; background: #fff; color: var(--type); font: inherit; font-size: 16px; }
.ask-form button { flex: none; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--felt); color: var(--ivory); font-weight: 600; font-size: 15px; }
.ask-notice { margin: 0; padding: 2px 18px calc(10px + env(safe-area-inset-bottom)); color: var(--type-soft); font-size: 11.5px; line-height: 1.35; }
@media (prefers-reduced-motion: reduce) { .ask-msg.waiting::after { animation: none; } }
