/* =========================================================================
   Payverly — marketing site stylesheet
   Design language: mint/teal light, deep-teal dark, Manrope + Plus Jakarta
   Sans, 16–24px radii, teal-tinted soft shadows, glass hairlines.
   ========================================================================= */

/* Brand fonts, self-hosted (assets/fonts, SIL OFL — licences alongside).
   They were loaded from Google Fonts, which hands every visitor's IP address
   to Google before any consent — a GDPR problem in the EU — and only the home
   and install pages loaded them; the legal pages fell back to system fonts.
   Variable fonts, wght 200–800, subset to Latin + Latin Extended-A. */
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/Manrope-Variable.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/PlusJakartaSans-Variable.woff2') format('woff2');
  font-weight: 200 800; font-style: normal; font-display: swap;
}


/* ---- Design tokens ------------------------------------------------------ */
:root {
  --bg: #F1FAF6;
  --surface: #FFFFFF;
  --surface-alt: #FBFEFC;
  --border: #E3EFE9;
  --text: #06141A;
  --muted: #566E77;
  --accent: #007E96;
  /* Deepened variant of --accent reserved for small/thin text (labels, inline
     links) so body copy clears WCAG AA 4.5:1 on both --bg and --surface;
     icons, borders and large UI elements keep the canonical --accent. */
  --accent-text: #00728A;
  --grad-a: #00C2E0;
  --grad-b: #009DB8;
  --pos: #00A35C;
  --pos-bg: #E3F6EC;
  --warn: #C9881B;
  --warn-bg: #FBF0DD;

  /* Ink for content sitting on the teal gradient band. Not theme-dependent:
     the band is teal in light AND dark, so its ink stays dark in both. */
  --on-accent: #06141A;
  --on-accent-muted: rgba(6, 20, 26, .82);
  /* Scan-code ink/paper. Deliberately identical in light and dark — a QR has to
     stay dark-modules-on-light-plate to scan reliably, so this pair must never
     invert with the theme. */
  --qr-ink: #06141A;
  --qr-paper: #FFFFFF;

  --shadow-sm: 0 2px 10px -4px rgba(6, 40, 48, .10);
  --shadow-md: 0 16px 40px -16px rgba(0, 126, 150, .28);
  --shadow-lg: 0 28px 64px -20px rgba(0, 126, 150, .34);
  --glass-bg: rgba(255, 255, 255, .66);
  --glass-border: rgba(255, 255, 255, .5);

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;

  --font-display: 'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --ease: cubic-bezier(.22, .68, 0, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #070B0C;
  --surface: #0E1719;
  --surface-alt: #0B1315;
  --border: #16262A;
  --text: #EAF8FC;
  --muted: #85A0AB;
  --accent: #26D6EC;
  --accent-text: #26D6EC;
  --grad-a: #00E5FF;
  --grad-b: #009DB8;
  --pos: #2ED98A;
  --pos-bg: #0E2620;
  --warn: #E3A83D;
  --warn-bg: #2A2113;

  --shadow-sm: 0 2px 12px -4px rgba(0, 0, 0, .5);
  --shadow-md: 0 18px 44px -16px rgba(0, 229, 255, .16);
  --shadow-lg: 0 30px 70px -20px rgba(0, 229, 255, .22);
  --glass-bg: rgba(14, 23, 25, .62);
  --glass-border: rgba(255, 255, 255, .08);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070B0C;
    --surface: #0E1719;
    --surface-alt: #0B1315;
    --border: #16262A;
    --text: #EAF8FC;
    --muted: #85A0AB;
    --accent: #26D6EC;
    --accent-text: #26D6EC;
    --grad-a: #00E5FF;
    --grad-b: #009DB8;
    --pos: #2ED98A;
    --pos-bg: #0E2620;
    --warn: #E3A83D;
    --warn-bg: #2A2113;
    --shadow-sm: 0 2px 12px -4px rgba(0, 0, 0, .5);
    --shadow-md: 0 18px 44px -16px rgba(0, 229, 255, .16);
    --shadow-lg: 0 30px 70px -20px rgba(0, 229, 255, .22);
    --glass-bg: rgba(14, 23, 25, .62);
    --glass-border: rgba(255, 255, 255, .08);
    color-scheme: dark;
  }
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

