/* ============================================================
   Landing — page-specific styles
   ============================================================ */

/* ----- Nav ----- */
.nav-root {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.nav-root.scrolled { border-bottom-color: var(--hairline); }

/* Transparent nav while over the hero video (top, not scrolled) */
.nav-root:not(.scrolled) {
  background: linear-gradient(180deg, rgba(3,28,47,0.74) 0%, rgba(3,28,47,0.30) 68%, transparent 100%);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
}
.nav-root:not(.scrolled) .nav-logo-mark,
.nav-root:not(.scrolled) .nav-logo-word {
  filter: drop-shadow(0 1px 8px rgba(3,28,47,0.55));
}
.nav-root:not(.scrolled) .nav-links,
.nav-root:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.88); }
.nav-root:not(.scrolled) .nav-links a:hover { color: #fff; }
.nav-root:not(.scrolled) .btn-link { color: #fff; }
.nav-root:not(.scrolled) .btn-link:hover { color: rgba(255,255,255,0.75); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.nav-logo { display: flex; align-items: center; gap: 9px; }
.nav-logo-mark { height: 32px; width: auto; }
.nav-logo-word { height: 14px; width: auto; }
.nav-links {
  display: flex; gap: var(--s-6); align-items: center;
  font-size: var(--t-sm); color: var(--text-2);
}
.nav-links a { transition: color 160ms ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: var(--s-3); align-items: center; }

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

/* ----- Hero ----- */
.hero {
  padding-top: var(--s-9);
  padding-bottom: var(--s-7);
  position: relative;
  overflow: hidden;
}

/* ----- Hero: full-bleed video ----- */
.hero-video {
  min-height: 100svh;
  padding: 0;
  display: flex;
  align-items: flex-end;
  /* pull up under the transparent nav */
  margin-top: -68px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3,28,47,0.42) 0%, rgba(3,28,47,0.06) 22%, rgba(3,28,47,0.06) 42%, rgba(3,28,47,0.60) 78%, rgba(3,28,47,0.86) 100%),
    linear-gradient(75deg, rgba(3,28,47,0.72) 0%, rgba(3,28,47,0.30) 38%, rgba(3,28,47,0) 68%);
}
.hero-video .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 148px;
  padding-bottom: 92px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* compact, scannable copy block bottom-left */
.hero-video .hero-copy { max-width: 720px; }

/* Hero text turns white over the video */
.hero-video .hero-eyebrow {
  color: rgba(255,255,255,0.82);
  margin-bottom: 18px;
}
.hero-video .hero-title {
  color: #fff;
  max-width: 16ch;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.0;
  text-shadow: 0 2px 30px rgba(3,28,47,0.35);
}
.hero-video .hero-title .serif { color: #fff; }
.hero-video .hero-sub {
  color: rgba(255,255,255,0.9);
  max-width: 58ch;
  margin-top: 22px;
  text-shadow: 0 1px 16px rgba(3,28,47,0.4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-video .hero-cta { margin-top: 32px; }
.hero-video .hero-foot {
  color: rgba(255,255,255,0.82);
  margin-top: 26px;
  gap: 20px;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 13px;
}
.hero-video .hero-foot span { display: inline-flex; align-items: center; }

/* Hero tag — discreet category + heritage line */
.hero-tag {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 18px;
  text-shadow: 0 1px 12px rgba(3,28,47,0.5);
}
.hero-tag-sep { color: var(--accent); margin: 0 5px; }

/* ===== Hamburger + mobile drawer ===== */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border: 0; background: transparent;
  cursor: pointer; padding: 0;
}
.nav-burger span {
  display: block; height: 2px; width: 22px; margin: 0 auto;
  background: var(--text); border-radius: 2px;
  transition: background 200ms ease;
}
.nav-root:not(.scrolled) .nav-burger span { background: #fff; }

.mnav-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(3,28,47,0.5);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
}
.mnav-scrim.open { opacity: 1; visibility: visible; }
.mnav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(84vw, 340px);
  background: var(--bg);
  box-shadow: -20px 0 60px rgba(3,28,47,0.22);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.16,1,0.3,1);
  display: flex; flex-direction: column;
  padding: 20px 22px 28px;
}
.mnav.open { transform: translateX(0); }
.mnav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.mnav-word { height: 30px; width: auto; }
.mnav-close {
  width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  color: var(--text); display: grid; place-items: center;
}
.mnav-close svg { width: 22px; height: 22px; }
.mnav-links { display: flex; flex-direction: column; gap: 4px; }
.mnav-links a {
  font-size: 20px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--text); padding: 12px 0;
  border-bottom: 1px solid var(--hairline-2);
}
.mnav-cta { margin-top: auto; width: 100%; }

/* Trust strip */
.trust {
  background: var(--bg-elev);
  padding: var(--s-7) 0;
  border-bottom: 1px solid var(--hairline);
}
.trust-label {
  text-align: center;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-5);
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s-4) var(--s-7);
}
.trust-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--text-3);
  opacity: 0.8;
  white-space: nowrap;
  transition: opacity 200ms ease, color 200ms ease;
}
.trust-logo:hover { opacity: 1; color: var(--text-2); }
.trust-logo em { font-style: normal; opacity: 0.62; font-size: 0.84em; }

/* Mid-page CTA band */
.midcta { padding: var(--s-8) 0; }
.midcta-inner {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-5);
  padding: var(--s-7) var(--s-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
}
.midcta-copy h2 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.06;
  margin: 0; color: #fff;
}
.midcta-copy p {
  margin: 8px 0 0; color: rgba(255,255,255,0.7);
  font-size: var(--t-base); max-width: 520px;
}
.midcta .btn-accent { flex-shrink: 0; }
@media (max-width: 700px) {
  .midcta-inner { flex-direction: column; align-items: flex-start; }
}
.hero-video .btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-video .btn-ghost:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.45);
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  transition: color 200ms ease;
}
.hero-scroll svg { width: 15px; height: 15px; animation: hero-bob 2s ease-in-out infinite; }
.hero-scroll:hover { color: #fff; }
@keyframes hero-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ----- Showcase (dashboard pulled up over the video) ----- */
.showcase {
  padding: var(--s-7) 0;
  margin-top: 0;
  position: relative;
  z-index: 5;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-5);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}
.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(48px, 8.4vw, 132px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--text);
}
.hero-title .serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--brand);
}
.hero-sub {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--text-2);
  max-width: 620px;
  margin-top: var(--s-6);
}
.hero-cta { display: flex; gap: var(--s-3); margin-top: var(--s-7); flex-wrap: wrap; }
.hero-foot {
  display: flex; gap: var(--s-6); margin-top: var(--s-5);
  font-size: var(--t-sm); color: var(--text-3);
  flex-wrap: wrap;
}
.hero-foot .check { color: var(--accent); margin-right: 6px; }

