:root {
  --bg: #fff8f1;
  --card: #ffffff;
  --ink: #3d302a;
  --muted: #8a7a70;
  --line: #f1e4d8;
  --peach: #ffd9c7;
  --peach-deep: #d9704c;
  --mint: #d3f0e2;
  --mint-deep: #2f7d58;
  --lilac: #e7e0ff;
  --butter: #fff0bf;
  --rose: #ffe1e4;
  --bad: #b83d35;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(61, 48, 42, .04), 0 8px 24px rgba(217, 112, 76, .08);
  --round: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 16px/1.55 var(--round);
  background:
    radial-gradient(60vw 40vw at 100% 0, var(--rose) 0, transparent 70%),
    radial-gradient(50vw 40vw at 0 30%, var(--mint) 0, transparent 70%),
    var(--bg);
  background-attachment: fixed; min-height: 100vh;
}
main { max-width: 560px; margin: 0 auto; padding: 20px 16px 40px; }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.1; margin: 12px 0 10px; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: 1.15rem; margin: 0 0 10px; font-weight: 800; }
p { margin: 0 0 12px; }
a { color: var(--peach-deep); font-weight: 700; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--muted); }

header.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--ink); }
.brand .mark { width: 38px; height: 38px; border-radius: 12px; background: var(--peach); display: grid; place-items: center; color: var(--peach-deep); }
.brand svg { width: 22px; height: 22px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 16px 0; box-shadow: var(--shadow); }
.panel.mint { background: var(--mint); border-color: transparent; }
.panel.butter { background: var(--butter); border-color: transparent; }

label { display: block; font-weight: 700; margin: 14px 0 6px; }
input { width: 100%; font: inherit; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
input:focus { border-color: var(--peach-deep); outline: none; }
:focus-visible { outline: 3px solid var(--peach-deep); outline-offset: 3px; }

button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; padding: 12px 20px; min-height: 50px; border-radius: 999px; border: 0;
  background: var(--peach-deep); color: #fff; cursor: pointer; text-decoration: none;
  transition: transform .12s ease;
  box-shadow: 0 6px 16px rgba(217, 112, 76, .28);
}
button:active, .btn:active { transform: scale(.97); }
button.ghost, .btn.ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: none; }
button.soft { background: var(--mint); color: var(--mint-deep); box-shadow: none; }
button:disabled { opacity: .45; cursor: default; transform: none; }
button.big { width: 100%; font-size: 1.2rem; min-height: 68px; }
button svg, .btn svg { width: 22px; height: 22px; }

.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; }
.msg { min-height: 1.5em; font-weight: 700; margin-top: 10px; }
.msg:empty { min-height: 0; margin: 0; }
.msg.bad { color: var(--bad); }
.msg.ok { color: var(--mint-deep); }

/* Landing */
.hero { text-align: center; padding: 24px 0 8px; }
.hero .cup { width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 32px; background: var(--peach); color: var(--peach-deep); display: grid; place-items: center; transform: rotate(-6deg); }
.hero .cup svg { width: 52px; height: 52px; }
.features { display: grid; gap: 12px; grid-template-columns: 1fr; padding: 0; margin: 20px 0; list-style: none; }
@media (min-width: 520px) { .features { grid-template-columns: 1fr 1fr; } }
.features li { border-radius: var(--radius); padding: 18px; }
.features li:nth-child(4n+1) { background: var(--peach); }
.features li:nth-child(4n+2) { background: var(--mint); }
.features li:nth-child(4n+3) { background: var(--lilac); }
.features li:nth-child(4n+4) { background: var(--butter); }
.features b { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.price { font-size: 3rem; font-weight: 900; line-height: 1; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 700; }
.ticks { list-style: none; padding: 0; margin: 14px 0 18px; }
.ticks li { display: flex; gap: 10px; align-items: center; margin: 6px 0; }
.ticks svg { width: 20px; height: 20px; color: var(--mint-deep); flex: none; }

/* Stamp card */
.loyalty { background: linear-gradient(160deg, var(--peach) 0%, var(--rose) 55%, var(--lilac) 100%); border: 0; }
.loyalty h1 { margin-top: 0; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 18px 0; }
.stamp { aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .6); border: 2px dashed rgba(217, 112, 76, .35); display: grid; place-items: center; color: rgba(217, 112, 76, .35); }
.stamp.on { background: #fff; border: 2px solid #fff; color: var(--peach-deep); box-shadow: 0 4px 10px rgba(217, 112, 76, .25); }
.stamp.new { animation: pop .4s ease; }
.stamp svg { width: 55%; height: 55%; }
@keyframes pop { 0% { transform: scale(.6); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .stamp.new { animation: none; } button { transition: none; } }
.qr { background: #fff; padding: 14px; border-radius: 18px; width: min(240px, 100%); margin: 0 auto; }
.qr svg { display: block; width: 100%; height: auto; }
.code { text-align: center; font: 800 1.7rem/1 ui-monospace, Menlo, monospace; letter-spacing: .25em; margin: 14px 0 4px; }
.ready { background: var(--mint); color: var(--mint-deep); border-radius: 18px; padding: 14px 16px; text-align: center; font-weight: 800; font-size: 1.1rem; }
.spot { display: flex; gap: 10px; align-items: center; background: var(--butter); border-radius: 18px; padding: 12px 16px; font-weight: 700; margin: 12px 0; }
.spot svg { width: 22px; height: 22px; flex: none; color: var(--peach-deep); }

/* Dashboard */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.stats div { background: var(--bg); border-radius: 16px; padding: 12px 6px; font-size: .9rem; color: var(--muted); }
.stats b { display: block; font-size: 1.7rem; color: var(--ink); }
video { width: 100%; border-radius: 18px; background: #000; margin-top: 12px; }
hr { border: 0; border-top: 2px dashed var(--line); margin: 20px 0; }
.hidden { display: none !important; }

footer { text-align: center; color: var(--muted); font-size: .9rem; padding: 24px 16px 32px; }

/* ---------- Landing ---------- */
main.wide { max-width: 1120px; }
.sticky { position: sticky; top: 0; z-index: 10; margin: 0 -16px; padding: 12px 16px; background: rgba(255, 248, 241, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav { display: flex; align-items: center; gap: 16px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.btn.small { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: .9rem; color: var(--peach-deep); }
.pill svg { width: 16px; height: 16px; }

.lp-hero { display: grid; gap: 40px; align-items: center; padding: 40px 0 24px; }
@media (min-width: 900px) { .lp-hero { grid-template-columns: 1.1fr .9fr; padding: 72px 0 40px; } }
.lp-hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.035em; margin: 18px 0 18px; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--peach) 62%); }
.lp-hero .lead { font-size: 1.25rem; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.cta-row .btn { min-height: 60px; padding: 14px 28px; font-size: 1.1rem; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-weight: 700; font-size: .95rem; }
.trust li { display: flex; gap: 6px; align-items: center; }
.trust svg { width: 18px; height: 18px; color: var(--mint-deep); }

.phone { position: relative; width: min(320px, 86vw); margin: 0 auto; background: var(--ink); border-radius: 46px; padding: 12px; box-shadow: 0 30px 60px rgba(61, 48, 42, .18), 0 0 0 10px rgba(255, 255, 255, .6); transform: rotate(3deg); }
.phone .screen { background: var(--bg); border-radius: 36px; padding: 34px 16px 20px; overflow: hidden; }
.phone .notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; background: var(--ink); border-radius: 999px; }
.phone .loyalty { margin: 0; padding: 18px; }
.phone h3 { margin: 0; font-size: 1.3rem; font-weight: 900; }
.phone .stamps { gap: 7px; margin: 12px 0; }
.phone .spot { font-size: .85rem; padding: 9px 12px; margin: 10px 0 0; }
.phone .ready { font-size: .95rem; padding: 10px; }
.float { position: absolute; background: #fff; border-radius: 16px; padding: 10px 14px; font-weight: 800; font-size: .9rem; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; transform: rotate(-3deg); }
.float svg { width: 18px; height: 18px; color: var(--mint-deep); }
.float.a { left: -34px; top: 32%; }
.float.b { right: -28px; bottom: 14%; background: var(--butter); }
@media (max-width: 480px) { .float.a { left: -8px; } .float.b { right: -8px; } }

.lp-section { padding: 56px 0 8px; }
.lp-section > h2, .section-head h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 12px; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 900; font-size: .8rem; color: var(--peach-deep); margin-bottom: 8px; }

.problem { display: grid; gap: 16px; }
@media (min-width: 800px) { .problem { grid-template-columns: 1fr 1fr; } }
.problem .panel { margin: 0; padding: 28px; }
.problem h3 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 900; }
.problem ul { margin: 0; padding-left: 20px; }
.problem li { margin: 6px 0; }
.panel.rose { background: var(--rose); border-color: transparent; }

.how { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 800px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.how li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--peach); color: var(--peach-deep); font-weight: 900; font-size: 1.2rem; margin-bottom: 14px; }
.how h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 900; }
.how { padding: 0; margin: 0; }

.lp-section .features { margin: 0; }
@media (min-width: 900px) { .lp-section .features { grid-template-columns: repeat(3, 1fr); } }
.lp-section .features li { padding: 24px; }
.features .ic { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .7); display: grid; place-items: center; margin-bottom: 12px; }
.features .ic svg { width: 22px; height: 22px; }

