/* ===== SpendToSave — shared site styles ===== */

:root {
  --black: #111111;
  --red: #E53935;
  --white: #FFFFFF;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --border: #E7E7EA;
  --text-primary: #111111;
  --text-secondary: #6B6B70;
  --text-tertiary: #9A9AA0;
  --income: #1C8A5C;
  --income-surface: #EAF6EF;
  --red-surface: #FDECEC;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 1px 2px rgba(17,17,17,0.04), 0 8px 24px rgba(17,17,17,0.06);
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* 'Noto Sans' sits right after Inter specifically for ₹ — Inter has
     no rupee glyph, and without a good fallback here some platforms'
     next fallback renders ₹ with wrong glyph metrics that visually
     overlap the following digit (seen on Android/Chrome). Noto Sans
     is close to Inter stylistically and ships with Android, so this
     is a safe universal fix, not just a workaround for one device. */
  font-family: 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

/* The source logo is a vertical lockup (icon above wordmark above
   tagline) — it needs real height to stay legible, not the ~32px a
   horizontal nav bar would normally give a logo. */
.brand img { height: 52px; width: auto; }

.brand .accent { color: var(--red); }

.brand-text { font-size: 21px; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--text-primary);
}

.nav-cta {
  padding: 10px 20px;
  background: var(--black);
  color: var(--white) !important;
  border-radius: 999px;
  font-weight: 700 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

/* A soft diagonal light sweep on hover — small, tasteful, no-JS. */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn-outline::after { background: linear-gradient(120deg, transparent, rgba(17,17,17,0.06), transparent); }
.btn-outline-white::after { background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent); }

.btn:hover::after { left: 130%; }

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(17,17,17,0.18); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover { border-color: var(--black); }

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(229,57,53,0.28); }

.btn-black {
  background: var(--black);
  color: var(--white);
}

.btn-black:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.35); }

.btn-white {
  background: var(--white);
  color: var(--black);
}

.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}

.btn-outline-white:hover { border-color: var(--white); }

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.hero .eyebrow .sparkle { display: inline-block; animation: sparkle-pulse 1.6s ease-in-out infinite; }

@media (min-width: 900px) {
  .hero { text-align: left; padding-top: 48px; }
  .hero .eyebrow,
  .hero .actions,
  .store-badges { justify-content: flex-start; }
  .hero p.lead { margin-left: 0; margin-right: 0; }
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--red-surface);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin: 0 0 20px;
}

.hero h1 .accent { color: var(--red); }

.hero p.lead {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 36px;
}

.hero .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 13px;
}

.store-badge .sub { display: block; font-size: 15px; font-weight: 700; }
.store-badge .top { display: block; font-size: 11px; color: rgba(255,255,255,0.7); }

/* ---------- Hero with the composited product photo ----------
   Mobile: a plain brand-gradient background, with the real image
   shown inline below the copy (a right-anchored cover crop would cut
   the phones/text awkwardly at narrow widths). Desktop: the image
   becomes the actual section background, phones anchored right,
   copy sitting in the gradient space the image already leaves empty
   on the left — so nothing overlaps. Placed after the base .hero
   rules on purpose: same specificity, so source order is what makes
   these win over the plain .hero versions. */

