/* LEVELZERO.GG storefront v2 — playful guided flow.
   Chunky pressable buttons and answer cards, one question per screen, a progress
   bar with a small plane, springy motion. LEVELZERO's own identity throughout (no mascot):
   travel blue, navy, brand green for success, Archivo, pixel wordmark, real flags. */

@font-face { font-family: Archivo; src: url(../assets/fonts/archivo-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Archivo; src: url(../assets/fonts/archivo-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Archivo; src: url(../assets/fonts/archivo-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Archivo; src: url(../assets/fonts/archivo-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #082236;
  --muted: #5b6b80;
  --soft: #f4f7fb;
  --line: #dde5ee;
  --edge: #c7d3e0;
  --blue: #0a6fe8;
  --blue-deep: #0854b3;
  --blue-wash: #e8f2ff;
  --blue-edge: #7db6ff;
  --green: #53fc18;        /* LEVELZERO brand green: success only */
  --green-deep: #2fb800;
  --green-wash: #ecffe2;
  --green-edge: #9be36f;
  --yellow: #ffc83d;
  --red: #c5281c;
  --r: 16px;
  --pad: 20px;
  --spring: cubic-bezier(.2, 1.5, .4, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.5 Archivo, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--blue); }
:focus-visible { outline: 3px solid rgba(10, 111, 232, .45); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Frame ---------- */

.page { max-width: 520px; margin: 0 auto; padding: 0 var(--pad) 56px; }
.page--dock { padding-bottom: 140px; }
@media (min-width: 720px) { .page { padding-top: 24px; } }

.top { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.top img { display: block; height: 17px; width: auto; }
.tag { color: var(--muted); font-size: 13px; }

/* Wizard header: back + progress */
.bar { display: flex; align-items: center; gap: 12px; height: 68px; }
.bar-back { display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin-left: -8px; border: 0; border-radius: 12px; background: none; color: var(--muted); cursor: pointer; }
.bar-back:hover { background: var(--soft); color: var(--ink); }
.bar-back svg { width: 22px; height: 22px; }

.progress { position: relative; flex: 1; height: 16px; margin-right: 12px; border-radius: 8px; background: #e7ecf2; }
.progress i { position: relative; display: block; width: 0; height: 100%; min-width: 16px; border-radius: 8px; background: var(--blue); transition: width .6s var(--spring); }
.progress i::before { content: ''; position: absolute; left: 8px; right: 16px; top: 4px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .32); }
.progress i::after { content: ''; position: absolute; right: 0; top: 50%; width: 30px; height: 30px; transform: translate(50%, -50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='13.5' fill='%23fff' stroke='%230a6fe8' stroke-width='2.5'/%3E%3Cpath fill='%23082236' d='M24 15c0 .8-.7 1.4-1.5 1.4H18l-3.2 5.1h-1.9l1.7-5.1h-3.4l-1.4 1.8H8.4l.9-3.2-.9-3.2h1.4l1.4 1.8h3.4l-1.7-5.1h1.9l3.2 5.1h4.5c.8 0 1.5.6 1.5 1.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.progress.no-anim i { transition: none; }

/* ---------- Type ---------- */

.eyebrow { margin: 6px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.country { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.flag { display: block; flex: none; width: 34px; height: auto; border-radius: 3px; }
h1 { margin: 16px 0 8px; font-size: clamp(29px, 8vw, 36px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
h2 { margin: 36px 0 12px; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
.lede { margin: 0 0 22px; color: var(--muted); font-size: 17px; }
.fine { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.error { margin: 8px 2px 0; color: var(--red); font-size: 14px; font-weight: 600; }

/* Page entrance */
main.page > h1, main.page > .lede, main.page > .eyebrow { animation: rise .4s cubic-bezier(.2, .9, .3, 1) both; }

/* ---------- Chunky button ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; margin-bottom: 4px; padding: 0 26px; border: 0; border-radius: var(--r); background: var(--blue); box-shadow: 0 4px 0 var(--blue-deep); color: #fff; font: 700 16px/1 Archivo, system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .07s, box-shadow .07s, background .15s, filter .15s; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--blue-deep); }
.btn:disabled { background: #e3e9f0; box-shadow: none; color: #9aa7b6; cursor: not-allowed; filter: none; transform: none; }
.btn--block { display: flex; width: 100%; }
.btn--ghost { background: #fff; box-shadow: 0 4px 0 var(--line), inset 0 0 0 2px var(--line); color: var(--blue); }
.btn--ghost:active { box-shadow: 0 0 0 var(--line), inset 0 0 0 2px var(--line); }
.btn--small { min-height: 38px; padding: 0 14px; border-radius: 12px; box-shadow: 0 3px 0 var(--line), inset 0 0 0 2px var(--line); font-size: 13px; }
.btn--small:active { transform: translateY(3px); }
.btn.ready { animation: pop .3s var(--spring); }

/* ---------- Answer cards ---------- */

.stack { display: grid; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.opt { position: relative; display: block; }
.opt > input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt > input:disabled { cursor: not-allowed; }

.card { display: flex; align-items: center; gap: 14px; min-height: 72px; margin-bottom: 2px; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: 0 2px 0 var(--line); color: inherit; text-decoration: none; transition: transform .07s, box-shadow .07s, background .15s, border-color .15s; }
a.card:hover, .opt:hover > input:not(:disabled) + .card { background: var(--soft); }
a.card:active, .opt > input:not(:disabled):active + .card { transform: translateY(2px); box-shadow: 0 0 0 var(--line); }
.opt > input:checked + .card { border-color: var(--blue-edge); background: var(--blue-wash); box-shadow: 0 2px 0 var(--blue-edge); animation: pop .28s var(--spring); }
.opt > input:checked + .card .t, .opt > input:checked + .card .side { color: var(--blue-deep); }
.opt > input:focus-visible + .card { outline: 3px solid rgba(10, 111, 232, .45); outline-offset: 3px; }
.opt > input:disabled + .card { opacity: .5; }

.card .main { flex: 1; min-width: 0; }
.card .t { display: block; font-size: 19px; font-weight: 700; line-height: 1.2; }
.card .t small { color: var(--muted); font-size: 14px; font-weight: 500; }
.card .d { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; line-height: 1.35; }
.card .side { flex: none; font-size: 16px; font-weight: 700; white-space: nowrap; }
.card .side small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; text-align: right; }
.card .chev { flex: none; color: var(--blue); font-size: 24px; line-height: 1; }
.card .flag { width: 44px; }
.card--muted { box-shadow: none; background: var(--soft); border-color: var(--soft); color: var(--muted); }
.card--muted .flag { opacity: .6; }
.card--muted .t { font-weight: 600; }

.ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-wash); color: var(--blue); font-size: 21px; font-weight: 700; }
.ico svg { width: 30px; height: 30px; }
.grid2 .card { flex-direction: column; align-items: flex-start; gap: 2px; min-height: 84px; }

@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.035); } 100% { transform: scale(1); } }

/* Step entrance */
.step { animation: step-in .34s cubic-bezier(.2, .9, .3, 1) both; }
.step.back { animation-name: step-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(32px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-32px); } }
.rise > * { animation: rise .4s cubic-bezier(.2, .9, .3, 1) both; }
.rise > :nth-child(2) { animation-delay: .04s; } .rise > :nth-child(3) { animation-delay: .08s; }
.rise > :nth-child(4) { animation-delay: .12s; } .rise > :nth-child(5) { animation-delay: .16s; }
.rise > :nth-child(6) { animation-delay: .2s; } .rise > :nth-child(7) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Bottom dock ---------- */

.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; border-top: 2px solid var(--line); background: #fff; }
.dock-in { display: flex; align-items: center; gap: 14px; max-width: 520px; margin: 0 auto; padding: 14px var(--pad) calc(14px + env(safe-area-inset-bottom)); }
.dock .sum { flex: 1; min-width: 0; }
.dock .sum small { display: block; overflow: hidden; color: var(--muted); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.dock .total { font-size: 24px; font-weight: 700; line-height: 1.2; }
.dock .total small { display: inline; font-size: 14px; font-weight: 500; }
.dock .btn { flex: none; }

/* ---------- Home ---------- */

.input { width: 100%; height: 56px; padding: 0 18px; border: 2px solid var(--line); border-radius: var(--r); background: var(--soft); color: inherit; font: inherit; font-size: 17px; transition: border-color .15s, background .15s; }
.input::placeholder { color: #8795a6; }
.input:focus { outline: none; border-color: var(--blue-edge); background: #fff; }
.input[aria-invalid='true'] { border-color: #f0a8a2; }
.dest { margin-top: 12px; }
.empty { padding: 18px 4px; color: var(--muted); }

.how { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: how; }
.how li { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--soft); }
.how li::before { counter-increment: how; content: counter(how); display: grid; place-items: center; grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--blue); font-size: 22px; font-weight: 700; box-shadow: 0 2px 0 var(--line); }
.how strong { font-size: 17px; line-height: 1.25; }
.how span { color: var(--muted); font-size: 15px; line-height: 1.35; }

/* ---------- Review: boarding pass ---------- */

.ticket { position: relative; margin-top: 20px; border: 2px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 4px 0 var(--line); animation: rise .45s cubic-bezier(.2, .9, .3, 1) both; }
.ticket-main { padding: 18px 20px 16px; }
.ticket-main .country { font-size: 20px; }
.ticket-main .flag { width: 42px; }
.ticket dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin: 18px 0 0; }
.ticket dt { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ticket dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; line-height: 1.25; }
.ticket-cut { position: relative; margin: 0 16px; border-top: 2px dashed var(--line); }
.ticket-cut::before, .ticket-cut::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 50%; background: #fff; }
.ticket-cut::before { left: -29px; clip-path: inset(0 0 0 calc(50% - 2px)); }
.ticket-cut::after { right: -29px; clip-path: inset(0 calc(50% - 2px) 0 0); }
.ticket-total { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 20px 16px; }
.ticket-total span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ticket-total b { font-size: 28px; font-weight: 700; line-height: 1; }

.label { display: block; margin: 26px 0 8px; font-size: 15px; font-weight: 700; }
.tick { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 2px solid var(--edge); border-radius: 10px; background: #fff; transition: background .15s, border-color .15s; }
.tick svg { width: 18px; height: 18px; transform: scale(0); transition: transform .25s var(--spring); }
.opt > input:checked + .card .tick { border-color: var(--blue); background: var(--blue); }
.opt > input:checked + .card .tick svg { transform: scale(1); }
.check-card { margin-top: 14px; }
.check-card .card { min-height: 0; }
.check-card .t { font-size: 16px; font-weight: 600; }

/* ---------- Order page ---------- */

.badge { display: grid; place-items: center; width: 72px; height: 72px; margin: 10px 0 4px; border-radius: 50%; background: var(--green); box-shadow: 0 4px 0 var(--green-deep); animation: badge .55s var(--spring) both; }
.badge svg { width: 38px; height: 38px; }
@keyframes badge { from { transform: scale(0) rotate(-20deg); } }

.plan-line { margin: 0; font-size: 18px; font-weight: 600; }
.sub-line { margin: 2px 0 0; color: var(--muted); }

.install { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.install .btn { padding: 0 8px; font-size: 15px; letter-spacing: 0; text-transform: none; }
.install-note { margin: 10px 0 0; color: var(--muted); font-size: 14px; text-align: center; }

.panel { margin-top: 16px; padding: 20px; border: 2px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 4px 0 var(--line); }
.panel--qr { text-align: center; }
.qr { display: block; width: min(100%, 250px); height: auto; margin: 0 auto 14px; }
.scan { margin: 0; color: var(--blue); font-size: 17px; font-weight: 700; }
.start { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.fold { margin-top: 12px; border-radius: var(--r); background: var(--soft); }
.fold summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: '+'; color: var(--blue); font-size: 24px; font-weight: 500; line-height: .8; transition: transform .2s; }
.fold[open] summary::after { transform: rotate(45deg); }
.fold .body { padding: 0 18px 12px; }
.copy { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 2px solid #fff; }
.copy div { min-width: 0; }
.copy small { display: block; color: var(--muted); font-size: 13px; }
.copy code { font: 600 14px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.copy .btn { margin-left: auto; flex: none; background: #fff; color: var(--blue); }
.rows { margin: 0; }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 2px solid #fff; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; font-weight: 600; text-align: right; }

.h-row { display: flex; align-items: baseline; justify-content: space-between; margin: 36px 0 12px; }
.h-row h2 { margin: 0; }
.h-row span { color: var(--muted); font-size: 14px; font-weight: 700; }

.todo .card { min-height: 0; padding: 14px 16px; align-items: flex-start; }
.todo .tick { margin-top: 1px; }
.todo .t { font-size: 17px; }
.todo > input:checked + .card { border-color: var(--green-edge); background: var(--green-wash); box-shadow: 0 2px 0 var(--green-edge); }
.todo > input:checked + .card .t { color: var(--ink); }
.todo > input:checked + .card .tick { border-color: var(--green-deep); background: var(--green); }
.done-note { margin: 12px 0 0; padding: 14px 16px; border-radius: var(--r); background: var(--green-wash); font-weight: 700; animation: pop .4s var(--spring); }

.usage { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.usage b { font-size: 30px; font-weight: 700; line-height: 1; }
.usage span { color: var(--muted); }
.meter { height: 16px; margin: 14px 0 10px; border-radius: 8px; background: #e7ecf2; overflow: hidden; }
.meter i { position: relative; display: block; width: 0; height: 100%; border-radius: 8px; background: var(--blue); transition: width 1s var(--spring); }
.meter i::before { content: ''; position: absolute; left: 6px; right: 6px; top: 4px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .32); }
.panel .fine { margin: 0; }

.help { margin-top: 28px; padding: 18px 20px; border-radius: var(--r); background: var(--blue-wash); }
.help .ask { margin: 0 0 2px; color: var(--blue-deep); font-size: 17px; font-weight: 700; }
.help .ask a { color: inherit; }
.help p { margin: 0; }

/* Preparing: a plane flying the route */
.flight { display: flex; align-items: center; gap: 10px; margin: 28px 4px 26px; }
.flight .dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); }
.flight .dot:last-child { background: #fff; box-shadow: inset 0 0 0 3px var(--edge); }
.flight .route { position: relative; flex: 1; height: 0; border-top: 3px dashed var(--edge); }
.flight .plane { position: absolute; top: -18px; left: 0; width: 34px; height: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='13.5' fill='%23fff' stroke='%230a6fe8' stroke-width='2.5'/%3E%3Cpath fill='%23082236' d='M24 15c0 .8-.7 1.4-1.5 1.4H18l-3.2 5.1h-1.9l1.7-5.1h-3.4l-1.4 1.8H8.4l.9-3.2-.9-3.2h1.4l1.4 1.8h3.4l-1.7-5.1h1.9l3.2 5.1h4.5c.8 0 1.5.6 1.5 1.4z'/%3E%3C/svg%3E") center / contain no-repeat; animation: fly 2.4s ease-in-out infinite; }
.flight.held .plane { left: 45%; animation: bob 1.6s ease-in-out infinite; }
@keyframes fly { 0% { left: 0; transform: translateY(0); } 50% { transform: translateY(-5px); } 100% { left: calc(100% - 34px); transform: translateY(0); } }
@keyframes bob { 50% { transform: translateY(-5px); } }

.track { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.track li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--soft); color: var(--muted); font-weight: 600; }
.track li::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--edge); }
.track .done { color: var(--ink); }
.track .done::before { background: var(--green); box-shadow: inset 0 0 0 3px var(--green-deep); }
.track .now { background: var(--blue-wash); color: var(--blue-deep); }
.track .now::before { box-shadow: inset 0 0 0 3px var(--blue); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 7px var(--blue); } }

.confetti { position: fixed; inset: 0; z-index: 20; width: 100%; height: 100%; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================= v3: replies, sound, stamp ================= */


.wizard-country { margin-top: 2px; }

/* Question block: heading, supporting line, and a short reply to each answer */
.ask { margin-bottom: 14px; animation: rise .4s cubic-bezier(.2, .9, .3, 1) both; }
.ask h1 { margin-bottom: 6px; }
.ask h1:focus { outline: none; }
.ask .lede { margin: 0; }
.ask .react { min-height: 24px; margin: 8px 0 0; color: var(--blue-deep); font-size: 16px; font-weight: 700; }
.ask .react.in { animation: pop .32s var(--spring); }

/* Sound toggle */
.snd { display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin-right: -8px; border: 0; border-radius: 12px; background: none; color: var(--muted); cursor: pointer; }
.snd:hover { background: var(--soft); color: var(--ink); }
.snd svg { width: 22px; height: 22px; }
.top .tag { margin-left: auto; margin-right: 4px; }
.progress { margin-right: 6px; }
.progress.bump i::after { animation: wiggle .6s var(--spring); }
@keyframes wiggle { 0% { transform: translate(50%, -50%) rotate(0); } 30% { transform: translate(50%, -62%) rotate(-16deg) scale(1.15); } 100% { transform: translate(50%, -50%) rotate(0); } }

/* Coming-soon destinations react when tapped */
button.card { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.shake { animation: shake .4s; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* Keyboard hint on answer cards (desktop only) */
.key { display: none; }
@media (hover: hover) and (min-width: 720px) {
  .key { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 2px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
  .opt > input:checked + .card .key { border-color: var(--blue-edge); color: var(--blue-deep); }
  .grid2 .key { position: absolute; top: 12px; right: 12px; }
}

/* Review: stamp lands on the boarding pass when the phone check is ticked */
.stamp { position: absolute; top: 16px; right: 16px; padding: 6px 10px; border: 3px solid #1f8a00; border-radius: 10px; color: #1f8a00; font-size: 12px; font-weight: 700; letter-spacing: .12em; transform: rotate(-9deg); animation: stamp .38s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(2.4); } }

.panel--qr .qr { animation: qr-in .5s var(--spring) .15s both; }
@keyframes qr-in { from { opacity: 0; transform: scale(.82); } }
