/* Bank Statement Genie — light airy pastel UI */

:root {
  --fg:           #0f172a;   /* slate-900 */
  --fg-soft:      #334155;   /* slate-700 */
  --muted:        #64748b;   /* slate-500 */
  --line:         #e0edfa;   /* blue-100 */
  --line-strong:  #c8ddf4;   /* blue-200 */
  --card:         #ffffff;
  --bg:           #f5f9fe;   /* blue-50 */

  --primary:        #3b7fc4; /* brand blue (from icon) */
  --primary-hover:  #2f66a8; /* brand blue, darker */
  --primary-soft:   #e0edfa; /* blue-100 */
  --primary-softer: #f0f6fd; /* blue-50 */

  --pink:    #f28a72;  /* coral (icon antenna) */
  --pink-soft: #fde8e1;
  --mint:    #34d399;  /* emerald-400 */
  --mint-soft: #d1fae5;
  --sky:     #38bdf8;  /* sky-400 */
  --sky-soft: #e0f2fe;
  --peach:   #fdba74;  /* orange-300 */
  --peach-soft: #fed7aa;

  --ok-bg: #d1fae5; --ok-fg: #065f46;
  --warn-bg: #fef3c7; --warn-fg: #92400e;
  --err-bg: #fee2e2; --err-fg: #991b1b;

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

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
  --shadow:    0 4px 16px rgba(59,127,196,0.07), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-lg: 0 20px 50px rgba(59,127,196,0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; } /* keep anchored sections clear of the sticky topbar */

html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(at 80% -10%, #fdeae3 0px, transparent 50%),
    radial-gradient(at 0% 0%, #c8ddf4 0px, transparent 50%),
    radial-gradient(at 100% 100%, #cffafe 0px, transparent 40%);
  background-attachment: fixed;
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv02', 'cv11';
}

body.marketing { overflow-x: clip; } /* hero aurora orbs extend past the viewport (index/contact only) */

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

/* visible keyboard focus, invisible for mouse users */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(59,127,196,0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

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

/* ---- top bar ---- */
.topbar {
  background: rgba(255,255,255,0.7);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 16px; color: var(--fg);
}
.brand:hover { text-decoration: none; color: var(--fg); }
.brand-mark {
  width: 30px; height: 30px;
  flex-shrink: 0;
  display: inline-block;
  border-radius: 9px;
  box-shadow: 0 4px 10px rgba(59,127,196,0.25);
}
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a { color: var(--fg-soft); font-size: 14px; font-weight: 500; }
.topnav a:hover { color: var(--fg); text-decoration: none; }
.topnav a.btn-primary { color: white; }

/* ---- buttons ---- */
.btn-primary, button.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; font-size: 14px; font-weight: 500;
  font-family: inherit; line-height: 1;
  background: linear-gradient(135deg, var(--primary) 0%, #3d84c8 70%, #6fa8dd 130%);
  color: white;
  border: none; border-radius: 10px;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 1px 2px rgba(59,127,196,0.3), 0 4px 12px rgba(59,127,196,0.15);
  position: relative; overflow: hidden;
}
/* sheen sweep on hover */
.btn-primary::before, button.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-130%);
  pointer-events: none;
}
.btn-primary:hover::before, button.btn-primary:hover::before {
  animation: sheen 0.7s ease;
}
@keyframes sheen { to { transform: translateX(130%); } }
.btn-primary:hover, button.btn-primary:hover {
  filter: brightness(1.06); text-decoration: none; color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(59,127,196,0.35), 0 8px 20px rgba(59,127,196,0.25);
}
.btn-primary:active, button.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled, button.btn-primary:disabled {
  opacity: 0.5; cursor: default; transform: none;
}
.btn-primary.lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn-primary.lg svg { width: 17px; height: 17px; }

.btn-ghost, button.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; font-size: 14px; font-weight: 500;
  font-family: inherit; line-height: 1;
  background: white; color: var(--fg);
  border: 1px solid var(--line-strong); border-radius: 10px;
  cursor: pointer; transition: all 0.15s ease;
}
.btn-ghost:hover, button.btn-ghost:hover {
  background: var(--primary-softer); border-color: var(--primary);
  text-decoration: none; color: var(--fg);
}

.btn-secondary, button.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; font-size: 14px; font-weight: 500;
  font-family: inherit;
  background: var(--primary-soft); color: var(--primary-hover);
  border: none; border-radius: 10px;
  cursor: pointer; transition: all 0.15s ease;
}
.btn-secondary:hover, button.btn-secondary:hover {
  background: var(--line-strong); color: var(--primary-hover);
  text-decoration: none;
}
.btn-secondary:disabled, button.btn-secondary:disabled { opacity: 0.5; cursor: default; }

/* ---- typography ---- */
h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 14px; }
h2 { font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; margin: 0 0 10px; }
h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
p  { color: var(--muted); margin: 8px 0; }
p.lead { font-size: 18px; color: var(--fg-soft); }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.92em; background: var(--primary-soft); padding: 1px 6px; border-radius: 5px; }

.eyebrow {
  display: inline-block; padding: 6px 12px;
  background: white; border: 1px solid var(--line-strong);
  border-radius: 999px; font-size: 12px; font-weight: 500;
  color: var(--primary-hover); letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

/* ---- hero (two-column) ---- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  padding: 72px 28px 56px;
  max-width: 1180px; margin: 0 auto;
  align-items: center;
  position: relative;
  isolation: isolate;
}
/* ambient aurora orbs behind the hero */
.hero::before, .hero::after {
  content: '';
  position: absolute; z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(46px);
  will-change: transform;
}
.hero::before {
  width: 540px; height: 540px;
  top: -200px; left: -160px;
  background: radial-gradient(circle at center, rgba(59,127,196,0.30) 0%, rgba(59,127,196,0.10) 45%, transparent 68%);
  animation: orbDrift 16s ease-in-out infinite alternate;
}
.hero::after {
  width: 500px; height: 500px;
  bottom: -220px; right: -120px;
  background: radial-gradient(circle at center, rgba(242,138,114,0.24) 0%, rgba(56,189,248,0.10) 50%, transparent 70%);
  animation: orbDrift 20s ease-in-out infinite alternate-reverse;
}
@keyframes orbDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(70px, 44px, 0) scale(1.18); }
}
.hero-text { text-align: left; }
.hero-text, .hero-visual { min-width: 0; } /* let grid columns shrink below the SVG's natural width */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 52px 24px 32px; text-align: center; }
  .hero-text { text-align: center; }
}
.hero-title { font-size: 52px; line-height: 1.05; letter-spacing: -0.03em; margin: 18px 0 16px; }
.hero-title em, .hero-title .grad {
  font-style: normal;
  background: linear-gradient(120deg, #2f66a8 0%, #f28a72 40%, #38bdf8 65%, #2f66a8 100%);
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientPan 7s linear infinite;
}
@keyframes gradientPan { to { background-position: 300% center; } }
@media (max-width: 600px) { .hero-title { font-size: 38px; } }
.hero-sub { font-size: 18px; color: var(--fg-soft); max-width: 540px; margin: 0 0 26px; }
@media (max-width: 960px) { .hero-sub { margin: 0 auto 24px; } }
.hero-cta { display: inline-flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 960px) { .hero-cta { justify-content: center; } }
.hero-cta .btn-primary.lg { animation: ctaGlow 3.2s ease-in-out infinite; }
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 2px 4px rgba(59,127,196,0.30), 0 6px 18px rgba(59,127,196,0.22); }
  50%      { box-shadow: 0 2px 6px rgba(59,127,196,0.38), 0 10px 34px rgba(59,127,196,0.42); }
}
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* live dot inside the hero eyebrow */
.eyebrow-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--mint);
  margin-right: 7px;
  position: relative;
  vertical-align: 1px;
}
.eyebrow-dot::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 999px;
  background: var(--mint); opacity: 0.35;
  animation: pulseRing 2.2s ease-in-out infinite;
}

