/* RewardPass product site - static port of system-design/site/ui_kits/landing.
   Tokens mirror the design system (tokens/colors.css); the font is Satoshi,
   the same deliberate swap the venue panel made. */

/* Self-hosted from /fonts so a visitor's IP never reaches a font CDN. */
@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi-VariableItalic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --rp-ground: #08080c;
  --rp-glass: rgba(255, 255, 255, 0.03);
  --rp-glass-2: rgba(255, 255, 255, 0.06);
  --rp-line: rgba(255, 255, 255, 0.08);
  --rp-line-soft: rgba(255, 255, 255, 0.05);
  --rp-line-strong: rgba(255, 255, 255, 0.14);
  --rp-ink: #f4f4f7;
  --rp-ink-2: #c9c9d3;
  --rp-muted: #8e8ea0;
  --rp-faint: #5f5f70;
  --rp-accent: #8b5cf6;
  --rp-accent-2: #a78bfa;
  --rp-accent-hover: #9d75f8;
  --rp-accent-soft: rgba(139, 92, 246, 0.14);
  --rp-accent-glow: rgba(139, 92, 246, 0.45);
  --rp-gradient-cta: linear-gradient(180deg, #9d75f8 0%, #7c4ff0 100%);
  --shadow-cta: 0 10px 30px rgba(139, 92, 246, 0.35);
  --shadow-pass: 0 24px 60px rgba(0, 0, 0, 0.55);
  --rp-glow-corner: radial-gradient(60% 50% at 0% 0%, rgba(139, 92, 246, 0.35) 0%, rgba(139, 92, 246, 0) 70%);
  --rp-glow-center: radial-gradient(50% 40% at 50% 0%, rgba(139, 92, 246, 0.28) 0%, rgba(139, 92, 246, 0) 70%);
  --rp-ok: #34c174;
  --rp-danger: #ef5350;
  --rp-tier-gold: #c9a24a; --rp-tier-gold-ink: #3a2a08;
  --rp-tier-gold-strip: linear-gradient(118deg, #7c5c20 0%, #caa249 14%, #f4e3a6 29%, #e7c76e 43%, #b58f34 57%, #f0da8e 71%, #9c7a2c 86%, #6f5220 100%);
  --rp-tier-silver: #a6acb4; --rp-tier-silver-ink: #24282d;
  --rp-tier-silver-strip: linear-gradient(118deg, #70757c 0%, #b9bfc7 14%, #f2f5f8 29%, #d3d8df 43%, #a6acb4 57%, #eceef2 71%, #8d939b 86%, #686d74 100%);
  --rp-tier-bronze: #9c6035; --rp-tier-bronze-ink: #f3e3d3;
  --rp-tier-bronze-strip: linear-gradient(118deg, #5f3a20 0%, #a2673c 14%, #dda274 29%, #c07c4c 43%, #8f5730 57%, #d0925f 71%, #7a4a28 86%, #5a3620 100%);
  --rp-tier-edge: rgba(255, 255, 255, 0.18);
  --font-sans: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* iOS Safari widens the layout viewport for anything positioned past the
   right edge (the glows below) and then zooms the page out, leaving a black
   strip. overflow-x on body alone does not stop it; clip at the root too. */
html { color-scheme: dark; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--rp-ground); color: var(--rp-ink); font-family: var(--font-sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}
a { color: var(--rp-accent-2); text-decoration: none; }
a:hover { color: var(--rp-ink); }
h1, h2, h3, p { margin: 0; }
.tabular { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; } }

/* Logo: the ticket mark plus a plain 700 wordmark. */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--rp-ink); }
.logo svg { display: block; flex: none; }
.logo span { font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.logo--nav span { font-size: 17px; }
.logo--foot span { font-size: 14px; }

/* Buttons - primary is the one action per view; secondary everywhere else. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font: 600 13px/1 var(--font-sans); letter-spacing: -0.005em; cursor: pointer; border: 1px solid transparent; height: 36px; padding: 0 16px; color: var(--rp-ink); background: var(--rp-glass-2); border-color: var(--rp-line); transition: background 120ms ease-out, border-color 120ms ease-out, transform 120ms ease-out; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--rp-line-strong); color: var(--rp-ink); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--rp-accent); color: #fff; border-color: transparent; }
.btn--primary:hover { background: var(--rp-accent-hover); color: #fff; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn--lg { height: 44px; padding: 0 22px; font-size: 15px; }
.btn--cta { background: var(--rp-gradient-cta); box-shadow: var(--shadow-cta); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: 999px; border: 1px solid var(--rp-line); background: var(--rp-glass); font-size: 12px; font-weight: 500; color: var(--rp-ink-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rp-accent-2); box-shadow: 0 0 10px var(--rp-accent-glow); }

/* Nav */
.nav-bar { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(8, 8, 12, 0.6); border-bottom: 1px solid var(--rp-line-soft); }
.nav { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--rp-muted); }
.nav-links a:hover { color: var(--rp-ink); }

/* Hero */
.hero { position: relative; padding: 96px 0 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--rp-glow-corner); pointer-events: none; }
.hero .wrap { position: relative; text-align: center; }
.h1 { margin: 24px auto 0; max-width: 820px; font-size: 60px; font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.lead { margin: 22px auto 0; max-width: 560px; font-size: 17px; line-height: 1.6; color: var(--rp-muted); text-wrap: pretty; }
.hero-cta { display: flex; gap: 10px; justify-content: center; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 12px; color: var(--rp-faint); }

/* Product frame: a miniature of the venue panel under the hero. */
.frame-wrap { position: relative; margin-top: 64px; text-align: left; }
.frame-wrap::before { content: ""; position: absolute; inset: -40px 0 auto 0; height: 260px; background: var(--rp-glow-center); pointer-events: none; }
.frame { position: relative; border-radius: 20px; border: 1px solid var(--rp-line-strong); background: linear-gradient(180deg, #121219 0%, #0c0c11 100%); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); padding: 12px; display: grid; grid-template-columns: 200px 1fr; gap: 12px; height: 440px; overflow: hidden; }
.cell { border-radius: 12px; border: 1px solid var(--rp-line); background: rgba(255, 255, 255, 0.025); padding: 16px; box-sizing: border-box; }
.frame-side { display: grid; align-content: start; gap: 4px; }
.frame-side .logo { margin-bottom: 14px; }
.frame-side .logo span { font-size: 14px; }
.frame-side div:not(.logo) { padding: 7px 10px; border-radius: 8px; font-size: 12px; font-weight: 500; color: var(--rp-muted); }
.frame-side .on { color: var(--rp-ink); background: var(--rp-glass-2); }
.frame-main { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-width: 0; }
.frame-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-label { font-size: 11px; color: var(--rp-muted); }
.stat-value { display: flex; gap: 8px; align-items: baseline; margin-top: 8px; }
.stat-value b { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.stat-value small { font-size: 11px; }
.up { color: var(--rp-ok); }
.down { color: var(--rp-danger); }
.frame-chart { display: grid; grid-template-rows: auto 1fr; }
.frame-chart h3 { font-size: 13px; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 4px; margin-top: 16px; }
.bars i { flex: 1; border-radius: 3px; background: var(--rp-accent-soft); min-height: 2%; }
.bars i.peak { background: var(--rp-accent); }

/* Sections */
.section { padding: 128px 32px 0; }
.section--last { padding-bottom: 128px; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto; }
.h2 { margin-top: 18px; font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.copy { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--rp-muted); max-width: 440px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.card { border-radius: 16px; border: 1px solid var(--rp-line); background: var(--rp-glass); padding: 24px; }
.step-n { font-size: 12px; font-weight: 600; color: var(--rp-accent-2); }
.step-t { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-top: 40px; }
.step-d { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--rp-muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
/* Grid items default to min-content width; the fixed-size pass stack would
   otherwise widen the column and push the heading off a phone screen. */
.two-col > * { min-width: 0; }
.two-col--top { align-items: start; }

.chips { display: flex; gap: 8px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--rp-tier-edge); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18); white-space: nowrap; }
.chip--gold { background: var(--rp-tier-gold-strip); color: var(--rp-tier-gold-ink); }
.chip--silver { background: var(--rp-tier-silver-strip); color: var(--rp-tier-silver-ink); }
.chip--bronze { background: var(--rp-tier-bronze-strip); color: var(--rp-tier-bronze-ink); }

/* Pass stack: three cards as the wallet paints them, fanned out. */
.stack-wrap { position: relative; width: 100%; aspect-ratio: 440 / 300; }
.stack-wrap::before { content: ""; position: absolute; inset: auto 0 -40px 0; height: 200px; background: radial-gradient(50% 60% at 50% 100%, rgba(139, 92, 246, 0.25), transparent 70%); }
.stack { position: relative; width: 440px; height: 300px; transform-origin: top left; }
.pass { position: absolute; width: 260px; height: 156px; border-radius: 18px; padding: 18px; box-sizing: border-box; box-shadow: var(--shadow-pass); }
.pass-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; opacity: 0.7; }
.pass-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-top: 40px; }
.pass-sub { font-size: 12px; margin-top: 4px; opacity: 0.7; }
.pass-qr { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 8px; background: rgba(127, 127, 127, 0.22); }
.pass--bronze { left: 0; top: 0; background: var(--rp-tier-bronze); color: var(--rp-tier-bronze-ink); }
.pass--silver { left: 90px; top: 70px; background: var(--rp-tier-silver); color: var(--rp-tier-silver-ink); }
.pass--gold { left: 180px; top: 140px; background: var(--rp-tier-gold); color: var(--rp-tier-gold-ink); }

/* Contact */
.contact-box { border-radius: 16px; border: 1px solid var(--rp-line); background: var(--rp-glass); padding: 10px 24px; }
.row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rp-line-soft); font-size: 14px; line-height: 1.5; }
.row:first-child { border-top: none; }
.row span:first-child { color: var(--rp-muted); }
.row a { color: var(--rp-ink); }
.row a:hover { color: var(--rp-accent-2); }

