:root {
  --bg: #F5F0E8;
  --text: #2C2418;
  --text-muted: #2C241899;
  --brand: #3B6D11;
  --accent: #639922;
  --accent-light: #97C459;
  --card: #EDE8DE;
  --dark: #2C2418;
  --on-dark: #F5F0E8;
  --on-dark-muted: #F5F0E899;
  --radius-card: 14px;
  --radius-pill: 20px;
  --max-width: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ============ Nav ============ */
.site-nav {
  padding: 22px 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  border-bottom: 1px solid rgba(44, 36, 24, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.logo-word {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s ease;
}

.nav-link:hover { color: var(--brand); }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.pill-green {
  background: var(--brand);
  color: var(--on-dark);
}

/* ============ Hero ============ */
.hero {
  padding: 80px 0 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 20px;
}

.hero-title {
  font-family: "Lora", Georgia, serif;
  font-weight: 500;
  font-size: clamp(42px, 5.6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  color: var(--text);
}

.accent-italic {
  font-style: italic;
  color: var(--brand);
  font-weight: 500;
}

.hero-body {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
  opacity: 0.82;
  max-width: 520px;
  margin: 0 0 36px;
}

.cta-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--dark);
  color: var(--on-dark);
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-card);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: transform 0.15s ease, background 0.15s ease;
}

.cta-btn:hover {
  background: #1d1710;
  transform: translateY(-1px);
}

.cta-btn:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.cta-btn-small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.cta-btn-large {
  font-family: "Lora", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
}

.hero-meta {
  margin: 18px 0 0;
  font-style: italic;
  font-size: 14px;
  color: var(--text);
  opacity: 0.6;
}

/* ============ Phone wireframes ============ */
.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  position: absolute;
  width: 240px;
  height: 500px;
  border: 2.5px solid var(--dark);
  border-radius: 40px;
  background: var(--card);
  padding: 16px;
  box-shadow: 0 20px 60px -20px rgba(44, 36, 24, 0.25);
}

.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: var(--dark);
  border-radius: 3px;
  opacity: 0.3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.phone-leaf {
  width: 56px;
  height: 56px;
}

.phone-placeholder {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  color: var(--text);
  opacity: 0.5;
  text-align: center;
  padding: 0 16px;
}

.phone-front {
  top: 10px;
  left: 50%;
  transform: translateX(-85%);
  z-index: 2;
}

.phone-back {
  top: 70px;
  left: 50%;
  transform: translateX(-15%);
  width: 220px;
  height: 460px;
  opacity: 0.8;
  z-index: 1;
}

/* ============ Divider ============ */
.divider {
  height: 1px;
  margin: 0 auto;
  max-width: var(--max-width);
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(44, 36, 24, 0.18) 50%,
    transparent 100%
  );
}

/* ============ Features ============ */
.features {
  padding: 96px 0 96px;
}

.section-head {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 620px;
}

.section-head .eyebrow { margin-bottom: 16px; }

.section-title {
  font-family: "Lora", Georgia, serif;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

.features-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-title {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.005em;
}

.feature-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  opacity: 0.78;
  margin: 0;
}

/* ============ Bottom CTA ============ */
.cta-section {
  padding: 40px 0 120px;
}

.cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-title {
  font-family: "Lora", Georgia, serif;
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  color: var(--text);
}

.cta-sub {
  font-size: 18px;
  color: var(--text);
  opacity: 0.75;
  margin: 0 0 20px;
}

.cta-inner .cta-btn {
  align-items: flex-start;
}

.cta-meta {
  margin: 14px 0 0;
  font-style: italic;
  font-size: 14px;
  color: var(--text);
  opacity: 0.6;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--dark);
  color: var(--on-dark);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.logo-footer { color: var(--on-dark); }
.logo-footer .logo-mark path { fill: var(--accent-light); }
.logo-footer .logo-mark line { stroke: var(--dark); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--on-dark);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s ease;
}

.footer-links a:hover { color: var(--accent-light); }

.footer-copy {
  font-size: 14px;
  opacity: 0.65;
}

/* ============ Static-page content ============ */
.doc-page {
  padding: 64px 0 96px;
}

.doc-page .doc-title {
  font-family: "Lora", Georgia, serif;
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 32px;
}

.doc-page .doc-content {
  max-width: 720px;
}

.doc-page .doc-content p,
.doc-page .doc-content li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}

.doc-page .doc-content h2 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  margin: 40px 0 12px;
}

.doc-page .doc-content h3 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  margin: 28px 0 10px;
}

.doc-page .doc-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-effective-date {
  margin: -16px 0 28px;
  font-size: 15px;
  color: var(--text);
  opacity: 0.6;
}

.doc-summary {
  background: rgba(151, 196, 89, 0.22);
  border-left: 3px solid var(--brand);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 36px;
  font-size: 16px;
  line-height: 1.6;
}

.doc-summary strong { color: var(--brand); }

.doc-placeholder {
  padding: 32px;
  background: var(--card);
  border-radius: var(--radius-card);
  font-style: italic;
  color: var(--text);
  opacity: 0.7;
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 40px; }
}

@media (max-width: 768px) {
  .hero { padding: 48px 0 64px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-body { font-size: 17px; }
  .hero-visual {
    min-height: 440px;
    order: 2;
  }
  .phone {
    width: 200px;
    height: 420px;
    border-radius: 34px;
  }
  .phone-back {
    width: 184px;
    height: 380px;
  }
  .features { padding: 72px 0; }
  .cta-section { padding: 24px 0 80px; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; }
  .phone {
    width: 180px;
    height: 370px;
  }
  .phone-back {
    width: 164px;
    height: 330px;
  }
}

@media (max-width: 420px) {
  .nav-inner .pill { display: none; }
  .container { padding: 0 18px; }
  .hero-visual {
    min-height: 340px;
  }
  .phone-back { display: none; }
  .phone-front { transform: translateX(-50%); }
}