/* ----- Dashboard mockup ----- */
.dashboard-wrap {
  margin: 0 auto;
  max-width: 940px;
  position: relative;
}

/* Showcase heading (marketing) */
.showcase-head {
  max-width: 720px;
  margin: 0 auto var(--s-6);
  text-align: center;
}
.showcase-head .eyebrow { color: var(--accent); }
.showcase-title {
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.05;
  margin: 10px 0 0;
  white-space: nowrap;
}
.showcase-title .serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
}
.showcase-sub {
  color: var(--text-2);
  font-size: var(--t-base);
  line-height: 1.4;
  margin: 12px auto 0;
  max-width: 560px;
}

/* Floating feature callouts */
.callout {
  position: absolute;
  z-index: 10;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  width: 256px;
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  animation: callout-float 6s ease-in-out infinite;
}
.callout-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 20%, transparent);
}
.callout-body b {
  display: block;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
  color: var(--text);
}
.callout-body span {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.42;
}
.callout-1 { top: 40%; left: -14px; animation-delay: 0s; }
.callout-2 { top: -22px; right: 48px; animation-delay: 1.4s; }
.callout-3 { bottom: 44px; right: -14px; animation-delay: 2.6s; }
@keyframes callout-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@media (max-width: 640px) {
  .showcase-title { white-space: normal; font-size: clamp(26px, 7vw, 36px); }
}
@media (prefers-reduced-motion: reduce) {
  .callout { animation: none; }
}
@media (max-width: 1000px) {
  .callout { display: none; }
}
.dashboard-frame {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-5);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(2400px) rotateX(2deg);
  transform-origin: center top;
}
.db-shot {
  display: block;
  width: 100%;
  height: auto;
}
.db-top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-elev);
}
.db-top .dots { display: flex; gap: 6px; }
.db-top .dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--hairline);
}
.db-top .url {
  flex: 1;
  text-align: center;
  font-size: var(--t-xs);
  color: var(--text-3);
  font-family: var(--font-mono);
}
.db-body { display: grid; grid-template-columns: 220px 1fr; min-height: 520px; }
.db-side {
  background: var(--bg-elev);
  border-right: 1px solid var(--hairline);
  padding: var(--s-4);
}
.db-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px var(--s-4);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--s-4);
}
.db-brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: grid; place-items: center;
  color: white; font-weight: 600; font-size: 14px;
  font-family: var(--font-display); font-style: italic;
}
.db-brand-name { font-weight: 500; font-size: var(--t-sm); }
.db-nav { display: flex; flex-direction: column; gap: 2px; }
.db-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: var(--t-sm);
  color: var(--text-2);
}
.db-nav-item.active { background: var(--surface); color: var(--text); font-weight: 500; }
.db-nav-item .ico {
  width: 16px; height: 16px;
  display: inline-block;
  color: var(--text-3);
}
.db-nav-item.active .ico { color: var(--brand); }

.db-main { padding: var(--s-5) var(--s-6); }
.db-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: var(--s-5); }
.db-head h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.db-head p { margin: 4px 0 0; font-size: var(--t-sm); color: var(--text-3); }
.db-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); margin-bottom: var(--s-5); }
.db-stat {
  padding: var(--s-4);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  background: var(--surface);
}
.db-stat .label { font-size: var(--t-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.db-stat .val { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin-top: 6px; }
.db-stat .delta { font-size: var(--t-xs); color: #10A85B; margin-top: 4px; }
.db-stat .delta.down { color: #D94555; }

.db-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-3); }
.db-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  background: var(--surface);
  padding: var(--s-4);
}
.db-card h4 { margin: 0 0 var(--s-3); font-size: var(--t-sm); font-weight: 500; color: var(--text); }

.chart {
  height: 140px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 14%, transparent) 0%, transparent 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.list { display: flex; flex-direction: column; }
.list-item {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-2);
  font-size: var(--t-sm);
}
.list-item:last-child { border-bottom: 0; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sky);
  color: var(--navy);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
}
.list-item .name { color: var(--text); font-weight: 500; }
.list-item .sub { font-size: 11px; color: var(--text-3); }
.list-item .amount { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 500; }

/* ----- Stats strip ----- */
.stats {
  position: relative;
  background: var(--bg-deep);
  color: var(--text-inv);
  padding: var(--s-9) 0;
  overflow: hidden;
  isolation: isolate;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/stats-texture.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.42;
  mix-blend-mode: screen;
  z-index: -1;
  pointer-events: none;
}
.stats::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--bg-deep) 58%, transparent) 0%,
    color-mix(in oklab, var(--bg-deep) 22%, transparent) 45%,
    color-mix(in oklab, var(--bg-deep) 62%, transparent) 100%);
  z-index: -1;
  pointer-events: none;
}
.stats .container { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); align-items: end; }
.stat-num {
  font-family: var(--font-sans);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat-num .plus { color: var(--accent); }
.stat-label {
  font-size: var(--t-sm); color: rgba(255,255,255,0.65);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-top: var(--s-3);
}
.stats-intro {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: var(--s-5);
  gap: var(--s-6);
}
.stats-intro h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500; line-height: 1.05; letter-spacing: -0.025em;
  margin: 0; max-width: 700px;
  color: var(--white);
}
.stats-intro h2 .serif { font-family: var(--font-display); font-style: italic; color: var(--sky); font-weight: 400; }
.stats-intro .eyebrow { color: rgba(255,255,255,0.55); }

@media (max-width: 900px) {
  .stats .container { grid-template-columns: repeat(2, 1fr); }
}

/* ----- Section heads ----- */
.sec-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: var(--s-7); gap: var(--s-6); flex-wrap: wrap;
}
.sec-head .left { max-width: 720px; }
.sec-head h2 {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 500; line-height: 1.02; letter-spacing: -0.03em;
  margin: var(--s-3) 0 0;
}
.sec-head h2 .serif { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--brand); }
.sec-head p { margin: var(--s-4) 0 0; font-size: var(--t-lg); color: var(--text-2); max-width: 580px; }
.modules .sec-head p { line-height: 1.28; }

/* ----- Modules — sliding carousel ----- */
.modules { background: var(--bg-elev); }
.modules .container { max-width: var(--container); }

/* Stack mode — fanned card deck, one shown at a time */
.modules { overflow-x: clip; }
.plat-rail {
  position: relative;
  overflow: visible;
}
.plat-track {
  --cw: min(320px, calc(100vw - 80px));
  --ch: 468px;
  position: relative;
  height: calc(var(--ch) + 36px);
  margin: 0;
  padding: 14px 0 0;
}

