:root {
  color-scheme: dark;
  --color-background: #09090B;
  --color-foreground: #FAFAFA;
  --color-card: #121215;
  --color-card-foreground: #E4E4E7;
  --color-header-bg: rgba(9, 9, 11, 0.90);
  --color-btn-primary-bg: #F4F4F5;
  --color-btn-primary-fg: #09090B;
  --color-btn-primary-hover: #E4E4E7;
  --color-secondary: #1C1C21;
  --color-secondary-border: #2E2E36;
  --color-muted: #18181B;
  --color-muted-foreground: #A1A1AA;
  --color-border: #2E2E36;
  --color-border-subtle: #222227;
  --color-destructive: #F87171;
  --color-danger-bg: rgba(239, 68, 68, 0.14);
  --color-danger-border: rgba(248, 113, 113, 0.35);
  --color-emerald: #34D399;
  --color-emerald-bg: rgba(16, 185, 129, 0.14);
  --color-emerald-border: rgba(52, 211, 153, 0.32);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.55), 0 8px 20px -4px rgba(0, 0, 0, 0.65);
  --radius-md: 8px;
  --radius-lg: 14px;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --measure: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::selection { background: #27272A; color: #FAFAFA; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-background); }
::-webkit-scrollbar-thumb { background: #27272A; border-radius: 4px; }

body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--color-muted-foreground); outline-offset: 2px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tabular { font-variant-numeric: tabular-nums; }
.container { max-width: var(--measure); margin: 0 auto; padding: 0 24px; }

/* ==================== HEADER & BRAND LOCKUP ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15.5px; letter-spacing: -0.02em; }
.brand-mark { width: 32px; height: 32px; border-radius: var(--radius-md); border: 1px solid #3F3F46; background: #27272A; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; display: block; }

.cobrand-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-muted);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-muted-foreground);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; display: inline-block; }
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.status-dot.pulse { animation: statusPulse 2.2s infinite; }

.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--color-muted-foreground); transition: color 0.15s ease; }
.nav-links a:hover, .nav-login:hover { color: var(--color-foreground); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-login { font-size: 14px; color: var(--color-muted-foreground); text-decoration: none; }

/* ==================== BUTTONS & CARDS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-lg { padding: 12px 22px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--color-btn-primary-bg); color: var(--color-btn-primary-fg); }
.btn-primary:hover { background: var(--color-btn-primary-hover); }
.btn-secondary { background: var(--color-secondary); color: var(--color-foreground); border-color: var(--color-secondary-border); }
.btn-secondary:hover { border-color: var(--color-muted-foreground); }

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ==================== HERO + AGENDA WIDGET ==================== */
.hero { padding: 72px 0 80px; border-bottom: 1px solid var(--color-border-subtle); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero-title { font-size: clamp(32px, 3.8vw, 46px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.hero-subtitle { margin-top: 18px; max-width: 48ch; font-size: 16px; color: var(--color-muted-foreground); }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.calendar-widget { overflow: hidden; }
.cal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--color-muted); border-bottom: 1px solid var(--color-border-subtle); font-size: 13px; font-weight: 500; }
.cal-list { list-style: none; padding: 12px; display: grid; gap: 10px; }
.cal-event { display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; background: var(--color-background); border: 1px solid var(--color-border-subtle); border-radius: 10px; }
.cal-time { font-size: 12.5px; color: var(--color-muted-foreground); }
.cal-title { font-size: 13.5px; font-weight: 600; color: var(--color-foreground); }
.cal-sub { font-size: 12px; color: var(--color-muted-foreground); margin-top: 2px; }

.pill-ok, .pill-err { font-family: var(--font-mono); font-size: 11px; padding: 3px 9px; border-radius: 6px; white-space: nowrap; border: 1px solid transparent; }
.pill-ok { color: var(--color-emerald); background: var(--color-emerald-bg); border-color: var(--color-emerald-border); }
.pill-err { color: var(--color-destructive); background: var(--color-danger-bg); border-color: var(--color-danger-border); }

/* ==================== SECTIONS, CRM & FLOW ==================== */
.section { padding: 72px 0; border-bottom: 1px solid var(--color-border-subtle); }
.section-title { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 28px; }

.rescued-panel { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; padding: 32px; }
.rescued-amount { font-size: clamp(34px, 4vw, 48px); font-weight: 700; letter-spacing: -0.03em; color: var(--color-emerald); line-height: 1.1; }
.rescued-label { margin-top: 10px; font-size: 16px; color: var(--color-foreground); max-width: 38ch; }
.rescued-note { margin-top: 12px; font-size: 12.5px; color: var(--color-muted-foreground); max-width: 46ch; }
.rescued-bars { display: grid; gap: 12px; }
.deal-row { background: var(--color-background); border: 1px solid var(--color-border-subtle); border-radius: 10px; padding: 12px 16px; }
.deal-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.deal-track { height: 5px; background: var(--color-muted); border-radius: 999px; overflow: hidden; }
.deal-fill { height: 100%; background: var(--color-emerald); border-radius: 999px; }

.flow-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: center; }
.flow-step { padding: 24px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.step-icon { width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--color-muted); border: 1px solid var(--color-border); display: inline-flex; align-items: center; justify-content: center; color: var(--color-foreground); }
.step-num { font-size: 12px; color: var(--color-muted-foreground); }
.step-text { font-size: 15px; font-weight: 500; color: var(--color-foreground); }
.flow-arrow { color: var(--color-muted-foreground); display: flex; align-items: center; justify-content: center; }

/* ==================== CONV-BUBBLE COMPARATOR ==================== */
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.conv-bubble {
  background: var(--color-background);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-card-foreground);
}
.conv-bubble.ours { background: var(--color-muted); border-color: var(--color-border); }
.conv-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--color-muted-foreground); }
.spam-strike { color: var(--color-destructive); text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: 0.9; }
.mail-stamp { align-self: flex-start; margin-top: auto; white-space: normal; line-height: 1.4; }

