/* ---------------------------------------------------------
   ROOT / RESET
--------------------------------------------------------- */
:root {
  --bg: #f7faf8;
  --bg-soft: #f0f6f2;
  --bg-soft-strong: #e3f0e6;
  --primary: #5ba773;
  --primary-soft: #88c79b;
  --primary-deep: #3f7c52;
  --text-main: #1b2820;
  --text-muted: #5e7264;
  --border-soft: #d5e4d9;
  --card-bg: #ffffff;
  --shadow-soft: 0 18px 40px rgba(21, 59, 35, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --transition-fast: 0.18s ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
}

p {
  color: var(--text-muted);
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-deep);
}

button {
  cursor: pointer;
}

/* Base card styling */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
}

/* --- BUTTON STYLES --- */
.btn {
  padding: .9rem 1.5rem;
  border-radius: var(--radius-lg);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  display: inline-block;
}

/* Primary Button */
.primary-btn {
  background: var(--primary);
  color: white;
}

.primary-btn:hover {
  background: var(--primary-deep);
  transform: translateY(-1px);
}

/* Secondary Button */
.secondary-btn {
  background: var(--bg-soft-strong);
  color: var(--primary-deep);
  border: 1px solid var(--border-soft);
}

.secondary-btn:hover {
  background: var(--border-soft);
  color: var(--primary-deep);
  transform: translateY(-1px);
}

/* Modal Button */
.modal-submit-btn {
  padding: .9rem;
  border-radius: 20px;
  background: var(--primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition-fast);
}

.modal-submit-btn:hover {
  background: var(--primary-deep);
}


/* ---------------------------------------------------------
   LAYOUT
--------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  margin-bottom: .75rem;
  font-size: 2.2rem;
}


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(247,250,248,0.95);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(12px);
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px; 
  background: radial-gradient(circle at 10% 0, var(--primary-soft), var(--primary-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(23,76,42,0.2);
}

.nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-links li a {
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links li a:hover {
  color: var(--primary-deep);
}

.nav-cta {
  padding: .5rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: white !important;
  font-weight: 600;
  transition: background var(--transition-fast);
}

.nav-cta:hover {
  background: var(--primary-deep);
}


/* -----------------------------------------
   DROPDOWN MENUS (FIXED)
----------------------------------------- */
.dropdown {
  position: relative;
}

.dropdown > a {
  cursor: pointer;
}

/* Keep menu open while hovering parent OR menu */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* Was 140%, causing hover gap */
  left: 0;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  list-style: none;
  padding: 1rem;
  margin: 0;
  width: 180px;
  border: 1px solid var(--border-soft);
  z-index: 50;
}

.dropdown-menu li {
  padding: .4rem 0;
}

.dropdown-menu a {
  color: var(--text-main);
  font-size: .95rem;
  font-weight: 500;
}

.dropdown-menu a:hover {
  color: var(--primary-deep);
}



/* ---------------------------------------------------------
   HERO (CENTERED)
--------------------------------------------------------- */

.hero-centered {
  text-align: center;
  padding: 6rem 0 4rem;
}

.hero-centered-logo {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-deep);
  margin-bottom: 1rem;
}

.hero-centered-title {
  font-size: 3rem;
  margin-bottom: .75rem;
}

.hero-centered-subtitle {
  max-width: 520px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.hero-chatbox {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero-chatbox textarea {
  width: 100%;
  height: 180px;
  padding: 1.2rem;
  border-radius: 30px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  resize: none;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--text-main);
  background: var(--card-bg);
  transition: border-color var(--transition-fast);
}

.hero-chatbox textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(90,167,115,0.2);
}

.chatbox-send-btn {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: var(--primary-soft);
  color: white;
  cursor: not-allowed;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.chatbox-send-btn:enabled {
  background: var(--primary);
  cursor: pointer;
}

.chatbox-send-btn:enabled:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
}

