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

:root {
  --bg:       #fffdf9;
  --surface:  #ffffff;
  --green:    #2d6a4f;
  --green-lt: #52b788;
  --green-xs: #d8f3dc;
  --ink:      #1a1c18;
  --muted:    #6b7068;
  --border:   #e4e9e2;
  --amber:    #e07b39;
  --amber-lt: #fdebd8;
  --r:        16px;
  --shadow:   0 2px 24px rgba(45,106,79,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}

.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--green);
  text-decoration: none;
  letter-spacing: -.02em;
  display: flex; align-items: center; gap: .4rem;
}
.logo-paw { font-size: 1.1rem; }

.cma-pill {
  font-size: .7rem;
  font-weight: 500;
  background: var(--green-xs);
  color: var(--green);
  border-radius: 50px;
  padding: .3rem .75rem;
  display: flex; align-items: center; gap: .35rem;
  letter-spacing: .01em;
}
.cma-pill-dot {
  width: 5px; height: 5px;
  background: var(--green-lt);
  border-radius: 50%;
}

/* ── HERO ────────────────────────────────────── */
.hero {
  padding: 2.5rem 1.25rem 2rem;
  max-width: 560px;
  margin: 0 auto;
}

/* headline */
h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: .9rem;
}
h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--green);
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 1.75rem;
  max-width: 420px;
}

/* search */
.search-stack {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: .75rem;
  position: relative;
  z-index: 2;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: .95rem 1.1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.search-input::placeholder {
  font-weight: 300;
  color: #b0b5ae;
}
.search-input:focus {
  border-color: var(--green-lt);
  box-shadow: 0 0 0 3px rgba(82,183,136,.15);
}

.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--surface);
  border: 2px solid var(--green-lt);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  list-style: none;
  padding: .3rem;
  z-index: 20;
  max-height: 252px;
  overflow-y: auto;
}
.search-dropdown.open { display: block; }

.search-dropdown-item {
  padding: .65rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .92rem;
  color: var(--ink);
  cursor: pointer;
  border-radius: 10px;
  transition: background .15s;
}
.search-dropdown-item:hover,
.search-dropdown-item.active {
  background: var(--green-xs);
  color: var(--green);
}
.search-dropdown-item mark {
  background: none;
  color: var(--green);
  font-weight: 500;
}

.search-btn {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, transform .1s;
  -webkit-appearance: none;
}
.search-btn:hover  { background: #235c42; }
.search-btn:active { transform: scale(.98); }

.search-note {
  font-size: .75rem;
  color: #b0b5ae;
  text-align: center;
  margin-bottom: 2rem;
}

/* proof stats */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .6rem;
  margin-bottom: 1.5rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .9rem .6rem;
  text-align: center;
}
.stat-num {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--green);
  letter-spacing: -.02em;
  display: block;
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label {
  font-size: .68rem;
  color: var(--muted);
  line-height: 1.35;
  display: block;
}

/* trust row */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.trust-tag {
  display: flex; align-items: center; gap: .3rem;
  font-size: .75rem;
  color: var(--green);
  background: var(--green-xs);
  border-radius: 50px;
  padding: .3rem .75rem;
}
.trust-tag svg { flex-shrink: 0; }

/* ── ARTICLE ─────────────────────────────────── */
.article {
  padding: 2rem 1.25rem;
  max-width: 560px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.article h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.article p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: .9rem;
}
.article p:last-child { margin-bottom: 0; }
.article strong { color: var(--ink); font-weight: 500; }

/* ── HOW ─────────────────────────────────────── */
.how {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.25rem;
  max-width: 560px;
  margin: 0 auto;
}

.section-label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-lt);
  display: block;
  margin-bottom: .6rem;
}

.how h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.steps { display: flex; flex-direction: column; gap: 1.1rem; }

.step {
  display: flex; align-items: flex-start; gap: .9rem;
}
.step-num {
  width: 32px; height: 32px;
  background: var(--green-xs);
  color: var(--green);
  border-radius: 50%;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: .05rem;
}
.step h3 {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: .2rem;
}
.step p { font-size: .82rem; color: var(--muted); line-height: 1.55; }

/* ── FAQ ─────────────────────────────────────── */
.faq {
  padding: 2rem 1.25rem 1.5rem;
  max-width: 560px;
  margin: 0 auto;
}
.faq h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  padding: .9rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
}
.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--green-lt);
  flex-shrink: 0;
  transition: transform .25s;
  font-family: 'DM Sans', sans-serif;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  font-size: .83rem; color: var(--muted); line-height: 1.65;
  transition: max-height .3s ease, padding .2s;
}
.faq-item.open .faq-a { max-height: 180px; padding-bottom: .9rem; }

