/* ============================================================
   Prole Pastures · Storefront global styles
   B & D Ag Enterprises, LLC — Prole, Iowa
   Built on /brand/brand-tokens.css (linked before this file in
   Base.astro) — do not override tokens here.
   ============================================================ */

/* Paper tooth: a faint, static noise tile for cream surfaces so large
   flat areas read as printed stock rather than screen fill. */
:root {
  --pp-paper: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.13  0 0 0 0 0.12  0 0 0 0 0.08  0 0 0 0.10 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
}

/* -------- Reset + base -------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--pp-bone);
  color: var(--pp-pasture);
  font-family: var(--pp-font-body);
  font-size: var(--pp-text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pp-terracotta); text-decoration: none; transition: color var(--pp-dur-fast) var(--pp-ease); }
a:hover { color: var(--pp-terracotta-2); }

/* -------- Typography -------- */
h1, h2, h3, h4, h5 {
  font-family: var(--pp-font-display);
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--pp-pasture);
  margin: 0 0 0.4em;
}
h1 { font-size: var(--pp-text-hero); font-weight: 400; line-height: 0.96; overflow-wrap: break-word; }
h2 { font-size: var(--pp-text-3xl); font-weight: 500; overflow-wrap: break-word; }
h3 { font-size: var(--pp-text-2xl); font-weight: 600; overflow-wrap: break-word; }
h4 { font-size: var(--pp-text-xl); font-weight: 600; }
p  { margin: 0 0 1em; max-width: 72ch; }

/* Mobile: the hero clamp floor (64px) is wider than a phone can hold
   for long headline words — cap it so headlines never force
   horizontal overflow. Desktop sizing is untouched. */
@media (max-width: 600px) {
  h1 { font-size: clamp(34px, 10.5vw, 54px); }
  h2 { font-size: clamp(26px, 7.5vw, 38px); }
}

.kicker {
  font-family: var(--pp-font-body);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: var(--pp-text-xs);
  font-weight: 700;
  color: var(--pp-terracotta-2); /* deeper terracotta = AA contrast at kicker size */
  margin-bottom: 14px;
  display: inline-block;
}

/* Keyboard focus visibility — professional a11y baseline */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--pp-terracotta);
  outline-offset: 2px;
  border-radius: 4px;
}
.italic   { font-style: italic; }
.accent   { color: var(--pp-terracotta); }
.muted    { color: var(--pp-stone); }
.bone     { color: var(--pp-bone); }
hr        { border: 0; border-top: 1px solid var(--pp-rule); margin: 48px 0; }

