/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--parchment);
  color: var(--ink-mid);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
input { font-family: inherit; }

/* ================================================================
   DESIGN TOKENS — from src/theme/tokens.ts
   ================================================================ */
:root {
  /* Brand greens */
  --green-deep:   #1A3A2A;
  --green-mid:    #2D5C3F;
  --green-active: #3D7A52;
  --green-accent: #4CAF78;
  --green-light:  #E8F4EE;

  /* Neutral surfaces */
  --white:         #FFFFFF;
  --parchment:     #F7F6F3;
  --parchment-mid: #EDEAE4;

  /* Text / ink scale */
  --ink:       #111111;
  --ink-mid:   #3A3A3A;
  --ink-muted: #6B6B6B;
  --ink-faint: #9A9A9A;

  /* Structural */
  --border: #DDD9D0;

  /* Status */
  --danger:      #C0392B;
  --danger-light:#FEF2F2;
  --warning:     #92400E;
  --warning-bg:  #FEF9EC;
  --credit:      #1E6E3A;

  /* Category colors */
  --cat-dues:       #4CAF78;
  --cat-events:     #5B9BD5;
  --cat-supplies:   #E6A817;
  --cat-operations: #8B7355;

  /* Overlays on dark */
  --on-dark-divider:   rgba(255,255,255,0.10);
  --on-dark-fill:      rgba(255,255,255,0.15);
  --on-dark-subtle:    rgba(255,255,255,0.30);
  --on-dark-muted:     rgba(255,255,255,0.55);
  --on-dark-secondary: rgba(255,255,255,0.60);
  --on-dark-primary:   rgba(255,255,255,0.85);

  /* Layout */
  --max-w: 1200px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================================================================
   UTILITY
   ================================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 30px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
  .mockup-frame { transform: none; }
}

.animate-on-scroll {
  opacity: 0; transform: translate3d(0, 20px, 0);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}
.animate-on-scroll.visible { opacity: 1; transform: translate3d(0, 0, 0); }
.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.1s; }
.delay-3 { transition-delay: 0.15s; }
.delay-4 { transition-delay: 0.2s; }
.delay-5 { transition-delay: 0.25s; }
.delay-6 { transition-delay: 0.3s; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  padding-top: max(16px, env(safe-area-inset-top));
  background: rgba(26, 58, 42, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--on-dark-divider);
  transition: padding 0.3s ease, background 0.3s ease;
}
.navbar.scrolled { padding: 10px 0; background: rgba(26, 58, 42, 0.97); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; color: var(--white);
  letter-spacing: -0.5px;
}
.nav-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex;
  align-items: center; justify-content: center;
  overflow: hidden;
}
.nav-logo-mark img {
  width: 32px; height: 32px; object-fit: contain; display: block;
  filter:
    drop-shadow(0 -2px 3px rgba(212, 175, 55, 0.75))
    drop-shadow(0 0 2px rgba(212, 175, 55, 0.15))
    drop-shadow(0 2px 6px rgba(212, 175, 55, 0.12));
}
.nav-links { display: none; gap: 28px; list-style: none; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--on-dark-secondary);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  padding: 8px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  background: var(--green-active); color: var(--white);
  transition: all 0.2s ease;
}
.nav-cta:hover { background: var(--green-deep); transform: translateY(-1px); }

/* ================================================================
   HERO — dark greenDeep background, matching the app sidebar/brand
   ================================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
  background: var(--green-deep);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-gradient-1 {
  position: absolute; top: -20%; right: -10%; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(76,175,120,0.15) 0%, transparent 70%);
  filter: blur(80px); animation: pulse-glow 8s ease-in-out infinite;
}
.hero-gradient-2 {
  position: absolute; bottom: -30%; left: -15%; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(45,92,63,0.25) 0%, transparent 70%);
  filter: blur(100px); animation: pulse-glow 10s ease-in-out infinite 2s;
}
.hero-gradient-3 {
  position: absolute; top: 10%; left: 30%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(91,155,213,0.08) 0%, transparent 70%);
  filter: blur(80px); animation: pulse-glow 12s ease-in-out infinite 4s;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--on-dark-divider) 1px, transparent 1px),
    linear-gradient(90deg, var(--on-dark-divider) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}
.hero .container { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-content { text-align: center; max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: var(--on-dark-fill); border: 1px solid var(--on-dark-divider);
  font-size: 13px; font-weight: 500; color: var(--on-dark-secondary);
  margin-bottom: 32px;
  animation: fadeUp 0.8s var(--ease-out-expo) both;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-accent); }
.hero-title {
  font-size: clamp(36px, 6vw, 64px); font-weight: 900; line-height: 1.05;
  letter-spacing: -0.03em; color: var(--white);
  margin-bottom: 14px;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.15s both;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--green-accent) 0%, #7DD8A0 50%, var(--green-accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subheadline {
  font-size: clamp(17px, 2.2vw, 22px); line-height: 1.4;
  color: var(--white); font-weight: 500; max-width: 600px; margin: 0 auto 20px;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.25s both;
}
.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 18px); line-height: 1.6;
  color: var(--on-dark-secondary); max-width: 600px; margin: 0 auto 8px;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.3s both;
}
.hero-subtitle:last-of-type { margin-bottom: 32px; }
.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.45s both;
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px;
  background: var(--green-active); color: var(--white);
  font-size: 16px; font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(76,175,120,0.3);
}
.btn-primary:hover {
  background: #2D6340;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(76,175,120,0.4);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px;
  background: var(--on-dark-fill); border: 1px solid var(--on-dark-subtle);
  color: var(--white); font-size: 16px; font-weight: 600;
  transition: all 0.25s ease;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* Hero value-prop pills */
