/* Tany landing v2. Brand system from brand/tokens.css, restated here with subset WOFF2 fonts
   (the brand TTFs are ~1.3 MB; these are ~220 KB). Light-only by brand choice. */
@font-face { font-family: "TanyDisplay"; src: url("fonts/Alexandria-VF.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "TanyText"; src: url("fonts/IBMPlexSansArabic-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "TanyText"; src: url("fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "TanyHand"; src: url("fonts/ArefRuqaa-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --esp: #22160F; --esp-2: #3A2A21; --paper: #FBFAF8; --foam: #FFFFFF;
  --red: #A3243B; --red-d: #7E1A2D; --red-t: #F7E6E9;
  --nile: #145C57; --nile-t: #E2EFED; --brass: #B58A4C;
  --r7: #5E5048; --r5: #8C7F77; --r3: #D3CAC3; --r1: #F1EDE9;
  --font-display: "TanyDisplay", "Segoe UI", system-ui, sans-serif;
  --font-text: "TanyText", "Segoe UI", system-ui, sans-serif;
  --font-hand: "TanyHand", "TanyText", serif;
  --shadow-object: 0 1px 0 rgba(34,22,15,.06), 0 30px 60px -24px rgba(34,22,15,.45);
  --shadow-pass: 0 1px 2px rgba(34,22,15,.12), 0 10px 24px -14px rgba(34,22,15,.45);
  --nav-h: 64px;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--esp); font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.7; overflow-x: clip; }
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
section { scroll-margin-top: calc(var(--nav-h) + 8px); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--esp); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.in { max-width: 1200px; margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.h2 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.8rem); letter-spacing: -.005em; }
.kicker { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 600; }
.fine { font-size: .9rem; color: var(--r7); }
.ruqaa { font-family: var(--font-hand); font-weight: 700; }
.d-only { display: none; }
@media (hover: hover) and (min-width: 1024px) { .d-only { display: inline; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 10px; border: 2px solid transparent; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, transform .15s; }
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red); color: var(--foam); }
.btn-red:hover { background: var(--red-d); }
.btn-line { background: transparent; border-color: var(--esp); color: var(--esp); }
.btn-line:hover { background: var(--esp); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--esp); }
.btn-paper:hover { background: var(--foam); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-wide { width: 100%; }
.play { width: 0; height: 0; border-block: 7px solid transparent; border-inline-end: 11px solid currentColor; }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--r3); height: var(--nav-h); }
.nav-in { height: 100%; max-width: 1280px; margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); display: flex; align-items: center; gap: 20px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: none; gap: 22px; font-weight: 600; font-size: .98rem; }
.nav-links a { text-decoration: none; padding: 6px 0; }
.nav-links a:hover { color: var(--red); }
.nav-cta { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.nav-login { font-weight: 600; font-size: .92rem; color: var(--nile); text-decoration: none; white-space: nowrap; }
.nav-login:hover { text-decoration: underline; }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* the page's own loyalty card */
.punch { --cup: 22px; display: flex; gap: 3px; direction: rtl; }
.punch span { width: var(--cup); height: var(--cup); display: block; }
.punch span svg { width: 100%; height: 100%; display: block; }
.punch-top { display: none; margin-inline-start: auto; }
@media (min-width: 1100px) { .punch-top { display: flex; } .punch-top + .nav-cta { margin-inline-start: 0; } }
.dock { position: fixed; z-index: 55; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--esp); color: var(--paper);
  box-shadow: 0 14px 30px -12px rgba(34,22,15,.6); transform: translateY(160%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.dock.show { transform: none; }
.punch-dock { --cup: clamp(15px, calc((100vw - 190px) / 11.5), 22px); }
@media (min-width: 1100px) { .dock { display: none; } }
.toast { position: fixed; z-index: 70; top: calc(var(--nav-h) + 12px); left: 50%; transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  background: var(--esp); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-weight: 600; white-space: nowrap; transition: opacity .3s, transform .3s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; }
.hero-in { max-width: 1280px; margin-inline: auto; padding: 40px var(--gut-r) 56px var(--gut); display: grid; gap: 28px; align-items: center; }
.hero-h { font-size: clamp(2.1rem, .85rem + 5.8vw, 4.7rem); line-height: 1.14; letter-spacing: -.01em; }
.hero-h .line { display: block; }
@media (min-width: 900px) { .hero-h .line { white-space: nowrap; } }
.hero-h .w { display: inline-block; }
.hero-h .w-red { color: var(--red); }
.hero-sub { margin-top: 18px; font-size: clamp(1.08rem, 1rem + .5vw, 1.3rem); color: var(--r7); max-width: 34ch; }
.hero-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
/* The ت is a cup: dots behind, phone standing in the bowl, bowl in front. Geometry follows the
   symbol's own viewBox (107.6 x 89.1): dots end at 30% height, the bowl's floor starts at 69%. */
.hero-art { position: relative; width: min(100%, 600px); aspect-ratio: 107.6 / 89.1; margin: 40px auto 0; }
.mark { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mark-dots { z-index: 0; }
.mark-front { z-index: 2; }
.mark-bowl { fill: var(--esp); }
.mark-dot1 { fill: var(--esp); }
.mark-dot2 { fill: var(--red); }
.mark .mark-dot1, .mark .mark-dot2 { transform-box: fill-box; transform-origin: 50% 50%; }
.cup-clip { position: absolute; left: -10%; right: -10%; top: -20%; bottom: 8.4%; overflow: hidden; z-index: 1; }
.hero-phone { position: absolute; width: 30%; left: 34.7%; top: 45.7%; }
.float-chip { position: absolute; z-index: 3; top: 2%; left: 0; background: var(--red); color: var(--foam); font-family: var(--font-display); font-weight: 800; font-size: clamp(.95rem, .7rem + 1vw, 1.3rem); padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-pass); }
.float-cup { position: absolute; width: 15%; right: -2%; top: 4%; z-index: 3; }
.float-cup svg { width: 100%; height: auto; display: block; }
.beans { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.beans span { position: absolute; width: 5%; color: #5A3A26; }
.beans span svg { width: 100%; height: auto; display: block; }
@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.1fr 1fr; min-height: min(calc(100svh - var(--nav-h)), 860px); padding-block: 32px 48px; }
}

/* wallet screen inside a TanyCard phone */
.ws { position: absolute; inset: 0; background: #F2F1EE; direction: rtl; }
.ws .tc-status { position: relative; z-index: 2; }
.ws-title { padding: 1cqw 6cqw 0; font-family: var(--font-display); font-weight: 700; font-size: 7.2cqw; color: #111; direction: ltr; text-align: left; }
.ws-pass { position: relative; margin: 3.5cqw 4cqw 0; }
.ws-notif { position: absolute; z-index: 6; top: 12cqw; left: 3.5cqw; right: 3.5cqw; }
.tc-cup .fx { opacity: 0; }
.tc-cup.on .fx { opacity: 1; }
.static .ws-notif { display: none; }

/* camera (scan) screen */
.cam { position: absolute; inset: 0; background: #0d0b0a; overflow: hidden; z-index: 3; }
/* the stand photo, zoomed so its QR (x .392, y .623 of the photo) sits mid-screen */
.cam img { position: absolute; width: 690cqw; height: auto; max-width: none; left: -223.1cqw; top: -180.9cqw; transform-origin: 270.5cqw 286.6cqw; }
.finder { position: absolute; width: 70cqw; height: 70cqw; left: 12.4cqw; top: 70.7cqw; color: rgba(255,255,255,.9); }
.finder svg { width: 100%; height: 100%; display: block; overflow: visible; }
.finder svg { filter: drop-shadow(0 0 1.5px rgba(0,0,0,.55)); }
.cam-line { position: absolute; left: 14cqw; right: 14cqw; top: 72cqw; height: 1cqw; border-radius: 1cqw; background: var(--red); }
.cam-pill { position: absolute; left: 50%; bottom: 22cqw; transform: translateX(-50%); background: #fff; color: #111; font-weight: 600; font-size: 3.6cqw; padding: 2cqw 4cqw; border-radius: 99px; white-space: nowrap; direction: ltr; }

/* ---------------------------------------------------------------- story (pinned) */
.story { background: var(--esp); color: var(--paper); position: relative; }
.story-pin { position: relative; overflow: hidden; }
.story-flood { position: absolute; inset: 0; background: var(--red); opacity: 0; pointer-events: none; }
.story-bg { position: absolute; inset: 0; opacity: 0; background: #3B2419 url("img/stand-1800.webp") 28% 60% / cover no-repeat; }
.story-bg::after { content: ""; position: absolute; inset: 0; background: rgba(34,22,15,.62); }
.story:not(.live) .story-bg { display: none; }
.story-in { position: relative; max-width: 1200px; margin-inline: auto; padding: 56px var(--gut-r) 64px var(--gut); display: grid; gap: 28px; }
.story-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.st { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 1rem + 2.6vw, 2.6rem); line-height: 1.2; }
.st-n { display: inline-grid; place-items: center; flex: none; width: 1.25em; height: 1.25em; border: 3px solid var(--red); border-radius: 50%; font-size: .62em; color: var(--paper); transform: translateY(-.1em); }
.story-stage { position: relative; height: 560px; }
.story-phone { position: absolute; width: min(250px, 60%); left: 50%; top: 0; transform: translateX(-50%); }
.day-chip { position: absolute; left: 0; bottom: 8%; display: grid; gap: 0; background: var(--paper); color: var(--esp); padding: 10px 18px; border-radius: 14px; box-shadow: var(--shadow-object); font-family: var(--font-display); }
.day-chip b { font-size: 1.25rem; font-weight: 800; }
.day-chip span { font-size: .95rem; color: var(--r7); font-weight: 600; }
.repeat { display: inline-block; width: .62em; height: .82em; vertical-align: -.08em; margin-inline-start: .25em; fill: var(--paper); }
.repeat .r2 { fill: var(--red); }
.repeat circle { transform-box: fill-box; transform-origin: 50% 50%; }
.story-dots { display: none; }
.burst { position: absolute; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; z-index: 8; }
.burst span { position: absolute; width: 22px; margin: -14px 0 0 -11px; color: #5A3A26; }
.burst span.r { color: var(--red); }
.burst span svg { width: 100%; height: auto; display: block; }

.story:not(.live) .day-chip, .story:not(.live) .story-flood { display: none; }
/* live (pinned) layout, set by landing.js */
.story.live .story-pin { height: calc(100svh - var(--nav-h)); }
.story.live .story-in { height: 100%; padding-block: 20px; grid-template-rows: auto 1fr; }
.story.live .story-steps { position: relative; height: 3.2em; font-size: clamp(1.6rem, 1rem + 2.6vw, 2.6rem); }
.story.live .st { position: absolute; inset-inline: 0; top: 0; opacity: 0; font-size: inherit; }
.story.live .story-stage { height: auto; min-height: 0; }
.story.live .story-phone { width: auto; height: 112%; aspect-ratio: 9 / 19.5; left: 50%; top: 3%; transform: none; }
.story.live .day-chip { left: 0; bottom: auto; top: 46%; }
.story.live .story-dots { display: flex; gap: 8px; position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); }
.story-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(251,250,248,.28); transition: background .3s, transform .3s; }
.story-dots i.on { background: var(--paper); transform: scale(1.3); }
@media (min-width: 900px) {
  .story-in { grid-template-columns: 1fr 1.1fr; align-items: center; }
  .story.live .story-in { grid-template-rows: 1fr; }
  .story.live .story-steps { height: 3.4em; font-size: clamp(2.2rem, 1rem + 3vw, 3.8rem); }
  .story.live .st5 .st-t { white-space: nowrap; }
  .story.live .story-stage { height: 100%; }
  .story.live .story-phone { height: 108%; top: 6%; }
  .story.live .day-chip { left: auto; right: 4%; top: 44%; }
  .story-stage { height: 620px; }
}

/* ---------------------------------------------------------------- ribbon */
.ribbon { position: relative; padding-block: 54px 64px; overflow: hidden; background: var(--paper); }
.rib { white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 1.2rem + 4.6vw, 5.4rem); line-height: 1.25; padding-block: .12em; direction: rtl; }
.rib-a { transform: rotate(-3deg); color: transparent; -webkit-text-stroke: 1.6px var(--esp); }
.rib-b { transform: rotate(2deg); background: var(--esp); color: var(--paper); margin-top: -.15em; }
.rib-track { display: inline-flex; align-items: center; gap: .5em; will-change: transform; }
.rib-track .sep { display: inline-block; width: .62em; height: .62em; flex: none; }
.rib-track .sep svg { width: 100%; height: 100%; display: block; }


/* ---------------------------------------------------------------- both wallets */
.wallets { background: var(--esp); color: var(--paper); padding-block: 88px; overflow: hidden; }
.wallets-in { display: grid; gap: 40px; align-items: center; }
.wallets-copy { display: grid; gap: 18px; justify-items: start; }
.wallets .fine { color: rgba(251,250,248,.6); }
.skins { display: flex; flex-wrap: wrap; gap: 10px; }
.skins button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(251,250,248,.35); background: transparent; color: var(--paper); font-weight: 600; cursor: pointer; }
.skins button i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.skins button[aria-checked="true"] { background: var(--paper); color: var(--esp); border-color: var(--paper); }
.duo { position: relative; display: flex; justify-content: center; gap: 4%; perspective: 1400px; }
.duo-phone { width: min(250px, 44%); }
@media (min-width: 900px) { .wallets-in { grid-template-columns: .9fr 1.1fr; } }

/* ---------------------------------------------------------------- stand */
.stand { position: relative; background: #3B2419; color: var(--paper); overflow: hidden; }
.stand-photo { overflow: hidden; direction: ltr; }
.stand-frame { position: relative; width: 170vw; left: -11vw; aspect-ratio: 3 / 2; }
.stand-scale { position: absolute; inset: 0; transform-origin: 36% 60%; }
.stand-img { width: 100%; height: 100%; object-fit: cover; }
.scanbeam { position: absolute; left: 34.8%; width: 9%; top: 55.6%; height: 13.6%; overflow: hidden; pointer-events: none; }
/* three sweeps, then it parks out of view so visitors can scan the photo's real QR from the screen */
.scanbeam::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22%; background: rgba(163,36,59,.1); border-bottom: 2px solid var(--red); transform: translateY(-110%); }
.stand.seen .scanbeam::before { animation: beam 1.4s cubic-bezier(.45,0,.55,1) 3 both; }
@keyframes beam { 0% { transform: translateY(-110%); } 50% { transform: translateY(460%); } 100% { transform: translateY(-110%); } }
.hot { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 0; padding: 0; background: var(--paper); cursor: pointer; box-shadow: 0 0 0 6px rgba(251,250,248,.28); animation: pulse 2s ease-out infinite; z-index: 2; }
.hot::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(251,250,248,.55); } 100% { box-shadow: 0 0 0 16px rgba(251,250,248,0); } }
.hot-1 { left: 32.5%; top: 21%; } .hot-2 { left: 46.5%; top: 63%; } .hot-3 { left: 21%; top: 80%; }
.hot-tip { position: absolute; z-index: 3; background: var(--paper); color: var(--esp); font-family: var(--font-display); font-weight: 700; font-size: clamp(.8rem, .6rem + .6vw, 1.05rem); padding: 6px 12px; border-radius: 10px; white-space: nowrap; direction: rtl; box-shadow: var(--shadow-pass); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.hot-tip.open { opacity: 1; transform: none; }
.tip-1 { left: calc(32.5% + 24px); top: 18%; } .tip-2 { left: calc(46.5% + 24px); top: 60%; } .tip-3 { left: calc(21% + 24px); top: 77%; }
.stand-copy { position: absolute; top: 0; right: 0; padding: 36px var(--gut-r) 0 var(--gut); max-width: 62%; text-align: right; }
.stand-copy .h2 { color: var(--paper); }
.static .scanbeam::before, .static .hot { animation: none; }
@media (max-width: 699.98px) {
  .stand { display: flex; flex-direction: column-reverse; }
  .stand-copy { position: static; max-width: none; padding: 48px var(--gut-r) 8px var(--gut); }
  .tip-2 { left: auto; right: calc(53.5% + 24px); }
}
@media (min-width: 700px) { .stand-frame { width: 100%; left: 0; } .stand-copy { top: 9%; right: 4%; max-width: 40%; } }

/* ---------------------------------------------------------------- barista (interactive) */
.barista { background: var(--paper); padding-block: 96px; }
.barista-in { display: grid; gap: 40px; align-items: center; }
.barista-copy { display: grid; gap: 18px; justify-items: start; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--r1); }
.seg button { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; font-weight: 600; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--esp); color: var(--paper); }
.pair { display: flex; justify-content: center; align-items: flex-end; gap: 4%; }
.till { width: min(260px, 56%); min-height: min(500px, 118vw); display: flex; border-radius: 30px; background: #111; padding: 7px; box-shadow: var(--shadow-object); }
.till-screen { flex: 1; border-radius: 24px; background: var(--paper); display: flex; flex-direction: column; padding: 18px 14px 14px; gap: 12px; container-type: inline-size; }
.till-top { display: flex; justify-content: space-between; font-size: .85rem; color: var(--r7); }
.till-top b { color: var(--esp); font-family: var(--font-display); }
@container (max-width: 190px) { .till-screen { padding: 14px 10px 10px; gap: 7px; } .till-who { padding: 7px; } .till-av { width: 30px; height: 30px; } .till-chips button { padding: 0 7px; font-size: .7rem; } .till-back { font-size: .72rem; } }
.till-back { background: var(--red-t); color: var(--red-d); border-radius: 12px; padding: 9px 12px; font-size: .82rem; font-weight: 700; line-height: 1.3; }
.till-usual { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--nile); }
.till-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.till-chips button { min-height: 32px; padding: 0 11px; border-radius: 999px; border: 1.5px solid var(--r3); background: var(--foam); color: var(--esp); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.till-chips button[aria-pressed="true"] { background: var(--esp); border-color: var(--esp); color: var(--paper); }
.till-who { display: flex; gap: 10px; align-items: center; background: var(--foam); border: 1px solid var(--r3); border-radius: 12px; padding: 10px; }
.till-who > div { display: grid; line-height: 1.3; }
.till-who b { font-family: var(--font-display); font-size: 1.05rem; }
.till-who span:not(.till-av) { font-size: .85rem; color: var(--r7); }
.till-av { width: 38px; height: 38px; border-radius: 50%; background: var(--nile-t); color: var(--nile); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; flex: none; }
.till-cups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; direction: rtl; }
.till-cups span svg { width: 100%; height: auto; display: block; }
.till-btn { margin-top: auto; min-height: 64px; border: 0; border-radius: 14px; background: var(--red); color: var(--foam); font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 9cqw, 1.5rem); cursor: pointer; transition: background-color .2s, transform .12s; }
.till-btn:hover { background: var(--red-d); }
.till-btn:active { transform: scale(.96); }
.till-btn.hint { animation: hint 1.2s ease-in-out 3; }
@keyframes hint { 50% { transform: scale(1.06); } }
.till-btn.redeem { background: var(--nile); }
.till-msg { min-height: 2.8em; font-size: .85rem; text-align: center; color: var(--r7); line-height: 1.4; }
.till-reset { border: 0; background: none; color: var(--nile); font-size: .85rem; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 4px; }
.cust { position: relative; width: min(250px, 40%); }
.splat { position: absolute; width: 46%; left: 27%; top: 30%; color: var(--red); opacity: 0; pointer-events: none; z-index: 7; }
@media (min-width: 900px) { .barista-in { grid-template-columns: .85fr 1.15fr; } }

