/* Sige Wash landing page, part 3: the two member features (QR member pass, online booking) and their phone previews.
   The phones are the only device mockups on the page. Everything inside a phone is sized in cqw (container = .phone),
   so the app UI scales as one piece and stays crisp from 320px phones to desktop. Tokens live in styles.css. */

/* ---------- Feature sections ---------- */
.feature { padding-block: var(--section-pad); overflow: hidden; }
.feature--pass { color: #fff; background: radial-gradient(55% 45% at 72% 58%, rgba(29,78,216,.5), rgba(29,78,216,0) 70%), var(--ink); }
.feature--pass .lede { color: #E2E8F0; }
.feature--book { background: var(--white); }
/* Mobile: heading, then the phone, then the beats. Desktop: copy in one column, phone in the other. */
.feature__grid { display: grid; gap: 36px; grid-template-areas: "head" "demo" "body"; }
.feature__head { grid-area: head; }
.feature__head .lede { max-width: 30em; }
.feature__demo { grid-area: demo; }
.feature__body { grid-area: body; }

/* Three beats: a real sequence, so numbered. */
.beats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: beat; }
.beats li { counter-increment: beat; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; font-size: 16px; color: var(--slate); }
.beats li::before { content: counter(beat); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--blue); color: #fff; font: 800 26px/1 var(--font-display); }
.beats b { font: 700 22px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.feature--pass .beats li { color: var(--on-dark); }
.feature--pass .beats li::before { background: var(--lime); color: var(--ink); }
.feature--pass .beats b { color: #fff; }
.feature__punch { margin-top: 24px; padding-left: 14px; border-left: 4px solid var(--blue); font-weight: 600; font-size: 19px; line-height: 1.35; }
.feature--pass .feature__punch { border-color: var(--lime); }

.feature__demo { position: relative; display: grid; justify-items: center; }
.feature__note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--slate); text-align: left; }
.feature__note .ico { width: 18px; height: 18px; stroke-width: 2; }
.feature--pass .feature__note { color: var(--on-dark); }

/* ---------- The phone ---------- */
.phone { container-type: inline-size; position: relative; width: clamp(256px, 74vw, 336px); aspect-ratio: 9 / 19; padding: 10px; border-radius: 48px; background: linear-gradient(150deg, #475569, #1E293B 18%, #020617 50%, #1E293B 82%, #475569); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), 0 2px 4px rgba(2,6,23,.25), 0 30px 60px -20px rgba(2,6,23,.6), 0 60px 90px -40px rgba(29,78,216,.45); }
.phone::before { content: ""; position: absolute; z-index: 2; top: 18px; left: 50%; width: 30%; height: 22px; border-radius: 12px; background: #020617; transform: translateX(-50%); }
.phone__screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 38px; background: #F4F7FD; color: var(--ink); font-family: var(--font); line-height: 1.25; }
.phone__screen svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.app__status { display: flex; align-items: center; justify-content: space-between; padding: 4.4cqw 8cqw 0 9cqw; height: 12.5cqw; font-weight: 600; font-size: 4.6cqw; }
.app__status svg { width: 19cqw; height: 3.4cqw; }
.app__bar { display: flex; align-items: center; gap: 2.8cqw; padding: 2.4cqw 5.5cqw 3.2cqw; }
.app__mark { width: 9.5cqw; height: 9.5cqw; border-radius: 1.6cqw; }
.app__back { width: 6.4cqw; height: 6.4cqw; color: var(--blue); }
.app__title { flex: 1; font: 800 6.6cqw/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.app__avatar { display: grid; place-items: center; width: 9.5cqw; height: 9.5cqw; border-radius: 50%; background: var(--ink); color: #fff; font: 700 3.8cqw/1 var(--font); }
.app__hint { display: flex; align-items: center; gap: 2cqw; margin: 3.6cqw 6cqw 0; font-size: 3.6cqw; color: var(--slate); }
.app__hint svg { flex: none; width: 4.4cqw; height: 4.4cqw; }
.app__next { display: flex; align-items: center; gap: 2.6cqw; margin: 3.2cqw 5cqw 0; padding: 2.8cqw 3.4cqw; border-radius: 2.6cqw; background: #fff; box-shadow: inset 0 0 0 1px #E2E8F0; font-size: 3.2cqw; color: var(--slate); }
.app__next > svg { flex: none; width: 5.6cqw; height: 5.6cqw; color: var(--blue); }
.app__next span { display: grid; flex: 1; gap: .6cqw; }
.app__next b { font: 800 4.6cqw/1 var(--font-display); text-transform: uppercase; color: var(--ink); }
.app__next em { font-style: normal; font-weight: 600; color: var(--blue); }
.app__tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: auto; padding: 2.4cqw 4cqw 7cqw; background: #fff; border-top: 1px solid #E2E8F0; }
.app__tabs span { display: grid; justify-items: center; gap: 1cqw; font-weight: 600; font-size: 3.2cqw; color: #64748B; }
.app__tabs svg { width: 6.4cqw; height: 6.4cqw; }
.app__tabs .is-on { color: var(--blue); }
.phone__screen::after { content: ""; position: absolute; bottom: 2.2cqw; left: 50%; width: 36%; height: 1.4cqw; border-radius: 1cqw; background: var(--ink); transform: translateX(-50%); }

/* Plate chip: reads as a number plate, not a badge. */
.plate { flex: none; padding: 1cqw 2.2cqw; border: .6cqw solid var(--ink); border-radius: 1.4cqw; background: #fff; font: 800 4.8cqw/1 var(--font-display); letter-spacing: .08em; color: var(--ink); white-space: nowrap; }
.plate--sm { font-size: 4cqw; padding: .8cqw 1.8cqw; }

/* ---------- Member pass ---------- */
.pass { margin: 0 5cqw; border-radius: 4.4cqw; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 6cqw 10cqw -6cqw rgba(15,23,42,.35); overflow: hidden; }
.pass__top { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; padding: 4.4cqw 5cqw; background: var(--blue); background-image: linear-gradient(115deg, rgba(255,255,255,.12) 0 38%, transparent 38%); color: #fff; }
.pass__name { font: 800 8.4cqw/1 var(--font-display); text-transform: uppercase; }
.pass__plan { margin-top: 1.2cqw; font-weight: 600; font-size: 3.8cqw; color: var(--on-blue); }
.pass__top .plate { border-color: #fff; }
.pass__qr { position: relative; margin: 6cqw auto 4cqw; width: 64cqw; padding: 4cqw; }
.pass__qr .qr { display: block; width: 100%; height: auto; fill: var(--ink); stroke: var(--ink); stroke-width: .06; }
/* Scanner corner brackets. */
.pass__qr::before { content: ""; position: absolute; inset: 0; --c: var(--blue); --l: 7cqw; --t: .9cqw;
  background:
    linear-gradient(var(--c) 0 0) top left / var(--l) var(--t), linear-gradient(var(--c) 0 0) top left / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) top right / var(--l) var(--t), linear-gradient(var(--c) 0 0) top right / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) bottom left / var(--l) var(--t), linear-gradient(var(--c) 0 0) bottom left / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) bottom right / var(--l) var(--t), linear-gradient(var(--c) 0 0) bottom right / var(--t) var(--l);
  background-repeat: no-repeat; }
.pass__scan { position: absolute; z-index: 1; left: 2cqw; right: 2cqw; top: 6%; height: .9cqw; border-radius: 1cqw; background: var(--lime); box-shadow: 0 0 3cqw 1cqw rgba(163,230,53,.55); animation: scan 2.8s ease-in-out infinite alternate; }
@keyframes scan { to { top: 92%; } }
.pass__status { display: flex; align-items: center; justify-content: center; gap: 1.8cqw; margin: 0 5cqw 5cqw; padding: 2.8cqw; border-radius: 2.2cqw; background: var(--lime); font: 800 4.6cqw/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.pass__status svg { width: 4.6cqw; height: 4.6cqw; stroke-width: 3.2; }

/* ---------- Booking ---------- */
.book__label { display: flex; justify-content: space-between; margin: 1.6cqw 5.5cqw 2.4cqw; font: 700 4.4cqw/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
.book__label em { font-style: normal; color: var(--blue); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1.2cqw; margin: 0 4.5cqw 4cqw; }
.days span { position: relative; display: grid; justify-items: center; gap: 1cqw; padding: 2.2cqw 0 3cqw; border-radius: 2.4cqw; background: #fff; font: 800 5.6cqw/1 var(--font-display); box-shadow: inset 0 0 0 1px #E2E8F0; }
.days i { font: 600 2.8cqw/1 var(--font); font-style: normal; text-transform: uppercase; color: var(--slate); }
.days .is-on { background: var(--ink); color: #fff; box-shadow: none; }
.days .is-on i { color: var(--on-dark); }
.days .is-on::after { content: ""; position: absolute; bottom: 1.2cqw; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: var(--lime); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; margin: 0 5.5cqw; }
.slots span { display: grid; place-items: center; height: 10.4cqw; border-radius: 2.2cqw; background: #fff; box-shadow: inset 0 0 0 1px #CBD5E1; font-weight: 600; font-size: 4.2cqw; font-variant-numeric: tabular-nums; }
.slots .is-on { background: var(--blue); color: #fff; box-shadow: 0 2cqw 4cqw -2cqw rgba(29,78,216,.8); }
.slots .is-full { grid-template-columns: auto auto; gap: 1.2cqw; background: #E2E8F0; box-shadow: none; color: #475569; }
.slots s { text-decoration-thickness: 1.5px; }
.slots .is-full i { font-style: normal; font-size: 2.8cqw; text-transform: uppercase; text-decoration: none; letter-spacing: .04em; }
.book__confirm { display: grid; place-items: center; height: 12cqw; margin: 5cqw 5.5cqw 4cqw; border-radius: 2.2cqw; background: var(--lime); box-shadow: inset 0 -.8cqw 0 rgba(15,23,42,.18); font: 800 5.2cqw/1 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }

/* Booking ticket: sits on the phone's corner like a printed stub. Notched edges via radial gradients. */
.ticket { --cut: calc(100% - 44px); position: relative; z-index: 2; width: min(256px, 76%); margin: -96px 8px 0 auto; padding: 16px 18px; border-radius: 6px; color: var(--ink); background:
  radial-gradient(circle at 0 var(--cut), transparent 9px, #fff 9.5px) left / 51% 100% no-repeat,
  radial-gradient(circle at 100% var(--cut), transparent 9px, #fff 9.5px) right / 51% 100% no-repeat;
  filter: drop-shadow(0 18px 24px rgba(15,23,42,.28)) drop-shadow(0 2px 3px rgba(15,23,42,.12)); transform: rotate(-2.5deg); }
.ticket__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14px; color: var(--slate); }
.ticket__ok { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: var(--radius); background: var(--lime); font: 800 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.ticket__ok svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ticket__when { margin-top: 10px; padding-bottom: 14px; border-bottom: 2px dashed #CBD5E1; font: 800 30px/1 var(--font-display); text-transform: uppercase; }
.ticket__when b { display: block; font-weight: 800; color: var(--blue); }
.ticket__foot { margin-top: 12px; white-space: nowrap; font-weight: 600; font-size: 14px; color: var(--slate); }
/* One reveal: the ticket "prints" when it scrolls into view (main.js adds .is-in once). */
.ticket.is-in { animation: ticket-in .7s .15s var(--ease) both; }
@keyframes ticket-in { from { opacity: 0; transform: translateY(24px) rotate(0); } to { opacity: 1; transform: rotate(-2.5deg); } }

@media (prefers-reduced-motion: reduce) { .pass__scan { display: none; } }

@media (min-width: 900px) {
  .feature__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "head demo" "body demo"; gap: 32px 64px; align-items: start; }
  .feature--book .feature__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "demo head" "demo body"; }
  .feature__head { align-self: end; }
  .feature__demo { align-self: center; }
  .feature h2 { font-size: clamp(48px, 5.4vw, 72px); }
  .ticket { position: absolute; right: max(0px, calc(50% - 310px)); bottom: 56px; margin: 0; width: 260px; }
}