.hero-pills {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin: 20px 0 28px;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white); font-size: 13px; font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hero-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}
.hero-pill-icon {
  width: 14px; height: 14px;
  color: var(--green-accent);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .hero-gradient-1, .hero-gradient-2, .hero-gradient-3 { animation: none; filter: blur(40px); }
}
@media (max-width: 640px) {
  .hero-pills { flex-direction: column; align-items: center; gap: 8px; }
  .container { padding: 0 16px; }
  .calc-section .container { padding: 0 12px; }
  .hero { min-height: auto; padding: 104px 0 56px; }
  .hero-gradient-3 { display: none; }
  .hero-content { max-width: 100%; }
  .hero-badge {
    max-width: 100%;
    text-align: center;
    padding: 6px 12px;
    margin-bottom: 24px;
    font-size: 12px;
    display: block;
  }
  .hero-badge-dot {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
  }
  .hero-title { font-size: clamp(34px, 12vw, 52px); margin-bottom: 12px; }
  .hero-subheadline { font-size: 16px; margin-bottom: 16px; }
  .hero-subtitle { font-size: 14px; margin-bottom: 6px; }
  .hero-subtitle:last-of-type { margin-bottom: 24px; }
  .hero-actions { width: 100%; gap: 12px; }
  .btn-primary, .btn-secondary { width: min(100%, 280px); justify-content: center; }
}

/* ================================================================
   DASHBOARD MOCKUP
   ================================================================ */