img { max-width: 100%; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -.01em; }
/* Even line lengths: no orphaned last word ("…in three / steps"). */
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--surface); color: var(--text); padding: .75rem 1.1rem;
  border-radius: var(--r-sm); box-shadow: var(--shadow-md); transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section { position: relative; }

/* Anchor targets clear the sticky nav instead of hiding under it. */
#features, #screens, #how, #faq, #get-app { scroll-margin-top: 88px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: .78rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--accent-text);
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); margin-top: .5rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-top: .85rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; font-family: var(--font-body);
  font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  color: #06141A;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  box-shadow: 0 10px 30px -10px rgba(0, 157, 184, .55), 0 0 0 1px rgba(255,255,255,.15) inset;
}
.btn-primary:hover { box-shadow: 0 14px 38px -10px rgba(0, 157, 184, .7), 0 0 0 1px rgba(255,255,255,.2) inset; transform: translateY(-1px); }

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); }

.btn-sm { padding: .6em 1.1em; font-size: .85rem; }

/* ---- Nav -------------------------------------------------------------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  padding: 14px 0;
}
.nav-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--muted);
  transition: color .15s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color .15s var(--ease), transform .15s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-burger { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---- Hero -------------------------------------------------------------- */
.hero {
  padding: 64px 0 40px;
  overflow: clip;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.5rem, 1.9rem + 2.6vw, 3.75rem);
  line-height: 1.04;
  margin-top: 18px;
}
.hero-copy h1 .grad {
  background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy p.lede {
  margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 46ch;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badge-row img { height: 46px; width: auto; border-radius: 10px; }
.badge-row a { transition: transform .18s var(--ease), filter .18s var(--ease); }
.badge-row a:hover { transform: translateY(-2px); }
.guest-note { margin-top: 14px; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.guest-note svg { width: 16px; height: 16px; color: var(--pos); flex-shrink: 0; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.glow-orb {
  position: absolute; border-radius: 50%; filter: blur(60px);
  opacity: .5;
  background: radial-gradient(circle, var(--grad-a), transparent 70%);
  background: radial-gradient(circle, color-mix(in srgb, var(--grad-a) 55%, transparent), transparent 70%);
  pointer-events: none;
}
.glow-orb--1 { width: 420px; height: 420px; top: -60px; right: -40px; }
.glow-orb--2 {
  width: 280px; height: 280px; bottom: -40px; left: -30px;
  background: radial-gradient(circle, var(--pos), transparent 70%);
  background: radial-gradient(circle, color-mix(in srgb, var(--pos) 40%, transparent), transparent 70%);
}

.device-stage { position: relative; width: min(300px, 78vw); transform: rotate(-4deg); }
.device-stage::after {
  content: ""; position: absolute; inset: 6% 4% -4% 4%;
  background: linear-gradient(160deg, var(--grad-a), var(--grad-b));
  filter: blur(38px); opacity: .55; z-index: -1; border-radius: 50px;
}

.device-frame {
  position: relative;
  aspect-ratio: 1179 / 1605;
  background: #0A1518;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.device-frame__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 32px; background: var(--bg);
}
.device-frame__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.device-frame__notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 22px; background: #0A1518; border-radius: 999px; z-index: 3;
}

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 12px 16px; box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }
/* Placed over the KPI cards and the decorative chart, never over the
   screenshot's headline figure (the outstanding total). */
.float-card--chip { left: -8%; top: 57%; animation-delay: .3s; }
.float-card--total { right: -12%; top: 31%; animation-delay: 1.1s; }
.float-card .dot {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--pos-bg); color: var(--pos); flex-shrink: 0;
}
.float-card .dot svg { width: 18px; height: 18px; }
.float-card strong { display: block; font-family: var(--font-display); font-size: .92rem; font-weight: 700; }
.float-card span { display: block; font-size: .78rem; color: var(--muted); }
.float-card--total strong { font-size: 1.15rem; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- Trust strip -------------------------------------------------------------- */
.trust-strip { padding: 8px 0 56px; }
.trust-list {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.trust-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .9rem; font-weight: 500; color: var(--text);
  box-shadow: var(--shadow-sm);
}
.trust-chip svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* ---- Features -------------------------------------------------------------- */
.features { padding: 40px 0 88px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  padding: 28px 26px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-alt);
  background: linear-gradient(135deg, color-mix(in srgb, var(--grad-a) 18%, var(--surface)), color-mix(in srgb, var(--grad-b) 12%, var(--surface)));
  color: var(--accent); margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .93rem; }

/* ---- Screens showcase -------------------------------------------------------------- */
.screens { padding: 40px 0 96px; }
.screens-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.screens-head .section-head { margin-bottom: 0; }
.screens-controls { display: flex; gap: 10px; padding-bottom: 6px; }
.screens-nav-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: border-color .15s var(--ease), transform .15s var(--ease);
  flex-shrink: 0;
}
.screens-nav-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.screens-nav-btn svg { width: 18px; height: 18px; }
@media (max-width: 620px) { .screens-controls { display: none; } }
.screens-scroller {
  display: flex; gap: 24px; overflow-x: auto; padding: 8px 4px 20px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  margin-inline: -24px; padding-inline: 24px;
}
.screens-scroller::-webkit-scrollbar { height: 8px; }
.screens-scroller::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.screen-item { flex: 0 0 auto; width: 230px; scroll-snap-align: start; }
.screen-item .device-frame { border-radius: 34px; padding: 9px; }
.screen-item .device-frame__screen { border-radius: 24px; }
.screen-item .device-frame__notch { width: 32%; height: 16px; top: 9px; }
.screen-caption { margin-top: 16px; text-align: center; }
.screen-caption strong { display: block; font-family: var(--font-display); font-size: .98rem; }
.screen-caption span { display: block; font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* ---- How it works -------------------------------------------------------------- */
.how { padding: 40px 0 96px; }
.flow-diagram { width: 100%; max-width: 760px; margin: 0 auto 56px; display: block; }
.flow-diagram .flow-line { stroke: var(--border); stroke-width: 2; stroke-dasharray: 7 8; }
.flow-diagram .flow-progress { stroke: url(#flowGradient); stroke-width: 2; stroke-dasharray: 7 8; }
.flow-diagram .flow-node-bg { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.flow-diagram .flow-node-bg--accent { fill: url(#flowGradient); stroke: none; }
.flow-diagram text { font-family: var(--font-body); font-weight: 600; fill: var(--text); font-size: 13px; }
.flow-diagram .flow-check { stroke: #06141A; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.steps-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; font-family: var(--font-display); font-weight: 700;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #06141A; margin-bottom: 16px; font-size: .95rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---- FAQ -------------------------------------------------------------- */
.faq { padding: 40px 0 96px; }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; transition: transform .25s var(--ease); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; max-width: 62ch; }
.faq-item .faq-answer a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }

/* ---- CTA band -------------------------------------------------------------- */
.cta-band {
  margin: 0 24px 64px; border-radius: var(--r-xl);
  padding: 64px 32px; text-align: center;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #06141A; position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem); }
.cta-band p { margin-top: 12px; font-size: 1.05rem; color: rgba(6,20,26,.88); }
.cta-band .hero-ctas { justify-content: center; margin-top: 28px; }
.cta-band .btn-ghost { background: rgba(255,255,255,.28); border-color: rgba(255,255,255,.4); color: #06141A; }
.cta-band .btn-primary { background: #06141A; color: #fff; box-shadow: 0 10px 30px -10px rgba(6,20,26,.5); }

/* ---- Install module (device-aware) --------------------------------------
   The markup carries EVERY route to the app (App Store, Google Play, scan
   code). main.js sets `data-platform` on <html>; the rules at the bottom of
   this block then lead with the single option that can work on the visitor's
   device. With JavaScript off, `data-platform` is never set, none of those
   rules match, and every option stays visible — the page is complete.
   ------------------------------------------------------------------------- */
.install-band {
  margin: 0 0 22px;
  text-align: left;
  padding: 52px 44px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 40px;
}
.install-main { flex: 1 1 400px; min-width: 0; }
.eyebrow--on-accent { color: var(--on-accent); opacity: .82; }
.install-band h2 { margin-top: .55rem; max-width: 20ch; }
.install-lede { margin-top: 14px; font-size: 1.05rem; color: var(--on-accent-muted); max-width: 46ch; }

.install-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.install-badge { display: block; transition: transform .18s var(--ease); }
.install-badge img { height: 54px; width: auto; border-radius: 11px; }
.install-badge:hover { transform: translateY(-2px); }
.btn-install {
  background: var(--on-accent); color: #FFFFFF;
  padding: .95em 1.6em; font-size: 1rem;
  box-shadow: 0 12px 32px -12px rgba(6, 20, 26, .55);
}
.btn-install svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-install:hover { transform: translateY(-1px); }

.install-note {
  display: none;
  margin-top: 20px; font-size: .9rem; line-height: 1.5;
  color: var(--on-accent-muted); max-width: 54ch;
}
.install-note[data-install-note="default"] { display: block; }

/* Scan-to-install panel. Hidden on narrow viewports by default: a phone
   visitor has no second screen to point a camera at. */
.install-scan {
  flex: 0 0 auto; display: none; flex-direction: column; align-items: center;
  gap: 14px; width: 236px;
}
@media (min-width: 760px) { .install-scan { display: flex; } }
.qr-plate {
  --qr-size: 160px;
  display: block;
  background: var(--qr-paper); border-radius: var(--r-lg); padding: 14px;
  box-shadow: 0 20px 44px -20px rgba(6, 20, 26, .6);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.qr-plate:hover { transform: translateY(-2px); box-shadow: 0 26px 52px -20px rgba(6, 20, 26, .7); }
@media (prefers-reduced-motion: reduce) { .qr-plate { transition: none; } .qr-plate:hover { transform: none; } }
.qr-plate .qr { width: var(--qr-size); height: var(--qr-size); }
.qr__paper { fill: var(--qr-paper); }
.qr__ink { fill: var(--qr-ink); }
.install-scan__label {
  text-align: center; font-size: .8rem; line-height: 1.45;
  color: var(--on-accent-muted); text-wrap: balance;
}
.install-scan__label strong {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: .98rem; color: var(--on-accent); margin-bottom: 4px;
}
.nowrap { white-space: nowrap; }

/* Escape hatch — present in every branch, whatever we detected. */
.install-alt {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 72px;
}
.install-alt a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.install-alt a:hover { color: var(--text); }
.install-alt__sep { color: var(--border); }
/* Belt and braces: a link main.js has not given an href to never renders. */
[data-webapp-link]:not([href]) { display: none; }

/* --- device resolution (only ever active when JS ran) --- */
html.js[data-platform="ios"] .badge-row [data-store-badge="android"],
html.js[data-platform="android"] .badge-row [data-store-badge="ios"] { display: none; }

html.js[data-platform="ios"] [data-install-action="android"],
html.js[data-platform="android"] [data-install-action="ios"],
html.js[data-platform="desktop"] [data-install-action="ios"],
html.js[data-platform="desktop"] [data-install-action="android"] { display: none; }

/* The web-app CTA renders only once main.js has put a real URL on it. */
[data-install-action="web"] { display: none; }
html.js[data-platform="desktop"] [data-install-action="web"].is-enabled { display: inline-flex; }

/* Desktop with no web app: the scan code IS the action — drop the empty
   button row and give the code the weight of a primary CTA. */
html.js[data-platform="desktop"]:not([data-webapp="on"]) .install-actions { display: none; }
html.js[data-platform="desktop"]:not([data-webapp="on"]) .install-scan { width: 268px; }
html.js[data-platform="desktop"]:not([data-webapp="on"]) .qr-plate { --qr-size: 200px; }

/* A phone visitor never needs to scan their own screen. */
html.js[data-platform="ios"] .install-scan,
html.js[data-platform="android"] .install-scan { display: none; }

/* One note per branch. */
html.js[data-platform] .install-note[data-install-note="default"] { display: none; }
html.js[data-platform="ios"] .install-note[data-install-note="ios"],
html.js[data-platform="android"] .install-note[data-install-note="android"] { display: block; }
html.js[data-platform="desktop"]:not([data-webapp="on"]) .install-note[data-install-note="desktop"] { display: block; }
html.js[data-platform="desktop"][data-webapp="on"] .install-note[data-install-note="desktop-web"] { display: block; }

/* ---- /install/ — the scan-to-install landing page ------------------------ */
.install-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 32px 24px;
}
.install-page__card {
  width: 100%; max-width: 480px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 40px 32px; box-shadow: var(--shadow-md);
}
.install-page .brand { justify-content: center; margin-bottom: 22px; }
.install-page h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem); }
.install-page__lede { margin-top: 12px; color: var(--muted); font-size: .98rem; }
.install-page__badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.install-page__badges img { height: 48px; width: auto; border-radius: 10px; }
.install-page__note { margin-top: 20px; font-size: .85rem; color: var(--muted); }
.install-page__back { margin-top: 26px; font-size: .86rem; }
.install-page__back a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: .88rem; max-width: 32ch; }
.footer-col h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: .92rem; color: var(--text); }
.footer-col a:hover { color: var(--accent-text); }
.footer-badges { display: flex; gap: 10px; margin-top: 6px; }
.footer-badges img { height: 38px; width: auto; border-radius: 8px; }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .82rem; color: var(--muted);
}

/* ---- Reveal-on-scroll (progressive enhancement) -------------------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- Responsive -------------------------------------------------------------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-list { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 12px; }
  .device-stage { width: min(260px, 60vw); }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 12px; border-radius: var(--r-sm); }
  .nav-links a:hover { background: var(--bg); }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 860px) {
  .install-band { padding: 44px 30px; gap: 32px; }
}

@media (max-width: 620px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 48px 22px; margin-inline: 14px; }
  .install-band { padding: 40px 24px; margin-inline: 0; }
  .install-badge img { height: 48px; }
  .install-alt { margin-bottom: 56px; }
  .float-card { display: none; }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Pricing — the $0.00 invoice ---------------------------------------
   The pricing model rendered as Payverly's own artifact: an invoice billing
   the visitor $0.00 for everything. Amounts use tabular numerals (Manrope,
   like the app's numeric type) so the zero column sets like a real document;
   separators are dashed hairlines, the cue of a printed doc rather than a
   pricing table. All colors ride the theme tokens, so dark mode is free. */
.pricing { padding: 96px 0 40px; }

.invoice-doc {
  max-width: 560px; margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: 34px 38px 30px;
  position: relative; overflow: hidden;
}
/* Top edge carries the brand gradient — the same signature the app's hero
   card and the PDF accent bar use. */
.invoice-doc::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
}

.invoice-doc__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
}
.invoice-doc__label {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; letter-spacing: -.02em;
}
.invoice-doc__number { color: var(--muted); font-size: .85rem; }
.invoice-doc__chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--pos-bg); color: var(--pos);
  font-weight: 600; font-size: .82rem; letter-spacing: .02em;
  padding: 7px 13px; border-radius: 999px; white-space: nowrap;
}
.invoice-doc__chip svg { width: 14px; height: 14px; }