.plat-card {
  position: absolute;
  top: 14px;
  left: 0;
  width: var(--cw);
  height: var(--ch);
  transform-origin: center center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  will-change: transform, opacity;
  box-shadow: 0 10px 30px rgba(3, 28, 47, 0.10);
  transition: transform 560ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 440ms ease,
              border-color 440ms ease,
              box-shadow 440ms ease;
}
.plat-card.is-front {
  box-shadow: 0 24px 60px rgba(3, 28, 47, 0.18);
  border-color: color-mix(in oklab, var(--brand) 22%, var(--hairline));
}

/* Two-column layout: name list left, fanned cards right */
.plat-layout {
  display: flex;
  align-items: center;
  gap: var(--s-9);
}
.plat-rail { flex: 1 1 auto; min-width: 0; order: 2; padding-left: var(--s-6); }
.plat-tabs {
  order: 1;
  flex: 0 0 256px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.plat-tab {
  appearance: none;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0 var(--r-3) var(--r-3) 0;
  background: transparent;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--brand);
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, padding-left 220ms ease;
}
.plat-tab .num {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.45;
  font-weight: 500;
  min-width: 18px;
}
.plat-tab:hover { background: color-mix(in oklab, var(--brand) 7%, transparent); }
.plat-tab.on {
  color: var(--accent);
  border-left-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, transparent);
  padding-left: 20px;
}
.plat-tab.on .num { opacity: 1; color: var(--accent); }

@media (max-width: 860px) {
  .plat-layout { flex-direction: column; }
  .plat-tabs {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 8px;
    margin-top: var(--s-5);
  }
  .plat-tab {
    border-left: 0;
    border-radius: var(--r-full);
    padding: 8px 14px;
    font-size: 15px;
  }
  .plat-tab.on { padding-left: 14px; border-radius: var(--r-full); }
  .plat-tab .num { display: none; }
  .plat-rail { padding-left: 0; }
  .plat-track { width: var(--cw); margin: 0 auto; }
  /* tabs above the card on mobile */
  .plat-tabs { order: 1; }
  .plat-rail { order: 2; }
}
.plat-card-vis {
  height: 176px;
  background: linear-gradient(160deg, var(--bg-elev) 0%, var(--surface-2) 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Real product screenshots in the card header */
.plat-card-vis.shot {
  background: linear-gradient(160deg, #1a3a5c 0%, #0b2238 100%);
}
.plat-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.plat-card-vis.shot.shot-light {
  background: #ffffff;
}
.plat-card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.plat-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.plat-card-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--text-3);
  letter-spacing: -0.01em;
}
.plat-card-ico {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: color-mix(in oklab, var(--brand) 10%, transparent);
  color: var(--brand);
  display: grid; place-items: center;
}
.plat-card h3 {
  margin: 0;
  font-size: var(--t-xl);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.plat-card p {
  margin: 0;
  color: var(--text-2);
  font-size: var(--t-sm);
  flex: 1;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.plat-card .more {
  margin-top: 8px;
  font-size: var(--t-sm);
  color: var(--brand);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 200ms ease, color 200ms ease;
}
.plat-card .more:hover { gap: 8px; }

/* Featured card (Secretaria) */
.plat-card.featured { background: var(--ink); color: var(--white); border-color: transparent; box-shadow: var(--shadow-lg); }
.plat-card.featured h3, .plat-card.featured .plat-card-num { color: var(--white); }
.plat-card.featured p { color: rgba(255,255,255,0.7); }
.plat-card.featured .more { color: var(--accent); }
.plat-card.featured .plat-card-vis {
  background: linear-gradient(160deg, #052742 0%, #020E18 100%);
  border-bottom-color: rgba(255,255,255,0.06);
}
.plat-card.featured .plat-card-ico {
  background: rgba(255,88,0,0.15); color: var(--accent);
}
.plat-card.featured .plat-card-num { color: rgba(255,255,255,0.45); }

/* Inner visualizations adapt to dark featured card */
.plat-card.featured .viz-row,
.plat-card.featured .viz-cal,
.plat-card.featured .viz-chat .b.them,
.plat-card.featured .viz-roster .item,
.plat-card.featured .viz-inv .cell {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.9);
}
.plat-card.featured .viz-row .av { background: rgba(255,255,255,0.18); color: white; }
.plat-card.featured .viz-row .body .l1 { background: white; }
.plat-card.featured .viz-row .body .l2 { background: rgba(255,255,255,0.22); }
.plat-card.featured .viz-chart .label,
.plat-card.featured .viz-cal-head,
.plat-card.featured .viz-cal-dow,
.plat-card.featured .viz-cal-grid .d,
.plat-card.featured .viz-roster .head,
.plat-card.featured .viz-roster .item .n,
.plat-card.featured .viz-roster .item .pct { color: rgba(255,255,255,0.85); }
.plat-card.featured .viz-chart .val { color: white; }
.plat-card.featured .viz-cal-grid .d.event { background: var(--accent); color: white; }
.plat-card.featured .viz-roster .item .bar { background: rgba(255,255,255,0.15); }
.plat-card.featured .viz-inv .cell { color: rgba(255,255,255,0.6); }
.plat-card.featured .viz-tree .node { fill: rgba(255,255,255,0.85); }
.plat-card.featured .viz-tree line { stroke: rgba(255,255,255,0.2); }
.plat-card.featured .viz-dots .dot { background: rgba(255,255,255,0.25); }
.plat-card.featured .viz-dots .dot.tag { background: var(--accent); }
.plat-card.featured .viz-clock { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.3); }

/* Carousel controls */
.plat-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: var(--s-6);
  gap: var(--s-5);
}
.plat-progress {
  flex: 1; max-width: 320px;
  height: 2px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.plat-progress-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--ink);
  width: 20%;
  transition: left 320ms cubic-bezier(0.16, 1, 0.3, 1), width 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.plat-nav {
  display: flex; gap: 8px;
}
.plat-nav button {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.plat-nav button:hover {
  background: color-mix(in oklab, var(--text) 8%, transparent);
  border-color: color-mix(in oklab, var(--text) 20%, transparent);
}
.plat-nav button:active { transform: scale(0.94); }
.plat-nav button:disabled { opacity: 0.4; cursor: not-allowed; }
.plat-nav button svg { width: 16px; height: 16px; }

/* Mini-illustrations inside plat-card-vis */
.viz {
  width: 88%; height: 78%;
  font-family: var(--font-sans);
}

/* Viz: stacked rows (secretaria) */
.viz-rows { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.viz-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
}
.viz-row .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sky); color: var(--navy);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
}
.viz-row .body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.viz-row .body .l1 { height: 7px; background: var(--text); border-radius: 3px; opacity: 0.85; }
.viz-row .body .l2 { height: 5px; background: var(--hairline); border-radius: 3px; width: 60%; }
.viz-row .tag {
  font-size: 9px; padding: 3px 7px; border-radius: 999px;
  background: color-mix(in oklab, #10A85B 16%, transparent); color: #10A85B;
  font-weight: 500;
}
.featured .viz-row {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
.featured .viz-row .av { background: rgba(255,255,255,0.15); color: white; }
.featured .viz-row .body .l1 { background: white; }
.featured .viz-row .body .l2 { background: rgba(255,255,255,0.18); }

/* Viz: chart (financeiro) */
.viz-chart {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; gap: 12px;
}
.viz-chart .label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); }
.viz-chart .val { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.viz-chart .delta { font-size: 11px; color: #10A85B; }
.viz-chart svg { width: 100%; flex: 1; }

/* Viz: calendar (eventos) */
.viz-cal {
  width: 100%; background: var(--surface);
  border-radius: 12px; border: 1px solid var(--hairline);
  padding: 12px 14px;
}
.viz-cal-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 500;
  margin-bottom: 10px;
}
.viz-cal-head .nav { display: flex; gap: 4px; color: var(--text-3); }
.viz-cal-dow {
  display: grid; grid-template-columns: repeat(7, 1fr);
  font-size: 9px; color: var(--text-3); text-align: center;
  margin-bottom: 6px;
}
.viz-cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
}
.viz-cal-grid .d {
  aspect-ratio: 1; display: grid; place-items: center;
  font-size: 10px; color: var(--text-2);
  border-radius: 4px;
}
.viz-cal-grid .d.empty { color: var(--text-3); opacity: 0.4; }
.viz-cal-grid .d.event { background: var(--ink); color: white; font-weight: 500; }
.viz-cal-grid .d.dot::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); position: absolute; margin-top: 14px;
}
.viz-cal-grid .d { position: relative; }