.hero-mockup {
  display: block; margin-top: 64px; width: 100%; max-width: 960px;
  animation: fadeUp 1s var(--ease-out-expo) 0.6s both;
  perspective: 1200px; cursor: pointer;
  --mockup-desktop-height: 592px;
}
@media (max-width: 640px) {
  .hero-mockup { margin-top: 40px; max-width: 360px; }
}
.mockup-frame {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 80px rgba(76,175,120,0.08);
  transform: rotateX(4deg);
  transition: transform 0.6s var(--ease-out-expo);
}
.mockup-frame:hover { transform: rotateX(0deg); }
@media (max-width: 640px) {
  .mockup-frame { transform: none; }
}
.mockup-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: #F1F2F5; border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot.r { background: #E05252; }
.mockup-dot.y { background: #E6A817; }
.mockup-dot.g { background: #4CAF78; }
.mockup-titlebar-text {
  flex: 1; text-align: center; font-size: 12px;
  color: var(--ink-muted); font-weight: 500;
}
@media (max-width: 640px) {
  .mockup-titlebar { padding: 10px 12px; }
  .mockup-titlebar-text {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.mockup-body { display: flex; min-height: var(--mockup-desktop-height); }
@media (max-width: 640px) { .mockup-body { flex-direction: column; min-height: auto; height: 640px; } }

.mockup-sidebar {
  width: 200px; flex-shrink: 0; padding: 12px;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  min-height: var(--mockup-desktop-height);
  box-sizing: border-box;
}
/* Bottom tab bar — mobile only, hidden on desktop */
.mockup-bottom-bar { display: none; }
@media (max-width: 640px) {
  .mockup-titlebar { display: none; }
  .mockup-sidebar { display: none; }
  .mockup-bottom-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0 10px;
    background: var(--white);
    border-top: 1px solid var(--border);
  }
  .bottom-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 9px;
    font-weight: 500;
    color: var(--ink-faint);
    min-width: 0;
  }
  .bottom-tab svg { width: 18px; height: 18px; }
  .bottom-tab-active-home { color: var(--green-accent); }
  .bottom-tab-active-treasury { color: var(--ink-faint); }
  .mockup-frame.show-treasury .bottom-tab-active-home { color: var(--ink-faint); }
  .mockup-frame.show-treasury .bottom-tab-active-treasury { color: var(--green-accent); }
}
.sidebar-logo {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 16px;
}
.sidebar-logo img { border-radius: 6px; }
.sidebar-logo-text { font-weight: 700; font-size: 14px; color: var(--ink); letter-spacing: -0.02em; }
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px; margin-bottom: 2px;
  font-size: 13px; font-weight: 500; color: var(--ink-muted);
}
.sidebar-item svg { width: 16px; height: 16px; }

/* Sidebar active states — toggle between Home and Treasury views */
.sidebar-item.home-active { background: var(--green-light); color: var(--green-accent); font-weight: 700; }
.sidebar-item.home-active svg { color: var(--green-accent); }
.sidebar-item.treasury-active svg { color: var(--ink-muted); }
.mockup-frame.show-treasury .sidebar-item.home-active { background: none; color: var(--ink-muted); font-weight: 500; }
.mockup-frame.show-treasury .sidebar-item.home-active svg { color: var(--ink-muted); }
.mockup-frame.show-treasury .sidebar-item.treasury-active { background: var(--green-light); color: var(--green-accent); font-weight: 700; }
.mockup-frame.show-treasury .sidebar-item.treasury-active svg { color: var(--green-accent); }

/* Treasury sub-nav — shown only when treasury view is active */
.treasury-subnav { display: none; padding-left: 38px; }
.treasury-subnav-item { font-size: 11px; padding: 5px 10px; color: var(--ink-muted); border-radius: 6px; margin-bottom: 1px; }
.treasury-subnav-item.active { color: var(--green-accent); background: var(--green-light); font-weight: 600; }
.mockup-frame.show-treasury .treasury-subnav { display: block; }

.sidebar-notifications { margin-top: auto; }
.sidebar-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint);
  padding: 14px 12px 6px;
}
.sidebar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 12px 0; border-top: 1px solid var(--border);
}
.sidebar-avatar {
  width: 28px; height: 28px; border-radius: 50%; font-size: 10px; font-weight: 700;
  background: var(--parchment); color: var(--ink-mid);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-user-info { display: flex; flex-direction: column; }
.sidebar-user-name { font-size: 11px; font-weight: 600; color: var(--ink); }
.sidebar-user-role { font-size: 10px; color: var(--ink-muted); }

/* View switching — two content areas cross-fade */
.mockup-main { position: relative; flex: 1; overflow: hidden; min-height: var(--mockup-desktop-height); }
.mockup-view { position: absolute; inset: 0; padding: 18px 20px; background: #F7F8FA; overflow: hidden; transition: opacity 0.6s ease; box-sizing: border-box; }
.mockup-view-treasury { opacity: 0; }
.mockup-frame.show-treasury .mockup-view-home { opacity: 0; }
.mockup-frame.show-treasury .mockup-view-treasury { opacity: 1; }
@media (max-width: 640px) {
  .mockup-main {
    display: grid;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  .mockup-view {
    grid-row: 1;
    grid-column: 1;
    position: relative;
    inset: auto;
    padding: 12px;
    overflow: hidden;
  }
}

/* Home view components */
.mockup-greeting { font-size: 13px; color: var(--ink-mid); margin-bottom: 16px; }
.mockup-greeting strong { color: var(--ink); }
.role-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 100px; background: var(--green-light); color: var(--green-accent); margin-left: 6px; }
.kpi-row { display: flex; gap: 10px; margin-bottom: 16px; }
.kpi-card { flex: 1; padding: 10px; border-radius: 10px; background: var(--white); border: 1px solid var(--border); min-width: 0; }
.kpi-card.kpi-green { background: var(--green-light); border-color: rgba(76,175,120,0.2); }
.kpi-card.kpi-amber { background: #FFFBEB; border-color: rgba(217,119,6,0.2); }
.kpi-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); margin-bottom: 4px; }
.kpi-value { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.kpi-green .kpi-value { color: var(--credit); }
.home-section-title { font-size: 12px; font-weight: 600; color: var(--ink-mid); margin-bottom: 10px; }
.home-events { display: flex; flex-direction: column; gap: 8px; }
.home-event { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--white); border-radius: 8px; border: 1px solid var(--border); }
.event-badge { width: 38px; padding: 6px 0; border-radius: 8px; font-size: 9px; font-weight: 700; text-align: center; color: var(--white); line-height: 1.2; flex-shrink: 0; }
.event-badge.green { background: var(--green-accent); }
.event-badge.pink { background: #E05252; }
.event-badge.amber { background: #D97706; }
.event-name { font-size: 12px; font-weight: 600; color: var(--ink); }
.event-meta { font-size: 10px; color: var(--ink-muted); }

/* Home two-column layout */
.home-columns { display: flex; gap: 14px; }
.home-col { flex: 1; min-width: 0; }
.home-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.home-section-header-spaced { margin-top: 14px; }
.home-section-link { font-size: 10px; color: var(--green-accent); font-weight: 600; }

/* Event photo card */
.event-photo-card {
  position: relative;
  height: 112px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(76,175,120,0.22), transparent 38%),
    linear-gradient(135deg, #1D3B2B 0%, #264936 42%, #3E6C4E 100%);
}
.event-photo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.event-photo-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 10px 10px;
  background: linear-gradient(180deg, transparent, rgba(8,19,13,0.82));
}
.event-photo-caption-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
}
.event-photo-caption-meta {
  font-size: 9px;
  color: rgba(255,255,255,0.78);
}

/* Payments list */
.home-payments { display: flex; flex-direction: column; gap: 6px; }
.home-payment { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: var(--white); border-radius: 8px; border: 1px solid var(--border); }
.payment-name { font-size: 12px; font-weight: 600; color: var(--ink); }
.payment-status { font-size: 10px; }
.payment-status.paid { color: var(--green-accent); }
.payment-status.overdue { color: #E05252; }
.payment-amount { font-size: 12px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Activity list */
.home-activity { display: flex; flex-direction: column; gap: 6px; }
.activity-item { font-size: 11px; color: var(--ink-mid); display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.activity-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.activity-dot.green { background: var(--green-accent); }
.activity-dot.blue { background: var(--cat-events); }
.activity-dot.amber { background: #D97706; }
.activity-time { margin-left: auto; font-size: 10px; color: var(--ink-faint); }
@media (max-width: 640px) {
  .mockup-greeting { margin-bottom: 12px; font-size: 12px; }
  .role-badge { font-size: 9px; padding: 2px 6px; }
  .kpi-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
  }
  .kpi-card { padding: 8px; }
  .kpi-card:last-child { grid-column: 1 / -1; }
  .kpi-label { font-size: 9px; }
  .kpi-value { font-size: 15px; }
  .home-columns { flex-direction: column; gap: 10px; }
  .home-section-title { font-size: 11px; }
  .home-section-link { font-size: 9px; }
  .home-event, .home-payment { padding: 7px 8px; }
  .event-badge { width: 34px; font-size: 8px; }
  .event-name, .payment-name { font-size: 11px; }
  .event-meta, .payment-status { font-size: 9px; }
  .payment-amount { font-size: 11px; }
  .event-photo-card { height: 80px; }
  .activity-item { font-size: 10px; }
}

/* Period tabs */
.period-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.period-tab { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; color: var(--ink-muted); background: var(--white); border: 1px solid var(--border); }
.period-tab.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Account balances */
.acct-section { margin-bottom: 16px; }
.acct-title { font-size: 12px; font-weight: 600; color: var(--ink-mid); margin-bottom: 8px; }
.acct-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.acct-row:last-child { border-bottom: none; }
.acct-name { font-size: 12px; font-weight: 600; color: var(--ink); }
.acct-type { font-size: 10px; color: var(--ink-muted); }
.acct-bal { font-size: 12px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Treasury view */
.mockup-toprow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 640px) { .mockup-toprow { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  padding: 16px; border-radius: 10px;
  background: var(--white); border: 1px solid var(--border);
}
.stat-card-primary {
  background: var(--green-light); border-color: rgba(76,175,120,0.2);
}
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); margin-bottom: 6px; }
.stat-value { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.stat-value.green { color: var(--green-accent); }
.stat-value.credit { color: var(--credit); }


.txn-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.txn-title { font-size: 12px; font-weight: 600; color: var(--ink-mid); }
.txn-badge {
  font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 100px;
  background: var(--green-light); color: var(--credit);
}
.txn-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12px;
}
.txn-row:last-child { border-bottom: none; }
.txn-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.txn-icon.dues { background: var(--green-light); color: var(--green-accent); }
.txn-icon.event { background: rgba(91,155,213,0.12); color: var(--cat-events); }
.txn-icon.reimb { background: rgba(230,168,23,0.12); color: var(--cat-supplies); }
.txn-desc { flex: 1; }
.txn-name { font-weight: 600; color: var(--ink); font-size: 12px; }
.txn-meta { color: var(--ink-muted); font-size: 11px; }
.txn-amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.txn-amount.positive { color: var(--credit); }
.txn-amount.negative { color: var(--ink-mid); }

.hero-fade-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(transparent, var(--green-deep));
  z-index: 2; pointer-events: none;
}

/* Admin role note below mockup */
.mockup-role-note {
  text-align: center; font-size: 13px;
  color: var(--on-dark-muted); margin-top: 16px;
}
@media (max-width: 640px) {
  .mockup-role-note { margin-top: 10px; font-size: 12px; }
}
.mockup-role-note a {
  color: var(--green-accent);
  text-decoration: underline; text-underline-offset: 2px;
}

/* ================================================================
   SECTION COMMON
   ================================================================ */
section { padding: 80px 0; position: relative; }
@media (min-width: 768px) { section { padding: 112px 0; } }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green-accent); margin-bottom: 16px;
}
.section-label-line { width: 24px; height: 1px; background: var(--green-accent); }
.section-title {
  font-size: clamp(28px, 4vw, 48px); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 16px;
}
@media (max-width: 640px) {
  .section-title { line-height: 1.1; }
}
.section-subtitle {
  font-size: clamp(16px, 1.8vw, 18px); color: var(--ink-muted);
  line-height: 1.6; max-width: 600px;
}
.section-header { text-align: center; margin-bottom: 56px; }
@media (max-width: 640px) {
  .section-header { margin-bottom: 40px; }
}
.section-header .section-subtitle { margin: 0 auto; }



