/* Layout: storybook sky. A full-bleed 3D pastel world sits behind everything;
   sticker-style cards are pinned on the left and the launch bucket stands on the right.
   Deliberately one daylight theme, taken from the Pastel Alpha banner and logo. */
:root {
  --ink: #3b2150;
  --ink-2: #6b5783;
  --ink-3: #9c8bb0;
  --paper: #fffaf4;
  --paper-2: #fff0f4;
  --paint: #ff6e7b;
  --paint-soft: #ffd6de;
  --bucket: #a8dcff;
  --gold: #ffc93c;
  --gold-deep: #e39b1c;
  --lav: #b89cff;
  --mint: #8fe3bb;
  --mint-soft: #e3f8ec;
  --butter: #fff2c2;
  --err: #d9344a;
  --sky: #ffd9e6;
  --display: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  --body: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 26px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pop: cubic-bezier(0.2, 1.5, 0.4, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--sky); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, #c9b8ff 0%, #ffc9e0 45%, #ffe7d4 100%) fixed;
  color: var(--ink);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--ink); }
button { font-family: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--paint); outline-offset: 3px; border-radius: 10px; }

/* ---------- stage ---------- */
.fallback-bg {
  position: fixed; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.55;
  filter: saturate(1.05);
}
body.has-world .fallback-bg { display: none; }
.stage { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.stage canvas, .fx-layer canvas { display: block; width: 100%; height: 100%; }
body:not(.has-world) .stage { display: none; }
.fx-layer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.shake { animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
@keyframes shake {
  10%, 90% { transform: translate(-3px, 2px); }
  20%, 80% { transform: translate(6px, -4px); }
  30%, 50%, 70% { transform: translate(-10px, 6px) rotate(-0.4deg); }
  40%, 60% { transform: translate(10px, -6px) rotate(0.4deg); }
}

/* ---------- page ---------- */
.page {
  position: relative; z-index: 2;
  width: min(1180px, 100% - 32px);
  margin: 0 auto;
  padding-block: 18px 110px;
  display: flex; flex-direction: column; gap: 28px;
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease), filter 0.45s;
}
body.launching .page { opacity: 0; transform: translateY(26px) scale(0.985); pointer-events: none; filter: blur(2px); }

/* ---------- sticker primitives ---------- */
.card {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 0 6px 0 var(--ink), 0 30px 60px -30px rgba(59, 33, 80, 0.55);
  padding: 26px;
  min-width: 0;
}
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px;
  border: 2.5px solid var(--ink); border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink);
  font: 800 15px/1 var(--body);
  text-decoration: none; cursor: pointer;
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease), background 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn svg { width: 19px; height: 19px; }
.btn-discord { background: #7b86ff; color: #fff; }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 4px 0 #1e1030; }
.btn-ink:hover { box-shadow: 0 6px 0 #1e1030; }
.btn-ink:active { box-shadow: 0 1px 0 #1e1030; }

.section-label, .stat-label, .eyebrow {
  display: block;
  font: 800 11.5px/1.2 var(--body);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2);
}
.section-label { margin: 22px 0 10px; }
.fine-print { margin: 16px 0 0; font-size: 13px; color: var(--ink-2); }

/* ---------- header ---------- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-logo {
  width: 50px; height: 50px; border-radius: 15px;
  border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  object-fit: cover; background: var(--bucket); flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 400 24px/1 var(--display); letter-spacing: 0.01em; color: var(--ink); white-space: nowrap; }
.brand-tag { margin-top: 4px; font: 500 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.demo-chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0 12px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--butter);
  font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
}
.demo-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-deep); }

/* ---------- checkout hero ---------- */
.view { display: flex; flex-direction: column; gap: 28px; }
.hero { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 38vh; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); padding-top: 10px; }
}
.checkout { transition: transform 0.5s var(--ease); }
body.launching .checkout { transform: translateY(40px) rotate(-3deg); }
.checkout-title { margin: 0; font: 400 clamp(34px, 4.2vw, 46px)/1.02 var(--display); letter-spacing: 0.005em; text-wrap: balance; }
.checkout-sub { margin: 10px 0 0; color: var(--ink-2); max-width: 44ch; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }
.plan-option {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 10px 8px;
  padding: 14px 14px 13px;
  text-align: left;
  background: #fff;
  border: 2.5px solid var(--ink); border-radius: 18px;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.14s var(--ease), box-shadow 0.14s var(--ease), background 0.2s;
}
.plan-option:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.plan-option:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.plan-option .plan-name { grid-column: 1; font-weight: 800; font-size: 14.5px; line-height: 1.25; }
.plan-option .plan-radio { grid-column: 2; grid-row: 1; }
.plan-option .plan-price { grid-column: 1 / -1; font: 400 25px/1 var(--display); }
.plan-price small { margin-left: 5px; font: 800 11px var(--body); letter-spacing: 0.06em; color: var(--ink-2); }
.plan-save {
  display: inline-block; margin-top: 4px;
  padding: 2px 7px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--gold); font-size: 10.5px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.plan-radio { width: 22px; height: 22px; border: 2.5px solid var(--ink); border-radius: 50%; background: #fff; position: relative; }
.plan-option.selected { background: var(--paint-soft); }
.plan-option.selected .plan-radio { background: var(--paint); }
.plan-option.selected .plan-radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.plan-option.selected::before {
  content: ''; position: absolute; left: 10px; right: 10px; top: -3px; height: 26px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26' preserveAspectRatio='none'%3E%3Cpath d='M0 0h120v6c-5 0-6 3-6 8 0 4-2 6-4 6s-4-2-4-6c0-5-4-7-10-7s-9 2-9 9c0 5-2 8-5 8s-5-3-5-8c0-6-4-9-10-9s-10 2-10 6c0 3-2 4-3 4s-3-1-3-4c0-4-5-6-12-6S7 9 7 12c0 2-1 3-3 3S0 14 0 11z' fill='%23ff6e7b' stroke='%233b2150' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat top / 100% 100%;
}

.discord-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 52px; border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink);
  background: #7b86ff; color: #fff; font: 800 15.5px var(--body); cursor: pointer;
}
.discord-btn svg { width: 22px; }
.discord-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 12px;
  border: 2.5px solid var(--ink); border-radius: 16px; background: var(--mint-soft);
}
.chip-avatar {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink);
  display: grid; place-items: center; background: #7b86ff; color: #fff; font: 400 16px var(--display);
  flex-shrink: 0; overflow: hidden; position: relative;
}
.chip-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chip-name { margin: 0; flex: 1; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.chip-status { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #1f7a51; }
.chip-x { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.chip-x:hover { background: rgba(59, 33, 80, 0.08); color: var(--ink); }
.chip-x svg { width: 18px; }

.field-input {
  width: 100%; min-height: 50px; padding: 0 16px;
  border: 2.5px solid var(--ink); border-radius: 16px; background: #fff;
  font: 700 15.5px var(--body); color: var(--ink);
  letter-spacing: 0.02em;
}
.field-input::placeholder { color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
.field-input:focus { outline: none; box-shadow: 0 0 0 4px rgba(255, 110, 123, 0.35); }
.referral-message { margin-top: 8px; font-size: 13.5px; font-weight: 800; }
.referral-message.is-valid { color: #1f7a51; }
.referral-message.is-error { color: var(--err); }
.referral-message.is-info { color: var(--ink-2); }

.total-block {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  margin-top: 22px; padding: 16px 18px;
  border: 2.5px dashed var(--ink-3); border-radius: 18px; background: var(--paper-2);
}
.total-label { font: 800 12px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.total-prices { display: flex; align-items: baseline; gap: 10px; }
.price-original { font-weight: 800; color: var(--ink-3); text-decoration: line-through; }
.price-final { font: 400 32px/1 var(--display); white-space: nowrap; }
.discount-note { grid-column: 1 / -1; font-size: 13.5px; font-weight: 800; color: #1f7a51; }

.terms-check {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px; padding: 4px 0;
  font-weight: 800; font-size: 15px;
  cursor: pointer; user-select: none;
}
.terms-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.terms-box {
  flex-shrink: 0; width: 28px; height: 28px; display: grid; place-items: center;
  border: 2.5px solid var(--ink); border-radius: 9px; background: #fff; box-shadow: 0 3px 0 var(--ink);
  color: transparent;
  transition: background 0.15s, transform 0.12s var(--ease), box-shadow 0.12s var(--ease);
}
.terms-box svg { width: 18px; height: 18px; transform: scale(0.4); transition: transform 0.25s var(--pop); }
.terms-check:hover .terms-box { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.terms-check input:checked + .terms-box { background: var(--paint); color: var(--ink); }
.terms-check input:checked + .terms-box svg { transform: none; }
.terms-check input:focus-visible + .terms-box { outline: 3px solid var(--paint); outline-offset: 3px; }
.terms-check.is-error .terms-box { border-color: var(--err); background: #ffe3e6; animation: nudge 0.42s var(--ease); }
.terms-check.is-error .terms-text { color: var(--err); }
.terms-error { margin: 6px 0 0 40px; font-size: 13.5px; font-weight: 800; color: var(--err); }
.terms-hint { margin: 4px 0 0 40px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.terms-text a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--paint); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.terms-text a:hover { color: var(--paint); }
@keyframes nudge { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.pay-group { display: grid; gap: 12px; margin-top: 14px; }
.pay-btn {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px 16px 12px 12px;
  border: 2.5px solid var(--ink); border-radius: 18px;
  background: var(--c); box-shadow: 0 5px 0 var(--ink);
  text-align: left; cursor: pointer;
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease);
}
.pay-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.pay-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.pay-sol { --c: linear-gradient(100deg, #d4c2ff 0%, #b5f2e3 100%); }
.pay-base { --c: #bcd5ff; }
.pay-hype { --c: #b4f1da; }
.pay-glyph {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  border: 2.5px solid var(--ink); background: #fff;
  display: grid; place-items: center;
  font: 500 10.5px var(--mono); letter-spacing: 0.04em;
}
.pay-label { flex: 1; font-weight: 900; font-size: 16px; line-height: 1.2; }
.pay-net { display: block; margin-top: 2px; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.pay-chev { width: 20px; height: 20px; transition: transform 0.15s var(--ease); }
.pay-btn:hover .pay-chev { transform: translateX(4px); }
/* locked until the Terms checkbox is ticked */
.pay-btn:disabled { cursor: not-allowed; opacity: 0.5; filter: saturate(0.35); transform: none; box-shadow: 0 5px 0 var(--ink); }
.pay-btn:disabled .pay-chev { transform: none; }

.hero-side { display: none; }
@media (min-width: 900px) {
  .hero-side { display: flex; align-items: flex-end; justify-content: flex-end; min-height: 620px; }
  .hero-caption { position: sticky; bottom: 96px; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right; transition: opacity 0.3s; }
}
.caption-pill {
  padding: 7px 14px; border: 2px solid var(--ink); border-radius: 999px; background: rgba(255, 250, 244, 0.85);
  font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.caption-big { font: 400 clamp(36px, 3.7vw, 54px)/1.02 var(--display); color: var(--ink); text-shadow: 0 3px 0 rgba(255, 255, 255, 0.7); }
.caption-big em { font-style: normal; color: var(--paint); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }

/* ---------- referral + info ---------- */
.ref-banner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(100deg, #ffe07a, #ffc93c);
  padding: 20px 24px;
}
.ref-coins { position: relative; width: 84px; height: 56px; flex-shrink: 0; }
.ref-coins i {
  position: absolute; width: 44px; height: 44px; border-radius: 50%;
  border: 2.5px solid var(--ink); background: radial-gradient(circle at 38% 34%, #fff3b0, #ffcf45 55%, #f0a92a);
  box-shadow: inset 0 0 0 5px rgba(217, 140, 28, 0.35);
}
.ref-coins i:nth-child(1) { left: 0; top: 10px; }
.ref-coins i:nth-child(2) { left: 22px; top: 0; }
.ref-coins i:nth-child(3) { left: 40px; top: 12px; }
.ref-copy { flex: 1; min-width: 180px; }
.ref-copy h2 { margin: 0; font: 400 26px/1.1 var(--display); }
.ref-copy p { margin: 4px 0 0; font-weight: 700; }
.show-sm { display: none; }
@media (max-width: 520px) {
  .ref-banner { flex-wrap: nowrap; gap: 12px; padding: 14px 14px 14px 12px; }
  .ref-coins { width: 46px; height: 40px; }
  .ref-coins i { width: 28px; height: 28px; border-width: 2px; box-shadow: inset 0 0 0 3px rgba(217, 140, 28, 0.35); }
  .ref-coins i:nth-child(1) { left: 0; top: 10px; }
  .ref-coins i:nth-child(2) { left: 10px; top: 0; }
  .ref-coins i:nth-child(3) { left: 18px; top: 11px; }
  .ref-copy { min-width: 0; }
  .ref-copy h2 { font-size: 19px; }
  .ref-copy p { font-size: 13px; line-height: 1.35; }
  .ref-banner .btn { min-height: 40px; padding: 0 13px; font-size: 13.5px; flex-shrink: 0; }
}
@media (max-width: 480px) { .show-sm { display: inline; } }

.hero > .ref-banner { grid-column: 1 / -1; }
.info-grid { display: grid; gap: 24px; margin-top: 16px; }
@media (min-width: 900px) { .info-grid { margin-top: 28px; } }
@media (min-width: 900px) { .info-grid { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.stack { display: grid; gap: 24px; min-width: 0; }
.section-head { margin-bottom: 16px; }
.section-head h2 { margin: 6px 0 0; font: 400 28px/1.1 var(--display); }
.world-banner { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border: 2.5px solid var(--ink); border-radius: 18px; margin-bottom: 20px; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.benefits li { position: relative; padding-left: 34px; font-weight: 700; }
.benefits li::before {
  content: ''; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--ink); background: radial-gradient(circle at 38% 34%, #fff3b0, #ffcf45 60%, #f0a92a);
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.step-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 12px; border: 2.5px solid var(--ink);
  display: grid; place-items: center; background: var(--bucket); font: 400 18px var(--display); box-shadow: 0 3px 0 var(--ink);
}
.partners { display: flex; flex-wrap: wrap; gap: 10px; }
.partner {
  padding: 10px 16px; border: 2.5px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 0 3px 0 var(--ink);
  font-weight: 900; text-decoration: none; transition: transform 0.12s var(--ease), box-shadow 0.12s;
}
.partner:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); background: var(--paint-soft); }

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border: 2.5px solid var(--ink); border-radius: 18px; background: rgba(255, 250, 244, 0.9);
  font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 800; }
.footer-links a:hover { color: var(--paint); }

/* ---------- legal pages ---------- */
.legal { max-width: 820px; width: 100%; margin: 0 auto; }
.legal h1 { margin: 0; font: 400 clamp(32px, 4vw, 44px)/1.05 var(--display); }
.legal .legal-meta { margin: 8px 0 0; font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.legal h2 { margin: 28px 0 8px; font: 400 22px/1.2 var(--display); }
.legal h3 { margin: 20px 0 6px; font: 800 16.5px/1.3 var(--body); }
.legal h2, .legal h3 { scroll-margin-top: 16px; }
.legal p, .legal li { color: var(--ink); font-weight: 600; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--ink); text-decoration-color: var(--paint); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-toc { margin: 22px 0 6px; padding: 16px 18px; border: 2.5px dashed var(--ink-3); border-radius: 18px; background: var(--paper-2); }
.legal-toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2 240px; column-gap: 28px; }
.legal-toc li { break-inside: avoid; }
.legal-toc li + li { margin-top: 4px; }
.legal-table { width: 100%; margin: 12px 0 4px; border-collapse: separate; border-spacing: 0; border: 2.5px solid var(--ink); border-radius: 14px; overflow: hidden; background: #fff; }
.legal-table th, .legal-table td { padding: 10px 14px; text-align: left; font-weight: 700; }
.legal-table th { background: var(--paint-soft); font-weight: 900; border-bottom: 2px solid var(--ink); }
.legal-table tr + tr td { border-top: 1.5px solid rgba(59, 33, 80, 0.14); }

/* ---------- invoice ---------- */
.invoice-layout { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 36vh; }
@media (min-width: 900px) { .invoice-layout { grid-template-columns: minmax(0, 580px) minmax(0, 1fr); padding-top: 10px; } }
.invoice-col { display: grid; gap: 22px; min-width: 0; }

.flight-status {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: rgba(255, 250, 244, 0.92);
  font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.flight-status i { width: 10px; height: 10px; border-radius: 50%; background: var(--paint); border: 2px solid var(--ink); animation: blink 1.2s ease-in-out infinite; }
.flight-status.ok i { background: var(--mint); animation: none; }
.flight-status.err i { background: var(--err); animation: none; }
@keyframes blink { 50% { opacity: 0.3; } }
@media (min-width: 900px) {
  .flight-status { position: fixed; right: 32px; bottom: 96px; z-index: 5; }
}

.pass { display: grid; grid-template-columns: minmax(0, 1fr) 160px; padding: 0; overflow: hidden; position: relative; }
.pass::before, .pass::after {
  content: ''; position: absolute; right: 146px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sky); border: 2.5px solid var(--ink); z-index: 1;
}
.pass::before { top: -16px; }
.pass::after { bottom: -16px; }
.pass-main { padding: 24px 24px 22px; min-width: 0; }
.pass-top { display: flex; align-items: center; gap: 14px; }
.pass-logo { width: 46px; height: 46px; border-radius: 14px; border: 2.5px solid var(--ink); object-fit: cover; }
.pass-kicker { font: 500 11.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--paint); }
.pass-title { margin: 2px 0 0; font: 400 30px/1.05 var(--display); }
.route { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 10px; margin: 20px 0 18px; }
.route b { display: block; font: 400 26px/1 var(--display); }
.route span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.route .to { text-align: right; }
.route-arc { width: 100%; height: 34px; color: var(--ink-3); }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; padding-top: 16px; border-top: 2px solid rgba(59, 33, 80, 0.12); }
.stat-value { margin: 4px 0 0; font-weight: 900; font-size: 15.5px; overflow-wrap: anywhere; }
.stat-value.small { font-size: 11.5px; font-weight: 500; }
.pass-stub {
  display: flex; flex-direction: column; gap: 6px; justify-content: center;
  padding: 22px 18px; background: var(--paper-2); border-left: 2.5px dashed var(--ink);
}
.memo { font: 500 24px/1 var(--mono); letter-spacing: 0.06em; color: var(--ink); }
.barcode { width: 100%; height: 44px; margin: 6px 0 10px; }
.stub-total { font: 400 26px/1 var(--display); }
@media (max-width: 620px) {
  .pass { grid-template-columns: 1fr; }
  .pass::before, .pass::after { display: none; }
  .pass-stub { border-left: 0; border-top: 2.5px dashed var(--ink); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 14px; }
  .pass-stub .barcode { grid-column: 1 / -1; order: 5; margin: 4px 0 0; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route b { font-size: 21px; }
}

.timer-card { display: flex; align-items: center; gap: 18px; padding: 20px 22px; }
.timer-ring { width: 64px; height: 64px; flex-shrink: 0; }
.timer-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-ring circle { fill: none; stroke-width: 6; }
.timer-ring .track { stroke: rgba(59, 33, 80, 0.12); }
.timer-ring .prog { stroke: var(--paint); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.timer-copy { flex: 1; min-width: 0; }
.timer-value { font: 400 32px/1.05 var(--display); }
.timer-value.expired { color: var(--err); }
.timer-note { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.demo-link { margin-top: 6px; padding: 0; border: 0; background: none; font: 800 12.5px var(--body); color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.demo-link:hover { color: var(--paint); }

.card-title { margin: 0 0 16px; font: 400 26px/1.1 var(--display); }
.currency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.btn-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 58px; border: 2.5px solid var(--ink); border-radius: 18px;
  background: var(--paint); box-shadow: 0 5px 0 var(--ink);
  font: 400 21px var(--display); letter-spacing: 0.02em; color: var(--ink); cursor: pointer;
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn-cta:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn-cta svg { width: 22px; height: 22px; }
.btn-cta:disabled { opacity: 0.6; cursor: default; transform: none; }
.notice { padding: 14px 16px; border: 2px solid var(--ink); border-radius: 16px; background: var(--butter); font-size: 14px; font-weight: 600; }
.copy-field { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 2.5px solid var(--ink); border-radius: 14px; background: #fff; }
.copy-field code { flex: 1; min-width: 0; font: 500 14px var(--mono); overflow-wrap: anywhere; }
.copy-btn { flex-shrink: 0; min-height: 36px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--bucket); font-weight: 900; font-size: 13px; cursor: pointer; }
.copy-btn.copied { background: var(--mint); }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 2px; background: rgba(59, 33, 80, 0.14); }

.loading-box, .success-box, .expired-box { text-align: center; padding: 24px 18px; border: 2.5px solid var(--ink); border-radius: 20px; }
.loading-box { background: var(--paper-2); }
.loading-box h3, .success-box h3, .expired-box h3 { margin: 12px 0 4px; font: 400 23px/1.15 var(--display); }
.loading-box p, .success-box p, .expired-box p { margin: 0 auto; max-width: 36ch; color: var(--ink-2); font-weight: 600; }
.spinner { width: 54px; height: 54px; margin: 0 auto; border-radius: 50%; border: 5px solid rgba(59, 33, 80, 0.12); border-top-color: var(--paint); border-right-color: var(--lav); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-box { background: var(--mint-soft); animation: pop-in 0.6s var(--pop) both; }
.success-box .btn { margin-top: 16px; }
.success-coin {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; border: 3px solid var(--ink);
  display: grid; place-items: center; font: 400 32px var(--display); color: #d98c1c;
  background: radial-gradient(circle at 38% 34%, #fff3b0, #ffcf45 55%, #f0a92a);
  box-shadow: 0 4px 0 var(--ink); animation: coin-flip 1.4s var(--ease) 0.2s both;
}
@keyframes coin-flip { from { transform: rotateY(0) scale(0.4); } 60% { transform: rotateY(720deg) scale(1.15); } to { transform: rotateY(720deg) scale(1); } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
.expired-box { background: #ffe3e6; }
.expired-box .btn { margin-top: 16px; }

/* invoice cards slap onto the page as the paint slides away */
#view-invoice:not(.revealed) .slap { opacity: 0; }
#view-invoice.revealed .slap { animation: slap 0.6s var(--pop) both; animation-delay: calc(var(--i, 0) * 110ms); }
@keyframes slap {
  from { opacity: 0; transform: translateY(-14px) scale(1.14) rotate(-3deg); }
  60% { opacity: 1; }
  to { opacity: 1; transform: none; }
}

/* ---------- launch overlays ---------- */
.countdown { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; pointer-events: none; }
.countdown span {
  font: 400 clamp(120px, 22vw, 240px)/1 var(--display);
  color: var(--gold);
  -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill;
  text-shadow: 0 12px 0 var(--ink);
  opacity: 0;
}
.countdown span.go { font-size: clamp(64px, 11vw, 150px); color: var(--paint); }
.countdown span.pop { animation: count-pop 0.62s var(--pop) both; }
@keyframes count-pop {
  0% { opacity: 0; transform: scale(0.3) rotate(-12deg); }
  35% { opacity: 1; transform: scale(1.12) rotate(3deg); }
  70% { opacity: 1; transform: scale(1) rotate(0); }
  100% { opacity: 0; transform: scale(1.3) translateY(-20px); }
}
.launch-hud {
  position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 62;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  display: grid; justify-items: center; gap: 4px;
  min-width: 250px; padding: 12px 22px 14px;
  border: 2.5px solid var(--ink); border-radius: 20px; background: var(--paper); box-shadow: 0 5px 0 var(--ink);
  transition: opacity 0.3s, transform 0.4s var(--pop);
}
.launch-hud.on { opacity: 1; transform: translate(-50%, 0); }
.hud-eyebrow { font: 500 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--paint); }
.hud-text { font: 400 20px/1.1 var(--display); }
.hud-bar { width: 100%; height: 8px; margin-top: 4px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; background: #fff; }
.hud-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff9aa9, #ffc58f, #ffea8a, #b2ec94, #9cd5ff, #c4acff); transition: width 0.5s var(--ease); }

.corner { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 65; display: flex; align-items: center; gap: 10px; }
.corner-btn {
  min-height: 48px; padding: 0 18px;
  border: 2.5px solid var(--ink); border-radius: 16px; background: var(--paper); box-shadow: 0 4px 0 var(--ink);
  font: 900 14px var(--body); cursor: pointer;
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease);
}
.corner-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.corner-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.corner-btn.round { width: 48px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.corner-btn.round svg { width: 22px; height: 22px; }
.corner-btn .snd-off { display: none; }
.corner-btn[aria-pressed="false"] .snd-on { display: none; }
.corner-btn[aria-pressed="false"] .snd-off { display: block; }
body.launching .corner .skip { animation: pop-in 0.4s var(--pop) 0.6s both; }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: min(520px, calc(100vw - 32px));
  padding: 13px 18px; border: 2.5px solid var(--ink); border-radius: 16px; background: var(--paper); box-shadow: 0 5px 0 var(--ink);
  font-weight: 700; font-size: 14.5px;
  transition: opacity 0.25s, transform 0.3s var(--pop);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast strong { color: var(--err); }
.toast.ok strong { color: #1f7a51; }

@media (max-width: 480px) {
  .hide-sm { display: none; }
  .card { padding: 20px; }
  .btn { padding: 0 13px; }
  .brand-name { font-size: 21px; }
  .brand-tag { display: none; }
  .brand-logo { width: 44px; height: 44px; }
  .price-final { font-size: 28px; }
  .launch-hud { min-width: 0; width: calc(100vw - 32px); }
  .corner { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); right: 14px; }
  body.launching .launch-hud { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