/* Viz: chat (comunicação) */
.viz-chat { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.viz-chat .b {
  font-size: 11px; padding: 8px 12px; border-radius: 14px;
  max-width: 75%; line-height: 1.35;
}
.viz-chat .b.me {
  background: #25D366; color: white; align-self: flex-end; border-bottom-right-radius: 4px;
}
.viz-chat .b.them {
  background: var(--surface); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px;
  border: 1px solid var(--hairline);
}

/* Viz: roster list (EBD) */
.viz-roster { width: 100%; }
.viz-roster .head {
  display: flex; justify-content: space-between;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-3);
  padding: 6px 12px;
}
.viz-roster .item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); padding: 10px 12px;
  border: 1px solid var(--hairline); border-radius: 8px;
  margin-bottom: 4px;
  font-size: 11px;
}
.viz-roster .item .n { font-weight: 500; }
.viz-roster .item .pct { color: var(--text-3); font-variant-numeric: tabular-nums; }
.viz-roster .item .bar {
  width: 60px; height: 4px; background: var(--hairline); border-radius: 2px; overflow: hidden;
}
.viz-roster .item .bar i {
  display: block; height: 100%; background: var(--brand);
}

/* Viz: tree (células) */
.viz-tree {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px;
}
.viz-tree svg { width: 100%; height: 100%; }
.viz-tree .node { fill: var(--ink); }
.viz-tree .leaf { fill: var(--brand); }
.viz-tree line { stroke: var(--hairline); stroke-width: 1.5; }

/* Viz: inventory (patrimônio) */
.viz-inv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; }
.viz-inv .cell {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--text-3);
}
.viz-inv .cell svg { width: 22px; height: 22px; }

/* Viz: dots (infantil) */
.viz-dots {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px;
  width: 80%;
}
.viz-dots .dot {
  aspect-ratio: 1; border-radius: 50%;
  background: var(--sky);
}
.viz-dots .dot.tag {
  background: var(--accent);
}

/* Viz: clock (gabinete) */
.viz-clock {
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  position: relative;
  background: var(--surface);
}
.viz-clock::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 2px; height: 40%; background: var(--ink);
  transform-origin: bottom; transform: translate(-50%, -100%) rotate(75deg);
  border-radius: 2px;
}
.viz-clock::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 3px; height: 28%; background: var(--accent);
  transform-origin: bottom; transform: translate(-50%, -100%) rotate(160deg);
  border-radius: 2px;
}
.viz-clock .center {
  position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px;
  background: var(--ink); border-radius: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 860px) {
  .plat-track { --cw: min(260px, calc(100vw - 80px)); --ch: 400px; }
}
/* Mobile: drop the fanned deck — show one full-width card at a time,
   driven by the same tab list (JS keeps .is-front in sync) */
@media (max-width: 700px) {
  .plat-track { width: 100% !important; height: auto !important; padding: 0; }
  .plat-card {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    display: none;
    box-shadow: 0 14px 36px rgba(3,28,47,0.12) !important;
  }
  .plat-card.is-front { display: flex; animation: platIn 380ms cubic-bezier(0.16,1,0.3,1) both; }
  .plat-card-vis { height: 148px; }
  .plat-card-body { padding: 18px 20px 20px; gap: 7px; }
  .plat-card-meta { margin-bottom: 0; }
  .plat-card-num { font-size: 15px; }
  .plat-card-ico { width: 28px; height: 28px; border-radius: 8px; }
  .plat-card-ico svg { width: 16px; height: 16px; }
  .plat-card h3 { font-size: 18px; }
  .plat-card p { font-size: 13.5px; line-height: 1.5; -webkit-line-clamp: none; overflow: visible; display: block; }
  .plat-card .more { margin-top: 6px; font-size: 13.5px; }
}
@keyframes platIn { from { opacity: 0; transform: translateY(10px) !important; } to { opacity: 1; transform: none !important; } }

/* Desktop-only notice (mobile replacement for the interactive mini app) */
.desktop-only-note { display: none; }
@media (max-width: 820px) {
  .miniapp-wrap { display: none !important; }
  .desktop-only-note {
    display: grid; justify-items: center; text-align: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--hairline);
    border-radius: var(--r-4); padding: 30px 22px 26px; margin-top: 26px;
    box-shadow: 0 10px 30px rgba(3,28,47,0.07);
  }
  .desktop-only-note .don-ico {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    background: color-mix(in oklab, var(--brand) 12%, transparent); color: var(--brand);
  }
  .desktop-only-note .don-ico svg { width: 24px; height: 24px; }
  .desktop-only-note b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
  .desktop-only-note span { font-size: 14px; line-height: 1.55; color: var(--text-2); max-width: 40ch; text-wrap: pretty; }
  .desktop-only-note .btn { margin-top: 6px; }
}