/* -------- Layout container -------- */
.container {
  max-width: var(--pp-maxw);
  margin: 0 auto;
  padding-left: var(--pp-gutter);
  padding-right: var(--pp-gutter);
}
.section { padding: clamp(56px, 8vw, 120px) 0; }
.section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.section.dark { background: var(--pp-pasture); color: var(--pp-bone); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--pp-bone); }
.section.dark .kicker, .section.dark .muted { color: #cfc2a0; }
.section.cream { background-color: var(--pp-bone-2); background-image: var(--pp-paper); }

/* -------- Buttons (glass-leaning system) -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pp-font-body);
  font-weight: 600;
  font-size: var(--pp-text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--pp-radius-sm);
  background: var(--pp-pasture);
  color: var(--pp-bone);
  border: 0;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition:
    background var(--pp-dur-base) var(--pp-ease),
    color var(--pp-dur-base) var(--pp-ease),
    box-shadow var(--pp-dur-base) var(--pp-ease),
    transform var(--pp-dur-fast) var(--pp-ease);
}
.btn:hover { background: var(--pp-pasture-3); color: var(--pp-bone); transform: translateY(-1px); }

/* Solid accent — terracotta */
.btn.accent { background: var(--pp-terracotta); }
.btn.accent:hover { background: var(--pp-terracotta-2); }

/* Glass ghost — translucent fill, hairline border, backdrop blur.
   Works on cream surfaces (default) and on dark/photo surfaces (.reverse). */
.btn.ghost {
  background: rgba(59, 90, 42, 0.04);
  color: var(--pp-pasture);
  box-shadow:
    inset 0 0 0 1px rgba(59, 90, 42, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}
.btn.ghost:hover {
  background: rgba(59, 90, 42, 0.92);
  color: var(--pp-bone);
  box-shadow:
    inset 0 0 0 1px rgba(59, 90, 42, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn.ghost.reverse {
  background: rgba(250, 245, 234, 0.08);
  color: var(--pp-bone);
  box-shadow:
    inset 0 0 0 1px rgba(250, 245, 234, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}
.btn.ghost.reverse:hover {
  background: rgba(250, 245, 234, 0.92);
  color: var(--pp-pasture);
  box-shadow:
    inset 0 0 0 1px rgba(250, 245, 234, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Glass solid CTA — frosted accent for header + atmospheric surfaces.
   Tinted terracotta with backdrop-blur, picks up scene tones behind. */
.btn.glass-cta {
  background: rgba(166, 67, 44, 0.78);
  color: var(--pp-bone);
  box-shadow:
    inset 0 0 0 1px rgba(239, 203, 135, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 6px 18px rgba(20, 17, 15, 0.20);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
}
.btn.glass-cta:hover {
  background: rgba(135, 51, 33, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(239, 203, 135, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 10px 24px rgba(20, 17, 15, 0.28);
}

/* -------- Grids -------- */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

/* -------- Harvest-window urgency banner -------- */
.harvest-banner {
  position: relative;
  z-index: 70;
  background: linear-gradient(90deg, #253d1b 0%, #3b5a2a 50%, #253d1b 100%);
  color: var(--pp-bone);
  border-bottom: 1px solid rgba(250, 245, 234, 0.10);
  font-family: var(--pp-font-body);
}
.harvest-banner__inner {
  max-width: var(--pp-maxw);
  margin: 0 auto;
  padding: 9px var(--pp-gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.harvest-banner__pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pp-terracotta);
  box-shadow: 0 0 0 0 rgba(166, 67, 44, 0.7);
  animation: harvest-pulse 2.4s ease-out infinite;
}
@keyframes harvest-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(166, 67, 44, 0.7); }
  60%  { box-shadow: 0 0 0 10px rgba(166, 67, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(166, 67, 44, 0); }
}
.harvest-banner__label {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 10px;
  color: #efcb87;
}
.harvest-banner__divider { color: rgba(250, 245, 234, 0.30); }
.harvest-banner__copy { color: #faf5ea; }
.harvest-banner__copy strong { color: #efcb87; font-weight: 600; }
.harvest-banner__countdown { color: #efcb87; font-weight: 500; }
.harvest-banner__countdown strong { color: var(--pp-bone); font-weight: 700; }
.harvest-banner__cta {
  color: var(--pp-bone) !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid rgba(250, 245, 234, 0.25);
  border-radius: 999px;
  margin-left: 4px;
  transition: background var(--pp-dur-fast) var(--pp-ease), border-color var(--pp-dur-fast) var(--pp-ease);
}
.harvest-banner__cta:hover {
  background: var(--pp-terracotta);
  border-color: var(--pp-terracotta);
  color: var(--pp-bone) !important;
}
@media (max-width: 700px) {
  .harvest-banner__inner { gap: 8px; padding: 8px 16px; font-size: 11px; }
  .harvest-banner__divider--mobile-hide { display: none; }
}

/* -------- Scroll-progress hairline -------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
  background: rgba(20, 17, 15, 0.05);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--pp-terracotta), #ebc581, var(--pp-terracotta));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 80ms linear;
}

/* -------- Glass header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(250, 245, 234, 0.62);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid rgba(20, 17, 15, 0.06);
  transition:
    background var(--pp-dur-base) var(--pp-ease),
    border-color var(--pp-dur-base) var(--pp-ease),
    box-shadow var(--pp-dur-base) var(--pp-ease),
    padding var(--pp-dur-base) var(--pp-ease);
}
.site-header.is-scrolled {
  background: rgba(250, 245, 234, 0.86);
  border-bottom-color: rgba(20, 17, 15, 0.12);
  box-shadow: 0 6px 24px rgba(20, 17, 15, 0.06), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}
.site-header .inner {
  max-width: var(--pp-maxw);
  margin: 0 auto;
  padding: 18px var(--pp-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding var(--pp-dur-base) var(--pp-ease);
}
.site-header.is-scrolled .inner { padding-top: 12px; padding-bottom: 12px; }

/* Brand block — cinematic bull chip + wordmark dominant + legal
   name subtitle. The chip is a tight circular crop of the cinematic
   mark focused on the bull's head. */
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.site-header .brand__mark {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #0a0907;
  box-shadow:
    inset 0 0 0 1px rgba(250, 245, 234, 0.22),
    0 2px 8px rgba(20, 17, 15, 0.18);
  transition: width var(--pp-dur-base) var(--pp-ease), height var(--pp-dur-base) var(--pp-ease);
}
.site-header .brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Focus the crop on the bull's head (right-of-center, upper-mid) */
  object-position: 58% 42%;
  transform: scale(1.05);
}
.site-header.is-scrolled .brand__mark { width: 40px; height: 40px; }
.site-header .brand__text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}
.site-header .brand .name {
  font-family: var(--pp-font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 26px;
  color: var(--pp-pasture);
  letter-spacing: -0.015em;
  transition: font-size var(--pp-dur-base) var(--pp-ease), color var(--pp-dur-fast) var(--pp-ease);
}
.site-header.is-scrolled .brand .name { font-size: 22px; }
.site-header .brand:hover .name { color: var(--pp-terracotta); }
.site-header .brand__parent {
  font-family: var(--pp-font-body);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--pp-stone);
  white-space: nowrap;
  transition: font-size var(--pp-dur-base) var(--pp-ease);
}
.site-header.is-scrolled .brand__parent { font-size: 8px; }
@media (max-width: 520px) {
  .site-header .brand__parent { font-size: 8px; letter-spacing: 0.20em; }
  .site-header .brand .name { font-size: 21px; }
}

.site-header nav {
  display: flex;
  gap: clamp(8px, 1.4vw, 22px);
  align-items: center;
}
.site-header nav a {
  position: relative;
  font-family: var(--pp-font-body);
  color: var(--pp-pasture);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 8px 4px;
  transition: color var(--pp-dur-fast) var(--pp-ease);
}
.site-header nav a .nav-link__label { position: relative; }
.site-header nav a .nav-link__label::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--pp-terracotta);
  transition: right 360ms cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header nav a:hover,
.site-header nav a.active {
  color: var(--pp-terracotta);
}
.site-header nav a:hover .nav-link__label::after,
.site-header nav a.active .nav-link__label::after { right: 0; }
.site-header nav a.active .nav-link__label::after { background: var(--pp-terracotta); }

.nav-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: rgba(20, 17, 15, 0.14);
  margin: 0 6px;
}
.site-header .nav-cta {
  padding: 10px 18px;
  font-size: 11px;
  letter-spacing: 0.16em;
  /* Glass terracotta CTA */
  background: rgba(166, 67, 44, 0.92);
  color: var(--pp-bone);
  box-shadow:
    inset 0 0 0 1px rgba(239, 203, 135, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 4px 14px rgba(166, 67, 44, 0.18);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
}
.site-header .nav-cta:hover {
  background: rgba(135, 51, 33, 1);
  box-shadow:
    inset 0 0 0 1px rgba(239, 203, 135, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 8px 22px rgba(166, 67, 44, 0.32);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px 8px;
  cursor: pointer;
  color: var(--pp-pasture);
  flex-direction: column;
  gap: 5px;
  align-items: stretch;
  width: 36px;
}
.nav-toggle__bar {
  display: block;
  height: 1.5px;
  background: var(--pp-pasture);
  transition: transform var(--pp-dur-base) var(--pp-ease), opacity var(--pp-dur-base) var(--pp-ease);
  transform-origin: center;
}
.nav-toggle__bar:nth-child(2) { width: 70%; align-self: flex-end; }

@media (max-width: 1024px) {
  .site-header nav { display: none; }
  .nav-toggle { display: flex; }
}

/* -------- Mobile nav (editorial, glass backdrop) -------- */
body.nav-locked { overflow: hidden; }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 360ms var(--pp-ease), visibility 0s linear 360ms;
}
.mobile-nav.open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 360ms var(--pp-ease);
}
.mobile-nav__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 110%, rgba(166, 67, 44, 0.30), transparent 55%),
    linear-gradient(180deg, #221e15 0%, #253d1b 35%, #3b5a2a 100%);
  opacity: 0.97;
}
.mobile-nav__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.85'/></svg>");
  background-size: 240px 240px;
  opacity: 0.06;
  mix-blend-mode: overlay;
}
.mobile-nav .close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: rgba(250, 245, 234, 0.06);
  border: 1px solid rgba(250, 245, 234, 0.22);
  color: var(--pp-bone);
  cursor: pointer;
  padding: 10px;
  border-radius: 999px;
  z-index: 4;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--pp-dur-fast) var(--pp-ease);
}
.mobile-nav .close:hover { background: rgba(250, 245, 234, 0.12); }
.mobile-nav__inner {
  position: relative;
  z-index: 3;
  max-width: 540px;
  margin: 0 auto;
  padding: clamp(96px, 14vw, 140px) clamp(28px, 6vw, 56px) 56px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.mobile-nav__kicker {
  font-family: var(--pp-font-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  font-weight: 600;
  color: #cfc2a0;
  margin-bottom: 36px;
}
.mobile-nav__list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  flex: 1;
}
.mobile-nav__list li {
  border-bottom: 1px solid rgba(250, 245, 234, 0.10);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 460ms var(--pp-ease),
    transform 460ms var(--pp-ease);
  transition-delay: calc(60ms + var(--mn-i, 0) * 50ms);
}
.mobile-nav.open .mobile-nav__list li { opacity: 1; transform: translateY(0); }
.mobile-nav__list a {
  display: block;
  padding: 18px 0;
  font-family: var(--pp-font-display);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 500;
  color: var(--pp-bone);
  text-decoration: none;
  transition: color var(--pp-dur-fast) var(--pp-ease), padding-left var(--pp-dur-base) var(--pp-ease);
}
.mobile-nav__list a:hover { color: #efcb87; padding-left: 6px; }
.mobile-nav__cta {
  align-self: flex-start;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 460ms var(--pp-ease), transform 460ms var(--pp-ease);
  transition-delay: 540ms;
}
.mobile-nav.open .mobile-nav__cta { opacity: 1; transform: translateY(0); }

/* -------- Hero -------- */
.hero {
  background: var(--pp-pasture);
  color: var(--pp-bone);
  padding: clamp(96px, 14vw, 200px) var(--pp-gutter) clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero .inner { max-width: var(--pp-maxw); margin: 0 auto; position: relative; z-index: 2; }
.hero .kicker { color: #cfc2a0; }
.hero h1 { color: var(--pp-bone); max-width: 18ch; }
.hero h1 em { font-style: italic; color: #ebc581; }
.hero .subhead {
  color: #e8e0cc;
  max-width: 56ch;
  font-size: var(--pp-text-lg);
  line-height: 1.55;
  margin: 24px 0 40px;
}
/* Button pairs everywhere: without this, buttons that wrap onto a second
   line (phones) sat flush against each other. */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.hero .deco-steer {
  position: absolute;
  right: -40px;
  bottom: -20px;
  width: 40%;
  max-width: 640px;
  opacity: 0.08;
  pointer-events: none;
}

/* -------- Cards -------- */
.card {
  background: var(--pp-bone-2);
  border: 1px solid var(--pp-rule);
  border-radius: var(--pp-radius-sm);
  padding: 32px;
  transition: transform var(--pp-dur-base) var(--pp-ease), box-shadow var(--pp-dur-base) var(--pp-ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--pp-shadow-md); }
.card .lab {
  font-family: var(--pp-font-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--pp-stone);
  margin-bottom: 14px;
  display: inline-block;
}
.card h3 { margin-bottom: 10px; }
.card .meta {
  font-family: var(--pp-font-body);
  color: var(--pp-stone);
  font-size: var(--pp-text-sm);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--pp-rule);
}

/* -------- Share cards: white product-card treatment -------- */
.share-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #fffdf9;
  border: 1px solid var(--pp-rule);
  border-radius: 12px;
  padding: 0;
}
/* Photo band up top — each share gets its own image */
.share-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--pp-pasture-3);
}
.share-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.share-card--link:hover .share-card__photo img { transform: scale(1.06); }
.share-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20, 17, 15, 0.22) 100%);
  pointer-events: none;
}
/* Body wraps everything under the photo */
.share-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}
.share-card .lab { margin-bottom: 8px; }
.share-card h3 { margin-bottom: 2px; font-size: 26px; }
/* Price hierarchy: dollar total leads, weight follows */
.share-card .price {
  font-family: var(--pp-font-display);
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  margin: 6px 0 0;
  letter-spacing: -0.02em;
  color: var(--pp-pasture);
}
.share-card .price .per { font-size: 13px; color: var(--pp-stone); font-weight: 400; letter-spacing: 0; margin-left: 4px; }
.share-card ul { list-style: none; padding: 0; margin: 14px 0; font-size: 13.5px; color: var(--pp-stone); }
.share-card ul li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px dashed var(--pp-rule); }
.share-card ul li:last-child { border-bottom: 0; }
.share-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(166, 67, 44, 0.12);
  color: var(--pp-terracotta);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Full-width product-style button */
.share-card .btn {
  margin-top: auto;
  align-self: stretch;
  justify-content: center;
  text-align: center;
}

/* Most Popular badge (replaces the old full-green featured card) */
.share-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  font-family: var(--pp-font-body);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pp-bone);
  background: var(--pp-terracotta);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(20, 17, 15, 0.25);
}
.share-card--featured {
  border-color: rgba(166, 67, 44, 0.55);
  box-shadow: 0 0 0 1px rgba(166, 67, 44, 0.35), 0 14px 32px rgba(20, 17, 15, 0.10);
}
.share-card--featured .btn { background: var(--pp-terracotta); }
.share-card--featured .btn:hover { background: var(--pp-terracotta-2); }