/* ---------------------------------------------------------------- dashboard */
.dash { background: var(--esp); color: var(--paper); padding-block: 96px; }
.dash-in { display: grid; gap: 40px; }
.browser { position: relative; background: var(--foam); color: var(--esp); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--r1); direction: ltr; }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--r3); }
.browser-bar em { font-style: normal; font-size: .8rem; color: var(--r7); margin-left: 10px; background: var(--foam); padding: 3px 12px; border-radius: 999px; }
.board { padding: 20px; display: grid; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--r3); border-radius: 4px; padding: 12px 14px; display: grid; }
.kpi span { font-size: .85rem; color: var(--r7); }
.kpi b { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 700; color: var(--nile); line-height: 1.2; }
.chart { border: 1px solid var(--r3); border-radius: 4px; padding: 12px 14px; }
.chart-t { font-size: .85rem; color: var(--r7); }
.bars { height: 150px; display: flex; align-items: flex-end; gap: 6px; margin-top: 10px; direction: ltr; }
.bars i { flex: 1; background: var(--nile); border-radius: 3px 3px 0 0; transform-origin: 50% 100%; }
.bars i:last-child { background: var(--red); }
.segs { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.s-new { background: var(--nile-t); color: var(--nile); }
.s-reg { background: var(--esp); color: var(--paper); }
.s-risk { background: #FBEFD9; color: #8A5A12; }
.s-lapsed { background: var(--red-t); color: var(--red-d); }
.demo-tag { position: absolute; top: 9px; right: 12px; font-size: .75rem; font-weight: 600; color: var(--r7); background: var(--foam); border: 1px dashed var(--r5); padding: 1px 10px; border-radius: 999px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, 1fr); } .board { padding: 28px; } }
@media (min-width: 1000px) { .dash-in { grid-template-columns: .8fr 1.2fr; align-items: center; } }