/* ================================================================
   PAIN POINTS — on white
   ================================================================ */
.pain-section { background: var(--white); }
.pain-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.pain-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }

.pain-card {
  padding: 32px; border-radius: 14px;
  background: var(--parchment); border: 1px solid var(--border);
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.pain-card:hover { border-color: var(--green-accent); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(26,58,42,0.08); }
.pain-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-accent), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.pain-card:hover::before { opacity: 1; }
.pain-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.pain-icon.spreadsheet { background: rgba(91,155,213,0.12); color: var(--cat-events); }
.pain-icon.dues-chase { background: rgba(76,175,120,0.12); color: var(--green-accent); }
.pain-icon.audit-trail { background: rgba(230,168,23,0.12); color: var(--cat-supplies); }
.pain-icon.notices { background: rgba(139,115,85,0.12); color: var(--cat-operations); }
.pain-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.pain-desc { font-size: 15px; color: var(--ink-muted); line-height: 1.6; }
@media (max-width: 640px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pain-card { padding: 16px; }
  .pain-icon { width: 34px; height: 34px; margin-bottom: 12px; border-radius: 10px; }
  .pain-icon svg { width: 17px; height: 17px; }
  .pain-title { font-size: 14px; margin-bottom: 6px; line-height: 1.25; }
  .pain-desc { font-size: 12px; line-height: 1.5; }
}

/* ================================================================
   FEATURES GRID — on parchment
   ================================================================ */
.features-section { background: var(--parchment); }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.features-more { margin-top: 24px; text-align: center; }
.features-more-toggle {
  list-style: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink-mid);
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--white);
  user-select: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.features-more-toggle:hover { border-color: var(--green-accent); color: var(--ink); }
.features-more-toggle::-webkit-details-marker { display: none; }
.features-more-toggle::marker { display: none; }
.features-more-icon { display: inline-flex; transition: transform 0.2s ease; color: var(--ink-muted); }
.features-more-icon svg { width: 14px; height: 14px; }
.features-more[open] .features-more-icon { transform: rotate(180deg); }
.features-grid-extra { margin-top: 16px; text-align: left; }