/* ----- App showcase ----- */
.app-showcase {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
  position: relative;
  overflow: hidden;
}
.app-stage {
  position: relative;
  margin-top: var(--s-8);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-5);
  align-items: center;
}
@media (max-width: 900px) {
  .app-stage { grid-template-columns: 1fr; }
}
.phone {
  position: relative;
  width: 280px;
  height: 580px;
  margin: 0 auto;
  background: #0A1825;
  border-radius: 44px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
}
.phone .screen {
  width: 100%; height: 100%;
  background: #14222F;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}
.phone .screen .app-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
/* Real screenshots already include the status bar — hide the fake island */
.phone:has(.app-shot) .notch { display: none; }
.phone .notch {
  position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px;
  background: #050D14;
  border-radius: 999px;
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
}

.phone-mid { transform: translateY(-20px); z-index: 2; }
.phone-side { transform: scale(0.86); opacity: 0.92; }

@media (max-width: 900px) {
  .phone-side { display: none; }
  .phone-mid { transform: none; }
}

/* App screens — common */
.app { width: 100%; height: 100%; padding: 56px 18px 24px; display: flex; flex-direction: column; background: var(--white); color: var(--ink); font-size: 12px; }
.app-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.app-h .greet { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.app-h .greet small { display: block; font-size: 11px; color: var(--text-3); font-weight: 400; margin-top: 2px; }
.app-h .av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--navy)); }

.tile { background: var(--paper); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.tile .lab { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); }
.tile .v { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-top: 4px; }
.tile .v small { font-size: 12px; color: var(--text-3); margin-left: 6px; font-weight: 400; }

.bigcard {
  background: var(--ink);
  color: var(--white);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
}
.bigcard h4 { margin: 0; font-size: 14px; font-weight: 500; }
.bigcard p { margin: 4px 0 0; font-size: 11px; color: rgba(255,255,255,0.65); }
.bigcard .row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.bigcard .row b { font-size: 16px; font-weight: 500; }
.bigcard .accent-tag {
  background: var(--accent); color: white;
  padding: 4px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 500;
}

.row-list { display: flex; flex-direction: column; gap: 8px; }
.row-list .r {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-2);
}
.row-list .r:last-child { border-bottom: 0; }
.row-list .av-s { width: 32px; height: 32px; border-radius: 50%; background: var(--sky); color: var(--navy); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.row-list .name { font-size: 13px; font-weight: 500; }
.row-list .sub { font-size: 10px; color: var(--text-3); }

.tabbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  border-top: 1px solid var(--hairline);
  background: var(--white);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.tabbar .t {
  display: grid; place-items: center;
  color: var(--text-3);
  font-size: 10px;
}
.tabbar .t.active { color: var(--brand); }

/* ----- ChurchPay ----- */
.pay {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.pay-grid { display: grid; grid-template-columns: 0.92fr 1.18fr; gap: var(--s-6); align-items: center; }
.pay h2 { font-size: clamp(40px, 5.4vw, 80px); font-weight: 500; line-height: 1.0; letter-spacing: -0.035em; margin: var(--s-4) 0 0; color: var(--white); }
.pay h2 .serif { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--accent); }
.pay .lead { color: rgba(255,255,255,0.7); margin-top: var(--s-5); max-width: 480px; font-size: var(--t-lg); }
.pay .feats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-7); }
.pay .feat { font-size: var(--t-sm); }
.pay .feat .h { color: var(--white); font-weight: 500; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.pay .feat .h .b { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pay .feat .d { color: rgba(255,255,255,0.6); }
.pay .pay-cta { margin-top: var(--s-7); display: flex; gap: var(--s-3); }
.pay .btn-primary { background: var(--accent); color: white; }
.pay .btn-primary:hover { background: var(--orange-2); }
.pay .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.18); }
.pay .btn-ghost:hover { background: rgba(255,255,255,0.06); }

/* Terminal visual */
.pay-vis {
  position: relative;
  height: 820px;
  display: grid;
  place-items: center;
  overflow: visible;
  /* bleed to the right edge of the viewport so the product fills the band */
  margin-right: calc((100vw - var(--container)) / -2 - var(--s-5));
}
.pay-vis::before {
  content: none;
}
.pay-vis .terminal {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 50px 100px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 60px rgba(255, 88, 0, 0.15));
}

/* ===== 360° Product viewer ===== */
.pay-360 { position: relative; height: 100%; width: 100%; z-index: 2; }
.pay-video-src {
  display: none;
}
.pay-canvas {
  display: block;
  width: 100%;
  height: 820px;
  /* cover: product fills the full band height, empty side margins crop off */
  object-fit: cover;
  object-position: center;
  /* more life: richer color, punchier contrast */
  filter: saturate(1.3) contrast(1.14) brightness(1.05);
  /* soft fade top & bottom so the product blends into the band */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
@media (max-width: 900px) {
  .pay-canvas { height: 460px; }
}
.pay-360-stage {
  position: relative;
  width: 100%; height: 700px;
  display: grid; place-items: center;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.pay-360-stage.dragging { cursor: grabbing; }
.pay-360-frame {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 60px 100px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 100px rgba(255, 88, 0, 0.18));
  transition: opacity 220ms ease;
}
.pay-360-frame.active { opacity: 1; }

.pay-360-base {
  position: absolute;
  bottom: 8%; left: 50%; transform: translateX(-50%);
  width: 75%; height: 14px;
  background: radial-gradient(ellipse at center, rgba(255,88,0,0.35) 0%, transparent 65%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.pay-360-controls {
  position: absolute;
  bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-full);
  padding: 8px 8px 8px 18px;
  z-index: 5;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.pay-360-controls .lab {
  display: flex; align-items: center; gap: 6px;
  letter-spacing: 0.02em;
}
.pay-360-controls .lab .ico {
  width: 14px; height: 14px;
  color: var(--accent);
}
.pay-360-dots { display: flex; gap: 5px; padding: 0 6px; }
.pay-360-dots .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 200ms ease, transform 200ms ease;
}
.pay-360-dots .dot.on {
  background: var(--accent);
  transform: scale(1.3);
}
.pay-360-play {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  border: 0;
  color: white;
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease;
}
.pay-360-play:hover { transform: scale(1.08); background: var(--orange-2); }
.pay-360-play svg { width: 12px; height: 12px; }

.pay-360-hint {
  position: absolute;
  top: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-full);
  padding: 8px 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 8px;
  z-index: 4;
  pointer-events: none;
  animation: hint-bob 2.4s ease-in-out infinite;
  transition: opacity 400ms ease;
}
.pay-360-hint.hidden { opacity: 0; }
.pay-360-hint .arr {
  width: 14px; height: 14px;
  color: var(--accent);
}
@keyframes hint-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -3px); }
}

.pay-txn {
  position: absolute;
  bottom: 40px; left: 56px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 16px 20px;
  font-size: var(--t-sm);
  z-index: 3;
  min-width: 240px;
  max-width: 300px;
}
.pay-txn .t { color: rgba(255,255,255,0.6); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.pay-txn .v { font-size: 17px; font-weight: 500; margin-top: 5px; line-height: 1.25; letter-spacing: -0.01em; }
.pay-txn .v small { display: block; color: rgba(255,255,255,0.55); font-size: 11px; margin: 5px 0 0; font-weight: 400; letter-spacing: 0; text-transform: none; }
.pay-txn .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #10E090; display: inline-block;
  box-shadow: 0 0 0 4px rgba(16, 224, 144, 0.25);
  margin-right: 8px; vertical-align: middle;
  animation: pulse-anim 1.6s ease-in-out infinite;
}
@keyframes pulse-anim {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16, 224, 144, 0.25); }
  50% { box-shadow: 0 0 0 9px rgba(16, 224, 144, 0.08); }
}