.hero-photo {
  background: linear-gradient(135deg, #FF6A5C 0%, var(--red) 100%);
  color: var(--white);
  text-align: left;
}

.hero-photo .eyebrow {
  background: rgba(255,255,255,0.16);
  color: var(--white);
}

.hero-photo h1 { color: var(--white); }
.hero-photo h1 .accent { color: #1A1A1A; }
.hero-photo p.lead { color: rgba(255,255,255,0.88); margin-left: 0; }
.hero-photo .actions { justify-content: flex-start; }
.hero-photo .store-badges { justify-content: flex-start; }

.hero-photo-mobile {
  position: relative;
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -16px rgba(17,17,17,0.3);
}

.hero-photo-mobile img { width: 100%; display: block; }

/* Positioned by % of the image's own box — the <img> always keeps the
   source's exact aspect ratio (1916:821) regardless of phone width,
   so a percentage here lands in the same relative spot (the same
   empty gradient patch, left of where the phones start) at any
   screen size, without the cover-crop math the desktop background
   version needed. Sized to the measured ~152px real height at a
   360-400px phone — deliberately tiny: icon + amount only, no
   category label, there simply isn't width for a third thing here. */
.demo-phone.hero-overlay-demo {
  position: absolute;
  left: 7%;
  top: 16%;
  width: 27%;
  min-width: 84px;
  max-width: 108px;
  padding: 5px;
  border-radius: 14px;
}

.hero-overlay-demo .demo-screen { min-height: 74px; border-radius: 9px; }
.hero-overlay-demo .demo-stage { padding: 3px 6px 6px; }
.hero-overlay-demo .receipt-card { margin-top: 7px; padding: 6px 6px; border-radius: 7px; }
.hero-overlay-demo .receipt-lines span { height: 4px; margin-bottom: 4px; }
.hero-overlay-demo .receipt-lines span:last-child { margin-bottom: 0; }
.hero-overlay-demo .finding-row { margin-top: 9px; font-size: 8px; gap: 4px; }
.hero-overlay-demo .finding-row .dots { display: none; }
.hero-overlay-demo .demo-txn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 5px 6px;
  margin-bottom: 4px;
}
.hero-overlay-demo .txn-icon { width: 16px; height: 16px; font-size: 8px; }
.hero-overlay-demo .txn-amt { font-size: 8.5px; }
.hero-overlay-demo .demo-success { font-size: 7.5px; margin-top: 4px; }

@media (min-width: 900px) {
  .hero-photo {
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    /* aspect-ratio locked to the source image's own ratio (not a
       fixed height) — with background-size:cover, any mismatch
       between the section's box ratio and the image's ratio makes
       cover crop from the sides, and how MUCH it crops changes with
       viewport width (a 1024px-wide section crops far more off the
       left than a 1920px one does, at the same fixed height). Match
       the ratio exactly and cover never needs to crop either side —
       the phones sit at the same ~64% mark at every width. */
    aspect-ratio: 1916 / 821;
    height: auto;
    min-height: 495px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0;
  }
  /* .container's normal max-width:1200+auto-margin centers it, so its
     left edge (and the copy inside it) drifts further right as the
     viewport grows past 1200px — while the image's phones, anchored
     to the section's right edge, only move further right too at
     roughly the same rate. Those two don't track each other
     precisely enough to stay safely apart at every width. Dropping
     the centering here and pinning the copy to a small fixed offset
     from the true left edge is more robust: the empty zone is a
     roughly constant ~36% of the image regardless of viewport, so
     its absolute width only grows as the screen widens — a
     fixed-offset column just gets safer at larger sizes instead of
     drifting into the danger zone. */
  .hero-photo .container { width: 100%; max-width: none; margin: 0; padding: 0 5vw; }
  .hero-photo .hero-copy { max-width: 320px; }
  .hero-photo h1 { font-size: 38px; letter-spacing: -1px; margin-bottom: 14px; }
  .hero-photo p.lead { font-size: 16px; max-width: 300px; margin-bottom: 24px; }
  .hero-photo-mobile { display: none; }
}

/* ---------- Compact hero demo ("See it for yourself") ----------
   Same demo-phone/demo-step classes as the full-size version further
   down the page, just much smaller — kept deliberately tiny (one
   transaction, not three) so it can never push the hero's measured
   content height past what the fixed-aspect-ratio box above actually
   has room for. */

.hero-mini { margin: 18px 0; }

/* This copy is desktop-only — mobile shows the even-smaller
   .hero-overlay-demo directly on the hero photo instead, so the two
   don't stack redundantly on a small screen. */
.hero-mini-desktop-only { display: none; }

@media (min-width: 900px) {
  .hero-mini-desktop-only { display: block; }
}

.hero-mini-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.85);
}

/* Compound selector (.demo-phone.hero-mini-phone), not just
   .hero-mini-phone — the base .demo-phone{width:280px} rule is
   defined later in this file and ties on specificity with a
   single-class selector, so a plain .hero-mini-phone{width:132px}
   would silently lose to it. Two classes together outrank one,
   regardless of source order. */
.demo-phone.hero-mini-phone {
  width: 168px;
  padding: 7px;
  border-radius: 20px;
}