/* ---- hero diagram (animated) ---- */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-diagram { width: 100%; max-width: 540px; height: auto; }
.hero-diagram .flow-line {
  stroke-dasharray: 2 6;
  animation: marchAnts 0.7s linear infinite;
}
@keyframes marchAnts { to { stroke-dashoffset: -8; } }
.hero-diagram .node-card {
  filter: drop-shadow(0 8px 18px rgba(59,127,196,0.12));
}
/* gentle bobbing of the diagram nodes */
.hero-diagram .float { animation: floatY 5.5s ease-in-out infinite; will-change: transform; }
.hero-diagram .float.f2 { animation-delay: -1.8s; }
.hero-diagram .float.f3 { animation-delay: -3.6s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.hero-diagram .node-bank-glow {
  animation: bankPulse 2.4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes bankPulse { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.35; } }

/* ---- privacy banner (above-the-fold trust hit) ---- */
.privacy-banner {
  background: linear-gradient(135deg, var(--primary-softer) 0%, #fde8e1 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 24px;
}
.privacy-banner-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.privacy-banner .pb-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 12px rgba(59,127,196,0.15);
  font-size: 26px;
  flex-shrink: 0;
}
.privacy-banner .pb-text { flex: 1; min-width: 280px; }
.privacy-banner h2 { font-size: 22px; margin: 0 0 4px; letter-spacing: -0.01em; }
.privacy-banner p { color: var(--fg-soft); margin: 0; font-size: 14.5px; }
.privacy-banner .pb-pills { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.privacy-banner .pb-pills .pill {
  background: white; border: 1px solid var(--line-strong);
  color: var(--fg-soft); font-weight: 500;
}

/* ---- "Why BSG" before/after ---- */
.before-after {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch;
  margin-top: 16px;
}
.before-after .arrow {
  display: grid; place-items: center;
  color: var(--primary);
  font-size: 26px;
  width: 50px;
}
@media (max-width: 800px) {
  .before-after { grid-template-columns: 1fr; }
  .before-after .arrow { transform: rotate(90deg); height: 30px; width: auto; }
}
.before, .after {
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.before {
  background: #fafafa;
  border: 1px solid #e5e7eb;
}
.before h3 { color: #64748b; margin: 0 0 12px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; }
.before ul, .after ul { list-style: none; padding: 0; margin: 0; }
.before li {
  color: #94a3b8;
  padding: 6px 0 6px 28px;
  position: relative;
  text-decoration: line-through;
  font-size: 14.5px;
}
.before li::before {
  content: '✗'; position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  background: #f1f5f9; color: #94a3b8;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  text-decoration: none;
}
.after {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-softer) 100%);
  border: 1px solid var(--line-strong);
}
.after h3 { color: var(--primary-hover); margin: 0 0 12px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; }
.after li {
  color: var(--fg);
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: 14.5px;
}
.after li::before {
  content: '✓'; position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  background: var(--mint-soft); color: var(--ok-fg);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
}

/* ---- personas grid ---- */
.personas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.persona {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.persona:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.persona .p-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 20px;
  margin-bottom: 10px;
}
.persona.violet .p-icon { background: var(--primary-soft); }
.persona.pink   .p-icon { background: var(--pink-soft); }
.persona.mint   .p-icon { background: var(--mint-soft); }
.persona.sky    .p-icon { background: var(--sky-soft); }
.persona h3 { margin: 0 0 4px; font-size: 15.5px; }
.persona p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---- privacy "can / cannot" cards ---- */
.cando-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-top: 18px;
}
@media (max-width: 700px) { .cando-grid { grid-template-columns: 1fr; } }
.cando-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.cando-card.can    { border-top: 4px solid var(--mint); }
.cando-card.cannot { border-top: 4px solid var(--pink); }
.cando-card .cando-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.cando-card .cando-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 18px; font-weight: 700;
}
.cando-card.can .cando-icon    { background: var(--mint-soft); color: var(--ok-fg); }
.cando-card.cannot .cando-icon { background: var(--pink-soft); color: #be123c; }
.cando-card .cando-head h3 { margin: 0; font-size: 16px; }
.cando-card ul { list-style: none; padding: 0; margin: 0; }
.cando-card li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--fg-soft);
  font-size: 14px;
  line-height: 1.5;
}
.cando-card.can li::before {
  content: '✓'; position: absolute; left: 0; top: 6px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  background: var(--mint-soft); color: var(--ok-fg);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.cando-card.cannot li::before {
  content: '✗'; position: absolute; left: 0; top: 6px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  background: var(--pink-soft); color: #be123c;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
}

/* ---- FAQ accordion ---- */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.2s ease;
  overflow: hidden;
}
.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 500; font-size: 15.5px; color: var(--fg);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transition: background 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--primary-softer); }
.faq-item summary::after {
  content: '+';
  font-size: 22px; font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0; line-height: 1;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--primary);
}
.faq-body {
  padding: 0 22px 20px;
  color: var(--fg-soft);
  font-size: 14.5px; line-height: 1.65;
}
.faq-body p { margin: 0; color: inherit; }