/* ==================== PRICING & FOOTER ==================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.plan-featured { background: var(--color-muted); border-color: var(--color-border); }
.plan-name { font-size: 15px; font-weight: 600; }
.plan-price { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.plan-period { font-size: 13px; color: var(--color-muted-foreground); font-weight: 400; }
.plan-desc { font-size: 14px; color: var(--color-muted-foreground); margin-bottom: auto; }
.fintoc-bar { margin-top: 20px; padding: 14px 18px; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); background: var(--color-card); font-size: 13px; color: var(--color-muted-foreground); }

.site-footer { padding: 64px 0 32px; color: var(--color-muted-foreground); font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.25fr; gap: 36px; align-items: start; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-desc { color: var(--color-muted-foreground); font-size: 13.5px; line-height: 1.55; max-width: 30ch; }
.footer-subhead { font-size: 12px; font-weight: 600; color: var(--color-foreground); margin-top: 4px; }
.footer-socials { display: flex; align-items: center; gap: 10px; }
.social-link { width: 34px; height: 34px; border-radius: var(--radius-md); border: 1px solid var(--color-border-subtle); background: var(--color-card); color: var(--color-muted-foreground); display: inline-flex; align-items: center; justify-content: center; transition: color 0.15s ease, border-color 0.15s ease; }
.social-link:hover { color: var(--color-foreground); border-color: var(--color-border); }
.footer-heading { font-size: 13px; font-weight: 600; color: var(--color-foreground); letter-spacing: -0.01em; }
.footer-list { list-style: none; display: grid; gap: 10px; }
.footer-list a { text-decoration: none; color: var(--color-muted-foreground); transition: color 0.15s ease; }
.footer-list a:hover { color: var(--color-foreground); }
.trust-stack { display: grid; gap: 10px; }
.trust-badge { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--color-card); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); }
.trust-icon { color: var(--color-emerald); flex-shrink: 0; margin-top: 2px; }
.trust-badge strong { display: block; font-size: 12.5px; font-weight: 600; color: var(--color-foreground); line-height: 1.3; }
.trust-badge span { display: block; font-size: 11.5px; color: var(--color-muted-foreground); line-height: 1.35; margin-top: 2px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--color-border-subtle); font-size: 12.5px; color: var(--color-muted-foreground); }

@media (max-width: 900px) {
  .nav-links, .flow-arrow, .cobrand-pill { display: none; }
  .hero-grid, .rescued-panel, .flow-grid, .comp-grid, .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .cal-event { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