/* Hover interaction */
.share-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform var(--pp-dur-base) var(--pp-ease), box-shadow var(--pp-dur-base) var(--pp-ease), border-color var(--pp-dur-base) var(--pp-ease);
}
.share-card--link:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(20, 17, 15, 0.12), 0 4px 10px rgba(20, 17, 15, 0.06);
  border-color: var(--pp-terracotta);
  color: inherit;
}
.share-card--link:hover h3 { color: var(--pp-terracotta); }
.share-card--link h3 { transition: color var(--pp-dur-base) var(--pp-ease); }

/* -------- Three-col feature rows -------- */
.three-up { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .three-up { grid-template-columns: 1fr; } }
.three-up .item h3 { font-size: 24px; margin-bottom: 10px; }
.three-up .item p { color: var(--pp-stone); }
.three-up .item .num {
  font-family: var(--pp-font-display);
  font-size: 60px;
  font-weight: 400;
  line-height: 1;
  color: var(--pp-terracotta);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

/* -------- Step list -------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--pp-rule);
  align-items: start;
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--pp-font-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--pp-terracotta);
  line-height: 1;
  min-width: 72px;
}
.steps li h4 { margin: 0 0 6px; }
.steps li p { margin: 0; color: var(--pp-stone); }

/* -------- Forms / inputs -------- */
input, textarea, select {
  font-family: var(--pp-font-body);
  font-size: 15px;
  color: var(--pp-pasture);
  background: var(--pp-bone-2);
  border: 1px solid var(--pp-rule);
  border-radius: var(--pp-radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color var(--pp-dur-fast) var(--pp-ease);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--pp-terracotta);
  box-shadow: 0 0 0 3px rgba(166, 67, 44, 0.12);
}
label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--pp-stone);
  margin-bottom: 6px;
}

