/* Shared styles for the public pages (home and EcoWise AI).
   Both design files carried an identical stylesheet; the rules used by
   both pages live here, and page-only rules live in home.css and
   ecowise.css. Nothing has been altered, only moved. */

:root {
  --forest-1: #123524;
  --forest-2: #0A2417;
  --cream: #F6F3EA;
  --ink: #1F2A22;
  --ink-soft: #51604F;
  --sage: #9FC3AA;
  --lime: #C6F25A;
  --hairline: #E4DFCF;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
a { color: var(--forest-1); }

/* ---- Top navigation and brand ---- */
.hero-nav {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 26px 32px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--cream); }
.brand .mark { flex: none; }
.brand .name { font-family: var(--serif); font-weight: 640; font-size: 21px; letter-spacing: -0.02em; }
.brand .name .the { color: var(--sage); font-style: italic; font-weight: 560; font-size: 0.82em; margin-right: .12em; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--sage); text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 1px; }
.nav-link:hover { color: var(--lime); border-bottom-color: var(--lime); }
.nav-group { display: flex; align-items: center; gap: 24px; }

/* ---- Section basics ---- */
.section { position: relative; padding: 104px 0; }
.eyebrow { font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest-1); margin: 0 0 18px; }
h2 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.015em; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.14; color: var(--forest-1); margin: 0; }
.lede { font-size: 18.5px; color: var(--ink-soft); max-width: 36em; margin: 22px 0 0; text-wrap: pretty; }
p { text-wrap: pretty; }

/* ---- Spinning logo animation ---- */
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Pills (round buttons) ---- */
.pill { display: inline-block; font-family: var(--sans); font-size: 15.5px; font-weight: 600; text-decoration: none; border-radius: 999px; padding: 14px 30px; cursor: pointer; border: none; transition: transform 0.15s ease, background-color 0.15s ease; }
.pill:active { transform: scale(0.97); }
.pill-lime { background: var(--lime); color: var(--forest-2); box-shadow: 0 12px 32px rgba(2, 14, 8, 0.5); }
.pill-lime:hover { background: #D2F876; }
.pill-forest { background: var(--forest-1); color: var(--cream); }
.pill-forest:hover { background: var(--forest-2); }

/* ---- Small badge (used by the flagship card and the demo report) ---- */
.tag { align-self: start; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }

/* ---- Footer ---- */
.footer { background: var(--forest-2); color: var(--sage); padding: 64px 0 52px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer .brand .name { color: var(--cream); }
.footer p { margin: 0; font-size: 14.5px; max-width: 34em; }
.footer strong { color: var(--cream); font-weight: 600; }
.footer a.inline { color: var(--lime); text-decoration: none; border-bottom: 1px solid rgba(198, 242, 90, 0.35); }
.footer a.inline:hover { border-bottom-color: var(--lime); }
.footer .nav-login { display: inline-block; margin-top: 14px; }
.footer .copy { margin-top: 22px; font-size: 12.5px; color: #6E8F7B; }

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section { padding: 72px 0; }
  .hero-nav { padding: 22px 20px; }
  .nav-group { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