.hero-mini-phone .demo-screen { min-height: 108px; border-radius: 14px; }
.hero-mini-phone .demo-stage { padding: 4px 9px 9px; }
.hero-mini-phone .receipt-card { margin-top: 10px; padding: 9px 8px; border-radius: 10px; }
.hero-mini-phone .receipt-lines span { height: 5px; margin-bottom: 6px; }
.hero-mini-phone .receipt-lines .receipt-total { height: 7px; margin-top: 8px; }
.hero-mini-phone .finding-row { margin-top: 14px; font-size: 10px; }
.hero-mini-phone .demo-txn { padding: 6px 7px; margin-bottom: 6px; gap: 6px; }
.hero-mini-phone .txn-icon { width: 20px; height: 20px; font-size: 10px; }
.hero-mini-phone .txn-info { flex: 1 1 auto; min-width: 0; }
.hero-mini-phone .txn-info b { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.hero-mini-phone .txn-amt { flex: 0 0 auto; }
.hero-mini-phone .txn-amt { font-size: 10px; }
.hero-mini-phone .demo-success { font-size: 9.5px; margin-top: 8px; }

/* ---------- Device frame (wraps a real screenshot — showcase gallery, etc.) ---------- */

/* ---------- Trust strip — honest, no fabricated numbers ---------- */

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  padding: 22px 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.trust-icon { font-size: 16px; }

.device-frame {
  width: 240px;
  background: var(--black);
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(17,17,17,0.35), 0 10px 24px -8px rgba(17,17,17,0.2);
}

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

.device-frame img {
  width: 100%;
  border-radius: 24px;
  display: block;
}

/* ---------- Live AI demos (receipt scan + Save More chat) ----------
   Self-contained phone mockups that play a short, once-per-view
   scripted sequence (see [data-autoplay] in site.js) instead of a
   static screenshot — this is the actual "magic" (AI reading a
   receipt, AI answering a real question) shown happening, not just
   described in a feature card. */

.magic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .magic-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .magic-grid.reverse .magic-visual { order: 2; }
  .magic-grid.reverse .magic-copy { order: 1; }
}

.magic-copy .section-title,
.magic-copy .section-lead,
.magic-copy .section-eyebrow { text-align: left; margin-left: 0; margin-right: 0; }

.magic-visual { display: flex; justify-content: center; }

.replay-btn { margin-top: 8px; }
.replay-btn svg { width: 16px; height: 16px; }

.demo-phone {
  width: 280px;
  max-width: 100%;
  background: var(--black);
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(17,17,17,0.35), 0 10px 24px -8px rgba(17,17,17,0.2);
}

@media (min-width: 900px) { .demo-phone { width: 300px; } }

.demo-screen {
  background: var(--bg);
  /* Resets inherited text color regardless of context — this
     component now also gets placed inside .hero-photo, which sets
     color:white on everything under it for its own dark background;
     without this reset, every text label in here silently inherits
     white-on-white and vanishes. */
  color: var(--text-primary);
  border-radius: 24px;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  flex-direction: column;
}

.demo-header {
  padding: 20px 20px 6px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.2px;
}

.demo-stage { flex: 1; padding: 4px 18px 20px; position: relative; }

/* Each step is toggled by JS via .is-active — display:none the rest
   of the time so the phone's height stays settled between steps. */
.demo-step { display: none; }
.demo-step.is-active { display: block; animation: demo-step-in 0.4s ease; }

@keyframes demo-step-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.receipt-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 18px;
  margin-top: 28px;
  overflow: hidden;
}