/* -------- Footer -------- */
.site-footer {
  background: var(--pp-pasture);
  color: var(--pp-bone);
  padding: 72px var(--pp-gutter) 48px;
}
.site-footer .inner {
  max-width: var(--pp-maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1.2fr;
  gap: 48px;
}
@media (max-width: 1100px) { .site-footer .inner { grid-template-columns: 1fr 1fr 1fr; gap: 40px; } .site-footer .brand-col { grid-column: 1 / -1; } }
@media (max-width: 900px) { .site-footer .inner { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 500px) { .site-footer .inner { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--pp-bone);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--pp-font-body);
  font-weight: 600;
  margin-bottom: 16px;
}
.site-footer a {
  color: #e8e0cc;
  display: block;
  padding: 4px 0;
  font-size: 14px;
}
.site-footer a:hover { color: var(--pp-bone); }
.site-footer .brand-col .name {
  font-family: var(--pp-font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 44px;
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--pp-bone);
}
.site-footer .brand-col p { color: #e2d9c2; max-width: 38ch; margin-top: 12px; }
.site-footer__award {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(239, 203, 135, 0.35);
  border-radius: 999px;
  color: #efcb87;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.site-footer__award svg { width: 18px; height: 18px; flex-shrink: 0; }
.site-footer__contact span {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d9cfb3;
  font-weight: 600;
}
.site-footer__contact span:first-of-type { margin-top: 0; }
.site-footer__contact a { overflow-wrap: anywhere; }
.site-footer__contact p { color: #e2d9c2; font-size: 14px; margin: 14px 0 0; line-height: 1.5; }
.site-footer .legal {
  max-width: var(--pp-maxw);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 245, 234, 0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #d9cfb3; /* was #9b8e73: 2.4:1 on pasture green, below AA */
}

/* -------- Utility -------- */
.center-text { text-align: center; }
.flex-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.stack-sm > * + * { margin-top: 10px; }
.stack-md > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 40px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* -------- TODO markers -------- */
.todo {
  display: inline-block;
  background: #c9962f;
  color: var(--pp-pasture);
  padding: 2px 10px;
  border-radius: 2px;
  font-family: var(--pp-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ============================================================
   Conversion patterns (Milo-inspired, brand-native)
   ============================================================ */

/* --- Hero trust markers above the H1 --- */
.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 4px 0 20px;
}
.hero-trust__item {
  font-family: var(--pp-font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: #efcb87;
  text-shadow: 0 1px 6px rgba(20, 17, 15, 0.7);
}
.hero-trust__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pp-terracotta);
  flex-shrink: 0;
}

/* --- Guarantee microline under hero CTAs --- */
.hero-guarantee {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  font-family: var(--pp-font-body);
  font-size: 13px;
  color: #faf5ea;
  text-shadow: 0 1px 6px rgba(20, 17, 15, 0.7);
}
.hero-guarantee__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pp-terracotta);
  color: var(--pp-bone);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Promise cards: deep-green check-mark benefit cards --- */
.promise-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 900px) { .promise-cards { grid-template-columns: 1fr; } }
.promise-card {
  background:
    radial-gradient(ellipse at 85% -10%, rgba(239, 203, 135, 0.08), transparent 55%),
    linear-gradient(180deg, var(--pp-pasture) 0%, var(--pp-pasture-3) 100%);
  color: var(--pp-bone);
  border-radius: 10px;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.6vw, 34px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 32px rgba(20, 17, 15, 0.12);
}
.promise-card__icon {
  width: 44px;
  height: 44px;
  color: #efcb87;
  margin-bottom: 18px;
}
.promise-card h3 {
  color: var(--pp-bone);
  font-size: 24px;
  margin-bottom: 16px;
}
.promise-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.promise-card__list li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #e8e0cc;
}
.promise-card__list li strong { color: var(--pp-bone); }
.promise-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pp-terracotta);
  color: var(--pp-bone);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Kicker with trailing rule (section-label pattern) --- */
