/* ==========================================================================
   PocketChange — design tokens & base
   ========================================================================== */

:root {
  --bg: #FAF8F4;
  --bg-alt: #FFFFFF;
  --bg-navy: #2C3E47;
  --navy: #2C3E47;
  --navy-soft: #3E525C;
  --navy-tint: rgba(44, 62, 71, 0.06);
  --gold: #FFCE56;
  --gold-dark: #F0B93A;
  --green: #10B981;
  --sage: #AFC6A6;
  --purple: #9B8AC4;
  --orange: #F2994A;
  --gray: #9AA5AA;

  --text: #24343C;
  --text-muted: rgba(36, 52, 60, 0.72);
  --text-faint: rgba(36, 52, 60, 0.70);
  --text-on-navy: #F7F5F0;
  --text-on-navy-muted: rgba(247, 245, 240, 0.66);

  --border: rgba(44, 62, 71, 0.10);
  --border-soft: rgba(44, 62, 71, 0.07);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 6px rgba(44, 62, 71, 0.05);
  --shadow-md: 0 6px 16px rgba(44, 62, 71, 0.07);
  --shadow-lg: 0 10px 24px rgba(44, 62, 71, 0.10);

  --container: 1180px;
  --nav-h: 84px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.6s;
  --dur-slow: 1.1s;

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* , *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px; /* matches .nav.is-scrolled's height and js/main.js's scrollToAnchor */
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2.5px solid var(--gold-dark);
  outline-offset: 3px;
  border-radius: 4px;
}
.faq-q:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible {
  outline-offset: 2px;
}
.calm :focus-visible,
.final-cta :focus-visible {
  outline-color: var(--gold);
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }

p { margin: 0; }

button { font-family: inherit; cursor: pointer; }

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

section { position: relative; }

.section-pad {
  padding: clamp(57px, calc(10vw - 15px), 113px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(255, 206, 86, 0.16);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
}

.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 16px;
  line-height: 1.15;
}

.section-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-muted);
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  border: none;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--navy);
  color: var(--text-on-navy);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-md); background: #253841; }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 10px rgba(255, 206, 86, 0.25);
}
.btn-gold:hover { box-shadow: 0 6px 14px rgba(255, 206, 86, 0.3); background: var(--gold-dark); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--navy-tint); border-color: var(--navy); }

.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  color: var(--text-on-navy);
  border: 1.5px solid rgba(247,245,240,0.28);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  border-bottom: 1px solid transparent;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.nav.is-scrolled {
  height: 68px;
  background: rgba(250, 248, 244, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--border-soft);
  box-shadow: 0 2px 10px rgba(44,62,71,0.04);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  flex-shrink: 0;
}
.brand img { height: 34px; width: auto; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-links a:hover { color: var(--navy); background: var(--navy-tint); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { padding: 11px 22px; font-size: 14.5px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 12px;
  color: var(--navy);
}
.nav-toggle:hover { background: var(--navy-tint); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-menu { display: none; }
.nav-toggle.is-open .icon-close { display: block; }

.mobile-menu {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 12px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease), visibility var(--dur-fast);
  z-index: 99;
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu a {
  padding: 14px 8px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}
.mobile-menu .btn { margin-top: 16px; }
.mobile-menu a.btn { color: var(--text-on-navy); border-bottom: none; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: calc(var(--nav-h) + 76px);
  padding-bottom: 40px;
  overflow: hidden;
  position: relative;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-areas:
    "heading visual"
    "details visual";
  column-gap: 40px;
  row-gap: 0;
  align-items: center;
}

.hero-heading { grid-area: heading; }
.hero-visual { grid-area: visual; }
.hero-details { grid-area: details; }

.hero-heading h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  margin-top: 0;
  opacity: 0;
  animation: rise var(--dur-med) var(--ease) forwards;
  animation-delay: 0.05s;
}

.hero-heading h1 .accent { color: var(--gold-dark); }

.hero-details p.lead {
  margin-top: 24px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  opacity: 0;
  animation: rise var(--dur-med) var(--ease) forwards;
  animation-delay: 0.17s;
}

.hero-ctas {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise var(--dur-med) var(--ease) forwards;
  animation-delay: 0.28s;
}

.hero-meta {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-faint);
  opacity: 0;
  animation: rise var(--dur-med) var(--ease) forwards;
  animation-delay: 0.38s;
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-faint); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: rise var(--dur-slow) var(--ease) forwards;
  animation-delay: 0.35s;
}

.hero-ring-deco {
  position: absolute;
  width: 120%;
  max-width: 460px;
  opacity: 0.6;
  z-index: 0;
}

