/* =========================================================
   Tree Tracker — Marketing Site Styles
   Palette: forest green / light green / gold / earth brown
   ========================================================= */

:root {
  --primary: #2D6A4F;
  --primary-deep: #1F4E38;
  --light-green: #52B788;
  --light-green-soft: #B7E4C7;
  --gold: #D4A843;
  --gold-soft: #F5E1A8;
  --earth: #8B7355;
  --earth-soft: #D9CDB8;
  --bg: #FAF7F0;
  --bg-alt: #F1EBDD;
  --ink: #1B2A23;
  --ink-soft: #4A5A50;
  --line: #E5DFD0;
  --shadow-sm: 0 1px 2px rgba(27, 42, 35, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 42, 35, 0.08);
  --shadow-lg: 0 24px 60px rgba(27, 42, 35, 0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max-w: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Fraunces", "Source Serif Pro", Georgia, serif;
  font-feature-settings: "ss01", "ss02";
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primary-deep);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--light-green); }

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--primary-deep);
  letter-spacing: -0.01em;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--primary-deep); }
.nav-links a.active { background: var(--primary); color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; color: var(--primary-deep); }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 64px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    padding: 10px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    display: none;
    min-width: 200px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(82, 183, 136, 0.25), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(212, 168, 67, 0.18), transparent 60%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(45, 106, 79, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(45, 106, 79, 0.08);
  border: 1px solid rgba(45, 106, 79, 0.18);
  color: var(--primary-deep);
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--light-green);
  box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.25);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  margin: 18px 0 14px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--primary) 0%, var(--light-green) 60%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .tagline {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--earth);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero p.lede {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  max-width: 540px;
  color: var(--ink-soft);
}
.cta-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 28px;
  align-items: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: var(--primary-deep);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--primary-deep);
  border: 1.5px solid var(--primary-deep);
}
.btn-ghost:hover { background: var(--primary-deep); color: #fff; }

.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000;
  color: #fff;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  font-family: "Inter", sans-serif;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-md);
}
.appstore-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.appstore-badge svg { width: 28px; height: 28px; }
.appstore-badge .small { font-size: 0.7rem; opacity: 0.8; line-height: 1; }
.appstore-badge .big { font-size: 1.15rem; font-weight: 600; line-height: 1.1; margin-top: 2px; }

/* hero icon panel */
.hero-icon-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-icon-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  background: linear-gradient(160deg, #fff 0%, var(--bg-alt) 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  transform: rotate(-2deg);
  transition: transform .4s cubic-bezier(.2,.7,.3,1.2);
}
.hero-icon-card:hover { transform: rotate(0deg) scale(1.02); }
.hero-icon-card img {
  width: 78%;
  border-radius: 28%;
  box-shadow: 0 30px 60px rgba(45, 106, 79, 0.28);
}
.float-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary-deep);
  box-shadow: var(--shadow-md);
  animation: floaty 5s ease-in-out infinite;
}
.float-chip .badge {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: #fff;
  font-size: 0.95rem;
}
.chip-1 { top: 10%; left: -8%; animation-delay: 0s; }
.chip-1 .badge { background: var(--light-green); }
.chip-2 { bottom: 14%; right: -6%; animation-delay: 1.2s; }
.chip-2 .badge { background: var(--gold); }
.chip-3 { bottom: -4%; left: 8%; animation-delay: 2.4s; }
.chip-3 .badge { background: var(--earth); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 880px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-icon-wrap { order: -1; }
  .hero-icon-card { max-width: 320px; }
  .float-chip { font-size: 0.82rem; padding: 10px 12px; }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.section-head p {
  font-family: "Inter", sans-serif;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.features {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  position: relative;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(82, 183, 136, 0.06) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(82, 183, 136, 0.45);
}
.feature:hover::before { opacity: 1; }
.feature .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.feature .icon-wrap svg { width: 28px; height: 28px; }
.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.feature p {
  font-family: "Inter", sans-serif;
  font-size: 0.97rem;
  color: var(--ink-soft);
  margin: 0;
}

/* feature accent variants */
.f-1 .icon-wrap { background: linear-gradient(135deg, var(--primary), var(--light-green)); }
.f-2 .icon-wrap { background: linear-gradient(135deg, var(--gold), #B98A2A); }
.f-3 .icon-wrap { background: linear-gradient(135deg, var(--earth), #5E4E3A); }
.f-4 .icon-wrap { background: linear-gradient(135deg, var(--light-green), var(--primary)); }
.f-5 .icon-wrap { background: linear-gradient(135deg, #B98A2A, var(--gold)); }
.f-6 .icon-wrap { background: linear-gradient(135deg, var(--primary-deep), var(--earth)); }

@media (max-width: 920px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } section { padding: 64px 0; } }

/* ---------- CTA Strip ---------- */
.cta-strip {
  background:
    radial-gradient(700px 300px at 80% 50%, rgba(212, 168, 67, 0.25), transparent 70%),
    linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px;
  margin: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-lg);
}
.cta-strip h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 8px; }
.cta-strip p { color: rgba(255,255,255,0.85); font-family: "Inter", sans-serif; margin: 0; }
.cta-strip .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 800px) {
  .cta-strip { grid-template-columns: 1fr; padding: 40px 28px; }
  .cta-strip .cta-actions { justify-content: flex-start; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-deep);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer .brand { color: #fff; }
.footer h4 {
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin: 8px 0; font-family: "Inter", sans-serif; font-size: 0.95rem; }
.footer ul a { color: rgba(255,255,255,0.78); }
.footer ul a:hover { color: var(--gold-soft); }
.footer p { color: rgba(255,255,255,0.7); font-family: "Inter", sans-serif; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: "Inter", sans-serif;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.6);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal-hero {
  padding: 80px 0 32px;
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(82, 183, 136, 0.18), transparent 65%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  margin-bottom: 8px;
}
.legal-hero .meta {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: var(--earth);
  letter-spacing: 0.02em;
}
.legal-content {
  padding: 56px 0 80px;
  max-width: 820px;
  margin: 0 auto;
  font-family: "Inter", sans-serif;
  font-size: 1.02rem;
  color: var(--ink);
}
.legal-content h2 {
  font-size: 1.45rem;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--primary-deep);
}
.legal-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  color: var(--primary-deep);
}
.legal-content p, .legal-content li { color: var(--ink-soft); line-height: 1.75; }
.legal-content ul { padding-left: 22px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--light-green); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  color: var(--primary-deep);
}
.back-link:hover { color: var(--light-green); }
.back-link svg { width: 16px; height: 16px; }

/* ---------- A11y / focus ---------- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}
::selection { background: var(--gold-soft); color: var(--ink); }
