/* style.css — PayWavez design system + components */

/* ============ TOKENS ============ */
:root,
[data-theme='light'] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6vw, 6rem);

  /* Spacing (4px system) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Surfaces — warm sand neutrals */
  --color-bg: #f7f3ea;
  --color-surface: #fbf8f1;
  --color-surface-2: #ffffff;
  --color-surface-offset: #efe8d9;
  --color-surface-offset-2: #e7ddc7;
  --color-surface-dynamic: #ded2b3;
  --color-divider: #e3dac4;
  --color-border: #d8cbab;

  /* Text */
  --color-text: #0f2b33;
  --color-text-muted: #4c6169;
  --color-text-faint: #8fa0a5;
  --color-text-inverse: #f7f3ea;

  /* Primary accent — confident teal */
  --color-primary: #0d6b74;
  --color-primary-hover: #0a5158;
  --color-primary-active: #073b40;
  --color-primary-highlight: #cfe3e2;

  /* Deep navy (secondary brand ink) */
  --color-navy: #0a2f3a;
  --color-navy-hover: #071f27;

  /* Warm gold accent (sparingly — dual-pricing / highlight moments) */
  --color-gold: #c08a2e;
  --color-gold-hover: #9c6f22;
  --color-gold-highlight: #ecdcb9;

  /* Semantic */
  --color-warning: #964219;
  --color-warning-highlight: #ddcfc6;
  --color-error: #a12c2c;
  --color-error-hover: #7d1e1e;
  --color-error-highlight: #e6d2d2;
  --color-success: #2f6d3d;
  --color-success-highlight: #d6e4d4;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — cool navy tint */
  --shadow-sm: 0 1px 2px oklch(0.2 0.03 220 / 0.08);
  --shadow-md: 0 4px 14px oklch(0.2 0.03 220 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.2 0.03 220 / 0.16);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1240px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'General Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'General Sans', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #0b1f26;
  --color-surface: #0f2830;
  --color-surface-2: #133039;
  --color-surface-offset: #163540;
  --color-surface-offset-2: #1b3f4a;
  --color-surface-dynamic: #204854;
  --color-divider: #1e4450;
  --color-border: #29525e;

  --color-text: #eef2ee;
  --color-text-muted: #a9c0c4;
  --color-text-faint: #6d8b91;
  --color-text-inverse: #0f2b33;

  --color-primary: #4fb3ac;
  --color-primary-hover: #6fc7c1;
  --color-primary-active: #8ad4cf;
  --color-primary-highlight: #1c454a;

  --color-navy: #dbe9ec;
  --color-navy-hover: #ffffff;

  --color-gold: #e0ac52;
  --color-gold-hover: #eec078;
  --color-gold-highlight: #3a3222;

  --color-warning: #d68a56;
  --color-warning-highlight: #45362a;
  --color-error: #dd7373;
  --color-error-hover: #e69595;
  --color-error-highlight: #452b2b;
  --color-success: #7fbf8d;
  --color-success-highlight: #253b28;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 14px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0b1f26;
    --color-surface: #0f2830;
    --color-surface-2: #133039;
    --color-surface-offset: #163540;
    --color-surface-offset-2: #1b3f4a;
    --color-surface-dynamic: #204854;
    --color-divider: #1e4450;
    --color-border: #29525e;
    --color-text: #eef2ee;
    --color-text-muted: #a9c0c4;
    --color-text-faint: #6d8b91;
    --color-text-inverse: #0f2b33;
    --color-primary: #4fb3ac;
    --color-primary-hover: #6fc7c1;
    --color-primary-active: #8ad4cf;
    --color-primary-highlight: #1c454a;
    --color-navy: #dbe9ec;
    --color-navy-hover: #ffffff;
    --color-gold: #e0ac52;
    --color-gold-hover: #eec078;
    --color-gold-highlight: #3a3222;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 14px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.5);
  }
}