.feature-card {
  padding: 28px; border-radius: 14px;
  background: var(--white); border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.feature-card:hover { border-color: rgba(76,175,120,0.3); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(26,58,42,0.06); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon.treasury { background: rgba(76,175,120,0.12); color: var(--green-accent); }
.feature-icon.dues { background: rgba(76,175,120,0.12); color: var(--credit); }
.feature-icon.events { background: rgba(91,155,213,0.12); color: var(--cat-events); }
.feature-icon.reimb { background: rgba(230,168,23,0.12); color: var(--cat-supplies); }
.feature-icon.rbac { background: rgba(139,115,85,0.12); color: var(--cat-operations); }
.feature-icon.audit { background: var(--parchment-mid); color: var(--ink-muted); }
.feature-icon.reports { background: rgba(91,155,213,0.12); color: var(--cat-events); }
.feature-icon.notif { background: rgba(230,168,23,0.12); color: var(--cat-supplies); }
.feature-icon.mindmap { background: rgba(168,130,255,0.12); color: #A882FF; }
.feature-title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }
@media (max-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feature-card { padding: 14px; }
  .feature-icon { width: 32px; height: 32px; margin-bottom: 10px; }
  .feature-icon svg { width: 16px; height: 16px; }
  .feature-title { font-size: 13px; margin-bottom: 4px; line-height: 1.25; }
  .feature-desc { font-size: 12px; line-height: 1.45; }
}

/* ================================================================
   HOW IT WORKS — dark greenDeep
   ================================================================ */
.how-section { background: var(--green-deep); }
.how-section::before, .how-section::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--on-dark-divider), transparent);
}
.how-section::before { top: 0; }
.how-section::after { bottom: 0; }
.how-section .section-title { color: var(--white); }
.how-section .section-subtitle { color: var(--on-dark-secondary); }
.how-steps { display: grid; grid-template-columns: 1fr; gap: 48px; position: relative; }
@media (min-width: 768px) { .how-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.how-step { text-align: center; position: relative; }
.how-number {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900; color: var(--white);
  background: var(--green-accent);
}
.how-step-title { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.how-step-desc { font-size: 15px; color: var(--on-dark-secondary); line-height: 1.6; max-width: 300px; margin: 0 auto; }

/* Connector lines */
@media (min-width: 768px) {
  .how-connector {
    position: absolute; top: 32px; width: calc(100% - 64px); left: calc(50% + 32px);
    height: 1px; z-index: 0;
    background: linear-gradient(90deg, var(--green-accent), rgba(76,175,120,0.15));
  }
  .how-step:last-child .how-connector { display: none; }
}
.how-connector { display: none; }
@media (min-width: 768px) { .how-connector { display: block; } }

/* ================================================================
   COMPATIBILITY — on parchment
   ================================================================ */
.compat-section { background: var(--parchment); position: relative; }
.compat-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.compat-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .compat-grid { grid-template-columns: repeat(3, 1fr); } }
.compat-card {
  padding: 28px; border-radius: 14px;
  background: var(--white); border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.compat-card:hover { border-color: var(--green-accent); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,58,42,0.06); }
.compat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: var(--green-light); color: var(--green-accent);
}
.compat-title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.compat-desc { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }
@media (max-width: 640px) {
  .compat-grid { gap: 12px; }
  .compat-card { padding: 16px; }
  .compat-icon { width: 34px; height: 34px; margin-bottom: 12px; border-radius: 10px; }
  .compat-icon svg { width: 17px; height: 17px; }
  .compat-title { font-size: 15px; margin-bottom: 6px; }
  .compat-desc { font-size: 13px; line-height: 1.5; }
}

/* ================================================================
   CALCULATOR — on white
   ================================================================ */
.calc-section { background: var(--white); position: relative; }
.calc-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.calc-widget {
  max-width: 960px; margin: 40px auto 0;
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 32px;
}
@media (min-width: 768px) { .calc-widget { padding: 48px; } }
.calc-inputs-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 28px;
}
.calc-inputs {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 480px) { .calc-inputs { grid-template-columns: 1fr 1fr; gap: 22px; } }
.calc-input-prefix-icon { position: relative; display: flex; align-items: center; }
.calc-input-icon {
  position: absolute; left: 14px;
  width: 18px; height: 18px;
  color: var(--green-accent); pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.calc-input-icon svg { width: 18px; height: 18px; }
.calc-input-group { display: flex; flex-direction: column; gap: 8px; }
.calc-input-group label {
  font-size: 13px; font-weight: 600; color: var(--ink-mid);
}
.calc-input-group input {
  padding: 12px 16px; border-radius: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--ink); font-size: 16px; font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none; width: 100%;
  font-variant-numeric: tabular-nums;
}
.calc-input-group input:focus {
  border-color: var(--green-accent);
  box-shadow: 0 0 0 3px rgba(76,175,120,0.12);
}
.calc-input-group input::-webkit-outer-spin-button,
.calc-input-group input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.calc-input-group input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.calc-input-prefix { position: relative; display: flex; align-items: center; }
.calc-currency {
  position: absolute; left: 16px;
  font-size: 16px; font-weight: 600;
  color: var(--ink-muted); pointer-events: none;
}
.calc-input-prefix input { padding-left: 28px; }
.calc-input-prefix-icon input { padding-left: 40px; }
.calc-results {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 28px;
}
.calc-card {
  padding: 24px; border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.2s ease;
  min-width: 0;
}
.calc-card-legacy {
  background: #FEF2F2;
  border-color: rgba(200, 80, 50, 0.18);
}
.calc-card-modern {
  background: #FFFBEB;
  border-color: rgba(217, 119, 6, 0.20);
}
.calc-card-atapilot {
  border: 1.5px solid var(--green-accent);
  background: linear-gradient(180deg, rgba(76,175,120,0.08) 0%, var(--white) 100%);
  box-shadow: 0 8px 24px rgba(76,175,120,0.10);
}

.calc-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.calc-card-icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.calc-card-icon svg { width: 22px; height: 22px; }
.calc-card-icon img { width: 24px; height: 24px; object-fit: contain; }
.calc-card-legacy .calc-card-icon { background: rgba(200, 80, 50, 0.10); color: rgb(180, 70, 40); }
.calc-card-modern .calc-card-icon { background: rgba(217, 119, 6, 0.10); color: rgb(180, 100, 10); }
.calc-card-atapilot .calc-card-icon { background: rgba(76, 175, 120, 0.14); color: var(--green-accent); }