.calc { display: grid; gap: 24px; align-items: center; background: var(--ink); color: #fff; border-radius: 30px; padding: 32px; }
@media (min-width: 860px) { .calc { grid-template-columns: 1fr 1fr; padding: 48px; } }
.calc h2 { color: #fff; }
.calc .muted { color: #d9cdc4; }
.calc label { color: #fff; }
.calc input[type=range] { width: 100%; accent-color: var(--peach); padding: 0; border: 0; background: none; }
.calc output { float: right; font-weight: 900; color: var(--peach); }
.calc .result { background: var(--peach); color: var(--ink); border-radius: 22px; padding: 28px; text-align: center; }
.calc .result b { display: block; font-size: clamp(2.6rem, 8vw, 3.6rem); font-weight: 900; line-height: 1; margin: 6px 0; }

.pricing { display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .pricing { grid-template-columns: 1fr 1fr; } }
.price-card { background: #fff; border: 3px solid var(--peach-deep); border-radius: 30px; padding: 32px; box-shadow: 0 20px 50px rgba(217, 112, 76, .15); position: relative; }
.price-card .tag { position: absolute; top: -16px; left: 28px; background: var(--peach-deep); color: #fff; font-weight: 900; font-size: .85rem; padding: 6px 14px; border-radius: 999px; }
.price-card .price { font-size: 4rem; }
.price-card .btn { width: 100%; min-height: 60px; font-size: 1.1rem; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 800; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--peach-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--muted); }

.final { text-align: center; background: linear-gradient(135deg, var(--peach) 0%, var(--rose) 50%, var(--lilac) 100%); border-radius: 34px; padding: 56px 24px; margin: 64px 0 16px; }
.final h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; letter-spacing: -0.03em; margin: 0 0 12px; }
.final .cta-row { justify-content: center; }
.grow { flex: 1; }
.sticky { border-radius: 0 0 20px 20px; }
.phone { aspect-ratio: 9 / 18.5; display: flex; }
.phone .screen { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 48px; }
.phone .screen::after { content: ""; display: block; margin: auto auto 6px; width: 110px; height: 5px; border-radius: 999px; background: var(--line); }
.float.a { top: 9%; left: -48px; }
.float.b { bottom: 8%; right: -40px; }
@media (max-width: 480px) { .float.a { left: -6px; } .float.b { right: -6px; } }
.phone { width: min(300px, 84vw); }
.mock-qr { text-align: center; margin-top: 14px; }
.mock-qr .qr { width: 132px; padding: 8px; border-radius: 14px; }
.mock-qr .code { font-size: 1.1rem; margin-top: 8px; }
.float.a { top: 40%; left: -56px; }

/* ---------- Cosy handwritten layer ---------- */
:root { --hand: "Gochi Hand", "Patrick Hand", "Comic Sans MS", cursive; }
body {
  background:
    radial-gradient(rgba(217, 112, 76, .07) 1.2px, transparent 1.2px) 0 0 / 22px 22px,
    radial-gradient(60vw 40vw at 100% 0, var(--rose) 0, transparent 70%),
    radial-gradient(50vw 40vw at 0 30%, var(--mint) 0, transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
h1, h2, h3, .brand, .price, .phone h3, .lp-hero h1, .lp-section > h2, .section-head h2, .final h2, .problem h3, .how h3, .features b, .calc .result b, .code-hand {
  font-family: var(--hand); font-weight: 400; letter-spacing: 0;
}
h1 { font-size: clamp(2.3rem, 7vw, 3.2rem); line-height: 1.05; }
h2 { font-size: 1.6rem; }
.brand { font-size: 1.6rem; }
.lp-hero h1 { font-size: clamp(3.2rem, 9vw, 5.6rem); line-height: .98; font-weight: 400; }
.lp-hero h1 em { background: none; text-decoration: underline wavy var(--peach-deep); text-decoration-thickness: 3px; text-underline-offset: 10px; color: var(--peach-deep); }
.lp-section > h2, .section-head h2 { font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.02; }
.final h2 { font-size: clamp(2.6rem, 7vw, 4rem); }
.problem h3, .how h3 { font-size: 1.7rem; }
.features b { font-size: 1.5rem; }
.price { font-size: 3.6rem; }
.price-card .price { font-size: 4.6rem; }
.calc .result b { font-size: clamp(3.4rem, 10vw, 4.6rem); }
.phone h3 { font-size: 1.7rem; }
.eyebrow { font-family: var(--hand); text-transform: none; letter-spacing: 0; font-size: 1.35rem; font-weight: 400; }
/* sticker feel */
.features li:nth-child(odd) { transform: rotate(-.8deg); }
.features li:nth-child(even) { transform: rotate(.8deg); }
.how li:nth-child(2) { transform: rotate(.6deg); }
.how li:nth-child(3) { transform: rotate(-.6deg); }
.price-card::after { content: ""; position: absolute; inset: 10px; border: 2px dashed var(--peach); border-radius: 22px; pointer-events: none; }
.btn, button { font-family: var(--round); }
.note { position: absolute; left: -150px; bottom: 34%; font-family: var(--hand); font-size: 1.35rem; color: var(--peach-deep); transform: rotate(-6deg); margin: 0; width: 150px; line-height: 1.1; }
.note svg { display: block; width: 60px; height: 40px; margin: 4px 0 0 60px; }
@media (max-width: 1000px) { .note { display: none; } }

/* ================= Brand: The Usual logo theme ================= */
:root {
  --orange: #e84c01;          /* logo orange */
  --orange-ink: #b83c00;      /* small text on cream, AA contrast */
  --cream: #fff3e0;           /* logo cup cream */
  --bg: #fff8ef;
  --peach: #ffdcc7;
  --peach-deep: var(--orange);
  --line: #f3e2cf;
  --ink: #3a2a20;
  --hand: "Kalam", "Patrick Hand", cursive;
}
a { color: var(--orange-ink); }
h1, h2, h3, .price, .phone h3, .lp-hero h1, .lp-section > h2, .section-head h2, .final h2, .problem h3, .how h3, .features b, .calc .result b, .eyebrow { font-family: var(--hand); font-weight: 700; }
.lp-hero h1 { font-size: clamp(3rem, 8.4vw, 5.4rem); line-height: 1; letter-spacing: -0.01em; }
.lp-hero h1 em { color: var(--orange); text-decoration-color: var(--orange); }
.eyebrow { color: var(--orange-ink); }
.brand img { display: block; height: 58px; width: auto; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover img { transform: rotate(-4deg) scale(1.05); }
header.top:not(.nav) .brand img { height: 50px; }

button, .btn { position: relative; overflow: hidden; background: var(--orange); box-shadow: 0 6px 0 #b83c00, 0 12px 24px rgba(232, 76, 1, .25); transition: transform .15s ease, box-shadow .15s ease; }
button:hover:not(:disabled), .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #b83c00, 0 16px 28px rgba(232, 76, 1, .3); }
button:active:not(:disabled), .btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #b83c00, 0 4px 10px rgba(232, 76, 1, .2); }
button::after, .btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); }
button:hover::after, .btn:hover::after { animation: shine .7s ease; }
button.ghost, .btn.ghost { box-shadow: 0 4px 0 var(--line); }
button.ghost:hover, .btn.ghost:hover { box-shadow: 0 6px 0 var(--line); }
button.soft { box-shadow: 0 4px 0 #b9e3cf; }
@keyframes shine { to { transform: translateX(120%); } }

.stamp.on { color: var(--orange); }
.stamp { border-color: rgba(232, 76, 1, .3); color: rgba(232, 76, 1, .3); }
.price-card { border-color: var(--orange); }
.price-card .tag { background: var(--orange); }
.calc .result { background: var(--cream); }
.calc output { color: #ffb48a; }
.loyalty { background: linear-gradient(160deg, #ffd2b8 0%, var(--cream) 55%, #ffe6d6 100%); }

/* ---------- Constant motion ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes bob2 { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(-1deg); } }
@keyframes drift { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(30px, -40px) rotate(180deg); } 100% { transform: translate(0, 0) rotate(360deg); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(8px) scaleX(1); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-26px) scaleX(1.4); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
@keyframes toast { 0% { opacity: 0; transform: translateY(10px) scale(.9) rotate(-3deg); } 15%, 85% { opacity: 1; transform: translateY(0) scale(1) rotate(-3deg); } 100% { opacity: 0; transform: translateY(-6px) scale(.95) rotate(-3deg); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(232, 76, 1, .45); } 100% { box-shadow: 0 0 0 18px rgba(232, 76, 1, 0); } }
@keyframes float-logo { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }

.phone { animation: bob 6s ease-in-out infinite; }
.float.a { animation: toast 2.2s ease infinite; }
.float.b { animation: bob2 4s ease-in-out infinite; }
.note { animation: wiggle 3s ease-in-out infinite; }
.btn.pulse { animation: pulse-ring 1.8s ease-out infinite; }

.beans { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.beans svg { position: absolute; width: 34px; height: 34px; color: rgba(232, 76, 1, .13); animation: drift 22s linear infinite; }
.beans svg:nth-child(1) { top: 12%; left: 6%; }
.beans svg:nth-child(2) { top: 28%; right: 8%; width: 48px; height: 48px; animation-duration: 28s; animation-direction: reverse; }
.beans svg:nth-child(3) { top: 55%; left: 3%; width: 26px; height: 26px; animation-duration: 18s; }
.beans svg:nth-child(4) { top: 70%; right: 4%; animation-duration: 25s; }
.beans svg:nth-child(5) { top: 88%; left: 40%; width: 40px; height: 40px; animation-duration: 30s; animation-direction: reverse; }
.beans svg:nth-child(6) { top: 40%; left: 48%; width: 22px; height: 22px; animation-duration: 20s; }

.cupwrap { position: relative; display: inline-block; }
.steam { position: absolute; left: 50%; top: -22px; width: 44px; height: 30px; transform: translateX(-50%); color: var(--orange); }
.steam path { animation: steam 2.4s ease-in-out infinite; transform-box: fill-box; }
.steam path:nth-child(2) { animation-delay: .8s; }
.steam path:nth-child(3) { animation-delay: 1.6s; }

.ticker { overflow: hidden; background: var(--orange); color: #fff; margin: 40px -16px 0; padding: 14px 0; transform: rotate(-1.2deg); font-family: var(--hand); font-weight: 700; font-size: 1.35rem; }
.ticker div { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap; }
.ticker svg { width: 20px; height: 20px; color: #ffd2b8; }

.final .logo-big { width: min(340px, 70vw); height: auto; animation: float-logo 5s ease-in-out infinite; margin-bottom: 8px; }
.features li { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.features li:hover { transform: rotate(0) scale(1.04); }
.features li:hover .ic { animation: wiggle .5s ease; }
.how li { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.how li:hover { transform: translateY(-6px) rotate(0); }

/* Scroll reveal (only when JS is running, so content never stays hidden) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Bean burst for stamps and rewards */
.burst { position: fixed; pointer-events: none; z-index: 50; width: 18px; height: 18px; color: var(--orange); }
.mock-ready { display: none; }
.phone.full .mock-ready { display: block; animation: toast 1.6s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
html, body { overflow-x: clip; }
.ticker { width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0; }
.nowrap { white-space: nowrap; }
.sticky .brand img { height: 64px; }
.lp-hero h1 { font-size: clamp(2.8rem, 7vw, 4.5rem); }

/* ================= Forms, shared bits ================= */
textarea { width: 100%; font: inherit; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); resize: vertical; }
textarea:focus { border-color: var(--orange); outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 14px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--orange); }
.small { font-size: .88rem; }
.holder { margin: 0 0 2px; font-weight: 800; color: var(--orange-ink); }
.safe { display: flex; gap: 10px; align-items: flex-start; background: var(--mint); color: var(--mint-deep); border-radius: 16px; padding: 12px 14px; font-weight: 700; margin: 0; }
.safe svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.wide-btn { width: 100%; }
#keep form { display: grid; gap: 10px; }
#keep form .check { margin: 2px 0; }

/* ================= Wallet: stacked passes ================= */
.wallet { display: flex; flex-direction: column; margin: 18px 0 8px; }
.pass { position: relative; border-radius: 24px; padding: 18px 20px 20px; min-height: 190px; color: #fff; cursor: pointer; margin-top: -128px;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .25) inset, 0 -6px 18px rgba(58, 42, 32, .12), 0 14px 30px rgba(58, 42, 32, .16);
  animation: deal .7s cubic-bezier(.2, .9, .25, 1.05) both; animation-delay: calc(var(--i) * 90ms); outline-offset: 4px; }
.pass:first-child { margin-top: 0; }
.pass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 80% at 100% 0, rgba(255, 255, 255, .35), transparent 55%); }
.pass header { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pass header b { font-family: var(--hand); font-size: 1.45rem; line-height: 1.1; }
.pass-count { font-weight: 900; font-size: 1.1rem; background: rgba(255, 255, 255, .22); padding: 2px 10px; border-radius: 999px; }
.pass-body { display: none; position: relative; }
.pass.active .pass-body { display: block; animation: fade .4s .15s ease both; }
.pass .holder { color: rgba(255, 255, 255, .85); margin-top: 4px; }
.pass .qr { width: 210px; margin-top: 8px; box-shadow: 0 10px 24px rgba(0, 0, 0, .15); }
.pass .code { color: #fff; }
.pass-reward { text-align: center; font-weight: 800; }
.pass .btn { width: 100%; margin-top: 6px; }
.pass .spot { color: var(--ink); }
.wallet.open .pass:not(.active) { margin-top: -158px; }
.wallet.open .pass.active + .pass { margin-top: 16px; }
.wallet:not(.open) .pass:hover { translate: 0 -6px; transition: translate .25s ease; }
.pass.t0 { background: linear-gradient(145deg, #ff7a2f, #e84c01 55%, #b83c00); }
.pass.t1 { background: linear-gradient(145deg, #3aa57a, #2f7d58 60%, #1f5a3e); }
.pass.t2 { background: linear-gradient(145deg, #8f7cf0, #5b48c8 60%, #3d2f99); }
.pass.t3 { background: linear-gradient(145deg, #f1a33a, #d07a12 60%, #9c5806); }
.pass.t4 { background: linear-gradient(145deg, #e86a8a, #c2416a 60%, #8e2449); }
@keyframes deal { from { opacity: 0; transform: translateY(60px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ================= Checkout (Apple-style) ================= */
main.co-main { max-width: 1080px; position: relative; }
.co-main ~ footer, .co-main { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Nunito", system-ui, sans-serif; }
.orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orbs i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .55; animation: orb 18s ease-in-out infinite alternate; }
.orbs i:nth-child(1) { background: #ffb38a; top: -18vmax; right: -10vmax; }
.orbs i:nth-child(2) { background: #ffe2a8; bottom: -20vmax; left: -14vmax; animation-duration: 22s; }
.orbs i:nth-child(3) { background: #f8c8d4; top: 30%; left: 40%; width: 30vmax; height: 30vmax; animation-duration: 26s; }
@keyframes orb { to { transform: translate(6vmax, 4vmax) scale(1.12); } }
.co { display: grid; gap: 28px; align-items: start; padding-top: 8px; }
@media (min-width: 900px) { .co { grid-template-columns: 1fr 1.05fr; gap: 56px; padding-top: 28px; } .co-sum { position: sticky; top: 28px; } }
.rise { animation: rise .9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--d) * 85ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.co-kicker { font-weight: 600; color: var(--muted); font-size: 1.05rem; margin: 0; letter-spacing: -.01em; }
.co-name { font-family: inherit !important; font-weight: 800 !important; font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -.035em; margin: 2px 0 22px; line-height: 1.02; }
.co-pass { position: relative; overflow: hidden; border-radius: 26px; padding: 20px 22px; color: #fff; max-width: 400px; aspect-ratio: 1.586;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, #ff8a3d, #e84c01 50%, #a83600); box-shadow: 0 30px 60px -20px rgba(184, 60, 0, .55), 0 0 0 1px rgba(255, 255, 255, .15) inset;
  transform: perspective(900px) rotateX(8deg) rotateY(-10deg); animation: rise .9s cubic-bezier(.16, 1, .3, 1) both, tilt 7s 1.2s ease-in-out infinite alternate; animation-delay: 250ms, 1.2s; }
.co-pass::after { content: ""; position: absolute; inset: -50%; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .45) 50%, transparent 60%); animation: sheen 4.5s 1.5s ease-in-out infinite; }
@keyframes sheen { 0% { transform: translateX(-60%); } 40%, 100% { transform: translateX(60%); } }
@keyframes tilt { to { transform: perspective(900px) rotateX(-4deg) rotateY(8deg); } }
.co-pass-top { display: flex; justify-content: space-between; align-items: center; }
.co-pass-top img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.co-pass-top span { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; opacity: .85; }
.co-dots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.co-dots i { aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); animation: dot 4.8s ease-in-out infinite; animation-delay: calc(var(--k) * 260ms + 1.2s); }
@keyframes dot { 0%, 8% { background: transparent; transform: scale(1); } 14% { background: #fff; transform: scale(1.25); } 20%, 80% { background: #fff; transform: scale(1); } 92%, 100% { background: transparent; } }
.co-pass-foot { display: flex; justify-content: space-between; font-weight: 700; font-size: .95rem; }
.co-price { display: flex; align-items: baseline; gap: 4px; margin: 34px 0 4px; font-weight: 800; letter-spacing: -.05em; }
.co-price .cur { font-size: 2.6rem; }
#co-num { font-size: 5.6rem; line-height: .9; font-variant-numeric: tabular-nums; min-width: .65em; }
.co-price .per { font-size: 1.2rem; color: var(--muted); letter-spacing: -.01em; font-weight: 600; margin-left: 6px; }
.co-vat { color: var(--muted); font-weight: 500; margin: 0 0 20px; }
.co-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.co-list li { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.co-list svg { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 50%; background: var(--ink); color: #fff; }
.co-pay { background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 30px; padding: 22px; box-shadow: 0 40px 80px -30px rgba(58, 42, 32, .3), 0 1px 0 #fff inset; min-height: 520px; }
#checkout { min-height: 460px; border-radius: 18px; overflow: hidden; }
.co-skel { display: grid; gap: 14px; padding: 8px; }
.co-skel i { display: block; height: 52px; border-radius: 12px; background: linear-gradient(90deg, #f4ede6 0%, #fbf7f3 50%, #f4ede6 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.co-skel i:first-child { height: 110px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.co-secure { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; font-weight: 600; margin: 14px 0 0; }
.co-secure svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .rise, .co-pass, .co-pass::after, .co-dots i, .orbs i, .pass, .pass-body { animation: none !important; } .co-pass { transform: none; } }

/* ================= Dashboard ================= */
main.dash { max-width: 820px; }
.paid { display: grid; justify-items: center; gap: 4px; text-align: center; background: #fff; border-radius: var(--radius); padding: 26px; margin: 12px 0; box-shadow: var(--shadow); animation: rise .8s cubic-bezier(.16, 1, .3, 1) both; }
.paid b { font-family: var(--hand); font-size: 1.8rem; }
.paid span { color: var(--muted); }
.tick-draw { width: 72px; height: 72px; fill: none; stroke: var(--mint-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tick-draw circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s .1s ease forwards; }
.tick-draw path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .7s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tabs { position: sticky; top: 8px; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 5px; margin: 12px 0 4px; border-radius: 20px;
  background: rgba(255, 255, 255, .8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow); border: 1px solid var(--line); }
button.tab { min-height: 52px; padding: 6px 4px; flex-direction: column; gap: 2px; font-size: .8rem; border-radius: 15px; background: transparent; color: var(--muted); box-shadow: none; }
button.tab:hover:not(:disabled) { transform: none; box-shadow: none; background: var(--bg); }
button.tab::after { display: none; }
button.tab.on { background: var(--orange); color: #fff; box-shadow: 0 6px 14px rgba(232, 76, 1, .3); }
button.tab svg { width: 20px; height: 20px; }
.pane { animation: fade .35s ease; }
.who { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; }
.who b { font-family: var(--hand); font-size: 1.6rem; }
.usual { margin: 4px 0 6px; }
.usual label { margin-top: 6px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow); animation: rise .6s cubic-bezier(.16, 1, .3, 1) both; }
.kpi:nth-child(2) { animation-delay: 50ms; } .kpi:nth-child(3) { animation-delay: 100ms; } .kpi:nth-child(4) { animation-delay: 150ms; } .kpi:nth-child(5) { animation-delay: 200ms; } .kpi:nth-child(6) { animation-delay: 250ms; }
.kpi span { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); }
.kpi b { display: block; font-family: var(--hand); font-size: 2.3rem; line-height: 1.1; }
.kpi small { color: var(--muted); font-weight: 600; }
.kpi.up small { color: var(--mint-deep); }
.kpi.down small { color: var(--bad); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 6px; border-bottom: 2px solid var(--line); }
.bars i { flex: 1; height: max(3px, calc(var(--h) * 100%)); background: linear-gradient(var(--orange), #ff9a5c); border-radius: 5px 5px 0 0; transform-origin: bottom; animation: grow .6s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--k) * 18ms); }
.bars i:hover { filter: brightness(1.15); }
@keyframes grow { from { transform: scaleY(0); } }
.heat { display: grid; grid-template-columns: 34px repeat(var(--cols), 1fr); gap: 3px; font-size: .68rem; font-weight: 700; color: var(--muted); }
.heat .hl { text-align: left; white-space: nowrap; overflow: visible; }
.heat .dl { align-self: center; }
.heat i { height: 24px; border-radius: 5px; background: color-mix(in srgb, var(--orange) calc(var(--v) * 100%), #f6ece2); animation: fade .5s ease both; }
.peak { font-weight: 800; margin: 12px 0 0; }
.two { display: grid; gap: 0 16px; }
@media (min-width: 700px) { .two { grid-template-columns: 1fr 1fr; } }
.people { list-style: none; padding: 0; margin: 0; counter-reset: p; }
.people li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); counter-increment: p; }
.people li:first-child { border-top: 0; }
.people li::before { content: counter(p); grid-row: span 3; width: 28px; height: 28px; border-radius: 50%; background: var(--peach); color: var(--orange-ink); display: grid; place-items: center; font-weight: 900; font-size: .85rem; }
.people li.muted::before { display: none; }
.people em { color: var(--orange-ink); font-style: normal; font-weight: 700; font-size: .9rem; }
#q { margin-bottom: 8px; }
.clist { list-style: none; padding: 0; margin: 0; }
.cust { border-top: 1px solid var(--line); }
.cust:first-child { border-top: 0; }
button.cust-head { width: 100%; justify-content: flex-start; gap: 12px; text-align: left; background: transparent; color: var(--ink); box-shadow: none; border-radius: 14px; padding: 10px 6px; font-weight: 600; }
button.cust-head:hover:not(:disabled), button.cust-head:active:not(:disabled) { transform: none; box-shadow: none; background: var(--bg); }
button.cust-head::after { display: none; }
.av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--peach), var(--rose)); color: var(--orange-ink); font-weight: 900; }
.cust-main { flex: 1; min-width: 0; display: grid; }
.cust-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cust-stamps { font-weight: 900; color: var(--orange-ink); }
.cust-body { padding: 4px 6px 16px; display: grid; gap: 10px; animation: fade .3s ease; }
.cust-body .qr { width: 200px; border: 1px solid var(--line); }

/* ================= A4 poster (sized in container units so screen preview = print) ================= */
.poster-frame { container-type: inline-size; width: 100%; aspect-ratio: 210 / 297; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px -20px rgba(58, 42, 32, .4); margin: 6px 0; }
.poster { position: relative; width: 100%; height: 100%; overflow: hidden; background: #fff3e0; color: var(--ink); text-align: center; font-family: var(--round); }
.pz-bg { position: absolute; inset: 0; color: rgba(232, 76, 1, .14); }
.pz-bg i { position: absolute; border-radius: 50%; }
.pz-bg i:nth-child(1) { width: 80cqw; height: 80cqw; background: var(--orange); top: -50cqw; right: -36cqw; }
.pz-bg i:nth-child(2) { width: 70cqw; height: 70cqw; background: #ffdcc7; bottom: -30cqw; left: -28cqw; }
.pz-bg i:nth-child(3) { width: 26cqw; height: 26cqw; border: 1.6cqw solid #ffdcc7; top: 34cqw; left: -10cqw; }
.pz-bg svg { position: absolute; width: 6cqw; height: 6cqw; }
.pz-bg svg:nth-of-type(1) { top: 8cqw; left: 9cqw; transform: rotate(-20deg); }
.pz-bg svg:nth-of-type(2) { top: 62cqw; right: 6cqw; width: 8cqw; height: 8cqw; transform: rotate(40deg); }
.pz-bg svg:nth-of-type(3) { bottom: 32cqw; left: 6cqw; transform: rotate(10deg); }
.pz-bg svg:nth-of-type(4) { bottom: 9cqw; right: 12cqw; width: 9cqw; height: 9cqw; color: rgba(255, 255, 255, .7); }
.pz-bg svg:nth-of-type(5) { top: 20cqw; right: 30cqw; width: 4cqw; height: 4cqw; color: rgba(255, 255, 255, .6); }
.pz-bg svg:nth-of-type(6) { bottom: 50cqw; right: 4cqw; width: 4.5cqw; height: 4.5cqw; }
.pz-bg svg:nth-of-type(7) { top: 44cqw; left: 12cqw; width: 3.5cqw; height: 3.5cqw; }
.pz-in { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; padding: 5cqw 7cqw 4.5cqw; }
.poster p { margin: 0; }
.pz-logo { width: 15cqw; height: auto; align-self: flex-start; }
.pz-kicker { font-family: var(--hand); font-size: 5.2cqw; color: var(--orange-ink); margin: 0; transform: rotate(-2deg); }
.poster .pz-name { font-family: var(--hand); font-weight: 700; font-size: min(12.5cqw, calc(150cqw / var(--len, 10))); line-height: .95; margin: .5cqw 0 2cqw; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.pz-offer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6cqw 2.2cqw; font-weight: 800; font-size: 4.2cqw; }
.pz-offer b { display: grid; place-items: center; width: 10cqw; height: 10cqw; border-radius: 50%; background: var(--orange); color: #fff; font-size: 5.6cqw; font-weight: 900; box-shadow: 0 1cqw 0 #b83c00; }
.pz-offer strong { flex-basis: 100%; font-family: var(--hand); font-size: 6.8cqw; color: var(--orange); line-height: 1; }
.pz-qr { position: relative; margin: 4cqw 0 0; padding: 3cqw; background: #fff; border-radius: 6cqw; box-shadow: 0 3cqw 7cqw rgba(184, 60, 0, .18); }
.pz-qr .qr { width: 37cqw; padding: 0; border-radius: 0; }
.pz-qr .c { position: absolute; width: 8cqw; height: 8cqw; border: 1.4cqw solid var(--orange); }
.pz-qr .tl { top: -2.4cqw; left: -2.4cqw; border-right: 0; border-bottom: 0; border-top-left-radius: 5cqw; }
.pz-qr .tr { top: -2.4cqw; right: -2.4cqw; border-left: 0; border-bottom: 0; border-top-right-radius: 5cqw; }
.pz-qr .bl { bottom: -2.4cqw; left: -2.4cqw; border-right: 0; border-top: 0; border-bottom-left-radius: 5cqw; }
.pz-qr .br { bottom: -2.4cqw; right: -2.4cqw; border-left: 0; border-top: 0; border-bottom-right-radius: 5cqw; }
.pz-cta { font-family: var(--hand); font-size: 5.2cqw; margin: 3.6cqw 0 3cqw; color: var(--orange-ink); }
.pz-steps { list-style: none; padding: 0; margin: auto 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; width: 100%; }
.pz-steps li { background: rgba(255, 255, 255, .85); border-radius: 4cqw; padding: 2.4cqw 2cqw 2.2cqw; font-size: 2.6cqw; font-weight: 600; color: var(--muted); line-height: 1.25; }
.pz-steps span { display: grid; place-items: center; width: 7cqw; height: 7cqw; margin: 0 auto 1cqw; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 900; font-size: 3.6cqw; }
.pz-steps b { display: block; font-family: var(--hand); font-size: 4.6cqw; color: var(--ink); margin-bottom: .6cqw; }
.pz-foot { margin: 2.6cqw 0 0 !important; font-weight: 800; font-size: 3cqw; letter-spacing: .02em; }

@media print {
  @page { size: A4 portrait; margin: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: #fff !important; margin: 0; padding: 0; min-height: 0; }
  body > :not(main), main > :not([data-pane="more"]), [data-pane="more"] > :not(#poster-wrap), #poster-wrap > :not(.poster-frame), .burst { display: none !important; }
  main, [data-pane="more"], #poster-wrap { display: block !important; margin: 0 !important; padding: 0 !important; max-width: none !important; border: 0 !important; box-shadow: none !important; background: none !important; animation: none !important; }
  /* 178mm wide keeps A4 proportions and fits one page on A4 or US Letter, even with the browser's own print margins. */
  .poster-frame { width: 178mm; height: 251.7mm; aspect-ratio: auto; border-radius: 6mm; box-shadow: none; margin: 0 auto; break-inside: avoid; page-break-inside: avoid; }
  html, body, main { height: auto !important; overflow: hidden; }
}
.d0 { --d: 0; } .d1 { --d: 1; } .d2 { --d: 2; } .d3 { --d: 3; } .d4 { --d: 4; } .d5 { --d: 5; } .d6 { --d: 6; } .d7 { --d: 7; } .d8 { --d: 8; } .d9 { --d: 9; } 
.co-dots i:nth-child(1) { --k: 0; } .co-dots i:nth-child(2) { --k: 1; } .co-dots i:nth-child(3) { --k: 2; } .co-dots i:nth-child(4) { --k: 3; } .co-dots i:nth-child(5) { --k: 4; } .co-dots i:nth-child(6) { --k: 5; } .co-dots i:nth-child(7) { --k: 6; } .co-dots i:nth-child(8) { --k: 7; } 

/* ================= Page open + hero headline ================= */
.js main:not(.co-main) > *:not(.reveal):not(.beans) { animation: enter .8s cubic-bezier(.16, 1, .3, 1) both; }
.js main > :nth-child(2) { animation-delay: 70ms; } .js main > :nth-child(3) { animation-delay: 140ms; }
.js main > :nth-child(4) { animation-delay: 210ms; } .js main > :nth-child(5) { animation-delay: 280ms; }
.js main > :nth-child(n+6) { animation-delay: 340ms; }
.js header.top .brand img { animation: logo-in .9s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes logo-in { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }

/* Hero: every word rises out of a blur, then "regulars" gets highlighted and underlined. */
.js .lp-hero h1:not(.split) { visibility: hidden; }
.lp-hero h1 .w { display: inline-block; }
.lp-hero h1.split .w { animation: word 1s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 95ms + 150ms); transform-origin: 0 100%; }
@keyframes word { from { opacity: 0; transform: translateY(.55em) rotate(5deg); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.lp-hero h1.split em { position: relative; text-decoration-color: transparent; animation: word 1s cubic-bezier(.16, 1, .3, 1) both, underline .6s ease forwards, nudge .5s cubic-bezier(.34, 1.56, .64, 1); animation-delay: calc(var(--i) * 95ms + 150ms), calc(var(--i) * 95ms + 850ms), calc(var(--i) * 95ms + 1300ms); }
.lp-hero h1.split em::before { content: ""; position: absolute; inset: 52% -4px 4% -4px; z-index: -1; border-radius: 6px; background: var(--peach); transform: scaleX(0); transform-origin: left; animation: swipe .55s cubic-bezier(.65, 0, .35, 1) forwards; animation-delay: calc(var(--i) * 95ms + 700ms); }
@keyframes underline { to { text-decoration-color: var(--orange); } }
@keyframes swipe { to { transform: scaleX(1); } }
@keyframes nudge { 50% { transform: rotate(-3deg) scale(1.06); } }
.js .lp-hero > div > :not(h1):not(.pill) { animation: enter .9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: 1.1s; }
.js .lp-hero > div > .pill { animation: enter .7s cubic-bezier(.16, 1, .3, 1) both; }
.js .lp-hero > div > .cta-row { animation-delay: 1.25s; } .js .lp-hero > div > .trust { animation-delay: 1.4s; }
.js .lp-hero > .phone { animation: phone-in 1.2s cubic-bezier(.16, 1, .3, 1) .5s both; }
@keyframes phone-in { from { opacity: 0; transform: translateY(60px) rotate(6deg) scale(.92); } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js main > *, .js header.top .brand img, .lp-hero h1 .w, .lp-hero h1.split em, .lp-hero h1.split em::before, .js .lp-hero > div > *, .js .lp-hero > .phone { animation: none !important; }
  .lp-hero h1.split em { text-decoration-color: var(--orange); } .lp-hero h1.split em::before { transform: none; }
}

/* "Stamp added" toast: sits off the phone's top-left corner so it never covers the card. */
.phone .float.a { top: -22px; left: -96px; padding: 8px 12px; font-size: .82rem; border-radius: 999px; z-index: 2; box-shadow: 0 10px 24px rgba(58, 42, 32, .14); }
@media (max-width: 1000px) { .phone .float.a { left: auto; right: -10px; top: -26px; } }

/* Headline loop: words fall away, the highlight wipes off, then everything lands again faster. */
.lp-hero h1.out .w { animation: word-out .5s cubic-bezier(.7, 0, .84, 0) both !important; animation-delay: calc(var(--i) * 35ms) !important; }
.lp-hero h1.out em::before { animation: unswipe .3s ease forwards !important; transform-origin: right; }
.lp-hero h1.again .w { animation-duration: .8s; animation-delay: calc(var(--i) * 60ms); }
.lp-hero h1.again em { animation-delay: calc(var(--i) * 60ms), calc(var(--i) * 60ms + 500ms), calc(var(--i) * 60ms + 850ms); }
.lp-hero h1.again em::before { animation-delay: calc(var(--i) * 60ms + 380ms); }
@keyframes word-out { to { opacity: 0; transform: translateY(-.35em) rotate(-4deg); filter: blur(8px); } }
@keyframes unswipe { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.lp-hero h1 em { display: inline-block; white-space: nowrap; }

/* Stamp landing: drops in, squashes, settles, and a ring ripples out. */
.stamp { position: relative; }
.stamp.new { animation: thunk .6s cubic-bezier(.34, 1.56, .64, 1); }
.stamp.new::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 3px solid var(--orange); animation: ring .7s ease-out forwards; pointer-events: none; }
@keyframes thunk { 0% { transform: scale(1.8) rotate(-25deg); opacity: 0; } 45% { transform: scale(.82) rotate(6deg); opacity: 1; } 70% { transform: scale(1.08) rotate(-2deg); } 100% { transform: none; } }
@keyframes ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

/* Every tap feels physical on iPhone: quick spring down, no grey flash. */
a, button, .pass, .cust-head { -webkit-tap-highlight-color: transparent; }
button:active:not(:disabled), .btn:active { transform: translateY(4px) scale(.97); transition-duration: .06s; }
@media (prefers-reduced-motion: reduce) { .lp-hero h1 .w, .lp-hero h1 em, .stamp.new, .stamp.new::after { animation: none !important; } }

/* ================= iPhone-first tightening ================= */
@media (max-width: 480px) {
  header.nav { gap: 6px; }
  header.nav a { white-space: nowrap; font-size: .92rem; }
  header.nav .btn.small { padding: 8px 14px; min-height: 40px; font-size: .9rem; }
  header.nav .brand img { height: 44px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; min-height: 56px; font-size: 1.05rem; }
  #w-find, #manual { flex-direction: column; }
  #w-find > *, #manual > * { flex: none; width: 100%; }
  main { padding-left: 16px; padding-right: 16px; }
  .panel { padding: 18px; }
  input, textarea { font-size: 16px; } /* stops iOS zooming into fields */
}
main { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
.row > button { white-space: nowrap; }
@media (max-width: 480px) { header.nav { gap: 12px; } .co-pass { max-width: 300px; } .co-price { margin-top: 22px; } }

/* ================= Shop branding ================= */
.biz-logo { display: block; width: 72px; height: 72px; object-fit: contain; border-radius: 20px; background: #fff; padding: 6px; margin: 0 0 10px; box-shadow: 0 6px 16px rgba(58, 42, 32, .12); }
.loyalty.branded { background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 32%, #fff) 0%, color-mix(in srgb, var(--brand) 12%, #fff) 60%, color-mix(in srgb, var(--brand) 22%, #fff) 100%); }
.branded .stamp { border-color: color-mix(in srgb, var(--brand) 35%, transparent); color: color-mix(in srgb, var(--brand) 40%, transparent); }
.branded .stamp.on { color: var(--brand); }
.branded .stamp.new::after { border-color: var(--brand); }
.branded .holder { color: color-mix(in srgb, var(--brand) 70%, #000); }
.pass.custom { background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 78%, #fff), var(--brand) 55%, color-mix(in srgb, var(--brand) 68%, #000)); color: var(--on-brand); }
.pass.custom .holder, .pass.custom .code { color: var(--on-brand); }
.pass header { justify-content: flex-start; }
.pass header .pass-count { margin-left: auto; }
.pass-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 10px; background: #fff; padding: 3px; flex: none; align-self: center; }
.poster.branded { --orange: var(--brand); --orange-ink: color-mix(in srgb, var(--brand) 62%, #000); }
.poster.branded .pz-offer b { color: var(--on-brand); box-shadow: 0 1cqw 0 color-mix(in srgb, var(--brand) 65%, #000); }
.poster.branded .pz-bg i:nth-child(2), .poster.branded .pz-bg i:nth-child(3) { background: color-mix(in srgb, var(--brand) 22%, #fff); border-color: color-mix(in srgb, var(--brand) 22%, #fff); }
.poster.branded .pz-bg { color: color-mix(in srgb, var(--brand) 16%, transparent); }
.pz-biz-logo { height: 11cqw; width: auto; max-width: 40cqw; object-fit: contain; align-self: flex-start; border-radius: 2.4cqw; background: #fff; padding: 1cqw; }
.brand-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .brand-row { grid-template-columns: 220px 1fr; align-items: start; } }
.brand-prev { border-radius: 20px; padding: 16px; }
.brand-prev b { display: block; font-family: var(--hand); font-size: 1.3rem; }
.brand-prev .stamps { margin: 10px 0 0; gap: 6px; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 10px; }
button.swatch { min-height: 0; aspect-ratio: 1; padding: 0; border-radius: 50%; background: var(--c); box-shadow: none; border: 3px solid #fff; outline: 2px solid transparent; }
button.swatch::after { display: none; }
button.swatch.on { outline-color: var(--ink); }
button.swatch:hover:not(:disabled) { transform: scale(1.08); box-shadow: none; }
#b-color { height: 48px; padding: 4px; cursor: pointer; }
#b-logo { padding: 10px; }
.pending { background: var(--butter); border-radius: 16px; padding: 12px 14px; font-weight: 700; margin: 0 0 10px; }
#change-email { margin-top: 10px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 700; margin: 14px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 2px dashed var(--line); }
#verify { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
#verify button { min-height: 40px; padding: 6px 14px; }

/* At a glance: the two printable explainers */
.glance { display: grid; gap: 20px; grid-template-columns: 1fr; max-width: 920px; margin: 0 auto; }
@media (min-width: 700px) { .glance { grid-template-columns: 1fr 1fr; gap: 28px; } }
.glance a { display: block; text-decoration: none; color: var(--ink); text-align: center; }
.glance img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 24px 50px -24px rgba(58, 42, 32, .45); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s ease; }
.glance a:nth-child(1) img { transform: rotate(-1.5deg); }
.glance a:nth-child(2) img { transform: rotate(1.5deg); }
.glance a:hover img, .glance a:focus-visible img { transform: rotate(0) translateY(-6px) scale(1.02); box-shadow: 0 34px 60px -26px rgba(58, 42, 32, .5); }
.glance span { display: inline-block; margin-top: 14px; font-family: var(--hand); font-size: 1.35rem; color: var(--orange-ink); }
@media (prefers-reduced-motion: reduce) { .glance img { transition: none; transform: none !important; } }
.picks { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
button.pick { width: 100%; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; justify-content: stretch; text-align: left; background: var(--bg); color: var(--ink); box-shadow: none; border-radius: 16px; padding: 10px 12px; min-height: 60px; font-weight: 600; }
button.pick .av { grid-row: span 2; align-self: center; }
button.pick small { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.pick::after { display: none; }
button.pick:hover:not(:disabled) { transform: none; box-shadow: none; background: var(--peach); }
.cust-body .msg button { margin-left: 8px; min-height: 36px; padding: 4px 12px; }

/* ================= First-run setup ================= */
.onboard { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; background: rgba(58, 42, 32, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .3s ease; }
@media (min-width: 600px) { .onboard { place-items: center; } }
body.locked { overflow: hidden; }
.ob-card { width: min(520px, 100%); max-height: 100dvh; overflow: auto; background: var(--bg); border-radius: 28px 28px 0 0; padding: 22px 20px max(24px, env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px rgba(58, 42, 32, .25); animation: sheet .55s cubic-bezier(.16, 1, .3, 1); }
@media (min-width: 600px) { .ob-card { border-radius: 28px; padding: 28px; } }
@keyframes sheet { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.ob-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
.ob-dots i { width: 28px; height: 6px; border-radius: 3px; background: var(--line); transition: background .3s; }
.ob-dots i.on { background: var(--orange); }
.ob-step { animation: enter .45s cubic-bezier(.16, 1, .3, 1); }
.ob-step h2 { font-size: 1.7rem; line-height: 1.15; margin: 0 0 8px; }
.ob-step .big, .ob-step .row { margin-top: 16px; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.chips.small { grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
button.chip { flex-direction: column; gap: 0; min-height: 64px; padding: 8px 4px; background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: none; border-radius: 18px; }
.chips.small button.chip { min-height: 40px; font-size: .85rem; font-weight: 700; }
button.chip::after { display: none; }
button.chip b { font-size: 1.5rem; line-height: 1; }
button.chip small { font-size: .58rem; white-space: nowrap; letter-spacing: -.01em; color: var(--orange-ink); font-weight: 800; }
button.chip.on { border-color: var(--orange); background: var(--peach); transform: scale(1.03); }
button.chip:hover:not(:disabled) { transform: translateY(-2px); box-shadow: none; }
.ob-tip { background: var(--butter); border-radius: 16px; padding: 12px 14px; font-size: .95rem; }
.ob-step .qr { width: 220px; margin: 14px auto; box-shadow: var(--shadow); }
.ob-offer { text-align: center; font-family: var(--hand); font-size: 1.3rem; color: var(--orange-ink); }
.newcust { margin-top: 12px; padding: 16px; border-radius: 18px; background: var(--mint); text-align: center; animation: enter .4s cubic-bezier(.16, 1, .3, 1); }
.newcust .qr { width: 230px; margin-top: 10px; }

/* ================= Add to Home Screen ================= */
.a2hs { text-align: center; }
.sheet-bg { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; background: rgba(58, 42, 32, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .25s ease; }
.sheet { position: relative; width: min(520px, 100%); background: var(--bg); border-radius: 28px 28px 0 0; padding: 24px 20px max(110px, calc(env(safe-area-inset-bottom) + 96px)); animation: sheet .5s cubic-bezier(.16, 1, .3, 1); box-shadow: 0 -20px 60px rgba(58, 42, 32, .25); }
.sheet h2 { font-size: 1.6rem; margin: 0 40px 14px 0; }
button.sheet-x { position: absolute; top: 14px; right: 14px; width: 40px; min-height: 40px; padding: 0; font-size: 1.6rem; line-height: 1; border-radius: 50%; }
.a2hs-steps { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.a2hs-steps li { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; animation: enter .5s cubic-bezier(.16, 1, .3, 1) both; }
.a2hs-steps li:nth-child(2) { animation-delay: .08s; } .a2hs-steps li:nth-child(3) { animation-delay: .16s; }
.a2hs-steps .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--peach); color: var(--orange); }
.a2hs-steps .ic.ok { background: var(--mint); color: var(--mint-deep); }
.a2hs-steps .ic svg { width: 24px; height: 24px; }
.a2hs-steps b { display: block; }
.a2hs-steps small { color: var(--muted); font-weight: 600; }
.ic-inline svg { width: 16px; height: 16px; vertical-align: -3px; }
.a2hs-arrow { position: absolute; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 2px; color: var(--orange); font-weight: 800; font-size: .9rem; }
.a2hs-arrow svg { width: 40px; height: 40px; animation: nudge-down 1.1s ease-in-out infinite; }
@keyframes nudge-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* ================= Centered app headers (everything except the home page) ================= */
header.top:not(.nav) { justify-content: center; }
header.top:not(.nav) .brand img { height: 64px; }
main:not(.wide) > h1 { text-align: center; }
main:not(.wide) > h1 + .muted, main:not(.wide) > h1 + p { text-align: center; }
/* Page title lands with a soft bounce, then an underline sweeps in. */
.js main:not(.wide) > h1 { animation: title-in .9s cubic-bezier(.34, 1.56, .64, 1) .12s both !important; position: relative; }
.js main:not(.wide) > h1::after { content: ""; display: block; width: 64px; height: 5px; margin: 10px auto 0; border-radius: 3px; background: var(--orange); transform: scaleX(0); animation: swipe .6s cubic-bezier(.65, 0, .35, 1) .7s forwards; }
@keyframes title-in { from { opacity: 0; transform: translateY(20px) scale(.92); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.js header.top:not(.nav) .brand img { animation: logo-drop 1s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes logo-drop { 0% { opacity: 0; transform: translateY(-24px) rotate(-10deg) scale(.7); } 60% { opacity: 1; transform: translateY(4px) rotate(3deg) scale(1.04); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .js main > h1, .js main > h1::after, .js header.top .brand img, .a2hs-arrow svg { animation: none !important; } .js main > h1::after { transform: none; } }

/* ================= Owner dashboard ================= */
.shops { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.shop { border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: var(--bg); }
.shop-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.shop-head b { font-family: var(--hand); font-size: 1.4rem; }
.badge { font-size: .8rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--rose); color: var(--bad); white-space: nowrap; }
.badge.on { background: var(--mint); color: var(--mint-deep); }
.shop-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 10px 0 12px; }
.shop-nums div { background: #fff; border-radius: 14px; padding: 8px 10px; }
.shop-nums b { display: block; font-size: 1.15rem; }
.shop-nums small { color: var(--muted); font-weight: 700; }
.shop button { width: 100%; }

.co-free { color: var(--orange-ink); }