.pay-tag {
  position: absolute;
  top: 64px; right: 96px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-full);
  padding: 10px 16px;
  font-size: var(--t-sm);
  z-index: 3;
  display: flex; gap: 10px; align-items: center;
}
.pay-tag .ico { width: 18px; height: 18px; color: var(--accent); }

@media (max-width: 900px) {
  .pay-grid { grid-template-columns: 1fr; }
  .pay-vis { height: 460px; margin-right: 0; }
}

/* ----- Testimonials — iTunes Cover Flow ----- */
.tests { padding-bottom: var(--s-9); }
.sec-head-center { justify-content: center; text-align: center; }
.sec-head-center .left { max-width: none; }

.cf {
  margin-top: var(--s-7);
}
.cf-stage {
  position: relative;
  height: 280px;
  perspective: 1600px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}
.cf-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 540px;
  max-width: 86vw;
  height: 252px;
  margin-left: calc(min(540px, 86vw) / -2);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-5);
  padding: var(--s-6) var(--s-7);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition:
    transform 700ms cubic-bezier(0.33, 1, 0.68, 1),
    opacity 700ms ease,
    filter 700ms ease;
  backface-visibility: hidden;
}
.cf-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: var(--text);
  font-weight: 400;
  margin: 0;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cf-who { display: flex; flex-direction: column; gap: 3px; }
.cf-n {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--t-sm);
  letter-spacing: -0.01em;
  color: var(--text);
}
.cf-r { font-size: 12px; color: var(--text-3); letter-spacing: 0.01em; }

/* Non-active cards: dimmed + non-interactive */
.cf-card:not(.is-active) {
  cursor: pointer;
}
.cf-card:not(.is-active) .cf-quote {
  -webkit-line-clamp: 3;
}

.cf-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--s-6);
}
.cf-dots .cf-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 16%, transparent);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: background 240ms ease, transform 240ms ease, width 240ms ease;
}
.cf-dots .cf-dot.on {
  background: var(--accent);
  width: 22px;
  border-radius: var(--r-full);
}

@media (max-width: 700px) {
  .cf-stage { height: 320px; }
  .cf-card { height: 292px; }
  .cf-quote { font-size: 18px; }
}

/* ----- Pricing ----- */
.pricing { background: var(--bg-elev); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.plan {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-4);
  padding: var(--s-7);
  display: flex; flex-direction: column;
}
.plan.featured {
  background: var(--ink);
  color: var(--white);
  border-color: transparent;
  position: relative;
}
.plan.featured .lab, .plan.featured h3 { color: var(--white); }
.plan.featured .price { color: var(--white); }
.plan.featured .feats li { color: rgba(255,255,255,0.8); }
.plan.featured .feats li svg { color: var(--accent); }
.plan.featured .pflag {
  position: absolute; top: -10px; right: 20px;
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 500;
  padding: 4px 10px; border-radius: var(--r-full);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.plan .lab { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-3); }
.plan h3 { margin: var(--s-3) 0 0; font-size: var(--t-2xl); font-weight: 500; letter-spacing: -0.02em; }
.plan .price { font-family: var(--font-sans); font-size: 48px; font-weight: 500; letter-spacing: -0.03em; margin-top: var(--s-4); line-height: 1; }
.plan .price.price-custom { font-size: 26px; letter-spacing: -0.015em; color: var(--text); }
.plan.featured .price.price-custom { color: #fff; }
.plan .price small { font-size: var(--t-sm); color: var(--text-3); font-weight: 400; margin-left: 4px; }
.plan .desc { color: var(--text-2); font-size: var(--t-sm); margin-top: var(--s-3); }
.plan.featured .desc { color: rgba(255,255,255,0.7); }
.plan .feats { list-style: none; padding: 0; margin: var(--s-5) 0 var(--s-6); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan .feats li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); color: var(--text-2); }
.plan .feats li svg { flex-shrink: 0; margin-top: 3px; color: var(--brand); }
.plan .btn { width: 100%; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ----- Security ----- */
.sec-sec { }
.sec-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-8); align-items: center; }
.sec-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); margin-top: var(--s-6); }
.sec-badge {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  padding: var(--s-4) var(--s-5);
  display: flex; gap: 14px; align-items: center;
}
.sec-badge .ico {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--brand) 10%, transparent);
  color: var(--brand);
  flex-shrink: 0;
}
.sec-badge .h { font-weight: 500; font-size: var(--t-sm); }
.sec-badge .d { font-size: 12px; color: var(--text-3); }
.sec-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-5);
  background:
    radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--brand) 20%, transparent) 0%, transparent 60%),
    var(--ink);
  display: grid; place-items: center;
  overflow: hidden;
}
.shield {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38%;
  max-width: 200px;
  color: var(--white);
  z-index: 1;
}
.shield .ring {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
}
.shield .ring.r1 { inset: 22%; }
.shield .ring.r2 { inset: 32%; border-color: rgba(255,255,255,0.10); }
.shield .ring.r3 { inset: 42%; }
@media (max-width: 900px) { .sec-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } .sec-grid > * { min-width: 0; } }
@media (max-width: 760px) { .sec-visual { display: none; } }
@media (max-width: 560px) { .sec-badges { grid-template-columns: minmax(0, 1fr); } }

/* ----- Final CTA / form ----- */
.cta-final {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
  padding: var(--s-10) 0;
}
.cta-card {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-5);
  padding: var(--s-9) var(--s-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-card .accent-blob {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 30%, transparent) 0%, transparent 65%);
  top: -200px; right: -200px;
  pointer-events: none;
  animation: blob-drift 22s ease-in-out infinite alternate;
}
@keyframes blob-drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-260px, 180px) scale(1.12); }
  66%  { transform: translate(-80px, 420px) scale(0.95); }
  100% { transform: translate(-360px, 300px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-card .accent-blob { animation: none; }
}
.cta-card .accent-blob.b2 {
  width: 420px; height: 420px;
  top: auto; bottom: -160px; right: auto; left: -140px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 26%, transparent) 0%, transparent 68%);
  animation: blob-drift2 26s ease-in-out infinite alternate;
}
.cta-card .accent-blob.b3 {
  width: 300px; height: 300px;
  top: 34%; right: 26%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 20%, transparent) 0%, transparent 66%);
  animation: blob-drift3 19s ease-in-out infinite alternate;
}
@keyframes blob-drift2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(240px, -150px) scale(1.15); }
  100% { transform: translate(60px, -300px) scale(0.95); }
}
@keyframes blob-drift3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-180px, 140px) scale(1.12); }
  100% { transform: translate(-300px, -40px) scale(1.05); }
}
.cta-card h2 {
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 500; line-height: 1; letter-spacing: -0.03em;
  margin: 0;
  color: var(--white);
  position: relative;
}
.cta-card h2 .serif { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--accent); }
.cta-card p { color: rgba(255,255,255,0.7); margin-top: var(--s-5); font-size: var(--t-lg); position: relative; }
.cta-card .ck { margin-top: var(--s-6); display: flex; flex-direction: column; gap: 8px; font-size: var(--t-sm); color: rgba(255,255,255,0.7); position: relative; }
.cta-card .ck .row { display: flex; gap: 10px; align-items: center; }
.cta-card .ck .check { color: var(--accent); }

