:root {
  --blue-50: #EEF3FF;
  --blue-100: #DCE6FF;
  --blue-200: #B8CCFF;
  --blue-500: #2F5BFF;
  --blue-600: #0037DD;   /* app icon blue */
  --blue-700: #002BB0;
  --blue-900: #071A57;
  --cyan: #06B6D4;
  --indigo: #4F46E5;

  --bg: #FFFFFF;
  --surface: #F6F8FD;
  --text: #0B1533;
  --text-muted: #4A5578;
  --border: #E3E8F4;
  --ok: #047857;
  --ok-bg: #E7F7F0;
  --wait: #B45309;
  --wait-bg: #FFF4E0;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 51, .06), 0 1px 3px rgba(11, 21, 51, .08);
  --shadow: 0 10px 30px -10px rgba(0, 55, 221, .25);
  --shadow-lg: 0 30px 60px -20px rgba(0, 43, 176, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--blue-600); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none;
  cursor: pointer; touch-action: manipulation;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-700); }
.btn-ghost { background: transparent; color: var(--blue-600); border-color: var(--blue-200); }
.btn-ghost:hover { background: var(--blue-50); border-color: var(--blue-600); }
.btn-outline { background: #fff; color: var(--blue-600); border-color: var(--blue-600); }
.btn-outline:hover { background: var(--blue-600); color: #fff; }
.btn-light { background: #fff; color: var(--blue-900); }
.btn-light:hover { background: var(--blue-50); }
.btn-light span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn-light small { font-size: 11px; font-weight: 500; opacity: .7; }
.btn.is-disabled { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8); cursor: not-allowed; box-shadow: none; }
.btn.is-disabled:active { transform: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 10px; }
.nav-links { display: none; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--blue-600); }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(900px 500px at 85% 10%, var(--blue-100), transparent 60%),
    linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 88px 0 104px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--blue-100);
  color: var(--blue-600); font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.hero h1 { margin-top: 20px; font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; }