.invoice-doc__parties {
  display: grid; grid-template-columns: repeat(3, auto); gap: 12px 28px;
  justify-content: start;
  padding-bottom: 18px; margin-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}
.invoice-doc__parties span {
  display: block; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 3px;
}
.invoice-doc__parties strong { font-size: .95rem; }

.invoice-doc__lines { list-style: none; margin: 0; padding: 0; }
.invoice-doc__lines li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 18px; padding: 11px 0; border-bottom: 1px dashed var(--border);
  font-size: .95rem;
}
.invoice-doc__lines li:last-child { border-bottom: 0; }
.invoice-doc__lines strong {
  font-family: var(--font-display); font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--muted);
}

.invoice-doc__totals {
  margin-top: 4px; padding-top: 14px; border-top: 1px dashed var(--border);
  display: grid; gap: 8px;
}
.invoice-doc__totals > div {
  display: flex; justify-content: space-between; gap: 18px;
  font-size: .92rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.invoice-doc__grand {
  font-family: var(--font-display);
  padding-top: 10px; border-top: 1px solid var(--border);
}
.invoice-doc__grand span { color: var(--text) !important; font-weight: 700; font-size: 1.15rem !important; }
.invoice-doc__grand span:last-child {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
  font-size: 1.5rem !important; letter-spacing: -.02em;
}

.invoice-doc__note {
  margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--border);
  color: var(--muted); font-size: .85rem; line-height: 1.6;
}

.pricing-cta { text-align: center; margin-top: 32px; }

@media (max-width: 620px) {
  .pricing { padding-top: 72px; }
  .invoice-doc { padding: 26px 22px 24px; border-radius: var(--r-lg); }
  .invoice-doc__parties { grid-template-columns: repeat(2, auto); }
}

/* ---- Theme-correct logo -------------------------------------------------
   Both wordmark variants are in the markup; the active theme shows its own
   (same pattern as the toggle's sun/moon icons). With JS disabled no
   data-theme is set, the page stays light, and the light logo shows. */
.brand .logo--dark { display: none; }
[data-theme="dark"] .brand .logo--light { display: none; }
[data-theme="dark"] .brand .logo--dark { display: inline-block; }