.form {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-4);
  padding: var(--s-6);
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-4);
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.field input, .field select {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-3);
  background: var(--bg);
  color: var(--text);
  transition: border-color 160ms ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); }
.field input.invalid, .field select.invalid { border-color: #E5484D; background: rgba(229,72,77,0.05); }
.form .btn { width: 100%; padding: 16px; }

/* Submit button states: label / dot-wave loading / success */
.form-submit { position: relative; min-height: 56px; overflow: hidden; transition: background-color 320ms ease, color 320ms ease; }
.form-submit .fs-label, .form-submit .fs-loading, .form-submit .fs-done {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity 220ms ease, transform 320ms cubic-bezier(0.16,1,0.3,1);
}
.form-submit .fs-loading, .form-submit .fs-done { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); pointer-events: none; }
.form-submit.is-loading .fs-label, .form-submit.is-done .fs-label { opacity: 0; transform: translateY(-8px); }
.form-submit.is-loading .fs-loading { opacity: 1; transform: none; }
.form-submit.is-done { background: var(--accent); border-color: var(--accent); color: #fff; cursor: default; }
.form-submit.is-done .fs-done { opacity: 1; transform: none; }
.form-submit .fs-check { width: 20px; height: 20px; flex: 0 0 auto; }
.form-submit.shake { animation: fsShake 420ms ease; }
@keyframes fsShake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }

/* Incomplete-form notice */
.form-warn {
  display: flex; align-items: center; gap: 9px;
  background: rgba(229,72,77,0.08); border: 1px solid rgba(229,72,77,0.28);
  color: #B4262A; border-radius: var(--r-2); padding: 11px 13px;
  font-size: 13px; line-height: 1.4;
  max-height: 0; opacity: 0; margin-top: -10px; padding-top: 0; padding-bottom: 0;
  overflow: hidden; border-width: 0;
  transition: max-height 300ms ease, opacity 220ms ease, margin-top 300ms ease, padding 300ms ease, border-width 200ms ease;
}
.form-warn.show { max-height: 80px; opacity: 1; margin-top: 0; padding-top: 11px; padding-bottom: 11px; border-width: 1px; }
.form-warn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.form-warn b { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .form-submit.shake { animation: none; } }

@media (max-width: 900px) {
  .cta-card { grid-template-columns: minmax(0, 1fr); padding: var(--s-7); }
  .cta-card > * { min-width: 0; }
  .form .row { grid-template-columns: minmax(0, 1fr); }
}

/* ----- Footer ----- */
.footer { background: var(--bg-deep); color: rgba(255,255,255,0.7); padding: var(--s-9) 0 var(--s-6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-6); margin-bottom: var(--s-8); }
.footer-lockup { display: flex; align-items: center; gap: 11px; margin-bottom: var(--s-5); }
.footer-mark { height: 40px; width: auto; }
.footer-word { height: 21px; width: auto; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: var(--t-sm); max-width: 280px; line-height: 1.55; }
.footer h4 { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.5); font-weight: 500; margin: 0 0 var(--s-4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: var(--t-sm); color: rgba(255,255,255,0.8); transition: color 160ms ease; }
.footer ul a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,0.08); font-size: var(--t-sm); color: rgba(255,255,255,0.45); }
.footer-bottom .word {
  font-family: var(--font-display); font-style: italic; font-size: 28px; color: var(--white);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .footer-brand { grid-column: span 2; }
}

/* ----- Tweaks panel ----- */
.tweaks {
  position: fixed; right: 20px; bottom: 20px;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-lg);
  padding: var(--s-5);
  z-index: 100;
  font-size: var(--t-sm);
  display: none;
}
.tweaks.open { display: block; }
.tweaks-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-4); }
.tweaks-head .title { font-weight: 500; font-size: var(--t-sm); }
.tweaks-head button {
  background: none; border: 0; cursor: pointer;
  color: var(--text-3); width: 28px; height: 28px;
  border-radius: 6px;
  display: grid; place-items: center;
}
.tweaks-head button:hover { background: var(--bg-elev); color: var(--text); }
.tweak { margin-bottom: var(--s-4); }
.tweak:last-child { margin-bottom: 0; }
.tweak label { display: block; font-size: var(--t-xs); color: var(--text-3); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--bg-elev);
  border-radius: var(--r-3);
  padding: 3px;
  border: 1px solid var(--hairline);
}
.seg button {
  background: transparent; border: 0; padding: 8px;
  border-radius: 8px;
  color: var(--text-2);
  font-weight: 500; font-size: 12px;
  cursor: pointer;
}
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch.on { border-color: var(--text); }

/* ----- Utility icons (svg sizing) ----- */
.icon { width: 20px; height: 20px; display: inline-block; stroke-width: 1.6; }

/* ============================================================
   SCROLL / PARALLAX choreography
   ============================================================ */

html { scroll-behavior: smooth; }

/* ----- Generic reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--rev-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-soft {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--rev-delay, 0ms);
}
.reveal-soft.in { opacity: 1; transform: translateY(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.94) translateY(60px);
  transition:
    opacity 1100ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.in { opacity: 1; transform: scale(1) translateY(0); }

/* Words reveal (hero title) — transitions on pre-rendered word spans */
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--word-delay, 0ms);
  will-change: opacity, transform;
}
.hero-title.words-in .word { opacity: 1; transform: translateY(0); }

/* ----- Parallax: hero dashboard ----- */
.dashboard-wrap {
  perspective: 1400px;
}
.dashboard-frame {
  transform: perspective(1400px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg));
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms ease;
  will-change: transform;
}

/* ----- ChurchPay terminal scroll-in scale (legacy — no terminal img now) ----- */
/* The pay-vis::before glow opacity is set in the section CSS directly */

/* ----- Stats count-up ----- */
.stat-num { font-variant-numeric: tabular-nums; }

/* ----- Subtle parallax for chrome elements ----- */
.hero-eyebrow {
  transform: translateY(var(--ey-ty, 0));
  transition: transform 80ms linear;
}