/* Footer */
.footer { border-top: 1px solid var(--rp-line-soft); }
.footer .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--rp-faint); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--rp-muted); }
.footer-links a:hover { color: var(--rp-ink); }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 72px 32px 128px; box-sizing: border-box; }
.legal h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.legal .meta { margin-top: 12px; font-size: 13px; color: var(--rp-faint); }
.legal h2 { margin-top: 40px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.legal p, .legal li { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--rp-ink-2); }
.legal ul { margin: 0; padding-left: 20px; }
.legal a { color: var(--rp-accent-2); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .h1 { font-size: 40px; }
  .how-grid, .two-col { grid-template-columns: 1fr; gap: 24px; }
  .frame { grid-template-columns: 1fr; height: auto; }
  .frame-side { display: none; }
  .frame-stats { grid-template-columns: 1fr 1fr; }
  .frame-chart { min-height: 180px; }
  .section { padding-top: 80px; padding-bottom: 0; }
  .section--last { padding-bottom: 80px; }
  .footer .wrap { flex-direction: column; height: auto; padding: 24px 32px; gap: 12px; align-items: flex-start; }
  .stack-wrap { max-width: 440px; }
  .stack { transform: scale(0.72); }
  .stack-wrap { aspect-ratio: auto; height: 220px; overflow: hidden; }
}
@media (max-width: 520px) {
  .h1 { font-size: 34px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .row { grid-template-columns: 1fr; gap: 2px; }
}