/* ---------------------------------------------------------------- why */
.why { background: var(--paper); padding-block: 96px 72px; }
.why-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
.why-i { display: grid; justify-items: center; text-align: center; gap: 12px; }
.why-art { width: min(150px, 100%); aspect-ratio: 1; }
.why-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.why-i b { font-family: var(--font-display); font-size: clamp(1.1rem, .9rem + .8vw, 1.45rem); }
.why-art g { transform-box: fill-box; transform-origin: 50% 50%; }
@media (min-width: 800px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------------------- start (path) */
.start { background: var(--r1); padding-block: 88px 96px; }
.path-wrap { position: relative; margin-top: 36px; }
.path-svg { display: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); }
.steps b { font-size: clamp(1.1rem, .9rem + .8vw, 1.45rem); font-weight: 700; }
.node { width: 44px; height: 44px; flex: none; display: block; }
.node svg { width: 100%; height: 100%; display: block; }
.traveler { display: none; }
.path-wrap.placed { height: 620px; }
.path-wrap.placed .path-live { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.path-wrap.placed .steps { position: absolute; inset: 0; display: block; }
.path-wrap.placed .steps li { position: absolute; transform: translate(-50%, -26px); flex-direction: column; gap: 6px; text-align: center; width: 9.5em; }
.path-wrap.placed .steps li b { background: var(--r1); padding: 0 6px; border-radius: 6px; }
.path-wrap.placed .node { width: 52px; height: 52px; }
.path-wrap.placed .traveler { display: block; position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; z-index: 3; }
.traveler svg { width: 100%; height: 100%; display: block; }
.path-svg path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.path-svg .base { stroke: var(--r3); stroke-width: 3; stroke-dasharray: 2 10; }
.path-svg .ink { stroke: var(--red); stroke-width: 4; }
@media (min-width: 900px) { .path-wrap.placed { height: 320px; } }

/* ---------------------------------------------------------------- price */
.price { background: var(--red); color: var(--foam); padding-block: 72px; }
.price-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.price-copy { display: grid; gap: 18px; }
.promise { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); }
.promise li { display: flex; gap: 10px; align-items: baseline; }
.promise li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--foam); transform: translateY(-2px); }
.dash-kick { margin-top: -22px; max-width: 58ch; color: rgba(251,250,248,.78); }
.dash-note { margin-top: -18px; color: rgba(251,250,248,.7); }
.price .kicker { margin-top: 8px; color: rgba(251,250,248,.75); }