/* ----- Section header decoration reveal ----- */
.sec-head h2 .serif {
  display: inline-block;
}

/* ----- Marquee fade in for stats numbers ----- */
.stats-intro h2 .serif {
  display: inline-block;
}

/* ===== Platform cards: new-system menu look ===== */
.plat-card-vis.menu {
  background: #fff;
  padding: 0;
  display: flex;
  align-items: center;
}
.plat-menu { display:flex; flex-direction:column; gap:4px; padding:14px; width:100%; box-sizing:border-box; }
.plat-mrow { display:flex; gap:11px; align-items:flex-start; padding:11px 12px; border-radius:12px; }
.plat-mrow.on { background:#eef3f7; }
.plat-mrow .pm-ic { width:19px; height:19px; flex-shrink:0; color:var(--ink); margin-top:1px; }
.plat-mrow.on .pm-ic { color:var(--brand); }
.plat-mtx { flex:1; min-width:0; }
.plat-mtx b { display:block; font-size:12.5px; font-weight:600; color:var(--ink); letter-spacing:-0.01em; margin-bottom:2px; }
.plat-mtx span { display:block; font-size:11px; line-height:1.35; color:var(--text-3); }
.plat-mrow .pm-chev { width:13px; height:13px; color:#c3d0da; flex-shrink:0; align-self:center; }

/* ===== Hero video caption badge (liquid glass) ===== */
.hero-badge {
  position:absolute; right:24px; bottom:26px; z-index:2;
  display:flex; align-items:center; gap:11px;
  padding:9px 15px 9px 13px;
  border-radius:14px;
  background:rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.22);
  backdrop-filter:saturate(140%) blur(16px);
  -webkit-backdrop-filter:saturate(140%) blur(16px);
  box-shadow:0 6px 24px rgba(3,28,47,0.18);
  color:#fff;
}
.hero-badge .hb-pin { width:16px; height:16px; color:var(--accent); flex-shrink:0; }
.hero-badge b { display:block; font-size:12.5px; font-weight:600; letter-spacing:-0.01em; line-height:1.2; }
.hero-badge span { display:block; font-size:11px; color:rgba(255,255,255,0.72); margin-top:1px; }
@media (max-width:760px){
  .hero-badge { right:16px; left:16px; bottom:14px; padding:8px 13px; width:max-content; max-width:calc(100% - 32px); margin-left:auto; }
  .hero-badge span { font-size:10px; }
}

/* ===== App: 100% personalizável highlight ===== */
.app-badge {
  display:inline-flex; align-items:center; gap:9px;
  margin-top:18px;
  padding:10px 18px; border-radius:999px;
  background:var(--accent); color:#fff;
  font-weight:600; font-size:14px; letter-spacing:-0.01em;
  box-shadow:0 8px 22px rgba(255,88,0,0.28);
}
.app-badge svg { width:16px; height:16px; }

/* Module card hover lift becomes part of scroll reveal */
.module-card.reveal-soft.in { transition-delay: var(--rev-delay, 0ms); }

/* Phone wiggle on scroll (very subtle) */
.phone {
  transform: var(--phone-base) translateY(var(--ph-ty, 0));
  transition: transform 80ms linear;
}
.phone-side { --phone-base: scale(0.86); }
.phone-mid  { --phone-base: translateY(-20px); }
@media (max-width: 900px) {
  .phone-side { --phone-base: none; }
  .phone-mid { --phone-base: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-soft, .reveal-scale, .hero-title .word {
    opacity: 1 !important; transform: none !important;
  }
  .dashboard-frame { --tiltX: 0deg; --tiltY: 0deg; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   MOBILE / TABLET RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .nav { height: 60px; }
  .nav-logo-word { height: 22px; }
}

@media (max-width: 760px) {
  /* Hero */
  .hero-video { min-height: 92svh; }
  .hero-video .hero-inner { padding-top: 110px; padding-bottom: 64px; }
  .hero-tag { font-size: 10px; letter-spacing: 0.12em; }
  .hero-video .hero-title { font-size: clamp(32px, 10vw, 46px); max-width: 100%; }
  .hero-video .hero-sub { font-size: 15px !important; max-width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { width: 100%; white-space: nowrap; padding-left: 14px; padding-right: 14px; }
  /* the nowrap guarantee row was forcing the whole hero wider than the screen */
  .hero-video .hero-inner, .hero-video .hero-copy { max-width: 100%; min-width: 0; }
  .hero-video .hero-foot {
    flex-wrap: wrap; white-space: normal;
    gap: 6px 16px; font-size: 12px; margin-top: 18px;
  }
  .hero-video .hero-foot span { flex: 0 1 auto; min-width: 0; }
  .hero-cta .btn { width: 100%; }
  .hero-foot { gap: 6px 18px; }
  .hero-scroll { display: none; }

  /* Section rhythm */
  section { padding: 56px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .sec-head > a, .sec-head > .btn { display: none; }

  /* Showcase heading */
  .showcase { padding: 40px 0; }
  .showcase-head { margin-bottom: 22px; }

  /* Stats: 2 cols */
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .stats-intro { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stat-num { font-size: clamp(40px, 13vw, 60px); }

  /* Trust logos smaller */
  .trust-logos { gap: 12px 22px; }
  .trust-logo { font-size: 16px; }

  /* App phones: single, no side phones already hidden <900 */
  .app-stage { gap: 24px; }

  /* ChurchPay */
  .pay-grid { gap: 32px; }
  .pay .feats { grid-template-columns: 1fr 1fr; }

  /* Testimonials / plans / footer already stack via their own rules */
  .midcta-inner { padding: 28px 24px; }
  .cta-card { padding: 28px 22px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}

@media (max-width: 460px) {
  .stats .container { grid-template-columns: 1fr 1fr; }
  .pay .feats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-foot { flex-direction: column; gap: 8px; }
}

/* Mobile overflow safety net: no page ever scrolls sideways */
@media (max-width: 900px) {
  html, body { overflow-x: clip; max-width: 100%; }
  .stats .container, .footer-grid, .plans, .app-stage, .pay-grid, .sec-grid, .cta-card, .form .row { min-width: 0; }
  .stats .container > *, .footer-grid > *, .plans > *, .app-stage > *, .pay-grid > * { min-width: 0; }
}

/* Mobile buttons: never overflow, always a comfortable tap target */
@media (max-width: 700px) {
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    min-height: 48px;
    padding: 13px 20px;
    font-size: 14.5px;
    line-height: 1.25;
  }
  .btn-lg { padding: 15px 22px; font-size: 15px; }
  .btn-sm { padding: 11px 16px; font-size: 13.5px; min-height: 44px; }
  .btn-link { min-height: 0; padding: 0; }
  .pay-cta .btn, .midcta .btn, .desktop-only-note .btn, .plan .btn, .form .btn { width: 100%; }
  .pay-cta { display: flex; }
}
