:root {
  --violet: #5B39F5;
  --deep: #2D1A78;
  --mid: #7C5CFF;
  --soft: #EEE9FF;
  --mist: #F8F6FF;
  --ink: #18142E;
  --muted: #645F7A;
  --line: #E6E1F5;
  --white: #FFFFFF;
  --shadow: 0 18px 50px rgba(45, 26, 120, .10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(91,57,245,.35);
  outline-offset: 3px;
}
img, svg { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -80px; background: var(--deep); color: #fff; padding: 10px 14px; z-index: 1000; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(230,225,245,.9);
  backdrop-filter: blur(12px);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--deep); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--violet); color: white; border-radius: 10px; font-size: 20px; font-weight: 900; box-shadow: 0 8px 20px rgba(91,57,245,.22); }
.brand-sub { display: block; font-size: 10px; color: var(--muted); font-weight: 650; letter-spacing: .03em; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 20px; margin-left: auto; font-size: 14px; font-weight: 650; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--violet); }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--violet); color: white !important; box-shadow: 0 10px 24px rgba(91,57,245,.18); }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: white; width: 44px; height: 44px; border-radius: 12px; font: inherit; font-size: 20px; }

.hero { background: var(--mist); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; min-height: 600px; padding: 64px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px; background: var(--soft); color: var(--deep); font-weight: 750; font-size: 13px; }
h1, h2, h3 { color: var(--deep); line-height: 1.12; margin-top: 0; }
h1 { font-size: clamp(42px, 5.7vw, 72px); letter-spacing: -.045em; margin: 18px 0 20px; }
h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; margin-bottom: 12px; }
h3 { font-size: 20px; margin-bottom: 8px; }
.accent { color: var(--violet); }
.lead { font-size: 19px; color: #4E4960; max-width: 650px; }
.hero-actions, .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.btn { display: inline-flex; min-height: 48px; padding: 0 20px; border-radius: 999px; align-items: center; justify-content: center; gap: 8px; font-weight: 760; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--violet); color: white; box-shadow: 0 12px 26px rgba(91,57,245,.20); }
.btn-secondary { border-color: #BFB3FF; background: white; color: var(--deep); }
.availability-note { color: var(--muted); font-size: 13px; }

.phone-stage { position: relative; min-height: 470px; display: grid; place-items: center; }
.phone-stage::before, .phone-stage::after { content: ""; position: absolute; border-radius: 999px; background: var(--soft); z-index: 0; }
.phone-stage::before { width: 340px; height: 340px; right: 0; top: 42px; }
.phone-stage::after { width: 180px; height: 180px; left: 6px; bottom: 20px; }
.phone { position: relative; z-index: 2; width: 285px; padding: 12px; background: #14111F; border-radius: 42px; box-shadow: 0 28px 70px rgba(45,26,120,.30); transform: rotate(4deg); }
.phone-screen { min-height: 535px; background: #fff; border-radius: 32px; overflow: hidden; }
.phone-top { height: 68px; background: var(--violet); color: #fff; padding: 23px 18px 0; font-weight: 800; }
.phone-body { padding: 18px; }
.phone-greeting { font-size: 18px; font-weight: 800; margin-bottom: 12px; color: var(--deep); }
.searchbar { border: 1px solid var(--line); background: var(--mist); border-radius: 14px; padding: 11px 12px; color: var(--muted); font-size: 12px; }
.phone-chips { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin: 14px 0 18px; }
.phone-chip { padding: 9px 4px; text-align: center; border-radius: 12px; background: var(--soft); color: var(--deep); font-size: 10px; font-weight: 750; }
.merchant-card { border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; margin-top: 9px; }
.merchant-thumb { width: 48px; height: 48px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; font-size: 20px; }
.merchant-meta strong { display: block; font-size: 12px; color: var(--deep); }
.merchant-meta span { font-size: 10px; color: var(--muted); }
.chat-pill { font-size: 10px; color: var(--violet); border: 1px solid #CFC6FF; border-radius: 999px; padding: 5px 8px; font-weight: 750; }

.section { padding: 78px 0; }
.section-soft { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.cards-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.cards-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; }
.card.soft { background: var(--mist); }
.icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--soft); color: var(--violet); font-size: 23px; margin-bottom: 18px; }
.card p { color: var(--muted); margin-bottom: 0; }

.loop { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; align-items: stretch; }
.loop-step { position: relative; text-align: center; padding: 16px 10px 10px; }
.loop-step:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 28px; color: #A797FF; font-size: 21px; }
.loop-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--violet); font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.loop-icon { width: 54px; height: 54px; margin: 0 auto 9px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--violet); font-size: 25px; }
.loop-step strong { display: block; color: var(--deep); }
.loop-step span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.audience { min-height: 350px; padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; }
.audience::after { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: var(--soft); right: -55px; bottom: -60px; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; max-width: 520px; }
.checklist li { position: relative; padding-left: 30px; color: #4E4960; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: white; font-size: 12px; font-weight: 900; }

.download-band { background: var(--deep); color: white; border-radius: var(--radius-lg); padding: 34px; display: grid; grid-template-columns: 1.3fr auto; gap: 30px; align-items: center; box-shadow: var(--shadow); }
.download-band h2, .download-band h3 { color: white; }
.download-band p { color: #DAD3FF; }
.qr { background: white; padding: 12px; border-radius: 14px; width: 150px; height: 150px; }

.faq-list { display: grid; gap: 12px; }
details { border: 1px solid var(--line); border-radius: 15px; background: #fff; padding: 0 18px; }
summary { cursor: pointer; min-height: 58px; display: flex; align-items: center; font-weight: 760; color: var(--deep); }
details p { color: var(--muted); margin-top: 0; padding-bottom: 17px; }

.page-hero { padding: 72px 0 42px; background: var(--mist); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(38px, 5vw, 58px); max-width: 850px; }
.page-main { padding: 54px 0 84px; }
.prose { max-width: 840px; }
.prose p, .prose li { color: #4E4960; }
.prose h2 { margin-top: 42px; font-size: 30px; }
.prose h3 { margin-top: 28px; }
.notice { border-left: 4px solid var(--violet); background: var(--mist); padding: 16px 18px; border-radius: 0 12px 12px 0; margin: 22px 0; }
.notice strong { color: var(--deep); }
.draft-banner { background: #FFF6DA; border: 1px solid #F1D56B; color: #594600; padding: 12px 16px; border-radius: 12px; margin-bottom: 24px; font-weight: 700; }

.download-panel { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.store-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.store-card { border: 1px solid var(--line); border-radius: 15px; padding: 18px; background: var(--mist); }
.store-card strong { display: block; color: var(--deep); }
.store-card span { color: var(--muted); font-size: 14px; }
.store-link { display: inline-flex; margin-top: 10px; min-height: 42px; align-items: center; justify-content: center; padding: 0 14px; border-radius: 999px; background: var(--violet); color: white; text-decoration: none; font-weight: 750; }
.store-link[aria-disabled="true"] { background: #D7D2E8; color: #5E5870; pointer-events: none; box-shadow: none; }

.site-footer { border-top: 1px solid var(--line); padding: 52px 0 28px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4,1fr); gap: 28px; }
.footer-title { color: var(--deep); font-weight: 800; margin-bottom: 10px; }
.footer-links { display: grid; gap: 8px; font-size: 14px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--violet); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }

@media (max-width: 1000px) {
  .nav-links { position: absolute; display: none; top: 72px; left: 20px; right: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-cta { width: 100%; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cards-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1.5fr repeat(2,1fr); }
}

@media (max-width: 767px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand-sub { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding: 46px 0 52px; min-height: auto; }
  h1 { font-size: clamp(40px, 13vw, 58px); }
  .lead { font-size: 17px; }
  .phone-stage { min-height: 430px; }
  .phone { width: 246px; }
  .phone-screen { min-height: 455px; }
  .section { padding: 58px 0; }
  .cards-3, .audience-grid { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .loop { grid-template-columns: 1fr; gap: 0; }
  .loop-step { display: grid; grid-template-columns: 42px 56px 1fr; gap: 10px; text-align: left; align-items: center; padding: 8px 0; }
  .loop-step:not(:last-child)::after { content: "↓"; left: 58px; right: auto; top: 58px; }
  .loop-num { margin: 0; }
  .loop-icon { width: 48px; height: 48px; margin: 0; }
  .loop-step span { margin: 2px 0 0; }
  .download-band, .download-panel { grid-template-columns: 1fr; }
  .download-band .qr, .download-panel .qr { justify-self: center; }
  .store-options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .cards-4 { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.footer-tagline { color: var(--muted); max-width: 280px; }
.footer-muted { color: var(--muted); }
.phone-section-label { font-size: 12px; color: var(--deep); }
.audience-title { font-size: 31px; }
.btn-inverse { background: white; color: var(--deep); }
.small-note { font-size: 13px; }
.qr-caption { max-width: 160px; text-align: center; color: var(--muted); font-size: 12px; }