/* ============ GLOBAL ELEMENTS ============ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-navy);
  font-weight: 650;
}
[data-theme='dark'] h1, [data-theme='dark'] h2, [data-theme='dark'] h3, [data-theme='dark'] h4 {
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--narrow {
  max-width: var(--content-narrow);
}
.container--default {
  max-width: var(--content-default);
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}
.section--tight {
  padding-block: clamp(var(--space-8), 5vw, var(--space-16));
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  min-height: 44px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: #fdfcf8;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}
.btn-primary:active {
  background: var(--color-primary-active);
}
.btn-secondary {
  background: transparent;
  border-color: oklch(from var(--color-navy) l c h / 0.25);
  color: var(--color-navy);
}
[data-theme='dark'] .btn-secondary {
  color: var(--color-text);
  border-color: oklch(from var(--color-text) l c h / 0.3);
}
.btn-secondary:hover {
  background: oklch(from var(--color-navy) l c h / 0.06);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
}
.btn-ghost:hover {
  color: var(--color-primary);
}
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}
.btn-block {
  width: 100%;
}

/* ============ HEADER / NAV ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-navy) l c h / 0.08);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-navy);
}
[data-theme='dark'] .brand {
  color: var(--color-text);
}
.brand svg,
.brand-icon-img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
}
.brand .tm {
  font-size: 0.55em;
  vertical-align: super;
  color: var(--color-text-muted);
  font-weight: 500;
}
.brand-pay {
  color: #4a4a4a;
}
[data-theme='dark'] .brand-pay {
  color: var(--color-text);
}
.brand-wavez {
  color: #3d78f0;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-2) 0;
  position: relative;
}
.nav-links a:hover {
  color: var(--color-primary);
}
.nav-links a[aria-current='page'] {
  color: var(--color-primary);
  font-weight: 700;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: oklch(from var(--color-navy) l c h / 0.06);
  color: var(--color-primary);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
}
[data-theme='dark'] .nav-toggle { color: var(--color-text); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 62px;
  background: var(--color-bg);
  z-index: 49;
  padding: var(--space-6);
  overflow-y: auto;
}
.mobile-nav.is-open {
  display: block;
}
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.mobile-nav a {
  display: block;
  padding: var(--space-4) var(--space-2);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-divider);
}
.mobile-nav a[aria-current='page'] {
  color: var(--color-primary);
}
.mobile-nav .btn {
  margin-top: var(--space-6);
}

@media (max-width: 860px) {
  .nav-links,
  .nav-actions .btn-secondary,
  .nav-actions .btn-primary {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-actions {
    gap: var(--space-1);
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--space-16), 12vw, var(--space-32)) clamp(var(--space-12), 8vw, var(--space-20));
}
.hero-bg {
  position: absolute;
  inset: -8% 0 0 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center bottom;
  will-change: transform;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(from var(--color-navy) l c h / 0.55) 0%, oklch(from var(--color-bg) l c h / 0.82) 100%);
}
[data-theme='dark'] .hero-bg::after {
  background: linear-gradient(180deg, oklch(0.08 0.02 220 / 0.35) 0%, oklch(from var(--color-bg) l c h / 0.82) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-content--wide {
  max-width: 900px;
}
.hero h1 {
  font-size: var(--text-hero);
  color: #fdfcf8;
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
}
.hero p.lede {
  font-size: var(--text-lg);
  color: #f2efe4;
  max-width: 58ch;
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero-note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  position: relative;
  z-index: 1;
}

/* Trust strip — small credibility chips under the hero, real facts only */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
  position: relative;
  z-index: 1;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full, 999px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f2efe4;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.trust-chip svg {
  flex-shrink: 0;
  color: #bfe3df;
}

/* Sticky mobile apply bar — persistent conversion path on small screens */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: var(--space-3) var(--space-4);
  padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px rgba(10, 47, 58, 0.12);
}
.sticky-cta a.btn {
  width: 100%;
  justify-content: center;
}
@media (max-width: 760px) {
  .sticky-cta {
    display: block;
  }
  body {
    padding-bottom: 72px;
  }
}

/* Animated wave divider at the base of the hero — on-brand, subtle, tasteful */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  width: 100%;
  height: clamp(48px, 8vw, 96px);
  line-height: 0;
  overflow: hidden;
}
.hero-wave svg {
  width: 200%;
  height: 100%;
  display: block;
}
.hero-wave .wave-layer {
  animation: wave-drift 22s linear infinite;
}
.hero-wave .wave-layer--back {
  animation-duration: 34s;
  animation-direction: reverse;
  opacity: 0.55;
}
@keyframes wave-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wave .wave-layer { animation: none; }
}

