.wallet-hero {
  padding-block: clamp(42px, 5.5vw, 80px) clamp(40px, 5.8vw, 82px);
  background: linear-gradient(140deg, var(--petrol) 35%, #1c3433 100%);
  border-bottom: 1px solid var(--line);
}
.hero-spread {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(28px, 5.6vw, 84px);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--sea-glass); font: 550 .91rem var(--body);
}
.hero-kicker svg { width: 24px; height: 18px; }
.hero-message h1 {
  margin: 19px 0 30px;
  color: var(--text);
  font: 400 clamp(4.3rem, 7.45vw, 7.25rem)/.96 Georgia, "Times New Roman", serif;
  letter-spacing: -.063em;
}
.hero-message h1 em { display: inline-block; position: relative; color: var(--sea-glass); font-weight: inherit; }
.return-stroke { position: absolute; width: 98%; left: 3%; height: .16em; bottom: -.12em; color: #83ab9e; overflow: visible; }
.hero-description { max-width: 25em; font-size: clamp(1rem, 1.28vw, 1.18rem); line-height: 1.6; color: var(--muted); }
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero-actions .btn { gap: 13px; }
.hero-explain { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: .91rem; }
.hero-explain:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero-explain span { color: var(--sea-glass); }
.wallet-support { display: flex; align-items: center; gap: 9px; color: var(--faint); font-size: .76rem; margin-top: 27px; }
.wallet-support svg { width: 19px; height: 17px; color: var(--sea-glass); }
.wallet-support span { color: #94a9a0; }

.card-showcase { min-width: 0; }
.pass-gallery {
  position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 1.32; padding-bottom: 14px; border-radius: 22px;
  background: radial-gradient(ellipse at 80% 16%, var(--mist), #78a49a 60%, var(--jade));
}
.gallery-surface { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.ticket-frame {
  width: 64%; max-width: 396px; position: relative;
  transform: rotate(-6deg); filter: drop-shadow(2px 18px 13px #112b2b62) drop-shadow(1px 3px 2px #112b2b38);
}
.ticket-frame::before {
  content: ""; position: absolute; z-index: -1; inset: 6% 1% 1% 2%; border-radius: 11px;
  transform: translate(3%, 2%) rotate(4deg); background: var(--ivory); border: 1px solid #ced4c9;
}
.hero-ticket {
  --paper: #1a3939; --ink: var(--ivory); --detail: #c0d5ca; --stub: var(--mist); --stub-ink: var(--petrol);
  container-type: inline-size; overflow: hidden; background: var(--paper); color: var(--ink);
  border-radius: 11px;
}
.hero-ticket[hidden], .try-card[hidden] { display: none; }
.ticket-wash { --paper: #c5dacf; --ink: #193633; --detail: #385c52; --stub: #1e4441; --stub-ink: var(--ivory); }
.ticket-cafe { --paper: var(--ivory); --ink: var(--petrol); --detail: #45645b; --stub: #376359; --stub-ink: #f4f4e9; }
.ticket-main { position: relative; isolation: isolate; padding: 6.5cqw 7.5cqw 5cqw; min-height: 54cqw; }
.ticket-main::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 0 64%; opacity: .22;
  background: repeating-radial-gradient(ellipse 120% 72% at 140% 36%, transparent 0 2.65cqw, var(--detail) 2.7cqw 2.85cqw, transparent 2.92cqw 3.6cqw);
  mask-image: linear-gradient(to right, transparent, #000 38%);
}
.ticket-meta { display: flex; align-items: center; gap: 2cqw; font: 550 2.9cqw/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--detail); }
.ticket-meta::before { content: ""; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: currentColor; }
.merchant-art {
  position: absolute; right: 5.4cqw; top: 5.4cqw; width: 22cqw; height: 22cqw;
  border-radius: 50%; padding: 2.2cqw; color: var(--paper); background: var(--stub);
  outline: 1px solid var(--detail); outline-offset: 1cqw;
}
.ticket-main h2 { max-width: 72%; margin: 4cqw 0 6.5cqw; font: 400 9.1cqw/1 Georgia, serif; letter-spacing: -.055em; color: inherit; }
.ticket-membership strong { font: 550 4.7cqw/1.2 var(--body); }
.ticket-stamps { display: grid; grid-template-columns: repeat(10, 1fr); gap: 1cqw; }
.ticket-stamps i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; border: 1px dashed var(--detail); }
.ticket-stamps .earned { background: var(--stub); color: var(--stub-ink); border: 0; }
.ticket-stamps svg { width: 63%; height: 63%; }
.ticket-line { display: flex; flex-wrap: wrap; gap: 0 1.8cqw; margin-top: 1.4cqw; font: 400 3.2cqw/1.4 var(--body); color: var(--detail); }
.ticket-line strong { color: var(--ink); }
.sample-used .ticket-membership strong { color: var(--honey); }
.ticket-stamps .new-stamp, .ticket-wash:not(.sample-used) .ticket-stamps i:last-child { background: var(--honey); color: var(--petrol); border: 1px solid #89723f; }
.ticket-stub {
  display: flex; align-items: center; justify-content: space-between; padding: 3.5cqw 7.5cqw 4cqw;
  background: var(--stub); color: var(--stub-ink); border-top: 1px dashed var(--paper);
}
.ticket-stub small, .ticket-stub b { display: block; }
.ticket-stub small { font: 500 2.65cqw/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ticket-stub b { font: 600 3.65cqw/1.5 var(--body); }
.ticket-code {
  width: 27%; height: 6cqw; position: relative;
  background: repeating-linear-gradient(90deg,currentColor 0 2px,transparent 2px 3px,currentColor 3px 4px,transparent 4px 6px,currentColor 6px 9px,transparent 9px 11px,currentColor 11px 12px,transparent 12px 14px,currentColor 14px 16px,transparent 16px 18px);
}
.try-card {
  position: absolute; bottom: clamp(10px, 1.25vw, 20px); right: clamp(10px, 1.25vw, 20px);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px;
  padding: 7px 15px; border: 1px solid #f2efe4b8; border-radius: 30px;
  background: var(--ivory); color: var(--petrol); box-shadow: 0 2px 8px #1e393733;
  font: 600 .79rem var(--body); cursor: pointer;
}
.try-card svg { width: 17px; height: 17px; }
.try-card:hover { background: white; }
.try-card:focus-visible { outline-color: var(--petrol); }
.card-showcase figcaption { display: none; }
.is-interactive figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.card-showcase figcaption > span { color: var(--muted); font-size: .82rem; }
.sample-switches { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 3px; gap: 2px; }
.sample-switches button {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; border: 0; border-radius: 100px;
  padding: 8px 13px; background: transparent; color: var(--muted); font: 550 .8rem/1.2 var(--body);
}
.sample-switches button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #365c55; box-shadow: 0 0 0 1px #91a69c; }
.sample-switches button:nth-child(2)::before { background: #c5dacf; }
.sample-switches button:nth-child(3)::before { background: var(--ivory); }
.sample-switches button[aria-pressed=true] { background: var(--text); color: var(--ground); }
.sample-switches button[aria-pressed=true]::before { box-shadow: 0 0 0 1px #2d493d4d; }
.sample-switches button:hover:not([aria-pressed=true]) { background: var(--raised); }
.card-announcement { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .return-stroke path { stroke-dasharray: 1; animation: draw-ink 1.05s .15s ease-out backwards; }
  .hero-ticket:not([hidden]) { animation: deal-pass .48s cubic-bezier(.2,.8,.2,1) both; }
  .hero-ticket:not([hidden]) .pole-stripes { animation: barber-turn 1.8s ease-out both; }
  .hero-ticket:not([hidden]) .ink-draw { stroke-dasharray: 1; animation: draw-ink 1s ease-out both; }
  .new-stamp { animation: print-stamp .42s ease-out both; }
  .sample-used .ticket-code::after { content:""; position:absolute; inset: -10% 0 auto; height: 2px; background: var(--paper); animation: scan-pass .65s ease-in-out both; }
  .sample-used .ticket-line, .sample-used .ticket-membership { animation: show-result .45s ease-out; }
}
@keyframes deal-pass { from { opacity: .65; transform: translate(0,-5%) rotate(2deg); } to { opacity: 1; transform: none; } }
@keyframes draw-ink { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes barber-turn { from { transform: translateY(32px); } to { transform: translateY(0); } }
@keyframes scan-pass { 0% { top: -15%; opacity: 0; } 15%,80% { opacity: 1; } 100% { top: 110%; opacity: 0; } }
@keyframes print-stamp { from { transform: scale(1.7) rotate(-20deg); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes show-result { from { opacity: .35; transform: translateY(2px); } to { opacity: 1; transform: none; } }
@media (min-width: 701px) and (max-width: 1000px) {
  .hero-spread { gap: 26px; grid-template-columns: .95fr 1.05fr; }
  .pass-gallery { aspect-ratio: 1.06; }
  .ticket-frame { width: 77%; }
  .hero-actions { gap: 13px; }
  .hero-actions .btn { padding-inline: 17px; }
  .sample-switches button { padding-inline: 9px; }
}
@media (max-width: 700px) {
  .wallet-hero { padding-block: 36px 30px; }
  .hero-spread { grid-template-columns: 1fr; gap: 27px; }
  .hero-message h1 { font-size: clamp(4rem, 13.6vw, 5.8rem); margin-block: 12px 23px; }
  .hero-actions { gap: 16px; margin-top: 20px; }
  .hero-actions .btn, .hero-explain { font-size: .82rem; }
  .hero-actions .btn { height: 44px; padding-inline: 16px; }
  .wallet-support { margin-top: 16px; }
  .pass-gallery { aspect-ratio: 1.34; border-radius: 16px; padding-bottom: 20px; }
  .ticket-frame { width: 66%; }
  .is-interactive figcaption { margin-top: 9px; }
  .sample-switches button { padding: 7px 10px; }
  .try-card { min-height: 34px; font-size: .72rem; padding: 6px 11px; }
}
@media (max-width: 370px) {
  .sample-switches button { padding-inline: 8px; gap: 4px; }
  .pass-gallery { aspect-ratio: 1.2; }
  .ticket-frame { width: 73%; }
}