.receipt-lines span { display: block; height: 8px; border-radius: 4px; background: #EDEDEF; margin-bottom: 10px; }
.receipt-lines span:nth-child(1) { width: 70%; }
.receipt-lines span:nth-child(2) { width: 90%; }
.receipt-lines span:nth-child(3) { width: 55%; margin-bottom: 0; }
.receipt-lines .receipt-total { width: 42%; height: 12px; background: #DADADD; margin-top: 16px; }

.scan-line {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: 0 0 14px 2px rgba(229,57,53,0.55);
  animation: scan-sweep 1.5s ease-in-out infinite;
}

@keyframes scan-sweep {
  0% { top: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.finding-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.finding-row .sparkle { color: var(--red); display: inline-block; animation: sparkle-pulse 1s ease-in-out infinite; }

@keyframes sparkle-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
}

.dots i {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-secondary);
  margin-left: 2px;
  animation: dot-blink 1.2s infinite;
}
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-blink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

.demo-txns { margin-top: 8px; }

.demo-txn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.demo-txn.in { opacity: 1; transform: none; }

.txn-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--red-surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.txn-info { flex: 1; min-width: 0; }
.txn-info b { display: block; font-size: 13.5px; }
.txn-info small { color: var(--text-tertiary); font-size: 12px; }

.txn-amt { font-weight: 700; font-size: 13.5px; color: var(--red); white-space: nowrap; }

.demo-success {
  text-align: center;
  margin-top: 12px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--income);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.demo-success.in { opacity: 1; }

/* ---------- Save More chat demo ---------- */

.chat-stage {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.chat-bubble.in { opacity: 1; transform: none; }

.chat-bubble.user {
  align-self: flex-end;
  background: var(--black);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-bubble.ai b { color: var(--red); }

.chat-typing {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 13px 16px;
  display: flex;
  gap: 4px;
  width: fit-content;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.chat-typing.in { opacity: 1; }

.chat-typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
  animation: dot-blink 1.2s infinite;
}
.chat-typing i:nth-child(2) { animation-delay: 0.2s; }
.chat-typing i:nth-child(3) { animation-delay: 0.4s; }

/* ---------- Screenshot showcase ---------- */

.showcase-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-nav {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.showcase-nav svg { width: 18px; height: 18px; stroke: var(--text-primary); }
.showcase-nav:hover { border-color: var(--black); box-shadow: var(--shadow); }
.showcase-nav:disabled { opacity: 0.35; cursor: default; }
.showcase-nav:disabled:hover { border-color: var(--border); box-shadow: none; }

@media (max-width: 720px) { .showcase-nav { display: none; } }

.showcase-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
}

.showcase-scroll::-webkit-scrollbar { height: 6px; }
.showcase-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.showcase-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-align: center;
}

.showcase-item .device-frame { width: 200px; }
.showcase-item .showcase-label {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ---------- Stats / animated counters ---------- */

.stats-band {
  background: var(--black);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat .stat-number {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--white);
}

.stat .stat-number .accent { color: var(--red); }

.stat .stat-label {
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
}

.section-lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 0 48px;
}

.section-header-center { text-align: center; }
.section-header-center .section-lead { margin-left: auto; margin-right: auto; }

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

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card .icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--red-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background 0.25s ease;
}

.card .icon-badge svg { width: 22px; height: 22px; stroke: var(--red); transition: stroke 0.25s ease; }

.card:hover .icon-badge { background: var(--red); }
.card:hover .icon-badge svg { stroke: var(--white); }

/* Staggered reveal for feature grids — each card fades/slides in with
   a small incremental delay after its own .grid.reveal parent enters
   view, instead of the whole row appearing as one flat block. The
   parent's own generic .reveal motion is neutralized below so only
   the per-card stagger shows. */
.grid.reveal { opacity: 1; transform: none; transition: none; }

.grid.reveal .card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.grid.reveal.in-view .card { opacity: 1; transform: translateY(0); }

.grid.reveal .card:nth-child(1) { transition-delay: 0ms; }
.grid.reveal .card:nth-child(2) { transition-delay: 70ms; }
.grid.reveal .card:nth-child(3) { transition-delay: 140ms; }
.grid.reveal .card:nth-child(4) { transition-delay: 210ms; }
.grid.reveal .card:nth-child(5) { transition-delay: 280ms; }
.grid.reveal .card:nth-child(6) { transition-delay: 350ms; }
.grid.reveal .card:nth-child(7) { transition-delay: 420ms; }

/* Once revealed, hover feedback shouldn't inherit the entry stagger delay. */
.grid.reveal.in-view .card:hover { transition-delay: 0ms; }

.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}

.card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Journey strip ---------- */

.journey {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px;
  background: var(--black);
  border-radius: var(--radius-xl);
  color: var(--white);
}

.journey .step {
  font-weight: 700;
  font-size: 15px;
  padding: 10px 18px;
}

.journey .step.active { color: var(--red); }

.journey .arrow { color: rgba(255,255,255,0.35); font-size: 18px; }

/* ---------- Dark CTA band (legacy — kept for any page still using it) ---------- */

.cta-band {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0 0 16px;
}

.cta-band p {
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ---------- Full-bleed download CTA ----------
   Edge-to-edge red band with a phone silhouette — the one deliberate
   break from the boxed .container rhythm, so it reads as a hard stop
   / final pitch rather than just another section. */

.cta-full {
  background: linear-gradient(135deg, #FF6A5C 0%, var(--red) 100%);
  padding: 0;
  overflow: hidden;
  position: relative;
}

.cta-full-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 24px;
  padding: 56px 24px;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .cta-full-inner { grid-template-columns: 1.2fr 0.8fr; padding: 72px 24px; text-align: left; }
}

.cta-full-copy { text-align: center; }
@media (min-width: 900px) { .cta-full-copy { text-align: left; } }

.cta-full-copy h2 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0 0 14px;
}

.cta-full-copy p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  max-width: 420px;
  margin: 0 auto 28px;
}