/* Scroll-reveal utility — fade + rise as sections enter the viewport */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Interior page hero (smaller, no bg image required) */
.page-hero {
  padding-block: clamp(var(--space-12), 8vw, var(--space-20)) clamp(var(--space-8), 5vw, var(--space-12));
  border-bottom: 1px solid var(--color-divider);
  background: linear-gradient(180deg, var(--color-surface-offset) 0%, var(--color-bg) 100%);
}
.page-hero h1 {
  font-size: var(--text-2xl);
  max-width: 800px;
  margin-bottom: var(--space-4);
}
.page-hero p.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 62ch;
}

/* ============ SECTION TITLES ============ */
.section-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  max-width: 34ch;
}
.section-lede {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 62ch;
  margin-bottom: var(--space-10);
}

/* ============ CARDS ============ */
.card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-navy) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.card:hover {
  box-shadow: var(--shadow-md);
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: box-shadow 0.25s ease; }
}

/* ============ HOW IT WORKS — PROCESS TIMELINE ============ */
.process-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-10);
}
.process-rail::before,
.process-rail-fill {
  content: '';
  position: absolute;
  top: 23px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  z-index: 0;
}
.process-rail::before {
  background: var(--color-border);
}
.process-rail-fill {
  background: var(--color-primary);
  transform-origin: left center;
  transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .process-rail-fill {
    animation: rail-fill linear both;
    animation-timeline: view();
    animation-range: entry 15% entry 85%;
  }
}
@keyframes rail-fill {
  to { transform: scaleX(1); }
}
.process-step {
  position: relative;
  z-index: 1;
}
.process-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fdfcf8;
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  box-shadow: 0 0 0 6px var(--color-bg);
}
.process-step h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}
.process-step p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
@media (max-width: 900px) {
  .process-rail {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--space-10);
  }
  .process-rail::before,
  .process-rail-fill {
    display: none;
  }
}
@media (max-width: 620px) {
  .process-rail {
    grid-template-columns: 1fr;
  }
}
.process-rail--3 {
  grid-template-columns: repeat(3, 1fr);
}
.process-rail--3::before,
.process-rail--3 .process-rail-fill {
  left: 16.667%;
  right: 16.667%;
}
@media (max-width: 900px) {
  .process-rail--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .process-rail--3 {
    grid-template-columns: 1fr;
  }
}

/* ============ GRIDS ============ */
.grid {
  display: grid;
  gap: var(--space-6);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Asymmetric two-col */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.split--reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: var(--space-8); }
  .split--reverse .split-media { order: 0; }
}
.split-media img {
  border-radius: var(--radius-xl);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.split-media--flat img {
  box-shadow: none;
  border-radius: var(--radius-lg);
}

/* ============ TERMINAL / SUPPORT STRIP ============ */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
}
.logo-chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ============ TESTIMONIALS ============ */
.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid oklch(from var(--color-navy) l c h / 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
}
.testimonial-stars {
  color: var(--color-gold);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
}
.testimonial-quote {
  font-size: var(--text-base);
  color: var(--color-text);
  flex: 1;
}
.testimonial-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-navy);
}
[data-theme='dark'] .testimonial-name { color: var(--color-text); }

/* ============ VIDEO EMBED ============ */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-surface-offset);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============ PRICING CARDS ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-navy) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card--featured {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}
.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: var(--space-8);
  background: var(--color-gold);
  color: #2a1f08;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}
.pricing-card__rate {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--color-navy);
  margin-top: var(--space-2);
}
[data-theme='dark'] .pricing-card__rate { color: var(--color-text); }
.pricing-card__list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex: 1;
}
.pricing-card__list li {
  padding-left: 1.4em;
  position: relative;
}
.pricing-card__list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 700;
}
.help-card {
  background: var(--color-surface-offset);
  border: 1px dashed oklch(from var(--color-navy) l c h / 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}

/* ============ CTA BAND ============ */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 7vw, var(--space-16));
  color: #fdfcf8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}
