:root {
  --navy: #0F172A;
  --navy-2: #111c33;
  --navy-3: #1a2540;
  --white: #FFFFFF;
  --blue: #2563EB;
  --blue-hover: #1d4ed8;
  --emerald: #059669;
  --emerald-soft: #10b981;
  --light-slate: #F1F5F9;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --bitcoin: #f7931a;
  --bg: #ffffff;
  --fg: #0F172A;
  --muted: #64748B;
  --border: #e2e8f0;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 12px -2px rgba(15,23,42,.08), 0 2px 4px -2px rgba(15,23,42,.05);
  --shadow-lg: 0 20px 40px -12px rgba(15,23,42,.18), 0 8px 16px -8px rgba(15,23,42,.12);
  --shadow-xl: 0 30px 60px -20px rgba(15,23,42,.30), 0 12px 24px -12px rgba(15,23,42,.18);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
}
h1, h2, h3, h4 { color: var(--navy); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(40px, 5.4vw, 64px); letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2vw, 26px); letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 980px; margin: 0 auto; padding: 0 28px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 8px; font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: white; box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 1px 2px rgba(37,99,235,.3); }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 6px 16px -4px rgba(37,99,235,.45); }
.btn-ghost { background: transparent; color: var(--slate-700); }
.btn-ghost:hover { color: var(--navy); background: var(--slate-100); }
.btn-outline { background: white; color: var(--navy); border-color: var(--slate-200); }
.btn-outline:hover { border-color: var(--slate-300); background: var(--slate-50); }
.btn-dark { background: var(--navy); color: white; }
.btn-dark:hover { background: #1e293b; }
.btn-lg { padding: 14px 22px; font-size: 15.5px; border-radius: 10px; }

/* Eyebrow */
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px;
  font-weight: 600; color: var(--blue);
}
.eyebrow.muted { color: var(--slate-500); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ Announcement bar ============ */
.announce {
  background: linear-gradient(90deg, #0F172A 0%, #1e293b 50%, #0F172A 100%);
  color: #cbd5e1;
  font-size: 13px;
  text-align: center;
  padding: 9px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.announce a { color: white; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.25); padding-bottom: 1px; }
.announce a:hover { border-bottom-color: var(--blue); }
.announce .dot { display:inline-block; width:6px; height:6px; border-radius:50%; background: var(--emerald-soft); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(16,185,129,.18); }

/* ============ Site chrome (announce + nav, fixed) ============ */
.site-chrome {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.site-chrome.is-hidden { transform: translateY(-100%); }
.site-chrome.menu-open.is-hidden { transform: translateY(0); }

/* ============ Top nav (lives inside .site-chrome) ============ */
.nav {
  position: relative; z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand { display:flex; align-items:center; gap:9px; font-weight: 700; color: var(--navy); font-size: 18px; letter-spacing: -0.01em; }
.brand img.flash-logo { height: 26px; width: auto; display: block; }
.nav-links { display:flex; gap: 4px; align-items:center; }
.nav-links a {
  color: var(--slate-600); padding: 7px 12px; border-radius: 6px; font-size: 14.5px; font-weight: 500;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--navy); background: var(--slate-100); }
.nav-links a.active { color: var(--navy); background: var(--slate-100); }
.nav-cta { display:flex; gap: 6px; align-items:center; }
.nav-cta .nav-subtle {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-cta .nav-subtle:hover { color: var(--navy); background: var(--slate-100); }

/* Hamburger button (shown on small screens only) */
.nav-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  transition: border-color .15s;
}
.nav-hamburger:hover { border-color: var(--slate-300); }
.nav-hamburger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform .25s, opacity .2s;
}
.nav.menu-open .nav-hamburger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.menu-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-hamburger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile menu panel */
.nav-mobile-panel {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 32px -12px rgba(15,23,42,.12);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform .25s ease, opacity .2s ease, visibility 0s linear .25s;
  z-index: 48;
}
.nav.menu-open .nav-mobile-panel {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform .25s ease, opacity .2s ease, visibility 0s linear 0s;
}
.nav-mobile-content {
  padding: 12px 28px 24px;
  display: flex;
  flex-direction: column;
  max-width: 1240px;
  margin: 0 auto;
}
.nav-mobile-link {
  font-size: 16px;
  color: var(--navy);
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--slate-100);
  text-decoration: none;
}
.nav-mobile-link.active { color: var(--blue); }
.nav-mobile-link:hover { color: var(--blue); }
.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--slate-100);
}
.nav-mobile-actions .btn { justify-content: center; width: 100%; }
.nav-mobile-subtle {
  color: var(--slate-500);
  font-size: 13.5px;
  text-align: center;
  padding: 10px 0;
  text-decoration: none;
  margin-top: 4px;
}
.nav-mobile-subtle:hover { color: var(--navy); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  z-index: 47;
  animation: navFadeIn .2s ease;
}
@keyframes navFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Show inline nav links on desktop, hamburger menu on mobile/tablet */
@media (max-width: 980px) {
  .nav-hamburger { display: flex; }
  .nav-cta .nav-subtle { display: none; }
  .nav-cta .btn-outline { display: none; }
  .nav-cta { gap: 8px; }
}
@media (min-width: 981px) {
  .nav-mobile-panel,
  .nav-backdrop,
  .nav-hamburger { display: none !important; }
}
@media (max-width: 980px) { .nav-links { display:none; } }