/* Phone frame — wraps a raw device screenshot to look like a phone on screen */
.phone-frame {
  background: #10171c;
  border-radius: 30px;
  padding: 7px;
  box-shadow: 0 16px 34px rgba(44,62,71,0.15);
  line-height: 0;
}
.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 21px;
  display: block;
}

.phone-stack {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  height: 480px;
  margin: 0 auto;
}

.phone-slot {
  position: absolute;
  width: 198px;
}
.phone-slot.back { top: 46px; left: 4px; transform: rotate(-9deg); z-index: 1; }
.phone-slot.back .phone-frame { opacity: 0.94; }
.phone-slot.front { top: 0; right: 4px; width: 216px; transform: rotate(7deg); z-index: 2; }

/* ---- Screens showcase ---- */
.showcase { background: var(--bg-alt); }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.showcase-item { text-align: center; }

.showcase-item .phone-frame {
  max-width: 210px;
  margin: 0 auto 22px;
}

.showcase-item h3 { font-size: 17px; margin-bottom: 8px; }
.showcase-item p { font-size: 14px; color: var(--text-muted); max-width: 230px; margin: 0 auto; line-height: 1.6; }

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust-strip {
  padding: 36px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 8px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 20px;
}

.trust-item svg {
  width: 20px; height: 20px;
  color: var(--green);
  flex-shrink: 0;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.08s; }
.reveal-delay-2.in-view { transition-delay: 0.16s; }
.reveal-delay-3.in-view { transition-delay: 0.24s; }
.reveal-delay-4.in-view { transition-delay: 0.32s; }

/* ==========================================================================
   Features
   ========================================================================== */

.features {
  background: var(--bg-alt);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 30px 26px;
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-icon.gold { background: rgba(255, 206, 86, 0.22); color: var(--gold-dark); }
.feature-icon.green { background: rgba(16, 185, 129, 0.14); color: var(--green); }
.feature-icon.navy { background: rgba(44, 62, 71, 0.10); color: var(--navy); }
.feature-icon.sage { background: rgba(175, 198, 166, 0.30); color: #5C7A52; }

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   How it works
   ========================================================================== */

.how {
  background: var(--bg);
}

.how-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

.how-line {
  position: absolute;
  top: 27px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.how-line-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 1.4s var(--ease);
}

.how-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.how-num {
  width: 56px; height: 56px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  transition: border-color 0.6s var(--ease), background 0.6s var(--ease), color 0.6s var(--ease), transform 0.4s var(--ease);
}

.how-step.in-view .how-num {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold);
  transform: scale(1.05);
}

.how-step h3 { font-size: 17px; margin-bottom: 8px; }
.how-step p { font-size: 14.5px; color: var(--text-muted); max-width: 240px; margin: 0 auto; }

/* ==========================================================================
   No guilt-trip section
   ========================================================================== */

.calm {
  background: var(--navy);
  color: var(--text-on-navy);
  overflow: hidden;
}

.calm .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.calm h2 {
  color: var(--text-on-navy);
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.18;
}

.calm p {
  margin-top: 20px;
  color: var(--text-on-navy-muted);
  font-size: 16.5px;
  line-height: 1.7;
}

.calm-compare {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compare-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 500;
}

.compare-row.bad {
  background: rgba(255,255,255,0.05);
  color: rgba(247,245,240,0.5);
  text-decoration: line-through;
  text-decoration-color: rgba(247,245,240,0.25);
}

.compare-row.good {
  background: rgba(255, 206, 86, 0.12);
  color: var(--text-on-navy);
  border: 1px solid rgba(255, 206, 86, 0.25);
}

.compare-row svg { width: 20px; height: 20px; flex-shrink: 0; }
.compare-row.bad svg { color: rgba(247,245,240,0.4); }
.compare-row.good svg { color: var(--gold); }

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing { background: var(--bg); }

.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.pricing-card .trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.16);
  color: #0D7A5F;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.pricing-card h3 { font-size: 24px; }
.pricing-card p.desc { margin-top: 14px; color: var(--text-muted); font-size: 15.5px; line-height: 1.7; max-width: 420px; margin-left: auto; margin-right: auto; }

.pricing-perks {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}
.pricing-perks div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.pricing-perks svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }

.pricing-card .btn { margin-top: 32px; width: 100%; }
.pricing-card .fine-print { margin-top: 16px; font-size: 12.5px; color: var(--text-faint); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { background: var(--bg-alt); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--bg);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.faq-q .icon-plus {
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative;
}
.faq-q .icon-plus::before, .faq-q .icon-plus::after {
  content: '';
  position: absolute;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.faq-q .icon-plus::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-q .icon-plus::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }

.faq-item.is-open .faq-q .icon-plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-a-inner {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  background: var(--navy);
  color: var(--text-on-navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta .ring-deco {
  position: absolute;
  width: 640px;
  opacity: 0.1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.final-cta .container { position: relative; z-index: 1; }

.final-cta h2 {
  color: var(--text-on-navy);
  font-size: clamp(28px, 4.2vw, 46px);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.15;
}

.final-cta p {
  margin-top: 18px;
  color: var(--text-on-navy-muted);
  font-size: 17px;
}

.final-cta .hero-ctas { justify-content: center; margin-top: 34px; opacity: 1; animation: none; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: 14.5px; max-width: 280px; line-height: 1.6; }

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--text-muted);
  padding: 7px 0;
  transition: color var(--dur-fast) var(--ease);
}
.footer-col a:hover { color: var(--navy); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ==========================================================================
   Simple pages (privacy / support)
   ========================================================================== */

.simple-page {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 100px;
}

.simple-page .container { max-width: 780px; }

.simple-page .page-eyebrow { margin-bottom: 18px; }

.simple-page h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 8px;
}

.simple-page .updated {
  font-size: 13.5px;
  color: var(--text-faint);
  margin-bottom: 48px;
}

.simple-page h2 {
  font-size: 21px;
  margin-top: 42px;
  margin-bottom: 14px;
}

/* FAQ accordion triggers are wrapped in a heading for correct document
   structure (see js/main.js) — that heading shouldn't pick up the
   .simple-page section-heading spacing/size above. */
.simple-page .faq-item h2,
.simple-page .faq-item h3 {
  font-size: inherit;
  margin: 0;
}

.simple-page p, .simple-page li {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.75;
}

.simple-page p + p { margin-top: 14px; }

.simple-page ul { padding-left: 22px; margin-top: 8px; }
.simple-page li { margin-bottom: 8px; }
.simple-page a.inline-link { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.notice-box {
  background: rgba(255, 206, 86, 0.14);
  border: 1px solid rgba(255, 206, 86, 0.35);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--navy);
  line-height: 1.7;
}

.support-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}

.support-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px;
}
.support-card .feature-icon { margin-bottom: 16px; }
.support-card .feature-icon.gold { background: rgba(255, 206, 86, 0.32); }
.support-card .feature-icon.green { background: rgba(16, 185, 129, 0.22); }
.support-card .feature-icon.navy { background: rgba(44, 62, 71, 0.16); }
.support-card .feature-icon.sage { background: rgba(175, 198, 166, 0.42); }
.support-card h3 { font-size: 17px; margin-bottom: 8px; }
.support-card p { font-size: 14.5px; }
.support-card a.inline-link { display: inline-block; margin-top: 14px; font-size: 14.5px; }

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */

