/* CSS Reset & Variables */
:root {
  --bg-cream: #FCFBF8;
  --primary-clay: #C46E62;
  --primary-clay-dark: #A1554A;
  --primary-clay-light: #FFF5F6;
  --text-charcoal: #2C2A29;
  --text-muted: #8B8581;
  --divider: #EAE5E0;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(44, 42, 41, 0.05);
  --shadow-md: 0 10px 30px rgba(44, 42, 41, 0.08);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme overrides */
.dark-theme {
  --bg-cream: #141212;
  --primary-clay-light: #2A1A18;
  --text-charcoal: #F5F4F2;
  --text-muted: #A8A29E;
  --divider: #2C2827;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700;800&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-charcoal);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

strong {
  color: var(--text-charcoal);
}

a {
  color: var(--primary-clay);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-clay-dark);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary-clay);
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Header & Navigation */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background-color: var(--bg-cream);
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 99;
  transition: var(--transition);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-charcoal);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
}
.brand-link img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: var(--transition);
}

.dark-theme .brand-link img {
  border: 1px solid var(--primary-clay);
  box-shadow: 0 0 10px rgba(196, 110, 98, 0.3);
  filter: brightness(1.2) contrast(1.1);
}


.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text-charcoal);
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--primary-clay);
}

.nav-toggle {
  display: none;
}

/* Buttons */
.button {
  display: inline-block;
  background-color: var(--primary-clay);
  color: white !important;
  font-family: var(--font-sans);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.button:hover {
  background-color: var(--primary-clay-dark);
  transform: translateY(-2px);
}

.button.secondary {
  background-color: transparent;
  color: var(--text-charcoal) !important;
  border: 1.5px solid var(--primary-clay);
}
.button.secondary:hover {
  background-color: var(--primary-clay-light);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-mark {
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--primary-clay);
  font-weight: 700;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--text-charcoal);
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--primary-clay);
}

.lede {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.actions {
  display: flex;
  gap: 16px;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-image img {
  max-width: 320px;
  height: auto;
  border-radius: 40px;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--divider);
}
.hero-image figcaption {
  position: absolute;
  bottom: -30px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Proof Band */
.proof-band {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
  background-color: var(--primary-clay-light);
  padding: 20px;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
}

/* General Sections */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--divider);
}

.section.blush {
  background-color: var(--primary-clay-light);
}

.section-kicker {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}
.section-kicker h2 {
  margin-bottom: 16px;
}

/* Features Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.feature-grid article {
  background-color: var(--bg-cream);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.feature-grid article:hover {
  transform: translateY(-5px);
  border-color: var(--primary-clay);
  box-shadow: var(--shadow-md);
}
.feature-grid article span {
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--primary-clay);
  font-size: 1.8rem;
  display: block;
  margin-bottom: 16px;
}

/* App Showcase Carousel */
.showcase-section {
  overflow: hidden;
  background-color: var(--primary-clay-light);
}

.carousel-container {
  max-width: 100%;
  position: relative;
  margin-top: 40px;
}

.carousel-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scroll 40s linear infinite;
}
.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-card {
  width: 260px;
  background: var(--bg-cream);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--divider);
  text-align: center;
  transition: var(--transition);
}
.carousel-card img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--divider);
  margin-bottom: 12px;
}
.carousel-card p {
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 0;
  color: var(--text-charcoal);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Guides Band */
.guide-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.guide-links a {
  display: flex;
  flex-direction: column;
  background: var(--bg-cream);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-sm);
}
.guide-links a:hover {
  border-color: var(--primary-clay);
  box-shadow: var(--shadow-md);
}
.guide-links a span {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 8px;
}
.guide-links a strong {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text-charcoal);
}
.guide-links a em {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Directory Page / Form */
.form-layout {
  max-width: 600px;
  margin: 60px auto 0 auto;
  background: var(--bg-cream);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-charcoal);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--divider);
  background-color: var(--bg-cream);
  color: var(--text-charcoal);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-clay);
}

/* Coverage Grid */
.coverage-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: center;
}

.seo-benefits {
  list-style: none;
  margin: 24px 0;
}
.seo-benefits li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
}
.seo-benefits li::before {
  content: "✓";
  color: var(--primary-clay);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.top-markets-card {
  background: var(--bg-cream);
  padding: 40px;
  border-radius: 24px;
  border: 1.5px solid var(--primary-clay);
  box-shadow: var(--shadow-md);
}
.top-markets-card h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-clay);
  margin-bottom: 24px;
}

.market-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.market-pill {
  background: var(--primary-clay-light);
  border: 1px solid var(--divider);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.stats-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Pricing Panel */
.subscription-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 0 24px;
  align-items: center;
}

.pricing-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-cream);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.price-row.featured {
  border: 2px solid var(--primary-clay);
  box-shadow: var(--shadow-md);
}

.plan-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--primary-clay);
  margin-bottom: 4px;
}

.price-row h3 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  margin-bottom: 4px;
  color: var(--text-charcoal);
}
.price-row span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.price-row .price {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-clay);
}

/* Legal Lists */
.legal-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}

.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.legal-list li {
  border-bottom: 1px solid var(--divider);
  padding-bottom: 16px;
}
.legal-list li strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.legal-list li span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background-color: var(--bg-cream);
  border-top: 1px solid var(--divider);
  padding: 60px 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.footer-origin {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.us-flag {
  width: 16px;
  height: 12px;
  background: linear-gradient(to bottom, #b22234 50%, #ffffff 50%);
  position: relative;
}

.footer-made-by {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.footer-made-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-logo {
  height: 36px;
  width: auto;
  filter: invert(1) brightness(0.2);
  transition: var(--transition);
}
.dark-theme .footer-logo {
  filter: none;
}


.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer nav a {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
}
.site-footer nav a:hover {
  color: var(--primary-clay);
}

/* Exit Intent Popup */
.exit-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 42, 41, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.exit-popup.active {
  display: flex;
}

.exit-popup-content {
  background: var(--bg-cream);
  padding: 40px;
  border-radius: 24px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--divider);
}

.exit-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* Sticky App Banner (Mobile) */
.sticky-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(252, 251, 248, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--divider);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 98;
  box-shadow: 0 -4px 20px rgba(44, 42, 41, 0.05);
}

/* Theme Toggle Button styling */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sun-icon { display: block; }
.moon-icon { display: none; }

.dark-theme .sun-icon { display: none; }
.dark-theme .moon-icon { display: block; }

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 24px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-copy {
    align-items: center;
  }
  .actions {
    justify-content: center;
  }
  .site-header {
    padding: 16px 24px;
  }
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: block;
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--text-charcoal);
    cursor: pointer;
  }
  .coverage-grid-container {
    grid-template-columns: 1fr;
  }
  .subscription-layout {
    grid-template-columns: 1fr;
  }
  .legal-layout {
    grid-template-columns: 1fr;
  }
}