/* ── BLOG STRIP ──────────────────────────────── */
.blog-strip {
  padding: 2rem 1.25rem;
  max-width: 560px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.blog-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
}
.blog-strip-header h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  color: var(--ink);
}
.blog-strip-header a {
  font-size: .8rem;
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}
.blog-strip-header a:hover { text-decoration: underline; }

.blog-cards { display: flex; flex-direction: column; gap: 1rem; }

.blog-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.blog-card:hover {
  border-color: var(--green-lt);
  box-shadow: 0 2px 16px rgba(45,106,79,.08);
}
.blog-card-tag {
  font-size: .68rem;
  font-weight: 500;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.blog-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -.01em;
}
.blog-card p {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.55;
}
.blog-card-meta {
  font-size: .72rem;
  color: #b0b5ae;
  margin-top: .1rem;
}

/* ── FOOTER CTA ──────────────────────────────── */
.footer-cta {
  background: var(--green);
  padding: 2rem 1.25rem;
  text-align: center;
  margin-top: 1px;
}
.footer-cta h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.footer-cta p {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 320px;
  margin-left: auto; margin-right: auto;
}
.email-stack { display: flex; flex-direction: column; gap: .5rem; max-width: 320px; margin: 0 auto; }
.email-stack input {
  border: none;
  border-radius: var(--r);
  padding: .9rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  outline: none;
  -webkit-appearance: none;
}
.email-stack button {
  background: var(--amber);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: .9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
  -webkit-appearance: none;
}
.email-stack button:hover { background: #c46929; }
.footer-cta-note {
  font-size: .7rem;
  color: rgba(255,255,255,.4);
  margin-top: .75rem;
}

/* ── FOOTER ──────────────────────────────────── */
footer {
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  border-top: 1px solid var(--border);
  font-size: .72rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--green); }
.footer-links { display: flex; gap: 1rem; }

/* ── MODAL ───────────────────────────────────── */
.modal-bg {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  background: rgba(26,28,24,.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal-bg.show { display: flex; }

.modal {
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 1.5rem 1.25rem 2.5rem;
  width: 100%;
  max-width: 560px;
  animation: slideUp .35s ease both;
}

.modal-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 1.25rem;
}

.modal h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700; font-size: 1.35rem;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: .4rem;
}
.modal p {
  font-size: .85rem; color: var(--muted);
  line-height: 1.6; margin-bottom: 1.25rem;
}
.modal input {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: .9rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  outline: none;
  margin-bottom: .6rem;
  -webkit-appearance: none;
  transition: border-color .2s;
}
.modal input:focus { border-color: var(--green-lt); }
.modal-btn {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: .95rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem; font-weight: 500;
  cursor: pointer;
  -webkit-appearance: none;
  transition: background .2s;
}
.modal-btn:hover { background: #235c42; }
.modal-skip {
  display: block; text-align: center;
  margin-top: .85rem;
  font-size: .78rem; color: var(--muted);
  cursor: pointer;
}
.modal-skip:hover { color: var(--ink); }

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* ── ANIMATIONS ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero > * { animation: fadeUp .5s ease both; }
.hero > *:nth-child(1) { animation-delay: .05s; }
.hero > *:nth-child(2) { animation-delay: .12s; }
.hero > *:nth-child(3) { animation-delay: .18s; }
.hero > *:nth-child(4) { animation-delay: .24s; }
.hero > *:nth-child(5) { animation-delay: .30s; }
.hero > *:nth-child(6) { animation-delay: .36s; }
.hero > *:nth-child(7) { animation-delay: .42s; }

/* ── DESKTOP ─────────────────────────────────── */
@media (min-width: 600px) {
  .hero, .article, .blog-strip, .how, .faq, footer { padding-left: 2.5rem; padding-right: 2.5rem; }
  h1 { font-size: 3.2rem; }
  .search-stack { flex-direction: row; }
  .search-input-wrap { flex: 1; }
  .search-btn { width: auto; padding: .95rem 1.6rem; white-space: nowrap; }
  .modal-bg { align-items: center; padding: 1.5rem; }
  .modal { border-radius: 24px; max-width: 400px; }
  .email-stack { flex-direction: row; }
  .email-stack input { flex: 1; }
  .email-stack button { white-space: nowrap; }
}
