/* Site Design Tokens & System - Clean Botanical Eco-Tech */
:root {
  --primary-dark: #1b2a26;
  --accent-emerald: #2e7d5b;
  --accent-emerald-hover: #246448;
  --accent-soft-purple: #6b4e71;
  --background-light: #f4f7f5;
  --card-surface: #ffffff;
  --text-dark: #1a2522;
  --text-muted: #5a6e67;
  --border-light: #e1e8e4;
  --max-width: 1120px;
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-card: 12px;
  --radius-btn: 8px;
  --shadow-card: 0 4px 20px rgba(27, 42, 38, 0.05);
  --shadow-hover: 0 8px 30px rgba(27, 42, 38, 0.1);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--background-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.brand-logo .accent-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-emerald);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-emerald);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-btn);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(46, 125, 91, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-cta:hover {
  background-color: var(--accent-emerald-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(46, 125, 91, 0.35);
}

/* Layout Containers & Sections */
.section {
  padding: 4.5rem 1.5rem;
}

.section-alt {
  background-color: var(--card-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.eyebrow-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-emerald);
  background-color: rgba(46, 125, 91, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Desktop Hero Section Layout */
.hero-section {
  padding: 3.5rem 1.5rem 4.5rem 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.hero-h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-intro {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-bullets {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-dark);
}

.hero-bullets li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background-color: rgba(46, 125, 91, 0.12);
  color: var(--accent-emerald);
  font-weight: bold;
  border-radius: 50%;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-cta-wrapper {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  width: 100%;
}

.hero-cta-btn {
  font-size: 1.1rem;
  padding: 1rem 2.25rem;
  width: 100%;
  max-width: 360px;
}

.hero-proof {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.hero-proof-icon {
  color: var(--accent-emerald);
}

.hero-visual-card {
  background-color: var(--card-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 1rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-visual-card img {
  width: 100%;
  border-radius: calc(var(--radius-card) - 4px);
  object-fit: cover;
}

/* Feature Cards & Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--card-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-image-wrapper {
  margin: -2rem -2rem 1.5rem -2rem;
  border-top-left-radius: var(--radius-card);
  border-top-right-radius: var(--radius-card);
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Workflow Step Cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.step-card {
  background-color: var(--card-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
}

.step-number {
  width: 44px;
  height: 44px;
  background-color: var(--accent-emerald);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

/* Surface Compatibility Grid */
.surface-quad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.surface-visual {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.surface-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  list-style: none;
}

.surface-item {
  background-color: var(--card-surface);
  border: 1px solid var(--border-light);
  padding: 1.25rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.surface-item-title {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.surface-item-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA Mid-Section Banner */
.cta-banner {
  text-align: center;
  margin-top: 2.5rem;
}

/* Guarantee Section Box */
.guarantee-box {
  background: linear-gradient(135deg, #ffffff 0%, #f4f7f5 100%);
  border: 2px solid var(--accent-emerald);
  border-radius: var(--radius-card);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.guarantee-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: rgba(46, 125, 91, 0.12);
  color: var(--accent-emerald);
  border-radius: 50%;
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}

.guarantee-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.guarantee-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Accordion FAQ Section */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--card-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent-emerald);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  background-color: #fafcfb;
  border-top: 0px solid transparent;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  transition: max-height 0.3s ease-in-out;
  border-top: 1px solid var(--border-light);
}

.faq-answer-content {
  padding: 1.25rem 1.5rem;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Disclaimer Banner */
.disclaimer-banner {
  background-color: #eaf0ed;
  border-left: 4px solid var(--accent-emerald);
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  margin: 3rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.disclaimer-banner strong {
  color: var(--primary-dark);
}

/* Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: #c0ceca;
  padding: 4rem 1.5rem 2rem 1.5rem;
  font-size: 0.9rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: #a2b5af;
  line-height: 1.6;
  max-width: 450px;
}

.footer-links h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #a2b5af;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #839791;
}

/* Legal Pages Template Styling */
.legal-page {
  padding: 4rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.legal-page h2 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin: 2rem 0 1rem 0;
}

.legal-page p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* CRITICAL BINDING CONSTRAINT: Mobile Hero Layout Order & Responsive Behavior */
@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 0;
  }
  
  .site-nav .nav-links {
    display: none; /* Hide header links on mobile for clean UI */
  }

  .site-nav > .btn-cta {
    display: none; /* Keep the authentic hero product image before the first mobile order CTA */
  }

  .hero-section {
    padding: 2rem 1rem 3rem 1rem;
  }

  /* Force linear flex flow on mobile for exact required DOM/Render Order:
     1. intro/H1 headline
     2. exactly one hero product image
     3. primary CTA
     4. compact proof
     5. value bullets
  */
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .hero-content {
    display: contents; /* Allows child re-ordering via flex order */
  }

  .eyebrow-kicker {
    order: 1;
    margin-bottom: 0.5rem;
  }

  .hero-h1 {
    order: 2;
    font-size: 1.85rem;
    margin-bottom: 0.75rem;
  }

  .hero-intro {
    order: 3;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .hero-visual-card {
    order: 4;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .hero-cta-wrapper {
    order: 5;
    margin: 0.25rem 0;
  }

  .hero-cta-btn {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
  }

  .hero-proof {
    order: 6;
    margin-bottom: 1rem;
  }

  .hero-bullets {
    order: 7;
    margin-top: 0.5rem;
  }

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

  .surface-quad-grid {
    grid-template-columns: 1fr;
  }

  .surface-list {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section {
    padding: 3rem 1rem;
  }
}