@media (min-width: 900px) { .cta-full-copy p { margin-left: 0; } }

.cta-full-visual { display: flex; justify-content: center; }

.cta-phone {
  width: 160px;
  border-radius: 26px;
  overflow: hidden;
  border: 6px solid rgba(0,0,0,0.85);
  box-shadow: 0 30px 50px -18px rgba(0,0,0,0.45);
  animation: float-phone 5s ease-in-out infinite;
}

.cta-phone img { display: block; width: 100%; }

/* Decorative faint circles echoing the reference's dotted/ring motif — pure CSS, no image asset needed. */
.cta-full::before, .cta-full::after {
  content: "";
  position: absolute;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  pointer-events: none;
}
.cta-full::before { width: 140px; height: 140px; top: -50px; left: -40px; }
.cta-full::after { width: 90px; height: 90px; bottom: -30px; right: 8%; }

/* ---------- Legal / content pages ---------- */

.page-header {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 12px;
}

.page-header .updated {
  font-size: 13.5px;
  color: var(--text-tertiary);
}

.prose {
  max-width: 760px;
  margin: 48px auto;
  padding: 0 24px;
}

.prose h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 40px 0 14px;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 10px;
}

.prose p, .prose li {
  font-size: 15.5px;
  color: #333338;
  line-height: 1.7;
}

.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

.prose a { color: var(--red); font-weight: 600; text-decoration: underline; }

.callout {
  background: var(--red-surface);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 14.5px;
  color: #7a1f1c;
  margin: 24px 0;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 8px;
}

.toc p { margin: 0 0 10px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-tertiary); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { font-size: 14.5px; margin-bottom: 6px; }
.toc a { color: var(--text-primary); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--red); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.contact-card .value { transition: color 0.2s ease; }
.contact-card a.value:hover { color: var(--red); }

/* ---------- Contact form ---------- */

.form-field { margin-bottom: 14px; }
.form-field:last-of-type { margin-bottom: 0; }

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--text-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field textarea { resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(17,17,17,0.06);
}

.contact-form { display: flex; flex-direction: column; }

.contact-card .icon-badge {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--red-surface); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.contact-card .icon-badge svg { width: 22px; height: 22px; stroke: var(--red); }

.contact-card h3 { margin: 0 0 6px; font-size: 17px; }
.contact-card p { margin: 0 0 14px; color: var(--text-secondary); font-size: 14.5px; }
.contact-card .value { font-weight: 700; font-size: 15.5px; color: var(--text-primary); }

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 40px;
}

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

.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--text-secondary); max-width: 260px; }

.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--red-surface); color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease;
}
.footer-social a svg { width: 17px; height: 17px; }
.footer-social a:hover { background: var(--red); color: var(--white); }

.footer-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-tertiary);
  margin: 0 0 16px;
}

.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.footer-col a:hover { color: var(--text-primary); }

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

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-mockup { animation: none; }
  .reveal, .grid.reveal .card { opacity: 1; transform: none; transition: none; }
  .cta-phone,
  .scan-line,
  .sparkle,
  .finding-row .sparkle,
  .dots i,
  .chat-typing i { animation: none; }
  .demo-txn, .demo-success, .chat-bubble, .chat-typing { transition: none; }
  .btn::after { display: none; }
}

