/* Fonts are served from our own domain rather than Google Fonts, so no
   visitor's IP address goes to Google. Variable Latin and Latin Extended
   subsets of Inter and Nunito (SIL OFL, licences alongside the files). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/nunito-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/nunito-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --bg: #FBF8F1;
  --bg-alt: #F2F5EC;
  --surface: #FFFFFF;
  --text: #1F2A1A;
  --muted: #5B6655;
  --line: #E6E1D3;
  --primary: #3DA35D;
  --primary-dark: #2E8049;
  --primary-deep: #1F5E33;
  --accent: #F4B942;
  --accent-soft: #FCEBC4;
  --radius: 20px;
  --font-heading: 'Nunito', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary-dark); }

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap.narrow { max-width: 760px; }

/* Header */
.site-header { padding: 18px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--font-heading); font-weight: 900; font-size: 1.25rem;
}
.brand img { border-radius: 10px; }
.header-link {
  font-weight: 600; text-decoration: none; color: var(--text);
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface);
}
.header-link:hover { border-color: var(--primary); color: var(--primary-dark); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--primary-dark), 0 12px 24px rgba(46, 128, 73, 0.25);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { background: #45B066; transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--primary-dark), 0 6px 12px rgba(46, 128, 73, 0.2); }
.btn:focus-visible, .header-link:focus-visible, summary:focus-visible, .site-footer a:focus-visible, .more:focus-visible, .related a:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
.btn-light {
  background: #fff; color: var(--primary-deep);
  box-shadow: 0 6px 0 #CFE3C9, 0 12px 24px rgba(0, 0, 0, 0.18);
}
.btn-light:hover { background: #fff; }
.btn-light:active { box-shadow: 0 2px 0 #CFE3C9, 0 6px 12px rgba(0, 0, 0, 0.15); }

.cta-block { margin-top: 32px; }
.cta-note { margin-top: 16px; font-size: 0.95rem; color: var(--muted); }

/* Hero */
.hero { padding: 24px 0 56px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
}
.lede { margin-top: 22px; font-size: 1.22rem; color: var(--muted); max-width: 32em; }
.hero-art svg { width: 100%; height: auto; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.section h2 { max-width: 22em; }

/* Steps */
.steps {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 28px;
}
.step-art {
  background: var(--bg);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 22px;
}
.step-art svg { width: 100%; height: auto; }
.step-num {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #3A2E0A;
  font-family: var(--font-heading); font-weight: 900;
  margin-bottom: 12px;
}
.step p { margin-top: 8px; color: var(--muted); }

/* Benefits */
.benefits {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.benefit {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 0 rgba(31, 42, 26, 0.04), 0 10px 30px rgba(31, 42, 26, 0.06);
}
.icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: #E3F1E0; color: var(--primary-dark);
  margin-bottom: 18px;
}
.icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.benefit p { margin-top: 8px; color: var(--muted); }

/* Founder note */
.note { margin: 0; text-align: center; }
.note blockquote { margin: 8px 0 0; }
.note blockquote p {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.4;
  text-wrap: balance;
}

/* FAQ */
.faq { margin-top: 36px; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border-radius: 16px;
  border: 1.5px solid transparent;
  transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem;
  border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: #E3F1E0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E8049' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--muted); }

/* Final CTA */
.final {
  background: var(--primary-dark);
  background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,.08) 0 120px, transparent 121px),
                    radial-gradient(circle at 88% 85%, rgba(244,185,66,.18) 0 160px, transparent 161px);
  color: #fff;
  padding: 96px 0;
  text-align: center;
}
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final h2 { margin-bottom: 32px; }
.final .cta-note { color: rgba(255,255,255,.8); }

/* Footer */
.site-footer { margin-top: 0; padding: 48px 0 56px; font-size: 0.95rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; }
.footer-brand .brand { font-size: 1.1rem; }
.footer-brand p { margin-top: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.footer-head {
  font-family: var(--font-heading); font-weight: 800; color: var(--text);
  margin-bottom: 10px;
}
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer .brand { color: var(--text); }
.site-footer a:hover { color: var(--primary-dark); text-decoration: underline; }
.site-footer .brand:hover { text-decoration: none; }

/* Privacy page */
.legal { padding: 32px 0 80px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.legal h2 { font-size: 1.4rem; margin-top: 40px; }
.legal p, .legal ul { margin: 14px 0 0; color: #3D4838; }
.legal ul { padding-left: 1.3em; }
.legal li + li { margin-top: 6px; }
.legal .updated { color: var(--muted); margin-top: 10px; }

/* "More about" links from the home page to the feature pages */
.more { display: inline-block; margin-top: 14px; font-weight: 600; }

.updated { margin-top: 28px; font-size: 0.95rem; color: var(--muted); }

/* Feature pages */
.page-hero { padding: 40px 0 72px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
.how { list-style: none; counter-reset: how; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; }
.how li {
  counter-increment: how;
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 24px 72px;
}
.how li::before {
  content: counter(how);
  position: absolute; left: 24px; top: 22px;
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #3A2E0A;
  font-family: var(--font-heading); font-weight: 900;
}
.how p { margin-top: 6px; color: var(--muted); }
.qa h3 { margin-top: 36px; }
.qa h3:first-child { margin-top: 32px; }
.qa p { margin-top: 10px; color: var(--muted); }
.related {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.related li { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.related a { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
.related p { margin-top: 8px; color: var(--muted); }

/* Responsive */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 16px; }
  .hero-copy { text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero { padding-bottom: 16px; }
  .hero-art { width: 100%; max-width: 500px; margin: 8px auto 0; }
  .step-art svg { max-width: 260px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; max-width: 480px; }
  .benefits { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .related { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn { width: 100%; text-align: center; }
  .benefit, .step { padding: 22px; }
  .how li { padding: 20px 20px 22px 64px; }
  .how li::before { left: 18px; top: 20px; }
  .footer-nav { gap: 28px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after, .faq details { transition: none; }
}