/* ---- cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 18px 0;
  box-shadow: var(--shadow);
}
.card h2 { margin-top: 0; }

/* ---- feature grid ---- */
.features {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin: 32px auto;
  padding: 0 28px;
  max-width: 1080px;
}
@media (max-width: 800px) { .features { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-card .feature-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 14px;
}
.feature-card .feature-icon svg { width: 22px; height: 22px; }
.feature-card.violet .feature-icon svg { stroke: var(--primary-hover); }
.feature-card.pink   .feature-icon svg { stroke: #be123c; }
.feature-card.mint   .feature-icon svg { stroke: var(--ok-fg); }
.feature-card.sky    .feature-icon svg { stroke: #075985; }
.persona .p-icon svg { width: 20px; height: 20px; }
.persona.violet .p-icon svg { stroke: var(--primary-hover); }
.persona.pink   .p-icon svg { stroke: #be123c; }
.persona.mint   .p-icon svg { stroke: var(--ok-fg); }
.persona.sky    .p-icon svg { stroke: #075985; }
.privacy-banner .pb-icon svg { width: 26px; height: 26px; stroke: var(--primary-hover); }
.privacy-banner .pb-pills .pill svg { width: 13px; height: 13px; stroke: var(--primary-hover); vertical-align: -2px; margin-right: 4px; }
.empty .feather-empty svg { width: 36px; height: 36px; stroke: var(--muted); display: block; margin: 0 auto 10px; }
.item-row .inst-mark svg { width: 18px; height: 18px; stroke: var(--primary-hover); }
.cando-card .cando-icon svg { width: 18px; height: 18px; }
.cando-card.can .cando-icon svg { stroke: var(--ok-fg); }
.cando-card.cannot .cando-icon svg { stroke: #be123c; }
.dash-stat .label svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; opacity: 0.7; }
.pill-btn svg { width: 13px; height: 13px; stroke-width: 2.4; }
.feature-card.violet .feature-icon { background: var(--primary-soft); }
.feature-card.pink   .feature-icon { background: var(--pink-soft); }
.feature-card.mint   .feature-icon { background: var(--mint-soft); }
.feature-card.sky    .feature-icon { background: var(--sky-soft); }
.feature-card h3 { color: var(--fg); margin-bottom: 6px; }
.feature-card p  { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---- pricing ---- */
.pricing-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, 1fr);
  margin: 24px 0;
}
@media (max-width: 700px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow);
}
.plan.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fe 100%);
}
.plan.featured::before {
  content: 'Most popular';
  position: absolute; top: -10px; right: 20px;
  background: linear-gradient(135deg, #3b7fc4 0%, #f28a72 100%);
  color: white;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 4px 10px rgba(59,127,196,0.25);
}
.plan h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 8px; }
.plan .price { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 16px; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 0; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: var(--fg-soft); font-size: 14.5px; }
.plan li::before {
  content: '✓';
  position: absolute; left: 0; top: 7px;
  width: 20px; height: 20px; border-radius: 999px;
  background: var(--mint-soft); color: #065f46;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}
.plan li.dim { color: var(--muted); }
.plan li.dim::before { content: '–'; background: #f1f5f9; color: var(--muted); }

/* ---- pill / badges ---- */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: var(--primary-soft); color: var(--primary-hover);
}
.pill.paid  { background: var(--mint-soft); color: var(--ok-fg); }
.pill.free  { background: var(--sky-soft); color: #075985; }

/* ---- status banners ---- */
.status {
  padding: 12px 14px; border-radius: var(--radius-sm);
  margin-top: 14px; font-size: 14px;
}
.status.ok   { background: var(--ok-bg);   color: var(--ok-fg); }
.status.warn { background: var(--warn-bg); color: var(--warn-fg); }
.status.err  { background: var(--err-bg);  color: var(--err-fg); }

/* ---- forms ---- */
input[type=text], input[type=email], textarea {
  width: 100%; padding: 12px 14px;
  font-size: 15px; font-family: inherit;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: white; color: var(--fg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59,127,196,0.12);
}
label { display: block; font-size: 13px; font-weight: 500; color: var(--fg-soft); margin: 14px 0 6px; }
textarea { min-height: 130px; resize: vertical; }

/* ---- rows / lists ---- */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.item-list { display: grid; gap: 12px; }
.item-row {
  display: flex; gap: 16px; align-items: center;
  padding: 16px;
  background: var(--primary-softer);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.item-row .inst-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: white;
  font-weight: 600; font-size: 14px;
  color: var(--primary-hover);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.item-row .inst-meta { flex: 1; min-width: 0; }
.item-row .inst-name-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.item-row .inst-name { font-weight: 600; color: var(--fg); font-size: 15px; }
.item-row .inst-last { font-size: 12px; color: var(--muted); white-space: nowrap; }
.item-row .inst-accts { font-size: 13px; color: var(--muted); margin-top: 4px; display: flex; flex-direction: column; gap: 2px; }
.item-row .inst-accts .acct { display: block; }
.item-row .inst-accts .mask { color: var(--muted); opacity: 0.7; margin-left: 4px; }
.item-row .inst-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; flex-shrink: 0; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; font-size: 12.5px; font-weight: 500;
  font-family: inherit; line-height: 1;
  background: white; color: var(--fg-soft);
  border: 1px solid var(--line-strong); border-radius: 999px;
  cursor: pointer; transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.pill-btn:hover {
  background: var(--primary-softer); border-color: var(--primary); color: var(--primary-hover);
  text-decoration: none;
}
.pill-btn:disabled { opacity: 0.5; cursor: default; }
.pill-btn.primary { background: var(--primary-soft); color: var(--primary-hover); border-color: transparent; }
.pill-btn.primary:hover { background: var(--line-strong); }
@media (max-width: 700px) {
  .item-row { flex-wrap: wrap; }
  .item-row .inst-actions { width: 100%; padding-left: 56px; }
}

/* ---- consolidated "Your banks" card ---- */
.card-head-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.card-head-row h2 { margin: 0; }
.sync-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ---- blur (privacy) ---- */
.blurable { transition: filter 0.15s ease; }
body.blur-on .blurable { filter: blur(7px); user-select: none; }
.blur-toggle {
  width: 34px; height: 34px;
  display: inline-grid; place-items: center;
  background: white; border: 1px solid var(--line-strong); border-radius: 999px;
  cursor: pointer; color: var(--fg-soft);
  transition: all 0.15s ease;
  font-size: 16px;
  padding: 0;
}
.blur-toggle svg { width: 16px; height: 16px; stroke: var(--fg-soft); }
body.blur-on .blur-toggle svg { stroke: white; }
.blur-toggle:hover { background: var(--primary-softer); color: var(--primary-hover); border-color: var(--primary); }
body.blur-on .blur-toggle { background: var(--primary); color: white; border-color: var(--primary); }

/* ---- scope toggle (MTD/LM/YTD) ---- */
.scope-bar-wrap { display: flex; justify-content: flex-end; margin: 8px 0 14px; }
.scope-bar {
  display: inline-flex; gap: 4px; padding: 4px;
  background: white; border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.scope-bar button {
  padding: 7px 16px; font-size: 13px; font-weight: 500;
  background: transparent; color: var(--muted);
  border: none; border-radius: 999px;
  cursor: pointer; font-family: inherit;
  transition: all 0.15s ease;
}
.scope-bar button:hover { color: var(--fg); }
.scope-bar button.active {
  background: var(--primary-soft); color: var(--primary-hover);
}

/* ---- modal ---- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15,23,42,0.55);
  display: none; place-items: center;
  padding: 24px;
}
.modal-backdrop.open {
  display: grid;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: white; border-radius: 18px;
  padding: 24px 28px 22px;
  width: 100%; max-width: 540px; max-height: 80vh;
  overflow: auto; position: relative;
  box-shadow: 0 30px 60px rgba(15,23,42,0.25);
  animation: popIn 0.18s ease;
}
@keyframes popIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--primary-softer); color: var(--fg-soft);
  border: none; border-radius: 999px;
  cursor: pointer; font-size: 18px; line-height: 1;
}
.modal-close:hover { background: var(--line-strong); color: var(--fg); }
.modal h2 { margin: 0 0 4px; padding-right: 36px; }
.modal .modal-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.modal-summary {
  background: linear-gradient(135deg, var(--primary-softer) 0%, #fde8e1 100%);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 6px 0 18px;
}
.modal-summary .label {
  display: block;
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}
.modal-summary .value {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.modal-summary .value.in  { color: var(--ok-fg); }
.modal-summary .value.out { color: #be123c; }
.modal-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.modal-row:last-child { border-bottom: none; }
.modal-row .m-rank {
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--primary-softer); color: var(--muted);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.modal-row .m-main { flex: 1; min-width: 0; }
.modal-row .m-name {
  font-weight: 500; color: var(--fg);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 3px;
}
.modal-row .m-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 12px; color: var(--muted); align-items: center;
}
.modal-row .m-pill {
  display: inline-block;
  padding: 1px 8px;
  background: var(--primary-softer);
  color: var(--fg-soft);
  border-radius: 999px;
  font-size: 11px;
}
.modal-row .m-amt {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--fg);
}
.modal-row .m-amt.in  { color: var(--ok-fg); }
.modal-row .m-amt.out { color: #be123c; }

/* ---- dashboard tabs ---- */
.tab-bar {
  display: inline-flex; gap: 4px; padding: 4px;
  background: white; border: 1px solid var(--line); border-radius: 999px;
  margin: 14px 0 6px;
  box-shadow: var(--shadow-sm);
}
.tab-bar button {
  padding: 8px 18px; font-size: 14px; font-weight: 500;
  background: transparent; color: var(--muted);
  border: none; border-radius: 999px;
  cursor: pointer; font-family: inherit;
  transition: all 0.15s ease;
}
.tab-bar button:hover { color: var(--fg); }
.tab-bar button.active {
  background: var(--primary-soft); color: var(--primary-hover);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---- dashboard stat cards ---- */
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
@media (max-width: 900px) { .dash-stats { grid-template-columns: repeat(2, 1fr); } }
.dash-stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.dash-stat:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.dash-stat::after {
  content: '↗';
  position: absolute; top: 12px; right: 14px;
  color: var(--muted); font-size: 13px; opacity: 0;
  transition: opacity 0.15s ease;
}
.dash-stat:hover::after { opacity: 1; }
.dash-stat .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; }
.dash-stat .value { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; color: var(--fg); font-variant-numeric: tabular-nums; }
.dash-stat .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.dash-stat.violet .value { color: var(--primary-hover); }
.dash-stat.mint   .value { color: var(--ok-fg); }
.dash-stat.pink   .value { color: #be123c; }
.dash-stat.sky    .value { color: #075985; }
.dash-stat.neg .value { color: var(--err-fg); }

/* ---- monthly top-expenses ---- */
.month-block { margin-top: 22px; }
.month-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.month-header .m-title { font-weight: 600; color: var(--fg); }
.month-header .m-sub { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.month-header .m-sub span.up { color: var(--ok-fg); }
.month-header .m-sub span.dn { color: var(--err-fg); }
.expense-row { display: grid; grid-template-columns: 80px 1fr 100px; gap: 12px; padding: 7px 4px; font-size: 14px; align-items: baseline; }
.expense-row .ex-date { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.expense-row .ex-name { color: var(--fg-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.expense-row .ex-amt { text-align: right; font-variant-numeric: tabular-nums; color: var(--fg); font-weight: 500; }

/* ---- admin self-toggle (dashboard only) ---- */
.self-plan { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.self-plan .plan-toggle { display: inline-flex; gap: 4px; padding: 2px; background: var(--primary-softer); border-radius: 999px; }
.self-plan .plan-toggle button { padding: 4px 12px; font-size: 12px; font-weight: 500; border: none; background: transparent; border-radius: 999px; cursor: pointer; color: var(--muted); font-family: inherit; }
.self-plan .plan-toggle button.active { background: white; color: var(--primary-hover); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.self-plan .plan-toggle button.active.paid { color: var(--ok-fg); }

/* ---- analytics bars (horizontal) ---- */
.bar { display: grid; grid-template-columns: 180px 1fr 110px; gap: 12px; align-items: center; margin: 8px 0; font-size: 13.5px; }
.bar .label { color: var(--fg-soft); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .track { background: var(--primary-softer); border-radius: 999px; height: 14px; overflow: hidden; }
.bar .fill  { height: 100%; background: linear-gradient(90deg, #a9cdee 0%, #3b7fc4 100%); border-radius: 999px; }
.bar .amt { text-align: right; font-variant-numeric: tabular-nums; color: var(--fg); font-weight: 600; }
.bar .sub-count { color: var(--muted); font-size: 11px; font-weight: 400; }
@media (max-width: 600px) { .bar { grid-template-columns: 1fr; } .bar .track { display: none; } }

/* ---- income vs spend line chart ---- */
.line-chart-wrap { position: relative; }
.line-chart {
  width: 100%; height: 240px;
  display: block;
}
.line-chart .grid-line { stroke: var(--line); stroke-width: 1; }
.line-chart .axis-label { font-size: 10px; fill: var(--muted); font-family: inherit; }
.line-chart .series-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.line-chart .series-dot { stroke: white; stroke-width: 2; transition: r 0.15s ease; cursor: pointer; }
.line-chart .series-dot:hover { r: 6; }
.line-chart .hit-area { fill: transparent; cursor: pointer; }
.line-legend { display: flex; gap: 14px; justify-content: flex-end; margin-bottom: 8px; }
.line-legend .lg-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-soft); }
.line-legend .lg-dot { width: 10px; height: 10px; border-radius: 999px; }
.line-tooltip {
  position: absolute; pointer-events: none;
  background: white; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 8px 12px; box-shadow: var(--shadow);
  font-size: 12px; min-width: 140px;
  transform: translate(-50%, calc(-100% - 12px));
  z-index: 5; display: none;
}
.line-tooltip .tt-month { font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.line-tooltip .tt-row { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.line-tooltip .tt-row.in span:first-child { color: var(--ok-fg); }
.line-tooltip .tt-row.out span:first-child { color: #be123c; }

/* ---- expandable month block ---- */
.month-block.expandable .month-header { cursor: pointer; user-select: none; transition: background 0.15s ease; border-radius: 8px; padding: 8px 10px; }
.month-block.expandable .month-header:hover { background: var(--primary-softer); }
.month-block .chev { display: inline-block; transition: transform 0.2s ease; margin-right: 6px; color: var(--muted); font-size: 11px; }
.month-block.expanded .chev { transform: rotate(90deg); }
.month-detail { display: none; padding-top: 8px; }
.month-block.expanded .month-detail { display: block; animation: expandFade 0.2s ease; }
@keyframes expandFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.month-detail .more-link { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--muted); }

/* ---- filter + sort toolbar inside expanded month ---- */
.detail-toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin: 10px 0 4px;
  padding: 10px 12px;
  background: var(--primary-softer);
  border-radius: 10px;
}
.detail-toolbar .search {
  flex: 1; min-width: 180px;
  position: relative;
}
.detail-toolbar .search svg {
  position: absolute; left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  stroke: var(--muted); pointer-events: none;
}
.detail-toolbar .search input {
  width: 100%; padding: 7px 10px 7px 32px;
  font-size: 13px; font-family: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: white;
}
.detail-toolbar .search input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,127,196,0.12);
}
.detail-toolbar .sort-group {
  display: inline-flex; gap: 2px;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 2px;
}
.detail-toolbar .sort-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  font-size: 12px; font-weight: 500;
  background: transparent; color: var(--muted);
  border: none; border-radius: 6px;
  cursor: pointer; font-family: inherit;
}
.detail-toolbar .sort-btn:hover { color: var(--fg); }
.detail-toolbar .sort-btn.active {
  background: var(--primary-soft); color: var(--primary-hover);
}
.detail-toolbar .sort-btn svg { width: 11px; height: 11px; stroke-width: 2.4; }
.detail-toolbar .result-count {
  font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- "last pulled" freshness badge ---- */
.freshness-bar {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  margin: 0 0 10px;
  font-size: 12.5px; color: var(--muted);
}
.freshness-bar .fresh-dot {
  width: 8px; height: 8px; border-radius: 999px;
  display: inline-block;
  position: relative;
}
.freshness-bar .fresh-dot.green  { background: #34d399; }
.freshness-bar .fresh-dot.amber  { background: #fbbf24; }
.freshness-bar .fresh-dot.grey   { background: #cbd5e1; }
.freshness-bar .fresh-dot.green::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 999px;
  background: #34d399; opacity: 0.3;
  animation: pulseRing 2s ease-in-out infinite;
}
@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.6); opacity: 0; }
}

/* ---- skeleton loader ---- */
@keyframes skel { 0% { opacity: 0.55; } 50% { opacity: 0.85; } 100% { opacity: 0.55; } }
.skeleton { background: var(--primary-softer); border-radius: 8px; animation: skel 1.4s ease-in-out infinite; }
.skeleton-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.skeleton-circle { width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0; }
.skeleton-bar { height: 14px; }
.skeleton-bar.short { width: 40%; }
.skeleton-bar.mid { width: 65%; }
.skeleton-bar.long { width: 90%; }
.skeleton-amt { width: 70px; height: 14px; margin-left: auto; flex-shrink: 0; }

/* ---- enter animations ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fade-up.d1 { animation-delay: 0.08s; }
.fade-up.d2 { animation-delay: 0.16s; }
.fade-up.d3 { animation-delay: 0.24s; }
.fade-up.d4 { animation-delay: 0.32s; }

/* ---- monthly trend chart (vertical) ---- */
.trend-chart {
  display: flex;
  /* stretch (not flex-end): columns must fill the fixed chart height so
     .col-bar-wrap's flex:1 resolves to a real height — otherwise the bars'
     percentage heights collapse to the 2px min and no bars appear. */
  align-items: stretch;
  gap: 6px;
  height: 170px;
  margin: 18px 0 6px;
  padding: 0 4px;
}
.trend-col {
  flex: 1;
  display: flex; flex-direction: column; align-items: stretch;
  text-align: center;
  min-width: 0;
}
.trend-col .col-bar-wrap {
  flex: 1;
  display: flex; align-items: flex-end;
  padding: 0 2px;
}
.trend-col .col-bar {
  width: 100%;
  background: linear-gradient(180deg, #a9cdee 0%, #3b7fc4 100%);
  border-radius: 6px 6px 0 0;
  min-height: 2px;
  transition: opacity 0.15s ease;
}
.trend-col:hover .col-bar { opacity: 0.85; }
.trend-col .col-amt { font-size: 10px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.trend-col .col-label { font-size: 11px; color: var(--fg-soft); margin-top: 2px; font-weight: 500; }
.trend-col.current .col-label { color: var(--primary-hover); }

/* ---- floating action buttons (contact + back-to-top) ---- */
.fab-stack {
  position: fixed; right: 20px; bottom: 20px;
  z-index: 45; /* under the topbar (50) and modal */
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.fab {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer; border: none; font-family: inherit;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
  transition: transform 0.15s ease, opacity 0.2s ease, background 0.15s ease;
}
.fab:hover { transform: translateY(-2px); text-decoration: none; }
.fab svg { width: 20px; height: 20px; }
.fab-contact { background: var(--primary); color: #fff; }
.fab-contact:hover { background: var(--primary-hover); color: #fff; }
.fab-top {
  background: #fff; color: var(--fg-soft);
  border: 1px solid var(--line-strong);
  opacity: 0; pointer-events: none; transform: translateY(8px);
}
.fab-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab-top.show:hover { transform: translateY(-2px); }
@media (max-width: 640px) {
  .fab-stack { right: 14px; bottom: 14px; }
  .fab { width: 44px; height: 44px; }
}

/* ---- analytics left nav ---- */
.an-layout {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.an-nav {
  position: sticky; top: 76px;
  display: flex; flex-direction: column; gap: 2px;
}
.an-nav a {
  padding: 8px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--fg-soft);
}
.an-nav a:hover { background: var(--primary-softer); text-decoration: none; color: var(--fg); }
.an-nav a.active { background: var(--primary-soft); color: var(--primary-hover); font-weight: 600; }
.an-section { scroll-margin-top: 76px; }
@media (max-width: 900px) {
  .an-layout { display: block; }
  .an-nav {
    top: 59px; z-index: 40;
    flex-direction: row; overflow-x: auto;
    background: rgba(245, 249, 254, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 2px; margin-bottom: 10px;
    scrollbar-width: none;
  }
  .an-nav::-webkit-scrollbar { display: none; }
  .an-nav a { white-space: nowrap; flex-shrink: 0; }
  .an-section { scroll-margin-top: 112px; }
}

/* ---- sticky month header + toolbar inside an expanded month ---- */
/* Offsets assume the sticky topbar (~59px tall). The top-expenses preview is
   hidden while expanded so the toolbar lands right under the header. */
.month-block.expanded > .expense-row { display: none; }
.month-block.expanded .month-header {
  position: sticky; top: 59px; z-index: 6;
  background: var(--card);
  margin-bottom: 0; /* no gap — rows must not peek between header and toolbar */
  box-shadow: 0 10px 14px -12px rgba(15, 23, 42, 0.18);
}
.month-block.expanded .month-detail { padding-top: 0; }
.month-block.expanded .detail-toolbar {
  position: sticky; top: 97px; z-index: 5;
  margin-top: 0;
  box-shadow: 0 10px 14px -12px rgba(15, 23, 42, 0.12);
}
@media (max-width: 700px) {
  /* Small screens: the month header can wrap to two lines, so only the
     toolbar (with the search box) sticks — pinned right under the topbar. */
  .month-block.expanded .month-header { position: static; box-shadow: none; }
  .month-block.expanded .detail-toolbar { top: 59px; }
}

/* ---- "worth a second look" flags ---- */
.flag-ic {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-grid; place-items: center;
  background: var(--warn-bg); color: var(--warn-fg);
  border-radius: 10px;
}
.flag-ic svg { width: 17px; height: 17px; }

/* ---- merchant + recurring lists ---- */
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.list-row:last-child { border-bottom: none; }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .lr-name { font-weight: 500; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .lr-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.list-row .lr-amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; white-space: nowrap; color: var(--fg); flex-shrink: 0; }
.list-row .lr-amt-sub { font-size: 11px; color: var(--muted); font-weight: 400; }

/* ---- empty state ---- */
.empty {
  text-align: center; padding: 40px 24px;
  background: var(--primary-softer); border: 1px dashed var(--line-strong);
  border-radius: var(--radius); color: var(--muted);
}
.empty .emoji { font-size: 36px; display: block; margin-bottom: 12px; }

/* ---- footer ---- */
footer {
  text-align: center; padding: 40px 24px;
  font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--primary-hover); }

/* ---- small-screen topbar ---- */
@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px 14px; padding: 12px 20px; }
  .topnav { flex-wrap: wrap; gap: 12px 16px; min-width: 0; flex: 1 1 100%; }
}

/* ---- reduced motion: keep content, drop the show ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-diagram .flow-dot { display: none; } /* SMIL traveling dots */
  .hero-diagram .flow-line { animation: none; }
}

/* ---- non-clickable stat cards (analytics "at a glance") ---- */
.dash-stat.static { cursor: default; }
.dash-stat.static:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
.dash-stat.static::after { content: none; }

/* ---- compact net worth chip (sits above the scope bar, right-aligned) ---- */
.nw-strip { display: flex; justify-content: flex-end; margin: 0 0 4px; }
.nw-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: white; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 8px 6px 14px; cursor: pointer; box-shadow: var(--shadow-sm);
  font: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.nw-chip:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.nw-chip .nw-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted);
}
.nw-chip .nw-value { font-size: 15px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.nw-chip svg { display: block; }

/* ---- toggle switch (email alert settings) ---- */
.toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .knob {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--line-strong); transition: background 0.15s ease; cursor: pointer;
}
.toggle .knob::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: white; box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}
.toggle input:checked + .knob { background: var(--primary); }
.toggle input:checked + .knob::before { transform: translateX(18px); }
.toggle input:disabled + .knob { opacity: 0.5; cursor: default; }

.pref-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.pref-row:first-of-type { border-top: none; }
.pref-row .pref-main { flex: 1; min-width: 0; }
.pref-row .pref-name { font-weight: 600; font-size: 14.5px; color: var(--fg); }
.pref-row .pref-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── Trademark superscript (™ after Google product names) ──────────────
   position + line-height:0 keeps the mark raised WITHOUT inflating the
   line box, so multi-line paragraphs and headings stay evenly spaced on
   mobile. font-weight:400 keeps it light even inside bold headings. */
.tm {
  font-size: 0.62em;
  line-height: 0;
  position: relative;
  top: -0.55em;
  margin-left: 0.06em;
  vertical-align: baseline;
  font-weight: 400;
  font-feature-settings: normal;
}

/* ============================================================================
   SEO / AEO subpages — comparisons (/compare) & use cases (/use-cases)
   Reuses the site tokens; adds breadcrumb, subpage hero, hub cards, an
   answer-first block (for AI/answer engines), a comparison table, and a
   "who should pick which" verdict callout.
   ============================================================================ */

.crumbs {
  max-width: 1080px; margin: 0 auto; padding: 18px 28px 0;
  font-size: 13px; color: var(--muted);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary-hover); }
.crumbs .sep { margin: 0 8px; color: var(--line-strong); }

.page-hero {
  max-width: 820px; margin: 0 auto; padding: 26px 28px 8px; text-align: center;
}
.page-hero h1 { font-size: 40px; line-height: 1.12; margin: 12px 0 14px; letter-spacing: -0.02em; }
@media (max-width: 600px) { .page-hero h1 { font-size: 30px; } }
.page-hero .accent {
  background: linear-gradient(90deg, var(--primary), var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Answer-first paragraph: the concise, quotable answer an AI engine can lift. */
.answer-block {
  font-size: 18px; color: var(--fg-soft); line-height: 1.6;
  max-width: 720px; margin: 0 auto;
}
.answer-lead {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 20px 22px; margin: 22px auto 0; max-width: 760px; text-align: left;
  font-size: 16px; color: var(--fg-soft);
}
.answer-lead strong { color: var(--fg); }

/* Hub cards (link grid on /compare and /use-cases) */
.hubs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px; max-width: 1080px; margin: 8px auto 0; padding: 0 28px;
}
.hub-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); text-decoration: none; }
.hub-card .hub-tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--primary-hover); background: var(--primary-soft);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}
.hub-card h3 { margin: 0 0 6px; font-size: 18px; color: var(--fg); }
.hub-card p { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.hub-card .arrow { font-size: 14px; font-weight: 600; color: var(--primary); }
.hub-card:hover .arrow { text-decoration: underline; }

/* Comparison table */
.cmp-wrap { max-width: 900px; margin: 8px auto 0; padding: 0 28px; overflow-x: auto; }
.cmp {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  font-size: 14.5px;
}
.cmp th, .cmp td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { background: var(--primary-softer); font-size: 13px; color: var(--fg); }
.cmp thead th.us { color: var(--primary-hover); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td.feat { font-weight: 600; color: var(--fg); width: 34%; }
.cmp td.us { background: rgba(59,127,196,0.045); }
.cmp .yes { color: var(--ok-fg); font-weight: 600; }
.cmp .no  { color: #be123c; }

/* "Who should pick which" verdict cards */
.verdict {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  max-width: 900px; margin: 8px auto 0; padding: 0 28px;
}
@media (max-width: 700px) { .verdict { grid-template-columns: 1fr; } }
.verdict-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.verdict-card.pick-us { border-top: 4px solid var(--primary); }
.verdict-card.pick-them { border-top: 4px solid var(--peach); }
.verdict-card h3 { margin: 0 0 8px; font-size: 16px; }
.verdict-card p { margin: 0; font-size: 14px; color: var(--fg-soft); line-height: 1.55; }

/* Section heading helper for subpages */
.sec-head { text-align: center; max-width: 720px; margin: 52px auto 4px; padding: 0 28px; }
.sec-head h2 { font-size: 28px; margin: 10px 0 8px; letter-spacing: -0.01em; }
.sec-head p { color: var(--fg-soft); margin: 0; }

/* Steps list for use-case pages */
.steps { max-width: 760px; margin: 10px auto 0; padding: 0 28px; display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.step .num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-hover); font-weight: 700; font-size: 16px;
}
.step h3 { margin: 0 0 3px; font-size: 16px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Final CTA band reused on subpages */
.cta-band { text-align: center; max-width: 720px; margin: 56px auto 0; padding: 0 28px; }
.cta-band h2 { font-size: 26px; margin: 0 0 8px; }
.cta-band p { color: var(--fg-soft); margin: 0 0 20px; }

/* ============================================================================
   Blog (/blog) — index listing + long-form article typography.
   Reuses site tokens; adds a post grid and a readable prose column.
   ============================================================================ */

.post-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px; max-width: 1080px; margin: 8px auto 0; padding: 0 28px;
}
.post-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); text-decoration: none; }
.post-card .post-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.post-card h3 { margin: 0 0 8px; font-size: 19px; color: var(--fg); line-height: 1.25; }
.post-card p { margin: 0 0 14px; font-size: 14.5px; color: var(--fg-soft); line-height: 1.55; }
.post-card .arrow { font-size: 14px; font-weight: 600; color: var(--primary); }
.post-card:hover .arrow { text-decoration: underline; }

/* Article */
.article { max-width: 748px; margin: 0 auto; padding: 8px 28px 0; }
.article-header { margin: 8px 0 4px; }
.article-header h1 { font-size: 38px; line-height: 1.14; letter-spacing: -0.02em; margin: 10px 0 12px; }
@media (max-width: 600px) { .article-header h1 { font-size: 29px; } }
.article-meta { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; }
.article-meta .dot { margin: 0 8px; color: var(--line-strong); }

.prose { font-size: 17px; line-height: 1.72; color: var(--fg-soft); }
.prose h2 { font-size: 25px; line-height: 1.25; letter-spacing: -0.01em; color: var(--fg); margin: 40px 0 12px; }
.prose h3 { font-size: 19px; color: var(--fg); margin: 30px 0 8px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--primary-hover); }
.prose strong { color: var(--fg); }
.prose blockquote {
  margin: 0 0 18px; padding: 4px 18px; border-left: 4px solid var(--primary);
  background: var(--primary-softer); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--fg); font-style: italic;
}
.prose code {
  background: var(--primary-soft); color: var(--primary-hover);
  padding: 1px 6px; border-radius: 6px; font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--primary-softer); color: var(--fg); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }

/* Key-takeaway box atop a post (AEO answer target) */
.takeaway {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--mint);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 18px 22px; margin: 0 0 28px; font-size: 15.5px; color: var(--fg-soft); line-height: 1.6;
}
.takeaway strong { color: var(--fg); }

/* In-article CTA */
.article-cta {
  text-align: center; background: var(--primary-softer); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 24px; margin: 40px 0 8px;
}
.article-cta h3 { margin: 0 0 8px; font-size: 21px; color: var(--fg); }
.article-cta p { margin: 0 0 18px; color: var(--fg-soft); }

/* ============================================================================
   Email digest spotlight — "twice-weekly spend recaps in your inbox"
   Animated 3D rotating email card (CSS transforms, preserve-3d).
   ============================================================================ */
.email-spotlight {
  position: relative; overflow: hidden;
  background:
    radial-gradient(at 12% 18%, #e0edfa 0, transparent 55%),
    radial-gradient(at 88% 82%, #fde8e1 0, transparent 55%),
    var(--card);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.email-spotlight-inner {
  max-width: 1080px; margin: 0 auto; padding: 64px 28px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center;
}
@media (max-width: 880px) { .email-spotlight-inner { grid-template-columns: 1fr; gap: 20px; padding: 48px 24px; } }

.email-copy h2 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 12px 0 14px; }
@media (max-width: 600px) { .email-copy h2 { font-size: 27px; } }
.email-copy .lede { font-size: 17px; color: var(--fg-soft); line-height: 1.62; margin: 0 0 18px; }
.email-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 24px; }
.email-badge {
  display: inline-flex; align-items: center; gap: 7px; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  font-size: 13.5px; font-weight: 600; color: var(--fg); box-shadow: var(--shadow-sm);
}
.email-badge svg { width: 15px; height: 15px; color: var(--primary); }

/* 3D stage + rotating card */
.email-stage { perspective: 1400px; display: flex; justify-content: center; align-items: center; min-height: 360px; }
.email-3d {
  position: relative; width: 340px; max-width: 84vw; transform-style: preserve-3d;
  animation: emailSpin 10s ease-in-out infinite, emailFloat 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes emailSpin {
  0%   { transform: rotateY(-26deg) rotateX(9deg); }
  50%  { transform: rotateY(26deg)  rotateX(4deg); }
  100% { transform: rotateY(-26deg) rotateX(9deg); }
}
@keyframes emailFloat { 0%,100% { margin-top: 0; } 50% { margin-top: -16px; } }

/* soft colored glow slab behind the card, for 3D depth on rotation */
.email-3d::before {
  content: ""; position: absolute; inset: 12px; border-radius: 20px;
  background: linear-gradient(120deg, rgba(59,127,196,.30), rgba(242,138,114,.24));
  transform: translateZ(-34px) scale(1.03); filter: blur(8px);
}
.email-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; transform: translateZ(42px);
  box-shadow: 0 34px 64px -22px rgba(59,127,196,.5), 0 8px 22px rgba(15,23,42,.09);
}
.email-card-head {
  background: linear-gradient(120deg, var(--primary), #5a9bd8);
  color: #fff; padding: 15px 18px; display: flex; align-items: center; gap: 11px;
}
.email-card-head .ec-avatar { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.22); display: grid; place-items: center; flex: none; }
.email-card-head .ec-avatar svg { width: 18px; height: 18px; color: #fff; }
.email-card-head .ec-from { font-size: 11.5px; opacity: .9; }
.email-card-head .ec-subj { font-size: 14.5px; font-weight: 700; }
.email-card-body { padding: 18px; }
.ec-line { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.ec-total { font-size: 26px; font-weight: 800; color: var(--fg); letter-spacing: -.02em; }
.ec-total small { font-size: 12.5px; font-weight: 600; color: #c2410c; margin-left: 7px; }
.ec-bars { margin-top: 12px; display: grid; gap: 9px; }
.ec-bar-row { display: grid; grid-template-columns: 66px 1fr 42px; align-items: center; gap: 9px; font-size: 12px; color: var(--fg-soft); }
.ec-bar-row span:last-child { text-align: right; color: var(--muted); }
.ec-bar { display: block; height: 8px; border-radius: 5px; }
.ec-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ec-chip { background: var(--mint-soft); color: var(--ok-fg); border-radius: 999px; padding: 2px 9px; font-weight: 700; font-size: 11px; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .email-3d { animation: none; transform: rotateY(-14deg) rotateX(6deg); }
}

/* ============================================================================
   "The cycle that ends here" — wide two-panel before / after with icon chips
   ============================================================================ */
.cycle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; max-width: 1000px; margin: 8px auto 0; }
@media (max-width: 760px) { .cycle-grid { grid-template-columns: 1fr; } }
.cycle-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow-sm); }
.cycle-card.is-after { border-color: var(--line-strong); box-shadow: var(--shadow); }
.cycle-head { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cycle-card.is-before .cycle-head { color: #b06a4e; }
.cycle-card.is-after .cycle-head { color: var(--primary-hover); }
.cycle-head .cycle-badge { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.cycle-head .cycle-badge svg { width: 16px; height: 16px; }
.cycle-card.is-before .cycle-badge { background: var(--pink-soft); color: #be123c; }
.cycle-card.is-after .cycle-badge { background: var(--mint-soft); color: var(--ok-fg); }
.cycle-list { display: grid; gap: 11px; }
.cycle-item { display: grid; grid-template-columns: 40px 1fr; gap: 13px; align-items: center; font-size: 14.5px; color: var(--fg-soft); }
.cycle-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.cycle-ic svg { width: 18px; height: 18px; }
.cycle-card.is-before .cycle-item { color: var(--muted); }
/* pastel icon tints (feather strokes inherit currentColor) */
.ic-mute   { background: #eef2f7; color: #64748b; }
.ic-pink   { background: var(--pink-soft);   color: #be123c; }
.ic-peach  { background: var(--peach-soft);  color: #9a5b12; }
.ic-mint   { background: var(--mint-soft);   color: var(--ok-fg); }
.ic-sky    { background: var(--sky-soft);    color: #075985; }
.ic-blue   { background: var(--primary-soft);color: var(--primary-hover); }
.ic-violet { background: #ece9fb;            color: #6d5bd0; }

/* ============================================================================
   Generic spotlight layout (reused by the animated Sheet + Dashboard blocks)
   ============================================================================ */
.spotlight { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spotlight.tint-mint { background: radial-gradient(at 14% 20%, #d9f7ea 0, transparent 55%), radial-gradient(at 88% 84%, #e0f2fe 0, transparent 55%), var(--card); }
.spotlight.tint-violet { background: radial-gradient(at 86% 18%, #ece9fb 0, transparent 55%), radial-gradient(at 10% 86%, #e0edfa 0, transparent 55%), var(--card); }
.spotlight-inner { max-width: 1080px; margin: 0 auto; padding: 62px 28px; display: grid; grid-template-columns: 1fr 1.02fr; gap: 46px; align-items: center; }
@media (max-width: 880px) { .spotlight-inner { grid-template-columns: 1fr; gap: 22px; padding: 48px 24px; } }
@media (min-width: 881px) { .spotlight-inner.reverse .spotlight-viz { order: -1; } }
.spotlight-copy h2 { font-size: 33px; line-height: 1.16; letter-spacing: -0.02em; margin: 12px 0 14px; }
@media (max-width: 600px) { .spotlight-copy h2 { font-size: 26px; } }
.spotlight-copy .lede { font-size: 17px; color: var(--fg-soft); line-height: 1.62; margin: 0 0 20px; }
.spotlight-viz { display: flex; justify-content: center; align-items: center; min-height: 340px; perspective: 1300px; }

/* ---- animated Google Sheet ---- */
.sheet-3d {
  width: 366px; max-width: 86vw; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; transform-style: preserve-3d;
  box-shadow: 0 34px 64px -24px rgba(52,211,153,.5), 0 8px 22px rgba(15,23,42,.09);
  animation: sheetFloat 8s ease-in-out infinite;
}
@keyframes sheetFloat {
  0%,100% { transform: rotateY(-15deg) rotateX(7deg) translateY(0); }
  50%     { transform: rotateY(-9deg)  rotateX(5deg) translateY(-13px); }
}
.sheet-head { background: linear-gradient(120deg, #34d399, #10b981); color: #fff; padding: 11px 15px; display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13px; }
.sheet-head .sh-dot { width: 8px; height: 8px; border-radius: 50%; background: #eaffef; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: syncPulse 1.8s ease-out infinite; margin-left: auto; }
.sheet-head .sh-sync { font-size: 11px; font-weight: 600; opacity: .92; }
@keyframes syncPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.sheet-grid { position: relative; }
.sheet-row { display: grid; grid-template-columns: 52px 1fr 66px; gap: 8px; padding: 9px 15px; font-size: 12px; color: var(--fg-soft); border-bottom: 1px solid var(--line); opacity: 0; animation: rowIn .55s ease forwards; }
.sheet-row .sr-amt { text-align: right; font-weight: 700; color: #c2410c; }
.sheet-row .sr-amt.in { color: var(--ok-fg); }
.sheet-row:nth-child(1) { animation-delay: .15s; } .sheet-row:nth-child(2) { animation-delay: .45s; }
.sheet-row:nth-child(3) { animation-delay: .75s; } .sheet-row:nth-child(4) { animation-delay: 1.05s; }
.sheet-row:nth-child(5) { animation-delay: 1.35s; } .sheet-row:nth-child(6) { animation-delay: 1.65s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.sheet-scan { position: absolute; left: 0; right: 0; height: 34px; top: 0; background: linear-gradient(180deg, rgba(52,211,153,.16), rgba(52,211,153,0)); border-top: 2px solid rgba(16,185,129,.55); animation: scanDown 4.4s ease-in-out infinite; pointer-events: none; }
@keyframes scanDown { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(210px); opacity: 0; } }

/* ---- animated dashboard ---- */
.dash-3d {
  width: 372px; max-width: 86vw; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px; transform-style: preserve-3d;
  box-shadow: 0 34px 64px -24px rgba(59,127,196,.5), 0 8px 22px rgba(15,23,42,.09);
  animation: dashFloat 8s ease-in-out infinite;
}
@keyframes dashFloat {
  0%,100% { transform: rotateY(14deg) rotateX(7deg) translateY(0); }
  50%     { transform: rotateY(9deg)  rotateX(5deg) translateY(-13px); }
}
.dash-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
.dash-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.dash-donut { width: 96px; height: 96px; flex: none; }
.dash-donut circle.track { fill: none; stroke: var(--line); stroke-width: 12; }
.dash-donut circle.val { fill: none; stroke: var(--primary); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 251; transform: rotate(-90deg); transform-origin: 50% 50%; animation: donutFill 5s ease-in-out infinite; }
@keyframes donutFill { 0% { stroke-dashoffset: 251; } 45% { stroke-dashoffset: 82; } 60% { stroke-dashoffset: 82; } 100% { stroke-dashoffset: 251; } }
.dash-stats { display: grid; gap: 8px; }
.dash-stat-pill { font-size: 12.5px; color: var(--fg-soft); }
.dash-stat-pill b { color: var(--fg); }
.dash-bars { display: flex; align-items: flex-end; gap: 11px; height: 96px; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.dash-bar { flex: 1; border-radius: 6px 6px 0 0; transform-origin: bottom; animation: barGrow 4.2s ease-in-out infinite; }
@keyframes barGrow { 0% { transform: scaleY(.14); } 50% { transform: scaleY(1); } 100% { transform: scaleY(.14); } }
.dash-bar:nth-child(2) { animation-delay: .35s; } .dash-bar:nth-child(3) { animation-delay: .7s; }
.dash-bar:nth-child(4) { animation-delay: 1.05s; } .dash-bar:nth-child(5) { animation-delay: 1.4s; }

@media (prefers-reduced-motion: reduce) {
  .sheet-3d, .dash-3d { animation: none; }
  .sheet-row { opacity: 1; animation: none; }
  .sheet-scan, .sheet-head .sh-dot, .dash-donut circle.val, .dash-bar { animation: none; }
  .dash-donut circle.val { stroke-dashoffset: 82; }
  .dash-bar { transform: scaleY(1); }
}

/* ============================================================================
   Big site footer
   ============================================================================ */
.site-footer {
  text-align: left; padding: 0; margin-top: 64px; border-top: 1px solid var(--line);
  background:
    radial-gradient(at 0% 0%, #eef4fc 0, transparent 45%),
    radial-gradient(at 100% 0%, #fdeee8 0, transparent 42%),
    var(--primary-softer);
}
.footer-top { max-width: 1120px; margin: 0 auto; padding: 54px 28px 34px; display: grid; grid-template-columns: 1.4fr 3fr; gap: 44px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; gap: 30px; } }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--fg); }
.footer-logo:hover { text-decoration: none; color: var(--fg); }
.footer-logo img { border-radius: 8px; }
.footer-brand p { color: var(--fg-soft); font-size: 14px; line-height: 1.6; margin: 14px 0 18px; max-width: 340px; }
.footer-cta { display: inline-flex; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 600px) { .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 4px 0 12px; }
.footer-col a { display: block; font-size: 14px; color: var(--fg-soft); padding: 5px 0; }
.footer-col a:hover { color: var(--primary-hover); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--line); max-width: 1120px; margin: 0 auto;
  padding: 20px 28px 30px; display: flex; flex-wrap: wrap; gap: 10px 18px;
  align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted);
}
.footer-vbm { display: inline-flex; align-items: center; gap: 8px; }
.footer-vbm .vbm-mark { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(135deg, var(--primary), var(--pink)); display: inline-block; }
.footer-vbm a { color: var(--fg); font-weight: 700; }
.footer-vbm a:hover { color: var(--primary-hover); }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--primary-hover); }