.lead { margin-top: 20px; max-width: 560px; font-size: 18px; color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-proof li { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14px; font-weight: 500; }
.hero-proof svg { color: var(--blue-600); flex: none; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-glow {
  position: absolute; inset: 10% 5%; z-index: 0;
  background: radial-gradient(closest-side, rgba(47, 91, 255, .35), transparent);
  filter: blur(30px);
}

/* Phone mockup */
.phone {
  position: relative; z-index: 1;
  width: 300px; max-width: 100%;
  padding: 12px; border-radius: 44px;
  background: var(--blue-900);
  box-shadow: var(--shadow-lg);
}
.phone-top { position: relative; height: 30px; display: flex; align-items: center; padding: 0 22px; }
.phone-time { color: #fff; font-size: 12px; font-weight: 600; }
.phone-notch { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 12px; background: #000; }
.phone-screen { border-radius: 32px; background: var(--surface); padding: 18px 16px 20px; }
.ps-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; border-radius: 18px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
}
.ps-header .ps-label { color: rgba(255, 255, 255, .8); }
.ps-points { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ps-points small { font-size: 14px; font-weight: 600; opacity: .8; }
.ps-icon { border-radius: 12px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.ps-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.ps-section { margin: 16px 0 8px 2px; }
.ps-checkin { margin-top: 12px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.ps-checkin-row { display: flex; justify-content: space-between; }
.ps-day {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 11px; font-weight: 700; color: var(--text-muted); background: var(--surface);
}
.ps-day.done { background: var(--blue-100); color: var(--blue-600); }
.ps-day.today { background: var(--blue-600); color: #fff; box-shadow: 0 0 0 3px var(--blue-100); }
.ps-checkin-cta {
  margin-top: 10px; padding: 9px; border-radius: 10px; text-align: center;
  background: var(--blue-600); color: #fff; font-size: 13px; font-weight: 700;
}
.ps-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; margin-top: 8px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.ps-item-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none; }
.ic-blue { background: var(--blue-50); color: var(--blue-600); }
.ic-cyan { background: #E0F7FB; color: #0E7490; }
.ic-indigo { background: #ECEBFD; color: var(--indigo); }
.ps-item-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ps-item-body b { font-size: 13px; }
.ps-item-body span { font-size: 11px; color: var(--text-muted); }
.ps-item-cost { font-size: 12px; font-weight: 700; color: var(--blue-600); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 104px 0; } }
.section-alt { background: var(--surface); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2, .op-copy h2 { margin-top: 12px; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.section-head p, .op-copy > p { margin-top: 16px; color: var(--text-muted); font-size: 17px; }
.kicker { display: inline-block; color: var(--blue-600); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0; }

/* Steps */
.steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step {
  position: relative; padding: 32px 28px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.step:hover { border-color: var(--blue-200); box-shadow: var(--shadow); }
.step-num { position: absolute; top: 24px; right: 28px; font-size: 44px; font-weight: 800; color: var(--blue-100); line-height: 1; }
.step-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--blue-600); color: #fff; }
.step h3 { margin-top: 20px; font-size: 20px; font-weight: 700; }
.step p { margin-top: 8px; color: var(--text-muted); }

/* Reward cards */
.cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  padding: 28px 24px; border-radius: var(--radius-lg); background: #fff;
  border: 1px solid var(--border);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { border-color: var(--blue-200); box-shadow: var(--shadow); }
.card-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-50); color: var(--blue-600); }
.card h3 { margin-top: 18px; font-size: 18px; font-weight: 700; }
.card p { margin-top: 8px; color: var(--text-muted); font-size: 15px; }

/* Operators */
.op-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .op-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.op-list { display: grid; gap: 16px; margin: 28px 0 32px; padding: 0; list-style: none; }
.op-list li { display: flex; gap: 12px; color: var(--text-muted); }
.op-list svg { flex: none; margin-top: 3px; color: var(--blue-600); }
.op-list b { color: var(--text); }
.ledger { padding: 20px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.ledger-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 12px; font-weight: 700; }
.ledger-badge { padding: 3px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-600); font-size: 12px; font-weight: 700; }
.ledger-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--border); }
.ledger-row > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ledger-row b { font-size: 14px; font-variant-numeric: tabular-nums; }
.ledger-row div span { font-size: 13px; color: var(--text-muted); }
.ledger-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font-weight: 700; font-size: 14px; flex: none; }
.ledger-status { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ledger-status.ok { background: var(--ok-bg); color: var(--ok); }
.ledger-status.wait { background: var(--wait-bg); color: var(--wait); }

/* Download */
.download {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(47, 91, 255, .55), transparent 70%),
    linear-gradient(160deg, var(--blue-600) 0%, var(--blue-900) 100%);
}
.download-inner { display: flex; flex-direction: column; align-items: center; }
.download-icon { border-radius: 22px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .12), var(--shadow-lg); }
.download h2 { margin-top: 24px; font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.download p { margin-top: 12px; font-size: 18px; color: rgba(255, 255, 255, .82); }
.download-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.desktop-note {
  margin-top: 20px; padding: 12px 18px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .12); font-size: 15px;
}
.download .desktop-note { color: #fff; }
.link-btn {
  margin-top: 20px; min-height: 44px; padding: 0 12px;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .85);
  text-decoration: underline; text-underline-offset: 4px;
}
.link-btn:hover { color: #fff; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--blue-600); border-bottom: 2px solid var(--blue-600);
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--text-muted); }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { display: grid; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-brand img { border-radius: 8px; }
.footer-note { max-width: 760px; font-size: 13px; color: var(--text-muted); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* Dialog */
dialog {
  width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 32px 28px 28px; border: 0; border-radius: var(--radius-lg);
  color: var(--text); box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: rgba(7, 26, 87, .55); backdrop-filter: blur(3px); }
dialog[open] { animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
dialog h2 { margin-top: 8px; font-size: 24px; font-weight: 800; }
.dialog-close {
  position: absolute; top: 12px; right: 12px;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); cursor: pointer;
}
.dialog-close:hover { background: var(--surface); color: var(--text); }
.guide-steps { counter-reset: s; margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.guide-steps li { counter-increment: s; position: relative; padding-left: 44px; display: flex; flex-direction: column; }
.guide-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue-600); color: #fff; font-size: 14px; font-weight: 700;
}
.guide-steps b { font-size: 15px; }
.guide-steps span { font-size: 14px; color: var(--text-muted); }
.guide-steps span:empty { display: none; }
.guide-steps li > .guide-install {
  align-self: flex-start; margin-top: 8px; min-height: 44px; display: inline-flex; align-items: center;
  color: var(--blue-600); font-size: 14px; font-weight: 600; text-underline-offset: 3px;
}
.guide-warn {
  display: grid; gap: 6px; justify-items: start; margin-top: 16px; padding: 14px 16px;
  border-radius: var(--radius-sm); background: var(--wait-bg); color: #7C2D12; font-size: 14px;
}
.guide-warn[hidden] { display: none; }
.guide-warn .btn { margin-top: 6px; }
.guide-tip { margin-top: 18px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--blue-50); color: var(--blue-900); font-size: 14px; }
.dialog-done { width: 100%; margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.guide-steps li > .guide-install[hidden] { display: none; }
