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

:root {
  --green-dark:  #1E4D38;
  --green-mid:   #2D6A4F;
  --green-pale:  #EBF3EE;
  --green-hover: #174030;
  --white:       #FFFFFF;
  --text:        #111827;
  --mid:         #4B5563;
  --light:       #6B7280;
  --lighter:     #9CA3AF;
  --border:      #E5E2DC;
  --off:         #F7F6F3;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green-mid);
  outline-offset: 3px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 62px;
  background: rgba(30, 77, 56, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-logo {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--white);
  padding: 9px 20px;
  border-radius: 22px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--green-pale); }

/* ── HERO (home) ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 0;
  background: var(--green-dark);
  overflow: hidden;
}


.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-bottom: 40px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
}

.hero-headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7.5vw, 76px);
  font-weight: normal;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.hero-subhead {
  font-size: clamp(13px, 2.2vw, 17px);
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 48px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  background: var(--white);
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--green-pale); }
.btn-primary:active { transform: scale(0.98); }

/* Once you have Apple's official badge image, add class="app-store-badge"
   to the <a> tag (instead of btn-primary) and put an <img> inside it.
   This removes the button's own background/padding so the badge shows
   cleanly at its native look. */
.app-store-badge {
  display: inline-flex;
  transition: opacity 0.2s, transform 0.1s;
}
.app-store-badge:hover { opacity: 0.85; }
.app-store-badge:active { transform: scale(0.98); }
.app-store-badge img {
  height: 48px;
  width: auto;
  display: block;
}

/* Scorecard strip */
.scorecard-strip {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  margin-top: auto;
}

.scorecard-inner {
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(255,255,255,0.08);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.sc-cell {
  flex: 1;
  min-width: 0;
  padding: 10px 4px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  font-variant-numeric: tabular-nums;
}
.sc-cell:last-child { border-right: none; }

.sc-label {
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.15);
  margin-bottom: 4px;
}

.sc-val {
  font-family: Georgia, serif;
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}

/* ── FEATURES ── */
.features {
  padding: 88px 40px;
  max-width: 960px;
  margin: 0 auto;
}

.features-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 14px;
  text-align: center;
}

.features-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 4vw, 38px);
  font-weight: normal;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.2;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.feature-item {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.feature-item:nth-child(2n) { border-right: none; }
.feature-item:nth-child(3), .feature-item:nth-child(4) { border-bottom: none; }
.feature-item:hover { background: var(--green-pale); }

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--green-mid);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--mid);
}

/* ── PULL QUOTE ── */
.pull-section {
  background: var(--off);
  padding: 88px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pull-quote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: normal;
  color: var(--text);
  line-height: 1.45;
  max-width: 860px;
  margin: 0 auto 20px;
  text-wrap: balance;
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--green-dark);
  padding: 88px 40px;
  text-align: center;
}

.cta-band h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: normal;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-band p {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 40px;
}

/* ── FOOTER ── */
footer {
  background: var(--green-dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.footer-right a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-right a:hover { color: rgba(255,255,255,0.7); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* ── PAGE HERO (Support / Privacy / Terms) ── */
.page-hero {
  background: var(--green-dark);
  padding: 140px 40px 56px;
  text-align: center;
}

.page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: normal;
  color: var(--white);
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}

.page-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

/* ── Legal pages ── */
.legal-updated {
  font-size: 12px;
  color: var(--lighter);
  margin-bottom: 32px;
}

.legal-section { margin-bottom: 30px; }

.legal-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 8px;
}

.legal-section p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--mid);
  white-space: pre-line;
}

/* ── Support page ── */
.support-card {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 48px;
  text-align: center;
}

.support-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 8px;
}

.support-card p {
  font-size: 14.5px;
  color: var(--mid);
  margin-bottom: 18px;
}

.support-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  transition: background 0.2s;
}
.support-email:hover { background: var(--green-hover); }

.faq-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 24px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--mid);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .hero { min-height: auto; padding: 100px 24px 48px; }
  .features { padding: 64px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-item { border-right: none !important; }
  .feature-item:nth-child(3) { border-bottom: 1px solid var(--border) !important; }
  .pull-section { padding: 64px 24px; }
  .cta-band { padding: 64px 24px; }
  footer { padding: 28px 20px; flex-direction: column; align-items: flex-start; }
  .page-hero { padding: 120px 24px 48px; }
  .hero-cta-row { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-item { transition: none; }
}