/* ---------------------------------------------------------------- faq */
.faq { background: var(--paper); padding-block: 96px; }
.faq-in { display: grid; gap: 32px; }
.faq-list { display: grid; }
.faq details { border-bottom: 1px solid var(--r3); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--esp); background:
  linear-gradient(var(--esp), var(--esp)) center / 11px 2px no-repeat, linear-gradient(var(--esp), var(--esp)) center / 2px 11px no-repeat; transition: transform .3s, background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.ans { overflow: hidden; }
.ans p { padding: 0 0 20px; color: var(--r7); max-width: 60ch; }
@media (min-width: 900px) { .faq-in { grid-template-columns: .8fr 1.2fr; align-items: start; } }

/* ---------------------------------------------------------------- final */
.final { background: var(--red); color: var(--foam); padding-block: 96px 120px; }
.final-in { display: grid; gap: 40px; align-items: center; }
.final-copy { display: grid; gap: 18px; justify-items: start; }
.final-h { font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.6rem); }
.final .fine { color: rgba(255,255,255,.82); }
.final .fine a { color: var(--foam); font-weight: 600; }
.final :focus-visible { outline-color: var(--foam); }
.gift { width: 104px; height: 104px; padding: 10px; border-radius: 50%; background: var(--paper); box-sizing: border-box; }
.gift > span { inset: 10px !important; }
.ticket .fine { color: var(--r7); }
.gift svg { width: 100%; height: 100%; display: block; }
.gift .g-on { opacity: 0; }
.ticket { position: relative; background: var(--paper); color: var(--esp); border-radius: 18px; padding: 28px 24px 24px; display: grid; gap: 6px; box-shadow: 0 40px 70px -30px rgba(40,6,14,.7); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 74px; width: 26px; height: 26px; border-radius: 50%; background: var(--red); }
.ticket::before { left: -13px; } .ticket::after { right: -13px; }
.ticket h3 { font-size: 1.6rem; padding-bottom: 22px; margin-bottom: 10px; border-bottom: 2px dashed var(--r3); }
.ticket label { font-weight: 600; font-size: .92rem; margin-top: 8px; }
.ticket input, .ticket select { width: 100%; min-height: 50px; border: 1.5px solid var(--r3); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 1rem; background: var(--foam); color: var(--esp); }
.ticket input:focus, .ticket select:focus { outline: none; border-color: var(--esp); box-shadow: 0 0 0 3px var(--red-t); }
.ticket .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ticket .two > div { display: grid; gap: 6px; margin-top: 8px; }
.ticket .two label { margin-top: 0; }
.ticket .btn-wide { margin-top: 18px; min-height: 56px; font-size: 1.15rem; }
.form-note { text-align: center; margin-top: 6px; }
.form-msg { min-height: 1.6em; text-align: center; font-weight: 600; }
.form-msg.err { color: #B3261E; }
.form-msg.ok { color: var(--nile); }
.hp { position: absolute; top: 0; right: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.sealed { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg); border: 5px solid var(--red); color: var(--red); border-radius: 14px; padding: 6px 22px; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; opacity: 0; pointer-events: none; background: rgba(251,250,248,.85); }
#form-burst { top: 40%; }
@media (min-width: 900px) { .final-in { grid-template-columns: 1fr minmax(360px, 440px); } .ticket { padding: 32px 32px 28px; } }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--esp); color: rgba(251,250,248,.8); padding-block: 56px calc(110px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: grid; gap: 10px; justify-items: start; }
.foot img { height: 56px; width: auto; margin-bottom: 8px; }
.foot .fine { color: rgba(251,250,248,.55); }
@media (min-width: 1100px) { .foot { padding-bottom: 56px; } }

