/* ===========================================================================
   Card Club, shared styles
   Design tokens mirror the mobile app (packages theme + global.css):
   white surface, brand sky #01AAFF / deep #0080D6 accent, ticket red,
   star yellow. Mobile-first, system font stack (SF Pro / Inter).
   =========================================================================== */

:root {
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --accent: #0080d6;
  --accent-press: #006bb4;
  --sky: #01aaff;
  --sky-soft: #e5f6ff;
  --ticket: #ff1d29;
  --star: #ffdc38;
  --orange: #ff5c0c;
  --bg: #ffffff;
  --surface-muted: #f8fafc;
  --border: #e2e8f0;
  --green-bg: #d9f2ea;  --green-fg: #1a4d3c;
  --blue-bg: #d9e6f2;   --blue-fg: #1a3b4d;
  --sand-bg: #f2ead9;   --sand-fg: #4d3f1a;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(16, 28, 48, 0.25);
  --shadow-brand: 0 18px 40px -16px rgba(1, 170, 255, 0.45);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
section { position: relative; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--accent-press); }
.btn--secondary { background: var(--sky-soft); color: var(--accent); border-color: #cdeeff; }
.btn--secondary:hover { background: #d6f0ff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-muted); }
.btn--sm { padding: 11px 18px; font-size: 15px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav { display: none; align-items: center; gap: 28px; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: 10px; }

/* ---------- hero ---------- */
.hero { overflow: hidden; padding: 56px 0 24px; }
.hero-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; }
.blob.b1 { width: 420px; height: 420px; background: var(--sky-soft); top: -120px; right: -80px; }
.blob.b2 { width: 320px; height: 320px; background: var(--green-bg); bottom: -120px; left: -90px; opacity: 0.45; }
.blob.b3 { width: 260px; height: 260px; background: var(--sand-bg); top: 140px; left: 45%; opacity: 0.4; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }
.hero-copy { text-align: center; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); font-weight: 800; margin: 16px auto 0; max-width: 16ch; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); margin: 18px auto 0; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.store-note { margin-top: 16px; font-size: 13.5px; color: var(--muted-light); display: flex; gap: 8px; align-items: center; justify-content: center; }
.store-note svg { width: 16px; height: 16px; }

/* badges (mirror app FeatureBadge hues) */
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
}
.badge svg { width: 16px; height: 16px; }
.badge.green { background: var(--green-bg); color: var(--green-fg); }
.badge.blue { background: var(--blue-bg); color: var(--blue-fg); }
.badge.sand { background: var(--sand-bg); color: var(--sand-fg); }

/* hero visual: logo + wallet card mock */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-logo { width: 132px; height: 132px; border-radius: 30px; box-shadow: var(--shadow-brand); }
.wallet-card {
  width: min(360px, 88vw); border-radius: 20px; padding: 20px 22px; color: #fff;
  background: linear-gradient(135deg, #41c4ff 0%, #01aaff 52%, #0086dc 100%);
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.wallet-card::after {
  content: ""; position: absolute; top: -40%; right: -10%; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 60%);
}
.wallet-card .wc-top { display: flex; align-items: center; justify-content: space-between; }
.wallet-card .wc-store { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.wallet-card .wc-store img { width: 34px; height: 34px; border-radius: 8px; }
.wallet-card .wc-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.wallet-card .wc-label { margin-top: 18px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.85; }
.wallet-card .wc-stamps { display: flex; gap: 9px; margin-top: 10px; }
.wallet-card .wc-stamp { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.wallet-card .wc-stamp.on { background: var(--star); border-color: var(--star); color: #7a5c00; }
.wallet-card .wc-foot { margin-top: 18px; font-size: 13px; opacity: 0.92; }
.wallet-pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.wallet-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--ink-soft); background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 14px; box-shadow: var(--shadow-sm);
}
.wallet-pill svg { width: 18px; height: 18px; }

/* ---------- generic section ---------- */
.section-pad { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 38px); font-weight: 800; margin-top: 12px; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }
.muted-bg { background: var(--surface-muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 22px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 26px; box-shadow: var(--shadow-sm); position: relative;
}
.step .num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--sky-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.step h3 { font-size: 19px; font-weight: 700; }
.step p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }

/* features grid */
.features { display: grid; grid-template-columns: 1fr; gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
}
.feature .ic {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 17.5px; font-weight: 700; }
.feature p { color: var(--muted); margin-top: 7px; font-size: 15px; }
.ic.sky { background: var(--sky-soft); color: var(--accent); }
.ic.green { background: var(--green-bg); color: var(--green-fg); }
.ic.sand { background: var(--sand-bg); color: var(--sand-fg); }
.ic.red { background: #fde8e9; color: var(--ticket); }
.ic.blue { background: var(--blue-bg); color: var(--blue-fg); }

/* audience chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 11px 18px; font-weight: 600; font-size: 15px; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.chip svg { width: 18px; height: 18px; color: var(--accent); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #0a93e6 0%, #0080d6 55%, #006bb4 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 48px 32px; text-align: center;
  box-shadow: var(--shadow-md); overflow: hidden; position: relative;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
.cta-band p { color: rgba(255,255,255,0.9); margin-top: 12px; font-size: 17px; }
.cta-band .btn--primary { background: #fff; color: var(--accent); box-shadow: 0 12px 30px -12px rgba(0,0,0,0.4); margin-top: 24px; }
.cta-band .btn--primary:hover { background: #f1f9ff; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 20px; box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none; cursor: pointer; font-weight: 650; font-size: 16.5px; color: var(--ink);
  padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding: 0 0 18px; font-size: 15.5px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 52px 0 30px; margin-top: 8px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 800; font-size: 18px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 8px; }
.footer-about { margin-top: 14px; font-size: 14.5px; color: #94a3b8; max-width: 38ch; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-cols h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.footer-cols a, .footer-cols span { display: block; color: #cbd5e1; font-size: 14.5px; margin-bottom: 9px; }
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1e293b; margin-top: 36px; padding-top: 22px;
  display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #94a3b8;
}

/* ---------- legal / content pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 56px 20px 72px; }
.page h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 800; }
.page .updated { color: var(--muted-light); font-size: 14px; margin-top: 10px; }
.page h2 { font-size: 21px; font-weight: 700; margin-top: 34px; }
.page h3 { font-size: 17px; font-weight: 700; margin-top: 22px; }
.page p, .page li { color: var(--ink-soft); font-size: 16px; margin-top: 12px; }
.page ul { margin-top: 12px; padding-left: 22px; }
.page li { margin-top: 8px; }
.page a { font-weight: 500; }
.notice {
  background: var(--sky-soft); border: 1px solid #cdeeff; color: #0b4a73;
  border-radius: var(--radius); padding: 14px 18px; font-size: 14.5px; margin-top: 20px;
}
.support-cards { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
.support-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.support-card h3 { margin-top: 0; }
.support-card .email { font-size: 18px; font-weight: 700; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-weight: 600; font-size: 14.5px; }

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .nav { display: flex; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .support-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 940px) {
  .hero { padding: 80px 0 40px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .hero-copy { text-align: left; }
  .hero h1, .hero-sub { margin-left: 0; }
  .hero-cta, .badges, .store-note { justify-content: flex-start; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-cols { grid-template-columns: 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