/* ============ Hero (homepage) ============ */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 60% at 80% 0%, #1e3a8a 0%, #0F172A 45%, #060c1d 100%);
  color: white;
  padding: 72px 0 100px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hero canvas#mesh, .hero canvas.mesh { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 50% 110%, rgba(37,99,235,.18), transparent 70%),
    linear-gradient(180deg, transparent 60%, rgba(15,23,42,.4));
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 1080px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero h1 { color: white; }
.hero h1 .accent { background: linear-gradient(180deg, #fff 0%, #c7d2fe 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: #cbd5e1; font-size: 18px; line-height: 1.65; max-width: 560px; margin-top: 22px; }
.hero .eyebrow { color: #93c5fd; }
.hero .ctas { display:flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero .social { color: #94a3b8; font-size: 13.5px; margin-top: 28px; display:flex; align-items:center; gap: 12px; flex-wrap: wrap; }
.hero .social .pill-soft { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #cbd5e1; font-weight: 500; font-size: 12.5px; }

/* Page hero (subpages — shorter) */
.page-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(100% 60% at 80% 0%, #1e3a8a 0%, #0F172A 50%, #060c1d 100%);
  color: white;
  padding: 84px 0 72px;
  text-align: left;
}
.page-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; pointer-events: none; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(15,23,42,.3));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: #93c5fd; }
.page-hero h1 { color: white; font-size: clamp(36px, 4.6vw, 56px); margin-top: 14px; max-width: 880px; }
.page-hero p.lead { color: #cbd5e1; font-size: 18px; line-height: 1.65; margin-top: 18px; max-width: 720px; }
.page-hero .ctas { display:flex; gap:12px; margin-top: 28px; flex-wrap: wrap; }

/* ============ Mockup chrome shared ============ */
.mockup {
  border-radius: 14px;
  background: white;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55), 0 20px 40px -20px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden;
  position: relative;
}
.mockup .titlebar {
  height: 28px; background: #0b1220; display:flex; align-items:center; padding: 0 12px; gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.mockup .titlebar .dot { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.mockup .titlebar .url { color: #64748b; font-size: 11px; margin-left: 12px; font-family: 'JetBrains Mono', monospace; }

/* Responsive scale wrapper for fixed-width mockups */
.mockup-scale { position: relative; }
.mockup-scale-inner { transform-origin: top left; }

/* ============ Section base ============ */
section.block { padding: 96px 0; }
section.block.tight { padding: 72px 0; }
section.dark { background: var(--navy); color: #cbd5e1; }
section.dark h2, section.dark h3 { color: white; }
section.tinted { background: var(--slate-50); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--slate-500); font-size: 18px; margin-top: 14px; }
section.dark .section-head p { color: #94a3b8; }

/* ============ Problem 3-col ============ */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .three-col { grid-template-columns: 1fr; } }
.problem-card { padding: 28px; border-radius: 12px; background: white; border: 1px solid var(--border); }
.problem-card .icon { width: 36px; height: 36px; border-radius: 8px; background: var(--slate-100); color: var(--slate-700); display:grid; place-items:center; margin-bottom: 18px; }
.problem-card h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); margin-bottom: 10px; }
.problem-card p { color: var(--slate-600); font-size: 15px; line-height: 1.7; }

/* ============ Solution capability grid ============ */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 800px) { .cap-grid { grid-template-columns: 1fr; } }
.cap {
  padding: 28px; border-radius: 14px; background: white;
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.cap:hover { border-color: var(--slate-300); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cap .icon-tile {
  width: 38px; height: 38px; border-radius: 9px;
  display:grid; place-items:center; margin-bottom: 16px;
  background: linear-gradient(180deg, #eff6ff, #dbeafe); color: var(--blue);
  border: 1px solid #bfdbfe;
}
.cap.em .icon-tile { background: linear-gradient(180deg, #ecfdf5, #d1fae5); color: var(--emerald); border-color: #a7f3d0; }
.cap.purple .icon-tile { background: linear-gradient(180deg, #f5f3ff, #ede9fe); color: #7c3aed; border-color: #ddd6fe; }
.cap.amber .icon-tile { background: linear-gradient(180deg, #fffbeb, #fef3c7); color: #d97706; border-color: #fde68a; }
.cap h3 { color: var(--navy); margin-bottom: 8px; }
.cap p { color: var(--slate-600); font-size: 15px; line-height: 1.7; }

/* ============ How it works ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 26px; border-radius: 12px; background: white; border: 1px solid var(--border); position: relative;
}
.step .num {
  width: 28px; height: 28px; border-radius: 8px; background: var(--navy); color: white;
  display:grid; place-items:center; font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.step h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--slate-600); line-height: 1.65; }

/* ============ Growth ============ */
.growth { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .growth { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .growth { grid-template-columns: 1fr; } }
.stage {
  padding: 26px; border-radius: 14px; position: relative;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.stage .label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #93c5fd; font-weight: 600; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.stage h3 { color: white; font-size: 22px; margin: 6px 0 12px; }
.stage p { color: #94a3b8; font-size: 14px; line-height: 1.6; }
.stage .price { color: white; font-weight: 600; font-size: 13px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.stage:nth-child(1) { border-color: rgba(96,165,250,.2); }
.stage:nth-child(2) { border-color: rgba(96,165,250,.32); background: linear-gradient(180deg, rgba(37,99,235,.10), rgba(37,99,235,.02)); }
.stage:nth-child(3) { border-color: rgba(16,185,129,.32); background: linear-gradient(180deg, rgba(16,185,129,.10), rgba(16,185,129,.02)); }
.stage:nth-child(4) { border-color: rgba(167,139,250,.4); background: linear-gradient(180deg, rgba(124,58,237,.14), rgba(124,58,237,.02)); }
.stage.coming { opacity: 0.78; }
.stage .soon-tag {
  display:inline-flex; align-items:center; gap:4px;
  font-size: 10px; padding: 2px 7px; border-radius: 999px;
  background: rgba(251, 191, 36, 0.12); color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-weight: 600; letter-spacing: .04em;
}

/* ============ Audience ============ */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .audience { grid-template-columns: 1fr; } }
.aud {
  padding: 32px; border-radius: 14px; background: white; border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.aud:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.aud .pic {
  height: 140px; border-radius: 10px; margin-bottom: 22px;
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.aud h3 { color: var(--navy); margin-bottom: 8px; }
.aud p { color: var(--slate-600); font-size: 15px; line-height: 1.65; }

/* ============ Quotes ============ */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 800px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  padding: 28px; border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.quote .body { color: white; font-size: 18px; line-height: 1.55; letter-spacing: -0.01em; }
.quote .who { color: #94a3b8; font-size: 13.5px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06); display:flex; align-items:center; gap:10px; }
.quote .who .av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #334155, #1e293b); display:grid; place-items:center; font-size: 11px; color: #cbd5e1; font-weight: 600; }

.logos { display:flex; flex-wrap:wrap; gap: 36px; align-items:center; justify-content:center; opacity: .65; margin-top: 56px; }
.logos .lg { font-family: 'Inter', sans-serif; font-weight: 700; color: #94a3b8; letter-spacing: -0.02em; font-size: 18px; }

/* ============ Final CTA ============ */
.final-cta {
  text-align: center;
  padding: 96px 28px;
  position: relative; overflow: hidden;
  background: radial-gradient(80% 100% at 50% 0%, #1e3a8a 0%, #0F172A 60%, #060c1d 100%);
}
.final-cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; pointer-events: none; }
.final-cta h2, .final-cta p { position: relative; z-index: 2; color: white; }
.final-cta p { color: #cbd5e1; max-width: 540px; margin: 16px auto 32px; }
.final-cta .ctas { position: relative; z-index: 2; display:flex; gap: 12px; justify-content:center; flex-wrap:wrap; }
.final-cta .alt { position: relative; z-index: 2; margin-top: 28px; display:flex; gap: 22px; justify-content:center; flex-wrap:wrap; font-size: 14px; color: #94a3b8; }
.final-cta .alt a { color: #93c5fd; }
.final-cta .alt a:hover { color: white; }

/* ============ Footer ============ */
footer.foot { background: #060c1d; color: #94a3b8; padding: 64px 0 28px; border-top: 1px solid rgba(255,255,255,.06); }
.foot-grid { display:grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot h4 { color: white; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display:flex; flex-direction:column; gap: 10px; }
.foot ul a { color: #cbd5e1; font-size: 14px; }
.foot ul a:hover { color: white; }
.foot .brand-block p { color: #64748b; font-size: 13.5px; line-height: 1.6; max-width: 280px; margin-top: 16px; }
.foot .brand-block img.flash-logo { height: 26px; width: auto; filter: brightness(0) invert(1); }
.foot .bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.06); display:flex; justify-content: space-between; flex-wrap:wrap; gap: 16px; font-size: 12.5px; color: #475569; }

/* ============ Code block (Connect teaser) ============ */
.code-card {
  background: #0b1220;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; line-height: 1.7;
  color: #cbd5e1;
  overflow: hidden;
}
.code-card .head {
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.06);
  color: #64748b; font-size: 11.5px; font-family: 'JetBrains Mono';
}
.code-card .body { padding: 16px 18px; overflow-x: auto; }
.code-card .kw { color: #c084fc; }
.code-card .str { color: #86efac; }
.code-card .num { color: #fbbf24; }
.code-card .com { color: #64748b; font-style: italic; }
.code-card .key { color: #93c5fd; }

/* ============ Pricing ============ */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.price-card {
  padding: 32px 28px; border-radius: 16px; background: white; border: 1px solid var(--border);
  display:flex; flex-direction:column; gap: 18px;
}
.price-card.featured { border: 1.5px solid var(--blue); box-shadow: 0 20px 40px -16px rgba(37,99,235,.18); position: relative; }
.price-card.featured::before {
  content: "Recommended"; position: absolute; top: -11px; left: 24px;
  background: var(--blue); color: white; font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .05em;
}
.price-card .tier { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--slate-500); font-weight: 600; }
.price-card .price { font-size: 38px; font-weight: 700; color: var(--navy); letter-spacing: -0.025em; line-height: 1; }
.price-card .price small { font-size: 15px; color: var(--slate-500); font-weight: 500; }
.price-card .desc { color: var(--slate-600); font-size: 14.5px; }
.price-card ul { list-style: none; padding: 0; margin: 8px 0 0; display:flex; flex-direction:column; gap: 10px; }
.price-card ul li { font-size: 14px; color: var(--slate-700); display:flex; gap: 9px; align-items:flex-start; line-height: 1.5; }
.price-card ul li svg { flex-shrink: 0; margin-top: 2px; }

/* ============ Mockup-specific (treasury / transactions / invoicing) ============ */
.dash-frame {
  background: #fafbfc; display: grid; grid-template-columns: 200px 1fr;
  min-height: 480px;
  font-size: 13px;
}
.dash-side { background: white; border-right: 1px solid var(--border); padding: 20px 14px; display:flex; flex-direction:column; gap: 4px; }
.dash-side .brand { font-size: 14px; padding: 0 8px 16px; }
.dash-side .brand img.flash-logo { height: 18px; width: auto; }
.dash-side .label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-400); padding: 12px 8px 6px; }
.dash-side .item { display:flex; align-items:center; gap: 10px; padding: 7px 9px; border-radius: 6px; color: var(--slate-600); font-weight: 500; font-size: 13px; }
.dash-side .item.active { background: var(--slate-100); color: var(--navy); }
.dash-side .item svg { color: var(--slate-400); }
.dash-side .item.active svg { color: var(--navy); }
.dash-main { padding: 20px 24px; overflow: hidden; min-width: 0; }
.dash-top { display:flex; align-items:center; justify-content:space-between; margin-bottom: 18px; }
.dash-top .crumbs { color: var(--slate-400); font-size: 12px; }
.dash-top .actions { display:flex; gap: 6px; }
.dash-top .pill-btn { padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border); font-size: 12px; color: var(--slate-700); background: white; }
.dash-top .pill-btn.dark { background: var(--navy); color: white; border-color: var(--navy); }

.stat-row { display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.stat {
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: white;
}
.stat .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-500); font-weight: 500; }
.stat .val { font-size: 19px; font-weight: 700; color: var(--navy); margin-top: 6px; letter-spacing: -0.01em; }
.stat .sub { font-size: 11px; color: var(--emerald); margin-top: 4px; font-weight: 500; }
.stat .sub.neg { color: #dc2626; }

/* On-chain pill */
.pill { display:inline-flex; align-items:center; gap: 4px; font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 500; }
.pill.up { background: #fee2e2; color: #b91c1c; }
.pill.down { background: #d1fae5; color: #065f46; }
.pill.confirmed { background: #ecfdf5; color: var(--emerald); }
.pill.member { background: #dbeafe; color: #1d4ed8; }
.pill.owner { background: #fef3c7; color: #b45309; }
.pill.connected { background: #d1fae5; color: var(--emerald); }
.pill.preview { background: #dbeafe; color: #1d4ed8; }
.pill.soon { background: #fef3c7; color: #b45309; }

/* Transaction rows */
.tx-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tx-table thead th { text-align: left; font-weight: 500; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-500); padding: 10px 8px; border-bottom: 1px solid var(--border); }
.tx-table tbody td { padding: 10px 8px; border-bottom: 1px solid var(--slate-100); color: var(--slate-700); }
.tx-table tbody tr:hover td { background: var(--slate-50); }
.tx-table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.tx-table .pos { color: var(--emerald); }
.tx-table .neg { color: #dc2626; }

.scroll-fade { mask-image: linear-gradient(to bottom, black 80%, transparent); -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent); }

/* Counter / chart */
.chart-box { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.spark { width: 100%; height: 90px; }

/* Connector visual */
.connect-vis {
  position: relative; padding: 24px; border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid var(--border);
}

.badges-row { display:flex; flex-wrap:wrap; gap: 10px; justify-content:center; margin-top: 32px; }
.badge {
  display:inline-flex; align-items:center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: white; border: 1px solid var(--border); font-size: 13px; color: var(--slate-700); font-weight: 500;
}
.badge svg { color: var(--emerald); }

/* FAQ */
.faq { display:flex; flex-direction:column; gap: 10px; max-width: 820px; margin: 0 auto; }
details.faq-item {
  background: white; border: 1px solid var(--border); border-radius: 10px;
  padding: 0;
}
details.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600;
  color: var(--navy); display:flex; justify-content:space-between; align-items:center;
  font-size: 15.5px;
}
details.faq-item summary::-webkit-details-marker { display:none; }
details.faq-item summary::after { content: "+"; color: var(--slate-400); font-size: 22px; font-weight: 300; transition: transform .2s; }
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .answer { padding: 0 22px 20px; color: var(--slate-600); font-size: 14.5px; line-height: 1.7; }

/* Contact form */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 640px; margin: 0 auto; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display:block; font-size: 13px; font-weight: 500; color: var(--slate-700); margin-bottom: 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 14.5px; color: var(--navy); background: white;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.contact-form textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
@media (max-width: 600px) { .contact-form { grid-template-columns: 1fr; } }

/* Utility */
@media (max-width: 720px) { .hide-on-small { display: none; } }

/* Tweaks panel respects edits — apply via vars */
body[data-density="cozy"] section.block { padding: 84px 0; }
body[data-density="comfy"] section.block { padding: 96px 0; }
body[data-density="spacious"] section.block { padding: 120px 0; }

/* Hero mockup responsive scaling — fixed-width product UI fits any column */
.hero-mockup-wrap {
  width: 100%;
  position: relative;
}
.hero-mockup-wrap .mockup {
  max-width: 100%;
}
.hero-mockup-wrap .dash-frame { min-width: 0; }

/* On narrow viewports, collapse sidebar in mockups */
@media (max-width: 720px) {
  .dash-frame { grid-template-columns: 1fr !important; }
  .dash-side { display: none; }
}

/* Payment Link Mockup */
.paylink-mockup {
  display: grid; grid-template-columns: 1fr 1fr;
  background: white; min-height: 540px;
}
@media (max-width: 720px) { .paylink-mockup { grid-template-columns: 1fr; } }
.paylink-left { padding: 32px 32px 28px; border-right: 1px solid var(--border); }
.paylink-right { padding: 28px 28px 24px; background: #f8fafc; }
@media (max-width: 720px) { .paylink-left { border-right: none; border-bottom: 1px solid var(--border); } }

/* Coming-soon ribbon */
.cs-ribbon {
  display:inline-flex; align-items:center; gap:6px;
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: rgba(251, 191, 36, 0.14); color: #b45309;
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}

/* ============================================================
   PHASE 1 — Slick fintech upgrades
   ============================================================ */

/* Numeric utility — apply to anything with raw digits */
.tnum, .live-balance, .live-feed, .signal-num, .btc-num, .stat .val,
.dash-frame .num, .dash-frame [data-count], .price-card .price,
.tx-table tbody td.num, .lf-row [class*="num"] {
  font-variant-numeric: tabular-nums;
}

/* Reveal — blur-in upgrade */
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.6,.2,1), filter .7s ease; filter: blur(6px); }
.reveal.in { filter: blur(0); }

/* ----------- Hero v2 ----------- */
.hero-v2 {
  position: relative; overflow: hidden;
  background: #0a1024;
  color: white;
  padding: 88px 0 110px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  --mx: 70%; --my: 30%;
}
.hero-bg-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(148,163,184,0.18) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  opacity: .5;
}
.hero-bg-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 60% at 75% 30%, rgba(37,99,235,.35), transparent 70%),
    radial-gradient(50% 80% at 30% 100%, rgba(16,185,129,.10), transparent 70%);
}
.hero-cursor-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(280px 280px at var(--mx) var(--my), rgba(96,165,250,.18), transparent 70%);
  transition: background-position .15s linear;
}
.hero-v2-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center;
}
@media (max-width: 1080px) { .hero-v2-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero-v2 h1 { color: white; }
.hero-v2 h1 .accent { background: linear-gradient(180deg, #fff 0%, #c7d2fe 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-v2 p.lead { color: #cbd5e1; font-size: 18px; line-height: 1.65; max-width: 560px; margin-top: 22px; }
.hero-v2 .ctas { display:flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: #93c5fd; padding: 6px 12px; border-radius: 999px;
  background: rgba(96,165,250,.10); border: 1px solid rgba(96,165,250,.22);
  font-size: 11.5px;
}
.live-dot {
  display:inline-block; width:6px; height:6px; border-radius:50%;
  background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.18);
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,.05); }
}
.btn-glow {
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 1px 2px rgba(37,99,235,.4), 0 8px 24px -8px rgba(37,99,235,.6);
}
.btn-glow::after {
  content: ""; position: absolute; inset: -2px; border-radius: 12px;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.4) 50%, transparent 65%);
  background-size: 200% 100%; background-position: -100% 0;
  pointer-events: none; opacity: 0; transition: opacity .3s;
  mask: linear-gradient(black, black) content-box, linear-gradient(black, black);
  mask-composite: exclude; -webkit-mask-composite: xor;
  padding: 2px;
}
.btn-glow:hover::after { opacity: 1; animation: btnSheen 1.1s ease-out forwards; }
@keyframes btnSheen { to { background-position: 200% 0; } }
.btn-quiet { color: #cbd5e1; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.03); }
.btn-quiet:hover { background: rgba(255,255,255,.06); color: white; }

.trust-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #94a3b8;
}
.trust-strip > span { display: inline-flex; align-items: center; gap: 6px; }
.trust-strip .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: #475569; gap: 0; }

/* ----------- Live mockup ----------- */
.mockup-live { box-shadow: 0 50px 100px -30px rgba(0,0,0,.7), 0 25px 50px -25px rgba(37,99,235,.25), 0 0 0 1px rgba(255,255,255,.06); }
.mockup-live .titlebar { position: relative; }
.live-pill {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(16,185,129,.14); color: #10b981;
  font-size: 10.5px; font-weight: 600; font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(16,185,129,.25);
}
.live-pill .live-dot { width: 5px; height: 5px; }

.btc-ticker {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  padding: 4px 10px; border-radius: 6px;
  background: var(--slate-100); color: var(--slate-700); font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.btc-num { color: var(--navy); font-weight: 600; transition: color .3s; }

.live-hero-card {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 100%);
  color: white; border-radius: 12px; padding: 18px 20px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.live-hero-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(96,165,250,.2), transparent 60%);
  pointer-events: none;
}
.live-balance {
  font-size: 30px; font-weight: 700; letter-spacing: -0.025em;
  font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums;
  color: white; margin-top: 4px; line-height: 1;
}
.live-ledger-mini { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.lm-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px;
  font-size: 10.5px; font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  align-items: center;
}
.lm-dot { width: 7px; height: 7px; border-radius: 50%; }

.live-feed { max-height: 200px; overflow: hidden; position: relative; }
.live-feed::after {
  content: ""; position: absolute; inset: auto 0 0; height: 30px;
  background: linear-gradient(180deg, transparent, white);
  pointer-events: none;
}
.lf-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--slate-100);
  position: relative;
  transition: background .8s ease;
}
.lf-row:last-child { border-bottom: none; }
.lf-row.is-new {
  background: linear-gradient(90deg, rgba(16,185,129,.08), transparent 70%);
  animation: lfFlash .8s ease-out;
}
@keyframes lfFlash {
  0% { transform: translateY(-6px); opacity: 0; background: rgba(16,185,129,.18); }
  100% { transform: translateY(0); opacity: 1; }
}
.lf-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}

/* ----------- Signal counter strip ----------- */
.signal-strip {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 36px 0 32px;
}
.signal-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid var(--border);
}
@media (max-width: 880px) { .signal-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.signal-stat {
  display: flex; flex-direction: column; gap: 4px;
}
.signal-num {
  font-size: 30px; font-weight: 700; color: var(--navy);
  letter-spacing: -0.025em; line-height: 1;
  font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums;
}
.signal-lbl { color: var(--slate-500); font-size: 13px; }

.logo-strip {
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center;
  margin-top: 28px;
}
.logo-item {
  font-family: 'Inter', sans-serif; font-weight: 700;
  color: var(--slate-400); letter-spacing: -0.02em; font-size: 17px;
  opacity: .8;
  transition: color .2s;
}
.logo-item:hover { color: var(--slate-700); }

/* ----------- Problem v2 ----------- */
.problem-v2 { padding: 96px 0 120px; background: white; }
.pv2-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: flex-start;
}
@media (max-width: 980px) { .pv2-grid { grid-template-columns: 1fr; } }
.pv2-sticky {
  position: sticky; top: 90px; height: 480px;
}
@media (max-width: 980px) { .pv2-sticky { position: relative; top: auto; height: 360px; } }
.pv2-scroll { display: flex; flex-direction: column; gap: 96px; padding: 40px 0 60px; }
.pv2-block { padding-left: 36px; position: relative; }
.pv2-block::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: -32px;
  width: 1px; background: linear-gradient(180deg, var(--slate-300), transparent);
}
.pv2-num {
  position: absolute; left: -8px; top: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: white; border: 2px solid var(--slate-300);
  font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700;
  color: var(--slate-600);
  display: grid; place-items: center;
}
.pv2-block.in .pv2-num { border-color: var(--blue); color: var(--blue); }
.pv2-block h3 { font-size: 24px; color: var(--navy); margin-bottom: 12px; letter-spacing: -0.02em; }
.pv2-block p { font-size: 16px; line-height: 1.7; color: var(--slate-600); }

.pv2-cta {
  margin-top: 24px; padding-left: 36px;
  display: flex; align-items: center; gap: 14px;
  color: var(--slate-500); font-size: 14.5px; font-style: italic;
}
.pv2-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy); color: white;
  display: grid; place-items: center; font-size: 14px;
  animation: bounceDown 1.6s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Diorama */
.diorama {
  position: relative; width: 100%; height: 100%;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  border-radius: 16px; border: 1px solid var(--border);
  overflow: hidden;
}
.diorama-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}
.diorama-lines { position: absolute; inset: 0; pointer-events: none; }
.diorama-tile {
  position: absolute; background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px -8px rgba(15,23,42,.18), 0 2px 4px rgba(15,23,42,.06);
  padding: 10px 12px;
  font-size: 11px;
  width: 178px;
  animation: tileFloat 6s ease-in-out infinite;
}
.diorama-tile .dt-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--slate-100);
}
.diorama-tile .dt-x { color: var(--slate-400); cursor: default; }
.diorama-tile .dt-row {
  display: flex; justify-content: space-between; padding: 3px 0;
  color: var(--slate-600); font-size: 11px;
}
.diorama-tile .dt-row b { color: var(--navy); font-family: 'JetBrains Mono'; font-variant-numeric: tabular-nums; font-weight: 600; }
.diorama-tile .dt-bar { background: var(--slate-100); border-radius: 3px; height: 4px; margin-top: 6px; overflow: hidden; }
.diorama-tile .dt-bar > div { height: 100%; background: var(--bitcoin); border-radius: 3px; }
.diorama-tile .dt-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px;
  font-family: 'JetBrains Mono'; font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}
.diorama-tile .dt-grid > div {
  background: white; padding: 3px 5px; border: 1px solid var(--slate-100);
  color: var(--slate-700);
}
.diorama-tile .dt-grid > div:nth-child(-n+3) { background: var(--slate-50); font-weight: 600; color: var(--navy); }
.diorama-tile .dt-csv {
  font-family: 'JetBrains Mono'; font-size: 9.5px;
  color: var(--slate-600); white-space: pre; line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.diorama-tile .dt-em {
  font-size: 11px; color: var(--slate-700); font-weight: 500;
  padding: 4px 0;
}
.diorama-tile .dt-em-meta {
  font-size: 10.5px; color: var(--slate-500); font-style: italic;
  padding-top: 2px;
}

.t-kraken { top: 6%; left: 6%; transform: rotate(-3deg); animation-delay: 0s; }
.t-sheet { top: 8%; right: 6%; transform: rotate(2deg); animation-delay: -1.5s; }
.t-csv { top: 38%; left: 18%; transform: rotate(1deg); animation-delay: -3s; width: 200px; }
.t-qb { bottom: 8%; right: 8%; transform: rotate(-2deg); animation-delay: -2s; }
.t-email { bottom: 12%; left: 4%; transform: rotate(3deg); animation-delay: -4s; }

@keyframes tileFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}

/* ----------- Product Tour ----------- */
.tour-grid {
  display: grid; grid-template-columns: 320px 1fr; gap: 36px;
  align-items: flex-start;
}
@media (max-width: 980px) { .tour-grid { grid-template-columns: 1fr; gap: 24px; } }
.tour-tabs {
  display: flex; flex-direction: column; gap: 8px;
}
.tour-tab {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: white; border: 1px solid var(--border);
  font-family: inherit; text-align: left; color: var(--slate-700);
  position: relative; overflow: hidden;
  transition: border-color .2s, background .2s, transform .15s;
}
.tour-tab:hover { border-color: var(--slate-300); }
.tour-tab.is-active {
  border-color: var(--blue);
  background: linear-gradient(180deg, #eff6ff 0%, white 100%);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.tour-tab-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--slate-100); color: var(--slate-600);
  display: grid; place-items: center; flex-shrink: 0;
  margin-top: 2px;
}
.tour-tab.is-active .tour-tab-icon {
  background: var(--blue); color: white;
}
.tour-tab-label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tour-tab-name { font-weight: 600; font-size: 14px; color: var(--navy); }
.tour-tab-head { font-size: 12.5px; color: var(--slate-500); line-height: 1.45; }
.tour-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: rgba(37,99,235,.08);
}
.tour-progress > span {
  display: block; height: 100%; background: var(--blue);
  transition: width .1s linear;
}

.tour-stage { position: relative; min-height: 460px; }
.tour-stage-inner { position: relative; }
.tour-panel {
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.6,.2,1);
  pointer-events: none;
  position: absolute; inset: 0;
}
.tour-panel.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; position: relative; }
.tour-panel .mockup {
  box-shadow: 0 30px 60px -20px rgba(15,23,42,.30), 0 12px 24px -12px rgba(15,23,42,.18), 0 0 0 1px rgba(15,23,42,.04);
}
.tour-callouts {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 18px;
}
.tour-callout {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  background: white; border: 1px solid var(--border);
  font-size: 12px; color: var(--slate-700); font-weight: 500;
}
.tour-callout svg { color: var(--emerald); }

/* ----------- How It Works v2 ----------- */
.howv2-track { position: relative; padding-top: 12px; }
.howv2-line { position: absolute; left: 0; right: 0; top: 60px; width: 100%; height: 60px; }
.howv2-path {
  stroke-dashoffset: 100;
  animation: drawLine 2.4s ease-out forwards;
  animation-delay: .3s;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.howv2-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative; z-index: 2;
}
@media (max-width: 900px) { .howv2-steps { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 560px) { .howv2-steps { grid-template-columns: 1fr; } }
.howv2-step {
  background: white; border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 22px 24px; text-align: left; position: relative;
}
.howv2-num {
  position: absolute; top: -12px; left: 22px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); color: white;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  border: 2px solid white;
}
.howv2-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  color: var(--blue); border: 1px solid #bfdbfe;
  display: grid; place-items: center; margin-bottom: 14px;
}
.howv2-step h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.howv2-step p { font-size: 13.5px; color: var(--slate-600); line-height: 1.6; }

/* ----------- Audience v2 ----------- */
.audv2 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: flex-start;
}
@media (max-width: 980px) { .audv2 { grid-template-columns: 1fr; } }
.audv2-card {
  background: white; border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.audv2-card:hover { border-color: var(--slate-300); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.audv2-card.is-open { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.06), var(--shadow-lg); }
.audv2-pic {
  height: 96px; border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 18px; position: relative; overflow: hidden;
}
.audv2-em {
  font-size: 38px; font-weight: 700; font-family: 'JetBrains Mono';
}
.audv2-card h3 { color: var(--navy); margin-bottom: 8px; font-size: 19px; }
.audv2-card p { color: var(--slate-600); font-size: 14.5px; line-height: 1.65; }
.audv2-outcomes {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 0;
}
.audv2-card.is-open .audv2-outcomes { max-height: 200px; margin-top: 16px; }
.audv2-outcome {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 13.5px; color: var(--slate-700); font-weight: 500;
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s, transform .3s;
}
.audv2-card.is-open .audv2-outcome { opacity: 1; transform: translateY(0); }
.audv2-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 16px; font-size: 12.5px; color: var(--blue); font-weight: 600;
}

/* ============================================================
   BLOG
   ============================================================ */

/* Topic tag (color-coded by category) */
.topic-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  background: rgba(37,99,235,.08); color: var(--blue);
  border: 1px solid rgba(37,99,235,.18);
  width: fit-content;
}
.topic-tag .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.topic-tag.accounting { color: var(--emerald); background: rgba(5,150,105,.08); border-color: rgba(5,150,105,.20); }
.topic-tag.payments { color: #d97706; background: rgba(217,119,6,.08); border-color: rgba(217,119,6,.22); }

/* On dark backgrounds */
.on-dark .topic-tag, .article-hero .topic-tag {
  background: rgba(96,165,250,.10); color: #93c5fd; border-color: rgba(96,165,250,.22);
}
.on-dark .topic-tag.accounting, .article-hero .topic-tag.accounting {
  background: rgba(16,185,129,.10); color: #6ee7b7; border-color: rgba(16,185,129,.24);
}
.on-dark .topic-tag.payments, .article-hero .topic-tag.payments {
  background: rgba(251,146,60,.10); color: #fdba74; border-color: rgba(251,146,60,.26);
}

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--slate-500); margin-bottom: 16px; }
.breadcrumb a { color: var(--slate-600); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { margin: 0 8px; color: var(--slate-400); }
.on-dark .breadcrumb, .article-hero .breadcrumb, .page-hero .breadcrumb { color: #94a3b8; }
.on-dark .breadcrumb a, .article-hero .breadcrumb a, .page-hero .breadcrumb a { color: #93c5fd; }
.on-dark .breadcrumb a:hover, .article-hero .breadcrumb a:hover, .page-hero .breadcrumb a:hover { color: white; }
.on-dark .breadcrumb .sep, .article-hero .breadcrumb .sep, .page-hero .breadcrumb .sep { color: #475569; }

/* ----- Blog index ----- */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-grid > article { display: flex; }
.blog-card {
  display: flex; flex-direction: column; flex: 1;
  padding: 30px; border-radius: 16px;
  background: white; border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.blog-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 100% 0%, rgba(37,99,235,.04), transparent 70%);
  pointer-events: none; opacity: 0; transition: opacity .25s;
}
.blog-card:hover { border-color: var(--slate-300); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card:hover::before { opacity: 1; }
.blog-card .topic-tag { margin-bottom: 16px; }
.blog-card h2 {
  font-size: 22px; color: var(--navy); margin: 0 0 12px;
  letter-spacing: -0.018em; line-height: 1.25;
}
.blog-card p {
  color: var(--slate-600); font-size: 14.5px; line-height: 1.65; margin: 0;
  flex: 1;
}
.blog-card .meta {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--slate-100);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--slate-500);
}
.blog-card .meta time { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
.blog-card .read-more {
  color: var(--blue); font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
  transition: gap .2s;
}
.blog-card:hover .read-more { gap: 8px; }

/* Blog index hero — softens on top of page-hero */
.page-hero.blog-index { padding: 88px 0 76px; }
.page-hero.blog-index .breadcrumb { margin-bottom: 18px; }

/* ----- Article hero (dark, matches page-hero) ----- */
.article-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(100% 60% at 80% 0%, #1e3a8a 0%, #0F172A 50%, #060c1d 100%);
  color: white;
  padding: 76px 0 64px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.article-hero canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .35; pointer-events: none;
}
.article-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 60% at 80% 30%, rgba(37,99,235,.18), transparent 70%),
    linear-gradient(180deg, transparent 60%, rgba(15,23,42,.4));
}
.article-hero .container { max-width: 820px; position: relative; z-index: 2; }
.article-hero .topic-tag { margin-bottom: 22px; }
.article-hero h1 {
  color: white;
  font-size: clamp(34px, 4.4vw, 52px);
  margin: 0 0 22px;
  line-height: 1.12;
  letter-spacing: -0.028em;
  max-width: 760px;
}
.article-hero .lead {
  font-size: 19px;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 0 32px;
}
.article-hero .byline {
  display: flex; align-items: center; gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 14px; color: #94a3b8;
}
.article-hero .byline .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #2563EB 0%, #1e40af 100%);
  color: white; display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px -2px rgba(37,99,235,.5), 0 0 0 1px rgba(96,165,250,.2);
  font-family: 'Inter', sans-serif;
}
.article-hero .byline .author-name { color: white; font-weight: 600; display: block; margin-bottom: 1px; }
.article-hero .byline .meta-line { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.article-hero .byline .meta-line .dot-sep { display: inline-block; margin: 0 8px; color: #475569; }

/* ----- Article body ----- */
.article-body { padding: 64px 0 80px; background: white; }
.article-prose {
  max-width: 720px; margin: 0 auto; padding: 0 28px;
  color: var(--slate-700); font-size: 17px; line-height: 1.8;
}
.article-prose > p:first-of-type::first-letter {
  font-weight: 700; color: var(--navy);
}
.article-prose h2 {
  font-size: 28px; color: var(--navy); margin: 48px 0 16px;
  letter-spacing: -0.02em; line-height: 1.25;
  scroll-margin-top: 80px;
}
.article-prose h3 {
  font-size: 21px; color: var(--navy); margin: 32px 0 10px;
  letter-spacing: -0.01em; line-height: 1.3;
}
.article-prose p { margin: 0 0 20px; }
.article-prose ul, .article-prose ol { margin: 0 0 22px; padding-left: 22px; }
.article-prose li { margin: 8px 0; padding-left: 4px; }
.article-prose li::marker { color: var(--slate-400); }
.article-prose blockquote {
  border-left: 3px solid var(--blue);
  padding: 12px 0 12px 24px;
  margin: 32px 0;
  color: var(--navy);
  font-size: 19px; line-height: 1.55;
  font-weight: 500;
  font-style: italic;
  background: linear-gradient(90deg, rgba(37,99,235,.04), transparent 80%);
  border-radius: 0 4px 4px 0;
}
.article-prose code {
  background: var(--slate-100); padding: 2px 7px; border-radius: 5px;
  font-size: 0.88em; font-family: 'JetBrains Mono', monospace;
  color: var(--navy); border: 1px solid var(--slate-200);
}
.article-prose a {
  color: var(--blue); text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(37,99,235,.4);
  transition: text-decoration-color .15s;
}
.article-prose a:hover { color: var(--blue-hover); text-decoration-color: var(--blue-hover); }
.article-prose strong { color: var(--navy); font-weight: 600; }
.article-prose em { color: var(--slate-700); }
.article-prose hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 48px 0;
}

/* ----- Related posts ----- */
.related-posts {
  padding: 72px 0 88px; background: var(--slate-50);
  border-top: 1px solid var(--border);
}
.related-posts > .container > h2 {
  text-align: center; font-size: 28px; margin: 0 0 40px;
  color: var(--navy); letter-spacing: -0.02em;
}

/* ============================================================
   OAUTH FLOW VISUAL (Flash Connect page)
   ============================================================ */
.oauth-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .oauth-flow { grid-template-columns: 1fr; gap: 28px; }
  .oauth-flow .oauth-arrow { transform: rotate(90deg); justify-self: center; padding: 4px 0; }
}
.oauth-step { display: flex; flex-direction: column; gap: 18px; }

.oauth-mockup {
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02);
}
.oauth-mockup-flash {
  border-color: rgba(96,165,250,0.28);
  box-shadow: 0 20px 50px -18px rgba(37,99,235,0.4), 0 0 0 1px rgba(96,165,250,0.12);
}
.oauth-titlebar {
  background: rgba(0,0,0,0.35);
  padding: 7px 11px;
  display: flex; align-items: center; gap: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.oauth-titlebar .oauth-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.oauth-titlebar .oauth-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: #94a3b8;
  margin-left: 8px;
  display: inline-flex; align-items: center;
  font-variant-numeric: tabular-nums;
}
.oauth-content {
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.oauth-crumbs {
  font-size: 10.5px; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.oauth-h {
  color: white; font-size: 15px; font-weight: 600; line-height: 1.3;
  letter-spacing: -0.01em;
}
.oauth-sub {
  color: #94a3b8; font-size: 12.5px; line-height: 1.55;
}
.oauth-flash-mark {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 10px; margin-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.oauth-btn-primary {
  background: var(--blue);
  color: white;
  border: none;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  margin-top: 4px;
  align-self: flex-start;
  box-shadow: 0 4px 12px -4px rgba(37,99,235,.5);
}
.oauth-btn-ghost {
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.oauth-perms {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 12px; color: #cbd5e1;
  padding: 11px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
}
.oauth-perms > div {
  display: flex; align-items: center; gap: 8px;
}
.oauth-perms svg { color: #6ee7b7; flex-shrink: 0; }

.oauth-success {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 4px;
}
.oauth-success-row {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px;
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.28);
  border-radius: 8px;
}
.oauth-check {
  width: 22px; height: 22px; border-radius: 50%;
  background: #10b981;
  color: white;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.oauth-token {
  padding: 10px 12px;
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}

.oauth-arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  align-self: center;
  margin-top: 80px; /* roughly aligns with mockup vertical center */
}
@media (max-width: 980px) {
  .oauth-arrow { margin-top: 0; }
}

.oauth-label {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 0 4px;
}
.oauth-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(96,165,250,0.14);
  border: 1px solid rgba(96,165,250,0.30);
  color: #93c5fd;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
  margin-top: 1px;
}
.oauth-step-actor {
  color: white; font-size: 14px; font-weight: 600;
  letter-spacing: -0.005em;
}
.oauth-step-desc {
  color: #94a3b8; font-size: 13px; line-height: 1.6;
  margin-top: 3px;
}
.oauth-step-desc em { color: #cbd5e1; font-style: normal; font-weight: 500; }

/* Connect Use Cases */
.connect-uses {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 980px) { .connect-uses { grid-template-columns: 1fr; } }
.connect-use {
  padding: 26px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.connect-use:hover {
  border-color: rgba(96,165,250,0.28);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -16px rgba(37,99,235,0.4);
}
.connect-use-icon {
  width: 38px; height: 38px; border-radius: 9px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  background: rgba(96,165,250,0.10);
  color: #93c5fd;
  border: 1px solid rgba(96,165,250,0.22);
}
.connect-use h4 {
  color: white; font-size: 17px; font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.connect-use p {
  color: #94a3b8; font-size: 14px; line-height: 1.65;
  margin: 0;
}
.connect-use-egs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.connect-use-egs span {
  font-size: 11.5px;
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  font-weight: 500;
}

/* ============================================================
   RESPONSIVE / MOBILE REFINEMENTS
   ============================================================ */

/* Prevent images/SVGs/canvases from overflowing their containers.
   NOTE: don't use `overflow-x: hidden` on html/body — it breaks
   position:sticky for descendants (the body becomes a scroll container
   that doesn't actually scroll vertically). Fix overflow at its source. */
img, svg, video, canvas { max-width: 100%; height: auto; }

/* Tablet (≤900px) — main content gets a little breathing room back */
@media (max-width: 900px) {
  section.block { padding: 80px 0; }
  body[data-density="cozy"] section.block { padding: 72px 0; }
  body[data-density="comfy"] section.block { padding: 80px 0; }
  body[data-density="spacious"] section.block { padding: 96px 0; }

  .section-head { margin-bottom: 44px; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  section.block { padding: 64px 0 !important; }

  /* Inline paddingTop on entry sections (treasury/payments/connect/accountants/pricing) */
  #treasury, #payments, #connect, #accountants, #pricing { padding-top: 80px !important; }

  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 16px; }
  .container, .container-narrow { padding: 0 20px; }

  /* Hero v2 */
  .hero-v2 { padding: 56px 0 64px; }
  .hero-v2-grid { gap: 36px; }
  .hero-v2 p.lead { font-size: 16.5px; margin-top: 18px; }
  .trust-strip { font-size: 11px; gap: 10px; }

  /* Page hero (subpages) */
  .page-hero { padding: 56px 0 48px; }
  .page-hero p.lead { font-size: 16.5px; }

  /* Article hero / body */
  .article-hero { padding: 52px 0 40px; }
  .article-hero .lead { font-size: 17px; }
  .article-body { padding: 36px 0 56px; }
  .article-prose { font-size: 16px; padding: 0 20px; }
  .article-prose h2 { font-size: 24px; margin: 36px 0 12px; }
  .article-prose h3 { font-size: 19px; margin: 28px 0 10px; }
  .article-prose blockquote { font-size: 17px; padding: 8px 0 8px 18px; margin: 24px 0; }

  /* Final CTA */
  .final-cta { padding: 64px 20px; }
  .final-cta p { font-size: 15.5px; }
  .final-cta .alt { font-size: 13.5px; gap: 14px; }

  /* Pricing tier cards */
  .price-card { padding: 30px 24px; }
  .price-card .price { font-size: 32px; }

  /* Audience v2 cards */
  .audv2-card { padding: 24px; }

  /* Tour callouts wrap nicely */
  .tour-callouts { gap: 6px; margin-top: 16px; }
  .tour-callout { font-size: 11.5px; padding: 4px 10px; }

  /* Connect grid (code + steps) */
  .code-card { font-size: 11.5px; }
  .code-card .body { padding: 14px 14px; }

  /* Mockup chrome inside small containers */
  .dash-frame { font-size: 12px; }
}

/* HowItWorksV2 — connecting horizontal line only makes sense in a 4-col layout.
   Once steps stack into rows or a single column, hide it. */
@media (max-width: 900px) {
  .howv2-line { display: none; }
}

/* ProductTour stage — min-height 460px is for desktop where panels swap and
   need consistent layout. On mobile the mockup scales down to ~140px tall
   leaving huge empty space. Let the stage size to its content. */
@media (max-width: 980px) {
  .tour-stage { min-height: 0; }
  .tour-callouts { margin-top: 16px; }
}

/* CSS Grid items default to min-width:auto, which lets them grow to fit
   their content (the 760px-wide mockup). That overflows the viewport and
   prevents ResponsiveMockup from measuring a constrained parent width.
   Allow shrinking on every layer of the tour. */
.tour-grid > * { min-width: 0; }
.tour-stage-inner, .tour-panel { min-width: 0; }
.tour-panel .hero-mockup-wrap { max-width: 100%; }

/* Phone (≤600px) */
@media (max-width: 600px) {
  section.block { padding: 56px 0 !important; }
  #treasury, #payments, #connect, #accountants, #pricing { padding-top: 64px !important; }

  /* Tighter container padding */
  .container, .container-narrow { padding: 0 18px; }

  /* CTAs wrap to vertical stack on tiny screens */
  .hero-v2 .ctas, .page-hero .ctas, .section-head .ctas, .final-cta .ctas {
    gap: 10px;
  }
  .hero-v2 .ctas .btn, .page-hero .ctas .btn,
  .section-head .ctas .btn, .final-cta .ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* Calendly inline widget — use viewport-relative height so it fits */
  .calendly-inline-widget { height: 720px !important; min-width: 0 !important; }

  /* Treasury / problem-card grids: tighter padding */
  .problem-card { padding: 24px; }
  .cap { padding: 24px; }

  /* Diorama: tiles need to be small enough not to overlap each other.
     At 320–600px container width, a 178px tile at left:6% would collide
     with another at right:6%. Shrink and drop the 5th tile. */
  .pv2-sticky { height: 300px; }
  .diorama-tile { width: 124px; padding: 7px 9px; font-size: 9.5px; }
  .diorama-tile .dt-head { font-size: 9px; padding-bottom: 4px; margin-bottom: 6px; }
  .diorama-tile .dt-row { font-size: 10px; padding: 2px 0; }
  .diorama-tile .dt-grid { font-size: 9px; }
  .diorama-tile .dt-csv { font-size: 9px; }
  .diorama-tile .dt-em { font-size: 10px; }
  .diorama-tile .dt-em-meta { font-size: 9.5px; }
  .t-csv { width: 144px !important; }
  .t-email { display: none; }

  /* Live treasury mockup adjustments */
  .live-balance { font-size: 26px; }
  .live-hero-card { padding: 14px 16px; }

  /* Article hero h1 has clamp already, byline can wrap */
  .article-hero .byline { gap: 12px; flex-wrap: wrap; }

  /* Blog cards */
  .blog-card { padding: 24px; }
  .blog-card h2 { font-size: 19px; }

  /* Tweaks panel hidden on phones to free real estate */
  .twk-panel { display: none !important; }

  /* OAuth flow on mobile — tighter card padding */
  .oauth-content { padding: 14px 16px; }
}

/* Phone (≤480px) */
@media (max-width: 480px) {
  section.block { padding: 48px 0 !important; }
  .container, .container-narrow { padding: 0 16px; }
  .section-head { margin-bottom: 28px; }
  .section-head p { font-size: 15.5px; }

  /* Diorama on tiny screens — drop another tile, shrink further */
  .pv2-sticky { height: 280px; }
  .diorama-tile { width: 108px; padding: 6px 8px; font-size: 9px; }
  .t-csv { width: 124px !important; }
  .t-qb { display: none; } /* keep only kraken, sheet, csv */

  /* Hero / page hero / article hero — even tighter */
  .hero-v2 { padding: 44px 0 52px; }
  .page-hero { padding: 44px 0 40px; }
  .article-hero { padding: 44px 0 36px; }
  .article-body { padding: 28px 0 44px; }
  .article-prose { font-size: 15.5px; padding: 0 16px; }
  .article-prose h2 { font-size: 22px; }
  .article-prose h3 { font-size: 18px; }

  /* Footer collapses to a single column */
  .foot-grid { grid-template-columns: 1fr !important; gap: 28px; }
  footer.foot { padding: 48px 0 24px; }
  .foot .bottom { flex-direction: column; gap: 8px; align-items: flex-start; font-size: 12px; }

  /* Nav tightening on phones (Log in already hidden via the 980px rule) */
  .nav-inner { gap: 12px; height: 56px; }
  .brand img.flash-logo { height: 22px; }
  .nav-cta .btn-primary { padding: 9px 14px; font-size: 13.5px; }

  /* Announce bar — smaller text on phones */
  .announce { font-size: 11.5px; padding: 8px 18px; }

  /* Final CTA */
  .final-cta { padding: 56px 18px; }
  .final-cta h2 { font-size: clamp(24px, 7vw, 32px); }
  .final-cta .alt { flex-direction: column; gap: 10px; align-items: center; }

  /* Pricing tier cards even tighter */
  .price-card { padding: 26px 20px; }
  .price-card .price { font-size: 30px; }
  .price-card ul li { font-size: 13.5px; }

  /* Buttons on tiny screens */
  .btn { font-size: 14px; padding: 10px 16px; }
  .btn-lg { font-size: 14.5px; padding: 12px 18px; }

  /* OAuth mockups stack with a bit less padding */
  .oauth-content { padding: 12px 14px; }
  .oauth-h { font-size: 14px; }
  .oauth-sub { font-size: 12px; }

  /* Connect uses card padding */
  .connect-use { padding: 22px; }

  /* Calendly */
  .calendly-inline-widget { height: 660px !important; }

  /* Pricing tier "Recommended" badge stays inside card */
  .price-card.featured::before { left: 18px; font-size: 10px; padding: 3px 9px; }
}

/* Very small (≤380px) */
@media (max-width: 380px) {
  .nav-cta { gap: 6px; }
  .nav-cta .btn-primary { padding: 8px 12px; font-size: 12.5px; }
  .brand img.flash-logo { height: 20px; }
  .article-prose { font-size: 15px; }
  .article-hero h1 { font-size: 28px; }
  .blog-card h2 { font-size: 18px; }
}

/* Landscape phone — keep heroes from being too tall */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .hero-v2 { padding: 36px 0 44px; }
  .page-hero { padding: 36px 0 32px; }
  .article-hero { padding: 36px 0 28px; }
}