[data-theme='dark'] .cta-band {
  background: var(--color-surface-offset);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: -60%;
  z-index: 0;
  background: conic-gradient(from 0deg, transparent 0%, rgba(79, 179, 172, 0.28) 18%, transparent 36%);
  animation: cta-glow-spin 16s linear infinite;
  pointer-events: none;
}
@keyframes cta-glow-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-band::before { animation: none; }
}
.cta-band > * {
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  color: #fdfcf8;
  font-size: var(--text-xl);
  max-width: 30ch;
}
[data-theme='dark'] .cta-band h2 { color: var(--color-text); }
.cta-band p {
  color: #d9e4e0;
  margin-top: var(--space-2);
  max-width: 46ch;
}
[data-theme='dark'] .cta-band p { color: var(--color-text-muted); }
.cta-band .btn-primary {
  background: #fdfcf8;
  color: #0a2f3a;
}
.cta-band .btn-primary:hover {
  background: #ecdcb9;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--color-navy);
  color: #cfe0dd;
  padding-block: clamp(var(--space-12), 6vw, var(--space-16)) var(--space-8);
  margin-top: clamp(var(--space-16), 8vw, var(--space-24));
}
[data-theme='dark'] .footer {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
}
[data-theme='dark'] .footer-grid { border-color: var(--color-divider); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: #fdfcf8;
  margin-bottom: var(--space-4);
}
[data-theme='dark'] .footer-brand { color: var(--color-text); }
.footer-brand svg,
.footer-brand .brand-icon-img { width: 30px; height: 30px; object-fit: contain; }
.footer-brand .brand-pay { color: #fdfcf8; }
.footer-brand .brand-wavez { color: #6fa0f5; }
.footer-desc {
  max-width: 32ch;
  font-size: var(--text-sm);
  color: #a9c0bd;
}
[data-theme='dark'] .footer-desc { color: var(--color-text-faint); }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7fa09c;
  margin-bottom: var(--space-4);
  font-weight: 700;
}
[data-theme='dark'] .footer-col h3 { color: var(--color-text-faint); }
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col a {
  color: #cfe0dd;
  font-size: var(--text-sm);
}
[data-theme='dark'] .footer-col a { color: var(--color-text-muted); }
.footer-col a:hover {
  color: #fdfcf8;
}
[data-theme='dark'] .footer-col a:hover { color: var(--color-text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: #7fa09c;
}
[data-theme='dark'] .footer-bottom { color: var(--color-text-faint); }

/* ============ FORMS ============ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.form-grid--single { grid-template-columns: 1fr; }
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.field .hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.field input,
.field select,
.field textarea {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  min-height: 48px;
  width: 100%;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.field-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--color-error);
}
.field.has-error .field-error {
  display: block;
}
fieldset {
  border: none;
}
.form-status {
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--text-sm);
  display: none;
  margin-top: var(--space-4);
}
.form-status.is-success {
  display: block;
  background: var(--color-success-highlight);
  color: var(--color-success);
}
.form-status.is-error {
  display: block;
  background: var(--color-error-highlight);
  color: var(--color-error);
}
.progress-steps {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.progress-steps span {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-divider);
}
.progress-steps span.is-active,
.progress-steps span.is-done {
  background: var(--color-primary);
}

/* ============ STAT / COMPARISON TABLE ============ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.compare-table th,
.compare-table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-divider);
}
.compare-table th {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare-table tr:last-child td {
  border-bottom: none;
}

/* ============ MISC UTILITIES ============ */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary-active);
}
[data-theme='dark'] .badge { color: var(--color-primary); }
.badge--gold {
  background: var(--color-gold-highlight);
  color: var(--color-gold-hover);
}
.divider-wave {
  width: 100%;
  max-width: 480px;
  height: auto;
  opacity: 0.7;
  margin-block: clamp(var(--space-4), 3vw, var(--space-8));
  margin-inline: auto;
}
[data-theme='dark'] .divider-wave { opacity: 0.35; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  z-index: 100;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* Icon (no colored circle backgrounds — line icons at natural size) */
.icon {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.feature-row {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}
.feature-row:last-child { border-bottom: none; }
.feature-row h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}
.feature-row p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.pill {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

@media (max-width: 620px) {
  .hero h1 { font-size: clamp(2.25rem, 9vw, 3.25rem); }
  .cta-band { text-align: left; }
}

/* ============ FAQ ACCORDION ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-navy) l c h / 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: var(--text-base);
  color: var(--color-navy);
}
[data-theme='dark'] .faq-item summary { color: var(--color-text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: var(--text-lg);
  color: var(--color-primary);
  transition: transform var(--transition-interactive);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ============ JUMP NAV (legal page) ============ */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  position: sticky;
  top: 62px;
  background: oklch(from var(--color-bg) l c h / 0.94);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.jump-nav a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}
.jump-nav a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ============ LEGAL / LONG-FORM CONTENT ============ */
.legal-updated {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}
.legal-content h2 {
  font-size: var(--text-lg);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.legal-content > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-content h3 {
  font-size: var(--text-base);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}
.legal-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  max-width: none;
}
.legal-content ul,
.legal-content ol {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content strong { color: var(--color-text); }
.legal-content a { text-decoration: underline; }
.legal-section-anchor {
  scroll-margin-top: 130px;
}

/* ============ CHECKBOX FIELD (consent) ============ */
.field-checkbox {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-3);
}
.field-checkbox .field-error {
  flex-basis: 100%;
  margin-left: calc(20px + var(--space-3));
}
.field-checkbox input[type='checkbox'] {
  width: 20px;
  height: 20px;
  min-height: 0;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-primary);
}
.field-checkbox label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
}
.field-checkbox label a {
  color: var(--color-primary);
  font-weight: 600;
}
.field-checkbox.has-error .field-error { display: block; }