.consent-banner {
  position: fixed;
  left: 24px; right: 24px; bottom: 24px;
  background: var(--navy);
  color: var(--text-on-navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transform: translateY(130%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0.35s;
}
.consent-banner.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.consent-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.consent-banner p {
  font-size: 14px;
  color: var(--text-on-navy-muted);
  line-height: 1.6;
  max-width: 640px;
}
.consent-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.consent-banner-actions .btn {
  padding: 10px 20px;
  font-size: 14px;
}
.consent-banner .btn-ghost {
  color: var(--text-on-navy);
  border-color: rgba(247, 245, 240, 0.28);
}
.consent-banner .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

@media (max-width: 600px) {
  .consent-banner {
    left: 12px; right: 12px; bottom: 12px;
    border-radius: var(--radius-md);
  }
  .consent-banner .container {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 20px;
  }
  .consent-banner-actions { margin-top: 16px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-ghost { display: none; }

  .hero .container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "visual"
      "details";
    text-align: center;
    row-gap: 20px;
  }
  .hero-details p.lead { margin-left: auto; margin-right: auto; margin-top: 0; }
  .hero-ctas { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-visual { margin-top: 4px; }

  .phone-stack { max-width: 320px; height: 390px; }
  .phone-slot { width: 160px; }
  .phone-slot.back { top: 36px; left: 0; }
  .phone-slot.front { width: 174px; right: 0; }

  .showcase-grid { grid-template-columns: 1fr; gap: 48px; }

  .feature-grid { grid-template-columns: 1fr 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .how-line { display: none; }

  .calm .container { grid-template-columns: 1fr; gap: 28px; }

  .pricing-perks { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .support-cards { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --nav-h: 68px; }

  .container { padding: 0 20px; }

  .brand img { height: 33px; }
  .nav .container { gap: 10px; }
  .nav { border-bottom-color: var(--border-soft); }

  .nav-actions .btn { padding: 7px 12px; font-size: 12.5px; gap: 5px; }
  .nav-actions .btn svg { width: 13px; height: 13px; }

  .nav-toggle { width: 38px; height: 38px; }
  .nav-toggle svg { width: 20px; height: 20px; }

  /* ---- Hero: heading, then the app, then the pitch ---- */
  .hero { padding-top: calc(var(--nav-h) + 22px); padding-bottom: 20px; }
  .hero .container { row-gap: 14px; }
  .hero-heading h1 { font-size: 32px; margin-top: 12px; margin-bottom: 12px; }
  .hero-visual { margin-top: 22px; }
  .hero-details p.lead { font-size: 16px; margin-top: 18px; }
  .hero-ctas { margin-top: 28px; gap: 16px; }
  .hero-ctas .btn { width: 100%; }
  .hero-meta { margin-top: 14px; font-size: 12.5px; }

  .phone-stack { max-width: 340px; height: 410px; }
  .phone-slot { width: 172px; }
  .phone-slot.back { top: 38px; left: 0; }
  .phone-slot.front { width: 188px; right: 0; }

  /* ---- Trust strip: removed on mobile, too busy directly under the hero ---- */
  .trust-strip { display: none; }

  /* ---- Shared section rhythm ---- */
  .section-pad { padding: 41px 0; }
  .section-head { margin: 0 auto 32px; }
  .section-head h2 { font-size: 26px; }
  .section-head p { font-size: 15px; }

  /* ---- Features: compact rows, not shrunk desktop cards ---- */
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 14px;
    row-gap: 3px;
    align-items: start;
    padding: 18px;
    text-align: left;
  }
  .feature-card .feature-icon { grid-column: 1; grid-row: 1 / 3; width: 42px; height: 42px; margin-bottom: 0; }
  .feature-icon svg { width: 20px; height: 20px; }
  .feature-card h3 { grid-column: 2; grid-row: 1; font-size: 15.5px; margin-bottom: 0; }
  .feature-card p { grid-column: 2; grid-row: 2; font-size: 13.5px; line-height: 1.5; }

  /* ---- How it works: a left-aligned timeline ---- */
  .how-steps { display: flex; flex-direction: column; gap: 0; }
  .how-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 16px;
    row-gap: 3px;
    align-items: start;
    text-align: left;
    padding-bottom: 26px;
    position: relative;
  }
  .how-step:last-child { padding-bottom: 0; }
  .how-step::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: var(--border);
  }
  .how-step:last-child::before { display: none; }
  .how-num { grid-column: 1; grid-row: 1 / 3; width: 40px; height: 40px; margin: 0; font-size: 15px; flex-shrink: 0; }
  .how-step h3 { grid-column: 2; grid-row: 1; font-size: 16px; margin-bottom: 0; }
  .how-step p { grid-column: 2; grid-row: 2; max-width: none; margin: 0; font-size: 13.5px; }

  /* ---- Screens showcase: a swipeable strip, like App Store screenshots ---- */
  .showcase-grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 20px 10px;
    margin: 0 -20px;
    scrollbar-width: none;
  }
  .showcase-grid::-webkit-scrollbar { display: none; }
  .showcase-item { flex: 0 0 76%; scroll-snap-align: center; }
  .showcase-item .phone-frame { max-width: 190px; }

  /* ---- Philosophy ---- */
  .calm .container { gap: 14px; }
  .calm p { font-size: 15px; }
  .calm-compare { gap: 10px; }
  .compare-row { padding: 14px 16px; font-size: 13.5px; }

  /* ---- Pricing ---- */
  .pricing-card { padding: 28px 20px; }
  .pricing-card h3 { font-size: 20px; }
  .pricing-card .btn { margin-top: 24px; }
  .pricing-perks { grid-template-columns: 1fr; }

  /* ---- FAQ ---- */
  .faq-q { padding: 16px 18px; font-size: 15px; }
  .faq-a-inner { padding: 0 18px 18px; font-size: 14px; }

  /* ---- Final CTA ---- */
  .final-cta h2 { font-size: 26px; }

  /* ---- Footer: brand full-width, links stay in two tidy columns ---- */
  .site-footer { padding-top: 56px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-brand { grid-column: 1 / -1; }

  /* ---- Simple pages (privacy / support): match the hero's mobile rhythm ---- */
  .simple-page { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 64px; }
  .simple-page .updated { margin-bottom: 32px; }
}