.hero-centered-disclaimer {
  margin-top: 1.5rem;
  font-size: .9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero-centered-disclaimer input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
  background: var(--card-bg);
  cursor: pointer;
  position: relative;
  top: 1px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.hero-centered-disclaimer input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.hero-centered-disclaimer input[type="checkbox"]:checked::after {
  content: '✔';
  position: absolute;
  top: -4px;
  left: 2px;
  color: white;
  font-size: 14px;
}


/* ---------------------------------------------------------
   FEATURES
--------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 45px rgba(21, 59, 35, 0.12);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin: 0 0 .5rem;
  color: var(--primary-deep);
}


/* ---------------------------------------------------------
   ABOUT
--------------------------------------------------------- */

.soft-bg {
  background: var(--bg-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.4rem;
  margin-top: 0;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-card {
  padding: 1.5rem;
  border-left: 5px solid var(--primary-soft);
}

.highlight-card h3 {
  margin: 0 0 .4rem;
  font-size: 1.25rem;
  color: var(--primary-deep);
}


/* ---------------------------------------------------------
   HOW IT WORKS
--------------------------------------------------------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1.5rem;
  margin: 0 0 .5rem;
}


/* ---------------------------------------------------------
   WAITLIST CTA
--------------------------------------------------------- */

.cta-section {
  padding: 5rem 0;
  background: var(--primary-soft);
}

.cta-inner {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-soft);
}

.cta-text h2 {
  margin: 0 0 .5rem;
  font-size: 2rem;
  color: var(--primary-deep);
}

.cta-text p {
  margin: 0;
  font-size: 1.1rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-width: 400px;
}

.waitlist-form .form-row {
  display: flex;
  gap: 1rem;
}

.waitlist-form input {
  flex-grow: 1;
  padding: .9rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  font-size: 1rem;
  background: var(--bg-soft);
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(90,167,115,0.25);
}

.waitlist-form .form-note {
  font-size: .85rem;
  text-align: right;
  margin: 0;
}


/* ---------------------------------------------------------
   CONTACT FORM
--------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.contact-text h2 {
  font-size: 2.4rem;
  margin-top: 0;
}

.contact-form {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: .4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  font-family: inherit;
  font-size: 1rem;
  transition: border .2s, box-shadow .2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(90,167,115,0.25);
}

.contact-form textarea {
  resize: vertical;
}


/* ---------------------------------------------------------
   MODAL
--------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 1000;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border-radius: 26px;
  padding: 2.2rem 2rem 2.4rem;
  width: 92%;
  max-width: 420px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(40,70,50,0.25);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: all .28s ease;
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: .6;
}

.modal-close:hover {
  opacity: 1;
}

.modal-card h2 {
  margin: 0 0 .5rem;
  font-size: 1.7rem;
}

.modal-subtitle {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
  font-size: .95rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-form input {
  padding: .85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: #f9fefb;
  font-size: 1rem;
}

.modal-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(90,167,115,0.25);
}

/* ---------------------------------------------------------
   REFINED FOOTER (3-COLUMN)
--------------------------------------------------------- */

.site-footer {
  margin-top: 4rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  padding: 3rem 0 2rem;
}

/* Tighter, more balanced layout */
.footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
  padding-top: 1rem;
}

/* Columns */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: .6rem; /* slightly tighter */
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: .25rem;
}

.footer-desc {
  max-width: 300px;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 1rem;
  opacity: .9;
}

.footer-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin-bottom: .4rem;
}

/* Links styling */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: .5rem 0 0 0;
}

.footer-links-list li {
  margin-bottom: .35rem;
}

.footer-links-list a {
  color: var(--text-main);
  font-size: .95rem;
  opacity: .85;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--primary-deep);
  opacity: 1;
}

/* Legal small text */
.footer-legal-note {
  margin-top: .8rem;
  font-size: .85rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.45;
  opacity: .85;
}

/* Bottom area */
.footer-bottom {
  margin-top: 2.5rem;
  text-align: center;
  font-size: .9rem;
  color: var(--text-muted);
  opacity: .85;
}

/* Optional: subtle vertical separators on large screens */
@media (min-width: 900px) {
  .footer-columns {
    position: relative;
  }

  .footer-columns > .footer-col:not(:first-child) {
    border-left: 1px solid rgba(90, 167, 115, 0.15); /* very soft green separator */
    padding-left: 2rem;
  }
}

/* Mobile refinement */
@media (max-width: 780px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-columns > .footer-col {
    border-left: none;
    padding-left: 0;
  }

  .footer-bottom {
    margin-top: 2rem;
  }
}


/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 1024px) {
  .cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .cta-text h2 {
    font-size: 1.8rem;
  }

  .waitlist-form {
    min-width: auto;
    width: 100%;
  }

  .waitlist-form .form-row {
    flex-direction: column;
    gap: 0.8rem;
  }
}

@media (max-width: 780px) {

  .hero-centered-title {
    font-size: 2.2rem;
  }

  .nav-toggle {
    display: block;
    z-index: 50;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    background: var(--card-bg);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform .3s ease-out;
    z-index: 30;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    padding: 0.5rem 0;
    width: 100%;
  }

  .nav-links li a {
    font-size: 1.1rem;
    color: var(--text-main);
  }

  .nav-cta {
    margin-top: 1rem;
    align-self: stretch;
    text-align: center;
  }

  .about-grid, 
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-text,
  .contact-text {
    text-align: center;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