/* ============ FUNNEL / LANDING PAGES ============ */
.lp-header .nav-links li:not(:first-child):not(:last-child) {
  display: none;
}
.lp-steps {
  counter-reset: lp-step;
}
.lp-steps .card {
  position: relative;
  padding-top: var(--space-10);
}
.lp-steps .card::before {
  counter-increment: lp-step;
  content: counter(lp-step);
  position: absolute;
  top: var(--space-5);
  left: var(--space-6);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary-active);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
}
[data-theme='dark'] .lp-steps .card::before { color: var(--color-primary); }
.lp-steps .card { padding-inline: var(--space-6); }
.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: #7fa09c;
  padding-top: var(--space-4);
}
[data-theme='dark'] .lp-footer-links { color: var(--color-text-faint); }
.lp-footer-links a { color: inherit; }
.lp-footer-links a:hover { color: #fdfcf8; }
[data-theme='dark'] .lp-footer-links a:hover { color: var(--color-text); }

#retail, #restaurants, #ecommerce, #auto-shops {
  scroll-margin-top: 90px;
}

/* ============ MERCHANT PORTAL UTILITY BAR ============ */
.portal-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--color-navy);
  color: #fdfcf8;
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  text-align: center;
  transition: background var(--transition-interactive);
}
.portal-bar:hover {
  background: var(--color-navy-hover);
}
.portal-bar strong {
  font-weight: 700;
}
.portal-bar svg {
  flex-shrink: 0;
  opacity: 0.9;
}
.portal-bar-arrow {
  transition: transform var(--transition-interactive);
}
.portal-bar:hover .portal-bar-arrow {
  transform: translateX(3px);
}
[data-theme='dark'] .portal-bar {
  background: #0d3944;
}
[data-theme='dark'] .portal-bar:hover {
  background: #0a2b33;
}
.portal-bar .portal-bar-short { display: none; }
@media (max-width: 620px) {
  .portal-bar {
    gap: var(--space-1);
    padding-block: var(--space-2);
  }
  .portal-bar .portal-bar-full { display: none; }
  .portal-bar .portal-bar-short { display: inline; }
}

/* Prevent the header nav from crowding once Merchant Login button is added;
   the utility bar above already provides sitewide portal access at all widths. */
@media (max-width: 1180px) {
  .nav-actions .btn-secondary[href*="portal.paywavez.com"] {
    display: none;
  }
}