@media (max-width: 720px) {
  nav.main-nav {
    position: fixed;
    top: 84px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 2px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { text-align: center; margin-top: 12px; }
  .nav-toggle { display: block; }
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .journey { flex-direction: column; }
  .journey .arrow { transform: rotate(90deg); }

  /* Tighter vertical rhythm on phones — the desktop spacing scale reads
     as excessive once sections stack full-width. */
  .container { padding: 0 18px; }
  section { padding: 44px 0; }
  .hero { padding: 40px 0 32px; }
  .cta-band { padding: 40px 24px; }
  .stats-band { padding: 32px 24px; }
  .prose { margin: 32px auto; }
  .section-lead { margin-bottom: 28px; }
}

/* ---------------------------------------------------------------
   Content pages: guides, blog index, articles.

   These pages are read, not skimmed, so the type is bigger and the
   measure narrower than the marketing sections above. Everything
   reuses the existing colour and spacing variables — no new palette.
   --------------------------------------------------------------- */

.container.narrow { max-width: 760px; }

.section { padding: 64px 0; }
.section-alt { background: var(--surface-alt, #f7f7f8); }
.section .center, .center { text-align: center; }

.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; margin: 10px 0 14px; letter-spacing: -0.02em; }
.page-lead { font-size: 18px; line-height: 1.65; color: var(--text-muted, #6b6b70); max-width: 660px; }
.page-head .btn { margin-top: 22px; }

.crumbs { font-size: 13px; color: var(--text-muted, #6b6b70); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--text-muted, #6b6b70); text-decoration: none; }
.crumbs a:hover { color: #111; text-decoration: underline; }

/* Blog index */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.post-card {
  background: #fff; border: 1px solid var(--border, #e7e7ea); border-radius: 16px;
  padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(17,17,17,0.07); }
.post-card h2 { font-size: 20px; line-height: 1.3; margin: 2px 0; }
.post-card h2 a { color: #111; text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card p { color: var(--text-muted, #6b6b70); font-size: 15px; line-height: 1.6; margin: 0; }
.post-tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #1c8a5c; background: #e7f5ee;
  padding: 5px 10px; border-radius: 999px;
}
.post-meta { font-size: 13px; color: var(--text-muted, #9a9aa0); display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

/* Article */
.article { padding: 48px 0 12px; }
.article h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin: 12px 0 10px; }
.article-body { font-size: 17.5px; line-height: 1.75; color: #24242a; }
.article-body h2 { font-size: 23px; line-height: 1.3; margin: 34px 0 12px; letter-spacing: -0.01em; }
.article-body p { margin: 0 0 18px; }
.article-body ul { margin: 0 0 20px; padding-left: 22px; }
.article-body li { margin-bottom: 9px; }
.article-body a { color: #1c8a5c; text-decoration: underline; text-underline-offset: 2px; }
.article-body strong { font-weight: 650; }
.article-body .note {
  font-size: 14.5px; color: var(--text-muted, #6b6b70); border-left: 3px solid var(--border, #e7e7ea);
  padding: 2px 0 2px 14px; margin-top: 28px;
}

.article-cta {
  margin: 40px 0 8px; padding: 26px; border-radius: 16px;
  background: #111; color: #fff;
}
.article-cta h2 { margin: 0 0 8px; font-size: 21px; color: #fff; }
.article-cta p { color: rgba(255,255,255,.78); margin: 0 0 16px; line-height: 1.6; }

.article-related { margin: 36px 0 8px; }
.article-related h2 { font-size: 20px; margin-bottom: 12px; }
.article-related ul { list-style: none; padding: 0; margin: 0; }
.article-related li { padding: 14px 0; border-top: 1px solid var(--border, #e7e7ea); }
.article-related a { font-weight: 600; color: #111; text-decoration: none; }
.article-related a:hover { text-decoration: underline; }
.article-related span { display: block; color: var(--text-muted, #6b6b70); font-size: 14.5px; margin-top: 4px; line-height: 1.55; }

/* FAQ — <details> so answers are in the HTML for search engines even
   while collapsed, and it needs no JavaScript. */
.faq details {
  border-bottom: 1px solid var(--border, #e7e7ea); padding: 14px 0;
}
.faq summary { font-weight: 600; cursor: pointer; list-style: none; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--text-muted, #9a9aa0); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 10px 0 2px; color: var(--text-muted, #6b6b70); line-height: 1.65; }

.guide-links { list-style: none; padding: 0; margin: 0; }
.guide-links li { padding: 12px 0; border-top: 1px solid var(--border, #e7e7ea); }
.guide-links a { color: #111; font-weight: 600; text-decoration: none; }
.guide-links a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .section { padding: 44px 0; }
  .page-head { padding: 36px 0 4px; }
  .article-body { font-size: 17px; }
  .post-grid { grid-template-columns: 1fr; }
}