.calc-card-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.calc-card-title { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; line-height: 1.15; }
.calc-card-sublabel {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  line-height: 1.3;
}
.calc-sublabel-loss { color: rgb(180, 70, 40); }
.calc-sublabel-warn { color: rgb(180, 100, 10); }
.calc-sublabel-emphasis { color: rgb(180, 100, 10); text-transform: uppercase; }

.calc-card-value {
  font-size: 36px; font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
  line-height: 1.05;
  margin-top: 4px;
}
.calc-value-loss { color: rgb(200, 70, 40); }
.calc-value-warn { color: rgb(217, 119, 6); }
.calc-value-keep { color: var(--credit); }

.calc-card-period {
  font-size: 13px; color: var(--ink-muted);
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 12px;
}
.calc-card-note {
  font-size: 13px; color: var(--ink-muted);
  line-height: 1.5;
  flex: 1;
}
.calc-card-bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.calc-card-bullets li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.calc-card-bullets li svg { width: 18px; height: 18px; color: var(--green-accent); flex-shrink: 0; }

.calc-card-status {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px; font-weight: 600;
}
.calc-status-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.calc-status-icon svg { width: 20px; height: 20px; }
.calc-status-loss { color: rgb(200, 70, 40); }
.calc-status-warn { color: rgb(217, 119, 6); }
.calc-status-keep { color: var(--credit); }
.calc-math {
  margin-top: 8px; margin-bottom: 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.calc-math summary {
  cursor: pointer;
  font-size: 13px; font-weight: 600;
  color: var(--ink-mid);
  padding: 8px 0;
  list-style: none;
  display: inline-flex; align-items: center; gap: 6px;
  user-select: none;
}
.calc-math summary::-webkit-details-marker { display: none; }
.calc-math summary::marker { display: none; }
.calc-math summary::before {
  content: '\25B8';
  font-size: 10px; color: var(--ink-muted);
  transition: transform 0.15s ease;
}
.calc-math[open] summary::before { transform: rotate(90deg); }
.calc-math summary:hover { color: var(--ink); }
.calc-math-body {
  padding-top: 16px; padding-left: 16px;
  display: flex; flex-direction: column; gap: 16px;
}
.calc-math-row {
  display: flex; flex-direction: column; gap: 4px;
}
.calc-math-row strong { font-size: 13px; color: var(--ink); }
.calc-math-row p {
  font-size: 13px; color: var(--ink-muted);
  line-height: 1.5; margin: 0;
}
.calc-math-example {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px; color: var(--ink-mid);
  background: var(--white);
  padding: 6px 10px; border-radius: 6px;
  border: 1px solid var(--border);
}
.calc-math-sources {
  margin-top: 8px; padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.calc-math-sources strong {
  font-size: 12px; font-weight: 700;
  color: var(--ink-mid);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.calc-math-sources p {
  font-size: 12px; color: var(--ink-muted);
  line-height: 1.5; margin: 0;
}
.calc-closing {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
  text-align: left;
}
.calc-closing-heading {
  font-size: 24px; font-weight: 800;
  color: var(--ink); margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.calc-closing-body {
  font-size: 15px; color: var(--ink-muted); line-height: 1.6;
  margin-bottom: 20px;
  max-width: 720px;
}
.calc-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.calc-benefit {
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  padding: 4px 0; text-align: left;
  font-size: 13px; color: var(--ink-mid); line-height: 1.35;
}
.calc-benefit-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green-light); color: var(--green-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.calc-benefit-icon svg { width: 19px; height: 19px; }
.calc-benefit > span { flex: 1; min-width: 0; }
.calc-disclaimer {
  font-size: 11px; color: var(--ink-faint);
  line-height: 1.5; text-align: center; margin-top: 16px;
}
.calc-cta-row { display: flex; justify-content: center; margin-top: 28px; }
.calc-cta-btn { padding: 14px 28px; font-size: 16px; }
@media (max-width: 640px) {
  .calc-cta-row { margin-top: 20px; }
  .calc-cta-btn { padding: 12px 20px; font-size: 14px; width: 100%; max-width: 360px; justify-content: center; }
}

/* Get your time back callout */
.timeback-callout {
  background: linear-gradient(135deg, rgba(76, 175, 120, 0.10) 0%, rgba(76, 175, 120, 0.04) 100%);
  border: 1px solid rgba(76, 175, 120, 0.22);
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.timeback-main { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.timeback-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.timeback-icon svg { width: 28px; height: 28px; }
.timeback-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.timeback-heading {
  font-size: 20px; font-weight: 800;
  color: var(--ink); letter-spacing: -0.01em; line-height: 1.2;
}
.timeback-body {
  font-size: 14px; color: var(--ink-mid); line-height: 1.5; margin: 0;
}
.timeback-benefits {
  display: flex; gap: 18px; align-items: center;
  flex-shrink: 0;
}
.timeback-benefit {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink-mid);
  text-align: center; line-height: 1.2;
  min-width: 64px;
}
.timeback-benefit-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(76, 175, 120, 0.14); color: var(--green-accent);
  display: flex; align-items: center; justify-content: center;
}
.timeback-benefit-icon svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
  .timeback-callout {
    flex-direction: column; align-items: stretch;
    padding: 20px;
    gap: 18px;
  }
  .timeback-benefits { justify-content: space-around; gap: 8px; }
}
/* Calculator — compressed 3-up structure for any non-desktop width (< 880px).
   Hides secondary chrome (sublabel/description/bullets), centers content,
   stacks icon above title, pins status row to bottom. Font sizes here are
   tablet-appropriate; the <640px block below shrinks them further for phones. */
@media (max-width: 879px) {
  .calc-results { gap: 10px; margin-bottom: 24px; align-items: stretch; }
  .calc-card { padding: 18px 14px 16px; gap: 0; text-align: center; align-items: center; justify-content: flex-start; }
  .calc-card-head { flex-direction: column; gap: 10px; align-items: center; margin-bottom: 10px; }
  .calc-card-icon { width: 38px; height: 38px; }
  .calc-card-icon svg { width: 19px; height: 19px; }
  .calc-card-icon img { width: 22px; height: 22px; }
  .calc-card-titles { align-items: center; text-align: center; min-height: 2.4em; justify-content: center; }
  .calc-card-title { font-size: 15px; line-height: 1.2; font-weight: 800; }
  .calc-card-sublabel { display: none; }
  .calc-card-value { font-size: 28px; margin-top: 0; line-height: 1.05; }
  .calc-card-period { font-size: 12px; padding-bottom: 12px; margin-top: 2px; margin-bottom: 0; border-bottom: 1px solid rgba(0,0,0,0.06); width: 100%; }
  .calc-card-note { display: none; }
  /* AtaPilot bullets hidden on tablet/mobile — colored value + status communicate "no fees" */
  .calc-card-bullets { display: none; }
  .calc-card-status {
    font-size: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: none;
    gap: 6px; line-height: 1.3;
    justify-content: center; align-items: center;
    flex-direction: row;
    min-height: 3.2em;
  }
  .calc-card-status .calc-status-icon { width: 16px; height: 16px; }
  .calc-card-status .calc-status-icon svg { width: 16px; height: 16px; }
}

/* Calculator + TimeBack — phone (< 640px): tighten chrome and shrink type further */
@media (max-width: 640px) {
  .timeback-callout { padding: 18px; margin-top: 18px; }
  .timeback-main { gap: 14px; }
  .timeback-icon { width: 48px; height: 48px; }
  .timeback-icon svg { width: 24px; height: 24px; }
  .timeback-heading { font-size: 17px; }
  .timeback-body { font-size: 13px; }
  .timeback-benefit { font-size: 11px; min-width: 56px; }
  .timeback-benefit-icon { width: 32px; height: 32px; }
  .timeback-benefit-icon svg { width: 16px; height: 16px; }
  .calc-widget { padding: 10px; }
  .calc-inputs-card { padding: 14px; margin-bottom: 16px; }
  .calc-results { gap: 6px; margin-bottom: 20px; }
  .calc-card { padding: 14px 10px 12px; }
  .calc-card-head { gap: 8px; margin-bottom: 8px; }
  .calc-card-icon { width: 32px; height: 32px; }
  .calc-card-icon svg { width: 16px; height: 16px; }
  .calc-card-icon img { width: 18px; height: 18px; }
  .calc-card-title { font-size: 13px; }
  .calc-card-value { font-size: 22px; }
  .calc-card-period { font-size: 10px; padding-bottom: 10px; }
  .calc-card-status { font-size: 10px; padding-top: 10px; min-height: 3.4em; }
  .calc-card-status .calc-status-icon { width: 14px; height: 14px; }
  .calc-card-status .calc-status-icon svg { width: 14px; height: 14px; }
  /* Closing + benefits */
  .calc-closing { padding-top: 18px; margin-bottom: 14px; }
  .calc-closing-heading { font-size: 20px; }
  .calc-closing-body { font-size: 14px; margin-bottom: 14px; }
  .calc-benefits { grid-template-columns: repeat(2, 1fr); gap: 12px 8px; margin-top: 12px; }
  .calc-benefit { font-size: 12px; gap: 8px; }
  .calc-benefit-icon { width: 32px; height: 32px; }
  .calc-benefit-icon svg { width: 16px; height: 16px; }
}

/* ================================================================
   SECURITY & TRUST — on white
   ================================================================ */
.trust-section { background: var(--white); }
.trust-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

.trust-card {
  padding: 28px; border-radius: 14px;
  background: var(--parchment); border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.trust-card:hover { border-color: var(--green-accent); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,58,42,0.06); }
.trust-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: var(--green-light); color: var(--green-accent);
}
.trust-title { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.trust-desc { font-size: 14px; color: var(--ink-muted); line-height: 1.5; }
@media (max-width: 640px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .trust-card { padding: 14px; }
  .trust-icon { width: 32px; height: 32px; margin-bottom: 10px; border-radius: 8px; }
  .trust-icon svg { width: 15px; height: 15px; }
  .trust-title { font-size: 13px; margin-bottom: 4px; line-height: 1.25; }
  .trust-desc { font-size: 12px; line-height: 1.45; }
}

/* ================================================================
   ROADMAP — dark greenDeep
   ================================================================ */
.roadmap-section { background: var(--green-deep); }
.roadmap-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--on-dark-divider), transparent);
}
.roadmap-section .section-title { color: var(--white); }
.roadmap-section .section-subtitle { color: var(--on-dark-secondary); }
.roadmap-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .roadmap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .roadmap-grid { grid-template-columns: repeat(4, 1fr); } }
.roadmap-card {
  padding: 24px; border-radius: 14px;
  background: var(--on-dark-fill); border: 1px dashed var(--on-dark-subtle);
  transition: all 0.3s ease;
}
.roadmap-card:hover { border-color: var(--green-accent); background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.roadmap-badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(76,175,120,0.2); color: var(--green-accent);
  margin-bottom: 14px;
  min-width: 78px; text-align: center;
}
.roadmap-title { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.roadmap-desc { font-size: 13px; color: var(--on-dark-muted); line-height: 1.5; }

/* ================================================================
   BETA EXPLAINER — on parchment
   ================================================================ */
.beta-section { background: var(--parchment); position: relative; }
.beta-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.beta-content { max-width: 640px; margin: 0 auto; text-align: center; }
.beta-heading {
  font-size: clamp(24px, 3vw, 36px); font-weight: 800;
  color: var(--ink); margin-bottom: 32px;
}
.beta-list { list-style: none; text-align: left; }
.beta-item {
  padding: 16px 20px; margin-bottom: 12px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; font-size: 15px; color: var(--ink-mid); line-height: 1.6;
}
@media (max-width: 640px) {
  .beta-item { padding: 12px 16px; margin-bottom: 8px; font-size: 14px; line-height: 1.5; }
  .beta-heading { margin-bottom: 24px; }
  .beta-closing { margin-top: 18px; font-size: 14px; }
}
.beta-item strong { color: var(--ink); }
.beta-closing {
  margin-top: 24px; font-size: 15px; color: var(--ink-muted); line-height: 1.6;
}

/* ================================================================
   CTA — on parchment
   ================================================================ */
.cta-section { background: var(--parchment); position: relative; overflow: hidden; }
.cta-glow {
  position: absolute; top: 50%; left: 50%; width: 700px; height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(76,175,120,0.08) 0%, transparent 65%);
  filter: blur(80px); pointer-events: none;
}
.cta-content { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto; }
.cta-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 16px;
}
.cta-subtitle { font-size: 17px; color: var(--ink-muted); line-height: 1.6; margin-bottom: 36px; }
.cta-form { display: none; gap: 12px; max-width: 480px; margin: 0 auto; flex-direction: column; }
html.js .cta-form { display: flex; }
@media (min-width: 480px) { html.js .cta-form { flex-direction: row; } }
.cta-input {
  flex: 1; padding: 14px 18px; border-radius: 12px;
  background: var(--white); border: 1.5px solid var(--border);
  color: var(--ink); font-size: 15px;
  transition: border-color 0.2s ease; outline: none;
}
.cta-input::placeholder { color: var(--ink-faint); }
.cta-input:focus { border-color: var(--green-accent); box-shadow: 0 0 0 3px rgba(76,175,120,0.12); }
.cta-submit {
  padding: 14px 28px; border-radius: 12px;
  background: var(--green-deep); color: var(--white);
  font-size: 15px; font-weight: 700; transition: all 0.25s ease;
  white-space: nowrap; box-shadow: 0 4px 20px rgba(26,58,42,0.2);
}
.cta-submit:hover { background: var(--green-mid); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,58,42,0.3); }
.cta-note { font-size: 13px; color: var(--ink-faint); margin-top: 16px; }
.cta-note-noscript { margin-top: 12px; }