.kicker--ruled {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--pp-terracotta);
}
.kicker--ruled::after {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--pp-terracotta);
  opacity: 0.7;
}

/* --- Honest Math comparison --- */
.honest-math {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) { .honest-math { grid-template-columns: 1fr; } }
.honest-math__accent {
  font-style: italic;
  color: var(--pp-terracotta);
}
.honest-math__table {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(20, 17, 15, 0.10);
}
.honest-math__table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pp-bone-2);
  font-size: 13.5px;
  min-width: 520px;
}
.honest-math__table th,
.honest-math__table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--pp-rule);
  vertical-align: top;
}
.honest-math__table thead th {
  font-family: var(--pp-font-body);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pp-stone);
  background: var(--pp-bone-3);
  border-bottom: 2px solid var(--pp-rule);
}
.honest-math__table tbody td:first-child {
  font-weight: 600;
  color: var(--pp-pasture);
}
.honest-math__table tbody td { color: var(--pp-stone); }
/* Our column — pasture-deep highlight */
.honest-math__table .hm-us {
  background: var(--pp-pasture);
  color: var(--pp-bone) !important;
}
.honest-math__table thead .hm-us {
  background: var(--pp-pasture-3);
  color: #efcb87;
  letter-spacing: 0.14em;
}
.honest-math__table tbody .hm-us { border-bottom-color: rgba(250, 245, 234, 0.14); }
.hm-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pp-terracotta);
  color: var(--pp-bone);
  font-size: 10px;
  font-weight: 700;
  margin-right: 7px;
  vertical-align: middle;
}
.hm-no {
  color: var(--pp-stone);
  opacity: 0.55;
  font-weight: 600;
  margin-right: 6px;
}