/* ---------------------------------------------------------------- reel */
.reel { padding: 0; border: 0; background: transparent; overflow: visible; max-width: none; max-height: none; }
.reel::backdrop { background: rgba(34,22,15,.88); }
.reel-frame { width: min(380px, 84vw, calc((100svh - 80px) * 9 / 16)); aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #000; box-shadow: var(--shadow-object); }
.reel-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.reel-frame video::cue { font-family: inherit; font-size: 1.05rem; line-height: 1.5; color: #fff; background: rgba(34,22,15,.78); }
.reel-x { position: absolute; top: -14px; left: -14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); color: var(--esp); font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow-pass); }

/* ---------------------------------------------------------------- pre-reveal states (only while GSAP is confirmed) */
.anim [data-in]:not(.hero [data-in]), .anim .hero-art > * { opacity: 0; }
/* The headline animates in CSS so it never waits for a script download (LCP). */
@keyframes press-in { 0% { opacity: 0; transform: translateY(10px) scale(1.7) rotate(-8deg); } 55% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.anim .hero-h .w { animation: press-in .6s cubic-bezier(.34,1.56,.64,1) both; }
.anim .hero-h .line:nth-child(1) .w:nth-child(1) { animation-delay: .10s; }
.anim .hero-h .line:nth-child(1) .w:nth-child(2) { animation-delay: .19s; }
.anim .hero-h .line:nth-child(1) .w:nth-child(3) { animation-delay: .28s; }
.anim .hero-h .line:nth-child(2) .w:nth-child(1) { animation-delay: .37s; }
.anim .hero-h .line:nth-child(2) .w:nth-child(2) { animation-delay: .46s; }
.anim .hero-h .line:nth-child(2) .w:nth-child(3) { animation-delay: .55s; }
.anim .hero [data-in] { animation: rise-in .8s cubic-bezier(.2,.8,.2,1) .6s both; }
.anim .hero .hero-cta[data-in] { animation-delay: .7s; }

/* demo form: optional logo + live card preview */
.logo-field { display: grid; gap: 6px; margin-top: 8px; }
.lf-label { font-weight: 600; font-size: .92rem; }
.lf-label .opt { font-weight: 400; color: var(--r5); }
.logo-drop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 10px 14px; border: 1.5px dashed var(--r5); border-radius: 10px; background: var(--foam); color: var(--r7); font-size: .9rem; text-align: center; cursor: pointer; }
.logo-drop:hover, .logo-drop:focus-within { border-color: var(--esp); color: var(--esp); }
.logo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.mini { display: grid; gap: 8px; justify-items: center; }
.mini-t { font-size: .85rem; color: var(--r7); justify-self: start; }
.mc { width: 100%; max-width: 340px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-pass); container-type: inline-size; }
.mc-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.mc-logo { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.mc-logo img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.mc-top b { font-family: var(--font-display); font-size: 1.05rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-n { font-family: var(--font-display); font-weight: 700; font-size: .9rem; opacity: .9; }
.mc svg { display: block; width: 100%; height: auto; }
.mini-x { border: 0; background: none; color: var(--nile); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; padding: 4px; }
