:root {
  --bg: #0C0805;
  --bg-deep: #060403;
  --bg-soft: #15100A;
  --fg: #F0E2BC;
  --fg-soft: #A89473;
  --gold: #C9A45C;
  --gold-deep: #A8853A;
  --gold-soft: #E5C788;
  --yellow: #F4B82C;
  --yellow-deep: #E0A416;
  --rule: #221810;
  --rule-strong: #382712;
  --max: 64rem;
  --max-wide: 76rem;
  --pad: clamp(1.5rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Typography */
h1, h2 {
  font-family: 'Fraunces', Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0 0 0.4em;
  color: var(--fg);
}

h1 {
  font-size: clamp(3rem, 8vw, 6.25rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.03em;
}

h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--fg);
  margin: 0 0 0.4em;
}

p { margin: 0 0 1em; }

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--gold);
  transition: text-decoration-color 0.15s ease;
}

a:hover { text-decoration-color: var(--fg); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Header */
.site-header {
  padding: 1.5rem 0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--fg);
  flex-wrap: wrap;
}

.wordmark {
  font-weight: 700;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  letter-spacing: -0.025em;
  display: inline-flex;
  gap: 0.18em;
  line-height: 1;
  align-items: baseline;
}

.word-kind { color: var(--fg); }
.word-milk {
  color: var(--gold);
  position: relative;
  display: inline-block;
}

.brand-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4em;
  width: 100%;
  height: 0.3em;
  color: var(--gold);
  pointer-events: none;
}

.lockup-divider {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 1.55rem;
  color: var(--fg-soft);
  opacity: 0.6;
  line-height: 1;
}

.lockup-tag {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--fg-soft);
  letter-spacing: 0.005em;
  line-height: 1;
}

.origin-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--fg-soft);
  white-space: nowrap;
}

.origin-line {
  display: inline-block;
  width: 1.4rem;
  height: 1px;
  background: var(--fg-soft);
  opacity: 0.5;
}

.origin-dot {
  color: var(--gold);
  font-size: 1rem;
  line-height: 0;
}

@media (max-width: 30rem) {
  .lockup-divider, .lockup-tag { display: none; }
}

@media (max-width: 36rem) {
  .origin-stamp { letter-spacing: 0.16em; font-size: 0.62rem; }
  .origin-line { width: 0.85rem; }
}

/* Hero */
.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.hero-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.launch-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  margin: 0 0 2rem;
}

.launch-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  position: relative;
}

.launch-dot::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.6); opacity: 0; }
}

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--fg-soft);
  max-width: 36rem;
  margin: 1.75rem 0 2.5rem;
  font-weight: 400;
  line-height: 1.55;
}

.hero-note {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--fg-soft);
  font-weight: 400;
  max-width: 32rem;
  line-height: 1.55;
  font-style: italic;
  font-family: 'Fraunces', Georgia, serif;
}

/* Forms */
.signup {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 32rem;
}

.signup input[type="email"] {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 1rem 1.15rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  border: 1px solid var(--rule-strong);
  background: var(--bg-soft);
  color: var(--fg);
  border-radius: 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.signup input[type="email"]::placeholder { color: var(--fg-soft); opacity: 0.7; }

.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.18);
}

.signup button {
  padding: 1rem 1.6rem;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 600;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.signup button:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.signup button:active { transform: translateY(1px); }

.signup-note {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold);
  min-height: 1.4em;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
}

/* Brand statement */
.statement {
  padding: clamp(5rem, 12vw, 9rem) 0;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.statement-tag {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: var(--gold);
  letter-spacing: 0.22em;
  margin: 0 0 2rem;
  text-transform: uppercase;
}

.statement-text {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg);
  max-width: 22ch;
  margin: 0 auto 2rem;
}

.statement-sub {
  font-family: 'Nunito', sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--fg-soft);
  margin: 0;
  letter-spacing: 0.02em;
}

/* Why */
.why {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.why h2 {
  margin-bottom: 0.6em;
  max-width: 16ch;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1.25rem;
}

.eyebrow-gold-dark {
  color: var(--gold);
}

.why-list,
.practice-list {
  list-style: none;
  padding: 0;
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  display: flex;
  flex-direction: column;
}

.why-list li,
.practice-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}

.why-list li:last-child,
.practice-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 50rem) {
  .why-list li,
  .practice-list li {
    grid-template-columns: 6rem 1fr 2fr;
    gap: 3rem;
    padding: 2.25rem 0;
  }
}

.why-num,
.practice-num {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  color: var(--gold);
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  display: block;
}

.why-list h3,
.practice-list h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
}

.why-list p,
.practice-list p {
  color: var(--fg-soft);
  margin: 0;
  font-weight: 400;
  line-height: 1.6;
  font-size: 1rem;
}

.data-stamp {
  grid-column: 2;
  margin: 1.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--rule);
}

.data-stamp blockquote {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--gold-soft);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.data-stamp figcaption {
  font-size: 0.7rem;
  color: var(--fg-soft);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 50rem) {
  .why-list li,
  .practice-list li {
    grid-template-columns: 3.5rem 1fr;
    gap: 0.75rem 1.5rem;
  }
  .why-list p,
  .practice-list p {
    grid-column: 2;
    margin-top: 0.45rem;
  }
}