/* --- Steps with period labels (timeline feel) --- */
.steps--timeline li {
  grid-template-columns: 92px 1fr;
  counter-increment: none;
}
.steps--timeline li::before { content: none; }
.steps__period {
  font-family: var(--pp-font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pp-terracotta);
  border: 1px solid rgba(166, 67, 44, 0.35);
  border-radius: 999px;
  padding: 5px 10px;
  height: fit-content;
  text-align: center;
  white-space: nowrap;
  background: rgba(166, 67, 44, 0.06);
}

/* ============================================================
   Scroll-driven reveal — elements opt in via [data-reveal]
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="left"]  { transform: translate(-32px, 0); }
[data-reveal="right"] { transform: translate(32px, 0); }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal="left"].is-revealed,
[data-reveal="right"].is-revealed { transform: translate(0, 0); }
[data-reveal="scale"].is-revealed { transform: scale(1); }

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-stagger].is-revealed > *           { opacity: 1; transform: translateY(0); }
[data-reveal-stagger].is-revealed > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-revealed > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-stagger].is-revealed > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-stagger].is-revealed > *:nth-child(4) { transition-delay: 240ms; }
[data-reveal-stagger].is-revealed > *:nth-child(5) { transition-delay: 320ms; }
[data-reveal-stagger].is-revealed > *:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   Section-divider strip — atmospheric thin band with feathered
   edges that blend into adjacent sections. Pairs with
   AtmosphericPhoto + optional inline CTA below the quote.
   --sd-fade-color overrides the blend color (defaults to --pp-bone).
   ============================================================ */
