/* ============================================
   GrowReach Split-Screen Homepage Styles
   CSS-only layout — no JS framework needed
   LCP target: <2.5s | 0 JS errors | Safari/iOS safe
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand colors */
  --gr-blue: #2563eb;
  --gr-blue-dark: #1e3a5f;
  --gr-blue-light: #f8fafc;
  --gr-green: #16a34a;
  --gr-green-light: #f0fdf4;
  --gr-amber: #f59e0b;
  --gr-text: #1e293b;
  --gr-text-muted: #64748b;
  --gr-border: #e5e7eb;
  --gr-white: #ffffff;

  /* Typography */
  --gr-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --gr-nav-height: 44px;
  --gr-card-padding: 48px;
  --gr-card-padding-mobile: 24px;
}

html {
  font-size: 16px;
  -webkit-font-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--gr-font);
  color: var(--gr-text);
  line-height: 1.6;
  background: var(--gr-white);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Sticky Navigation --- */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--gr-nav-height);
  padding: 0 24px;
  background: var(--gr-white);
  border-bottom: 1px solid var(--gr-border);
}

.sticky-nav .logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--gr-blue);
  letter-spacing: -0.02em;
}

.sticky-nav .logo span {
  color: var(--gr-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-signin {
  font-size: 14px;
  color: var(--gr-text-muted);
  font-weight: 500;
}

.nav-trial {
  font-size: 14px;
  font-weight: 600;
  color: var(--gr-white);
  background: var(--gr-blue);
  padding: 8px 20px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.nav-trial:hover {
  background: #1d4ed8;
}

/* --- Hero Question --- */
.hero-question {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: var(--gr-text);
  padding: 40px 24px 24px;
  line-height: 1.3;
}

/* --- Split-Screen Hero --- */
.split-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--gr-nav-height) - 92px);
  gap: 0;
  border-top: 1px solid var(--gr-border);
}

.split-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--gr-card-padding);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
  position: relative;
}

.split-card.left {
  background: var(--gr-blue-light);
}

.split-card.right {
  background: var(--gr-white);
  border-left: 1px solid var(--gr-border);
}

/* Hover states — desktop only */
@media (hover: hover) {
  .split-card.left:hover {
    background: #f1f5f9;
  }

  .split-card.right:hover {
    background: var(--gr-green-light);
  }

  .split-card:hover .cta-button {
    transform: scale(1.02);
  }
}

/* Active state — mobile tap feedback */
.split-card.left:active {
  background: #e2e8f0;
}

.split-card.right:active {
  background: #dcfce7;
}

/* --- Card Icon --- */
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.split-card.left .card-icon {
  background: rgba(245, 158, 11, 0.12);
}

.split-card.right .card-icon {
  background: rgba(22, 163, 74, 0.12);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

/* --- Hero Visual Placeholder --- */
.hero-visual {
  width: 100%;
  max-width: 360px;
  height: 180px;
  margin-bottom: 28px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--gr-text-muted);
  text-align: center;
  padding: 16px;
  line-height: 1.5;
}

.split-card.left .hero-visual {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.split-card.right .hero-visual {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

/* --- Card Headline --- */
.split-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gr-text);
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* --- Card Subheadline --- */
.split-card .subheadline {
  font-size: 15px;
  font-weight: 400;
  color: var(--gr-text-muted);
  line-height: 1.5;
  max-width: 340px;
  margin-bottom: 24px;
}

/* --- CTA Button --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background-color: var(--gr-blue);
  color: var(--gr-white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  min-width: 240px;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease;
  border: none;
  cursor: pointer;
  line-height: 1.4;
}

.cta-button:hover {
  background: #1d4ed8;
}

/* --- Microcopy Under CTA --- */
.cta-microcopy {
  font-size: 13px;
  color: var(--gr-text-muted);
  margin-top: 12px;
}

/* --- Proprietary Concept Label --- */
.concept-label {
  font-size: 13px;
  color: var(--gr-text-muted);
  margin-top: 16px;
  font-style: italic;
  font-weight: 500;
}

/* --- "Want both?" Helper --- */
.both-helper {
  text-align: center;
  font-size: 14px;
  color: var(--gr-text-muted);
  padding: 20px 24px 32px;
  background: var(--gr-white);
}

/* --- Inactivity Prompt --- */
#inactivity-prompt {
  display: none;
  text-align: center;
  font-size: 14px;
  color: var(--gr-text-muted);
  padding: 16px 24px 32px;
  animation: fadeIn 0.4s ease;
}