.practice {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.practice h2 {
  margin-bottom: 0.6em;
  max-width: 14ch;
}

/* The Ledger - animated counter section */
.ledger {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.ledger h2 {
  margin-bottom: 0.6em;
  max-width: 16ch;
}

.ledger-grid {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: 0;
  display: grid;
  gap: 2.5rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.ledger-item {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
}

.ledger-num {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 0.95;
  color: var(--fg);
  margin: 0;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.ledger-item dt {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.4;
}

@media (min-width: 50rem) {
  .data-stamp {
    grid-column: 3;
  }
}

/* Promises */
.promise {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.promise h2 {
  margin-bottom: 0.6em;
  max-width: 18ch;
}

.section-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--fg-soft);
  font-weight: 400;
  max-width: 38rem;
  margin: 0;
  line-height: 1.55;
}

.promise-list {
  list-style: none;
  padding: 0;
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  display: flex;
  flex-direction: column;
}

.promise-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}

.promise-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 50rem) {
  .promise-list li {
    grid-template-columns: 6rem 1fr 2fr;
    gap: 3rem;
    padding: 2.25rem 0;
  }
}

.promise-num {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  color: var(--gold);
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  display: block;
}

.promise-list h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
}

.promise-list p {
  color: var(--fg-soft);
  margin: 0;
  font-weight: 400;
  line-height: 1.6;
  font-size: 1rem;
}

@media (max-width: 50rem) {
  .promise-list li {
    grid-template-columns: 3.5rem 1fr;
    gap: 0.75rem 1.5rem;
  }
  .promise-list p {
    grid-column: 2;
    margin-top: 0.45rem;
  }
}

/* Happy Herd certification - cream certificate inset on dark page */
.happy-herd {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.happy-herd-centered {
  background: var(--fg);
  color: var(--bg);
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
  border-radius: 4px;
  position: relative;
}

.happy-herd-centered::before,
.happy-herd-centered::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  height: 1px;
  background: var(--bg);
  opacity: 0.15;
}

.happy-herd-centered::before { top: 1.25rem; }
.happy-herd-centered::after { bottom: 1.25rem; }

.happy-herd-mark {
  width: clamp(7rem, 11vw, 9.5rem);
  height: auto;
  display: block;
  margin: 0 auto 1.75rem;
}

.eyebrow-gold {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin: 0 0 1.25rem;
}

.happy-herd-centered h2 {
  margin-bottom: 0.7rem;
  color: var(--bg);
}

.happy-herd-tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  color: var(--gold-deep);
  letter-spacing: -0.005em;
  margin: 0 0 1.75rem;
  line-height: 1.15;
}

.happy-herd-body {
  color: var(--bg);
  opacity: 0.78;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.65;
  font-size: 1rem;
  max-width: 36rem;
}

/* How it works */
.how {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.how h2 {
  margin-bottom: 0.6em;
}

.how-steps {
  list-style: none;
  padding: 0;
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  display: flex;
  flex-direction: column;
}

.how-steps li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}

.how-steps li:last-child {
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 50rem) {
  .how-steps li {
    grid-template-columns: 6rem 1fr 2fr;
    gap: 3rem;
    padding: 2rem 0;
  }
}

.how-num {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  color: var(--gold);
  width: auto;
  height: auto;
  border: none;
  background: transparent;
  display: block;
  line-height: 1;
  margin: 0;
}

.how-steps h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.how-steps p {
  color: var(--fg-soft);
  margin: 0;
  font-weight: 400;
  line-height: 1.6;
  font-size: 1rem;
}

@media (max-width: 50rem) {
  .how-steps li {
    grid-template-columns: 3.5rem 1fr;
    gap: 0.75rem 1.5rem;
  }
  .how-steps p {
    grid-column: 2;
    margin-top: 0.45rem;
  }
}

/* Promise footnote - compassionate end-of-life note */
.promise-footnote {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--fg-soft);
  line-height: 1.6;
  max-width: 38rem;
}

.promise-footnote em {
  color: var(--gold);
  font-style: italic;
  margin-right: 0.4rem;
}

/* Back the herd - patron + sponsor cards */
.back {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.back h2 {
  margin-bottom: 0.6em;
  max-width: 16ch;
}

.back-grid {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 38rem) {
  .back-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 62rem) {
  .back-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.back-card {
  background: transparent;
  color: var(--fg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 4px;
  border: 1px solid var(--rule-strong);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.back-card:hover {
  border-color: var(--gold);
}

.back-card-feature {
  border-color: var(--gold-deep);
  background: var(--bg-soft);
}

.back-tier {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  color: var(--gold);
  margin: 0 0 0.35rem;
  line-height: 1;
}

.back-price {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.85rem);
  color: var(--fg);
  margin: 0 0 1.1rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.back-price span {
  font-family: 'Nunito', sans-serif;
  font-weight: 500;
  font-size: 0.45em;
  color: var(--fg-soft);
  letter-spacing: 0;
  margin-left: 0.15em;
}

.back-body {
  color: var(--fg-soft);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.back-card .signup {
  flex-direction: column;
  gap: 0.5rem;
}

.back-card .signup input[type="email"],
.back-card .signup button {
  width: 100%;
  flex: none;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
}

.back-card .signup {
  max-width: none;
}

.back-card .signup input[type="email"] {
  background: var(--bg);
  border-color: var(--rule-strong);
  color: var(--fg);
}

.back-card .signup input[type="email"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.18);
}

.back-card .signup button {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.back-card .signup button:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.back-card .signup-note { color: var(--gold-soft); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-row p {
  margin: 0.2rem 0;
  color: var(--fg-soft);
  font-weight: 400;
  font-size: 0.95rem;
}

.footer-row .small {
  font-size: 0.85rem;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
}

.footer-row strong { color: var(--fg); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