.section-divider {
  position: relative;
  height: clamp(220px, 26vw, 380px);
  overflow: hidden;
  background: var(--pp-pasture);
  --sd-fade-color: var(--pp-bone);
}
.section-divider.divider--from-cream { --sd-fade-color: var(--pp-bone-2); }
.section-divider .atmos { height: 100%; }
/* Top + bottom feathered blend into adjacent sections */
.section-divider::before,
.section-divider::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 90px;
  z-index: 8;
  pointer-events: none;
}
.section-divider::before {
  top: 0;
  background: linear-gradient(to bottom, var(--sd-fade-color) 0%, transparent 100%);
}
.section-divider::after {
  bottom: 0;
  background: linear-gradient(to top, var(--sd-fade-color) 0%, transparent 100%);
}
.section-divider__quote {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 9;
  padding: 0 var(--pp-gutter);
  gap: 22px;
}
.section-divider__quote q {
  font-family: var(--pp-font-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 38px);
  color: var(--pp-bone);
  max-width: 28ch;
  line-height: 1.25;
  text-shadow: 0 4px 24px rgba(20, 17, 15, 0.7);
  quotes: "\201C" "\201D";
}
.section-divider__quote q::before { content: open-quote; }
.section-divider__quote q::after  { content: close-quote; }
.section-divider__cta { /* inline CTA below the quote */
  text-decoration: none;
}

/* PhotoHero bottom: no extra fade gradient. The photo's own
   color-grade bottom-vignette darkens into the next section's edge
   cleanly. Stacking a fade-to-cream on top of a fade-from-cream
   below creates a washed-out band — avoided by intent. */
.photo-hero { --ph-fade-to: transparent; }

/* Atmospheric section (full-bleed photo bg) — top + bottom fade for
   smooth in/out from adjacent sections. */
.section-atmospheric::before,
.section-atmospheric::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  z-index: 4;
  pointer-events: none;
}
.section-atmospheric::before {
  top: 0;
  background: linear-gradient(to bottom, var(--sa-fade-from, var(--pp-bone)) 0%, transparent 100%);
}
.section-atmospheric::after {
  bottom: 0;
  background: linear-gradient(to top, var(--sa-fade-to, var(--pp-bone-2)) 0%, transparent 100%);
}

/* Parallax helper — paired with [data-parallax] attribute. Script
   in Base.astro updates --parallax-offset; element transforms by it. */
[data-parallax] {
  transform: translate3d(0, var(--parallax-offset, 0), 0);
  will-change: transform;
}