#inactivity-prompt a {
  color: var(--gr-blue);
  font-weight: 500;
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Social Proof Bar --- */
.social-proof-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 24px;
  background: var(--gr-white);
  border-top: 1px solid var(--gr-border);
  border-bottom: 1px solid var(--gr-border);
  font-size: 14px;
  color: var(--gr-text-muted);
  font-weight: 500;
}

.social-proof-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-proof-bar strong {
  color: var(--gr-text);
  font-weight: 700;
}

/* --- Below-fold sections --- */
.below-fold {
  padding: 64px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.below-fold h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gr-text);
  margin-bottom: 32px;
  text-align: center;
}

/* How it works — 3 steps */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.how-it-works-step {
  text-align: center;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gr-blue);
  color: var(--gr-white);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.how-it-works-step h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.how-it-works-step p {
  font-size: 14px;
  color: var(--gr-text-muted);
  line-height: 1.5;
}

/* Feature highlights */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 24px;
  border: 1px solid var(--gr-border);
  border-radius: 12px;
  background: var(--gr-white);
}

.feature-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--gr-text-muted);
}

/* Pricing teaser */
.pricing-teaser {
  text-align: center;
  padding: 48px 24px;
  background: var(--gr-blue-light);
  border-radius: 12px;
}

.pricing-teaser h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-teaser p {
  font-size: 15px;
  color: var(--gr-text-muted);
  margin-bottom: 20px;
}

/* Dual CTA at bottom */
.dual-cta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* --- Footer --- */
.site-footer {
  background: var(--gr-text);
  color: #94a3b8;
  padding: 48px 24px 24px;
  font-size: 14px;
}

.footer-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gr-white);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid #334155;
  font-size: 13px;
}

/* ============================
   MOBILE LAYOUT (< 768px)
   ============================ */
@media (max-width: 767px) {
  .sticky-nav {
    padding: 0 16px;
  }

  .nav-signin {
    display: none;
  }

  .nav-trial {
    padding: 6px 16px;
    font-size: 13px;
  }

  .hero-question {
    font-size: 22px;
    padding: 24px 16px 16px;
  }

  .split-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    border-top: none;
  }

  .split-card {
    padding: var(--gr-card-padding-mobile);
    min-height: 280px;
    border-left: none;
    border-bottom: 1px solid var(--gr-border);
  }

  .split-card.right {
    border-left: none;
  }

  .hero-visual {
    height: 140px;
    margin-bottom: 20px;
  }

  .split-card h2 {
    font-size: 20px;
  }

  .split-card .subheadline {
    font-size: 14px;
  }

  .cta-button {
    width: 100%;
    min-width: unset;
    min-height: 52px;
  }

  .both-helper {
    font-size: 13px;
    padding: 16px 16px 24px;
  }

  .social-proof-bar {
    flex-direction: column;
    gap: 8px;
    padding: 20px 16px;
    font-size: 13px;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .dual-cta {
    flex-direction: column;
  }

  .dual-cta .cta-button {
    min-width: unset;
  }

  .below-fold {
    padding: 40px 16px;
  }
}

/* ============================
   Exit Intent Popup
   ============================ */
.exit-intent-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.exit-intent-popup {
  background: var(--gr-white);
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.exit-intent-popup h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gr-text);
}

.exit-intent-popup p {
  font-size: 14px;
  color: var(--gr-text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.exit-intent-popup input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid var(--gr-border);
  border-radius: 8px;
  margin-bottom: 12px;
  font-family: var(--gr-font);
}

.exit-intent-popup input[type="email"]:focus {
  border-color: var(--gr-blue);
  outline: none;
}

.exit-intent-popup .exit-submit {
  width: 100%;
  padding: 14px;
  background: var(--gr-blue);
  color: var(--gr-white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.exit-intent-popup .exit-submit:hover {
  background: #1d4ed8;
}

.exit-intent-popup .exit-privacy {
  font-size: 12px;
  color: var(--gr-text-muted);
  margin-top: 12px;
}

.exit-intent-popup .exit-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 14px;
  color: var(--gr-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
  font-family: var(--gr-font);
}

.exit-intent-popup .exit-close:hover {
  color: var(--gr-text);
}

.exit-confirmation {
  display: none;
  padding: 20px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--gr-green);
}

@media (max-width: 767px) {
  .exit-intent-popup {
    padding: 28px 20px;
    margin: 16px;
  }
}