/* PayGo landing page - full redesign. Builds on theme.css tokens (fonts,
 * colors, scrollbar) and adds everything specific to the marketing page:
 * header/nav, hero, animated backdrop, sections, FAQ accordion, footer. */

html { scroll-behavior: smooth; }

a { color: inherit; }
img { display: block; max-width: 100%; }
button, select { font-family: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1120px;
  margin: 0 auto;
  transition: padding 0.25s ease;
}
.site-header.scrolled {
  padding: 12px 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-header .logo span { color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.15s ease;
  position: relative;
}
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-toggle {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.icon-toggle:hover { color: var(--accent); border-color: var(--accent); }
.icon-toggle:active { transform: scale(0.92); }
.icon-toggle svg { width: 18px; height: 18px; }
.icon-toggle .icon-moon { display: none; }
:root[data-theme='light'] .icon-toggle .icon-sun { display: none; }
:root[data-theme='light'] .icon-toggle .icon-moon { display: block; }

.lang-switch { position: relative; }
.lang-current {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 0 12px;
  height: 38px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.lang-current:hover { border-color: var(--accent); }
.lang-current svg { width: 13px; height: 13px; color: var(--muted); transition: transform 0.15s ease; }
.lang-switch.open .lang-current svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  min-width: 160px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 2px;
}
.lang-switch.open .lang-menu { display: flex; }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between;
  border: none; background: none; color: var(--text);
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
}
.lang-menu button:hover { background: var(--card-hover); }
.lang-menu button.active { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { opacity: 0.9; }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.lg { padding: 15px 32px; font-size: 1rem; border-radius: 13px; }

.burger {
  display: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.burger svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------- mobile */

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-actions .btn.ghost { display: none; }
  .burger { display: flex; }

  .mobile-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 10px 24px 22px;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }
  .mobile-nav .btn { margin-top: 10px; width: 100%; }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 24px 40px;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  z-index: -1;
  background:
    radial-gradient(480px circle at 20% 20%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 65%),
    radial-gradient(420px circle at 80% 10%, color-mix(in srgb, var(--accent-light) 26%, transparent), transparent 60%);
  filter: blur(10px);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-3%, 3%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
}

.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(51,196,122,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(51,196,122,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(51,196,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(51,196,122,0); }
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 20px;
}
.hero h1 .accent-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-light) 60%, var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }

.store-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.store-links a { line-height: 0; transition: opacity 0.15s ease, transform 0.15s ease; }
.store-links a:hover { opacity: 0.85; transform: translateY(-2px); }
.store-links img { height: 48px; }
.store-links .appstore-badge { width: auto; }

.stat-strip { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 26px;
  min-width: 140px;
  box-shadow: var(--shadow);
}
.stat-pill .num { font-size: 1.7rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-pill .label { color: var(--muted); font-size: 0.82rem; text-align: center; }

/* --------------------------------------------------------------- section */

section.block { padding: 88px 24px; }
section.block.tight { padding: 56px 24px; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section-head p { color: var(--muted); font-size: 1.02rem; line-height: 1.6; margin: 0; }

.alt-bg { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------------------------------------------------------- how it works */

.mode-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px;
  max-width: 280px;
  margin: 0 auto 44px;
}
.alt-bg .mode-tabs { background: var(--bg); }
.mode-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}
.mode-tab.active { background: var(--accent); color: #fff; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 960px; margin: 0 auto; }
.step-mode { display: none; }
.step-mode.active { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; gap: 22px; }
.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.alt-bg .step { background: var(--card-hover); }
.step .step-num {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

@media (max-width: 760px) {
  .steps, .step-mode.active { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}
@media (max-width: 860px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.alt-bg .feature-card { background: var(--card-hover); }
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.feature-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card .icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 700; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

/* -------------------------------------------------------------- audience */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}
@media (max-width: 860px) { .audience-grid { grid-template-columns: 1fr; } }

.audience-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
}
.audience-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.audience-card h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 800; }
.audience-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

/* ------------------------------------------------------------------ about */

.about-wrap {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.about-wrap p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 18px;
}
.about-wrap p:last-child { margin-bottom: 0; }
.about-wrap strong { color: var(--text); }

/* -------------------------------------------------------------------- faq */

.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.alt-bg .faq-item { background: var(--card-hover); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text);
}
.faq-q .plus {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a p { margin: 0; padding: 0 20px 20px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* --------------------------------------------------------------- cta band */

.cta-band {
  max-width: 1040px;
  margin: 0 auto;
  background: linear-gradient(120deg, var(--accent), var(--accent-light));
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at 85% 15%, rgba(255,255,255,0.18), transparent 60%);
}
.cta-band h2 { position: relative; margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { position: relative; margin: 0 0 28px; opacity: 0.92; font-size: 1rem; }
.cta-band .btn.primary { position: relative; background: #fff; color: var(--accent); }
.cta-band .btn.ghost { position: relative; border-color: rgba(255,255,255,0.5); color: #fff; }
.cta-band .btn.ghost:hover { border-color: #fff; color: #fff; opacity: 0.9; }
.cta-band .cta-row { margin-bottom: 0; }

/* ------------------------------------------------------------------ footer */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}
.footer-grid {
  max-width: 1120px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-brand .logo { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; display: block; }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; max-width: 260px; margin: 0; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--text); text-decoration: none; font-size: 0.9rem; margin-bottom: 10px; opacity: 0.85; }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* --------------------------------------------------------------- reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > * { animation: fadeUp 0.6s ease both; }
.reveal-stagger.in > *:nth-child(1) { animation-delay: 0.03s; }
.reveal-stagger.in > *:nth-child(2) { animation-delay: 0.09s; }
.reveal-stagger.in > *:nth-child(3) { animation-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(4) { animation-delay: 0.21s; }
.reveal-stagger.in > *:nth-child(5) { animation-delay: 0.27s; }
.reveal-stagger.in > *:nth-child(6) { animation-delay: 0.33s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; animation: none !important; }
}

[data-i18n], [data-i18n-html] { transition: opacity 0.15s ease; }