/* ================================================================
   FAQ — on white
   ================================================================ */
.faq-section { background: var(--white); position: relative; }
.faq-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 12px; background: var(--parchment);
  overflow: hidden; transition: border-color 0.3s ease;
}
.faq-item[open] { border-color: var(--green-accent); }
.faq-question {
  padding: 20px 24px; font-size: 16px; font-weight: 600;
  color: var(--ink); cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }
.faq-question { -webkit-appearance: none; appearance: none; }
.faq-question::after {
  content: '+'; font-size: 20px; font-weight: 400; flex-shrink: 0;
  color: var(--ink-muted); transition: transform 0.2s ease;
}
.faq-item[open] .faq-question::after { content: '\2212'; }
.faq-answer { padding: 0 24px 20px; font-size: 15px; color: var(--ink-muted); line-height: 1.7; }
@media (max-width: 640px) {
  .faq-question { padding: 16px 20px; font-size: 15px; }
  .faq-answer { padding: 0 20px 16px; font-size: 14px; line-height: 1.6; }
  .faq-item { margin-bottom: 8px; }
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer { padding: 48px 0; padding-bottom: max(48px, env(safe-area-inset-bottom)); background: var(--green-deep); border-top: 1px solid var(--on-dark-divider); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; } }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; color: var(--white);
}
.footer-logo-mark {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex;
  align-items: center; justify-content: center;
  overflow: hidden;
}
.footer-logo-mark img {
  width: 20px; height: 20px; object-fit: contain; display: block;
  filter:
    drop-shadow(0 -2px 3px rgba(212, 175, 55, 0.75))
    drop-shadow(0 0 2px rgba(212, 175, 55, 0.15))
    drop-shadow(0 2px 6px rgba(212, 175, 55, 0.12));
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 14px; color: var(--on-dark-muted); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 13px; color: var(--on-dark-muted); text-align: center; margin-top: 24px; }
.footer-copy a { color: var(--green-accent); text-decoration: underline; text-underline-offset: 2px; }
.footer-credit { font-size: 10px; color: var(--on-dark-muted); text-align: center; margin-top: 8px; opacity: 0.45; line-height: 1.4; }
.footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ================================================================
   SHARED UTILITIES
   ================================================================ */
.icon-sm { width: 18px; height: 18px; }

/* Skip link */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 200;
  padding: 8px 16px; background: var(--green-accent); color: var(--white);
  font-size: 14px; font-weight: 600; border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* Privacy page */
.privacy-page { padding: 120px 0 80px; }
.privacy-page h1 { font-size: 2rem; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.privacy-page h2 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-top: 32px; margin-bottom: 8px; }
.privacy-page p { color: var(--ink-muted); line-height: 1.7; margin-bottom: 0; }
.privacy-page a { color: var(--green-active); text-decoration: underline; }
.privacy-updated { font-size: 0.9rem; color: var(--ink-faint); margin-bottom: 32px; }
.cta-privacy-link { color: #4CAF78; text-decoration: underline; }
.privacy-page a.privacy-cta-btn {
  display: inline-block; margin-top: 40px; padding: 14px 32px;
  background: var(--green-active); color: #ffffff; font-weight: 600;
  font-size: 1rem; border-radius: 10px; text-decoration: none;
  transition: background 0.2s ease;
}
.privacy-page a.privacy-cta-btn:hover { background: var(--green-deep); }
