/* ===================================================================
   Bond™ Website — bond.css
   Single stylesheet, all pages. Onest only. Forest anchor.
   =================================================================== */

:root {
  --linen:      #FAF7F1;
  --forest:     #2A4D1E;
  --sage:       #4A7A3A;
  --sage-light: #7BAE6E;
  --sage-pale:  #EBF3E6;
  --terra:      #C4622D;
  --terra-light:#E8845A;
  --terra-pale: #FBE9DC;
  --sand:       #F2E4CC;
  --bark:       #1C1A16;
  --muted:      #6A6152; /* darkened from #7A7060 for WCAG AA on linen */
  --white:      #FFFFFF;

  --r-sm: 8px;  --r-md: 12px;  --r-lg: 16px;  --r-pill: 999px;
  --shadow-card: 0 2px 16px rgba(28,26,22,0.08);
  --shadow-lift: 0 8px 32px rgba(42,77,30,0.18);
  --maxw: 1120px;  --maxw-narrow: 760px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Onest', system-ui, -apple-system, sans-serif;
  background: var(--linen);
  color: var(--bark);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Accessibility helpers --- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* --- Layout --- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: var(--maxw-narrow); }

section { padding: 88px 0; }

/* --- Typography --- */
.label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sage);
  margin-bottom: 16px;
}
.label-light { color: var(--sage-light); }

h1 { font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 500; line-height: 1.3; }
h2 em { font-style: italic; color: var(--forest); }

.lede { font-size: 18px; color: var(--muted); margin-top: 16px; line-height: 1.6; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 16px; font-weight: 700;
  border: none; border-radius: var(--r-lg); cursor: pointer;
  padding: 15px 26px; transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.btn-accent { background: var(--terra); color: var(--white); }
.btn-accent:hover { background: var(--terra-light); box-shadow: 0 8px 24px rgba(196,98,45,0.3); transform: translateY(-1px); }
.btn-nav { padding: 11px 20px; font-size: 14px; }

/* Lower-emphasis "skip the line" CTA — reads as an escape hatch next to
   the primary waitlist button, not a competing call to action. Default
   assumes a dark photo background (hero); .site-nav override below
   flips it for the light sticky nav. */
.btn-secondary {
  background: transparent; color: rgba(255,255,255,0.92);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.site-nav .btn-secondary { color: var(--bark); border-color: rgba(28,26,22,0.18); }
.site-nav .btn-secondary:hover { background: rgba(28,26,22,0.04); border-color: rgba(28,26,22,0.32); }

/* --- Nav --- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(250,247,241,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(28,26,22,0.06);
}
.nav-ctas { display: flex; align-items: center; gap: 10px; }
.nav-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--forest); }
.nav-logo:hover { text-decoration: none; }
.nav-wordmark { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }

/* --- Hero --- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,8,0.30) 0%, rgba(10,30,8,0.55) 55%, rgba(10,30,8,0.88) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 120px 24px 80px; width: 100%; }
.hero-eyebrow { color: rgba(255,255,255,0.7); }
.hero-headline { color: var(--white); font-size: 56px; font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 18px; }
.hero-subline { color: rgba(255,255,255,0.82); font-size: 18px; line-height: 1.55; margin-bottom: 32px; max-width: 540px; }
.hero-proof { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.6); }
.hero-try-now { margin-top: 16px; padding: 11px 20px; font-size: 14px; }

/* --- Waitlist form --- */
.waitlist-form { width: 100%; max-width: 520px; }
.form-row { display: flex; gap: 10px; }
.form-input {
  flex: 1; min-width: 0; font-family: inherit; font-size: 16px;
  padding: 15px 18px; border-radius: var(--r-lg);
  border: 1.5px solid rgba(28,26,22,0.12); background: var(--white); color: var(--bark);
}
.form-input::placeholder { color: var(--muted); }
.consent-row {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 14px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.78);
}
.consent-row input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--forest); cursor: pointer; }
.consent-row a { color: var(--sage-light); }
.form-message { margin-top: 12px; font-size: 14px; font-weight: 600; min-height: 20px; }
.form-message.success { color: var(--sage-light); }
.form-message.error { color: var(--terra-light); }

/* On light backgrounds (final CTA), consent text needs dark colour */
.final-cta .consent-row { color: var(--muted); }
.final-cta .consent-row a { color: var(--forest); }

/* --- Problem --- */
.problem { text-align: center; background: var(--white); }
.problem .label { color: var(--terra); }

/* --- Solution --- */
.solution { text-align: center; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; text-align: left; }
.pillar-card { background: var(--white); border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--shadow-card); }
.pillar-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--sage-pale); color: var(--forest);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.pillar-card h3 { font-weight: 700; margin-bottom: 8px; }
.pillar-card p { color: var(--muted); font-size: 15px; }

/* --- Split sections (Insights, Philosophy) --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
/* height:auto is required here: the <img> tags carry width/height HTML
   attributes for CLS reservation, and without an explicit height:auto,
   the browser keeps that height as a literal pixel value independent of
   the CSS-scaled width — stretching the image out of its aspect ratio. */
.split-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-card); width: 100%; height: auto; display: block; }
.split-content p { color: var(--muted); margin-bottom: 8px; }
.insights { background: var(--forest); color: var(--white); }
.insights .split-content h2 { color: var(--white); }
.insights .split-content > p { color: rgba(255,255,255,0.8); }
.insights-states { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.insights-states li {
  background: rgba(255,255,255,0.1); border-radius: var(--r-pill);
  padding: 7px 15px; font-size: 14px; font-weight: 500;
}
.disclosure-card {
  background: rgba(123,174,110,0.15); border: 1px solid var(--sage-light);
  border-radius: var(--r-md); padding: 14px 16px; margin-top: 8px;
}
.disclosure-card p { color: rgba(255,255,255,0.9); font-size: 13px; margin: 0; line-height: 1.55; }
.split.reverse .split-media { order: 2; }

/* --- Breeds --- */
.breeds { text-align: center; background: var(--sage-pale); }
.breed-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 32px; }
.chip {
  background: var(--white); color: var(--bark);
  border-radius: var(--r-pill); padding: 9px 18px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-card);
}
.chip-accent { background: var(--forest); color: var(--white); }

/* --- Philosophy check list --- */
.check-list { list-style: none; margin-top: 18px; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--bark); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 16px; height: 9px; border-left: 2.5px solid var(--forest); border-bottom: 2.5px solid var(--forest);
  transform: rotate(-45deg);
}

/* --- Rescue --- */
.rescue { position: relative; color: var(--white); overflow: hidden; }
.rescue-media { position: absolute; inset: 0; z-index: 0; }
.rescue-media img { width: 100%; height: 100%; object-fit: cover; }
.rescue-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(28,58,20,0.92) 0%, rgba(28,58,20,0.6) 100%); }
.rescue-content { position: relative; z-index: 1; }
.rescue-content h2 { color: var(--white); font-size: 32px; }
.rescue-content p { color: rgba(255,255,255,0.85); font-size: 18px; margin-top: 16px; line-height: 1.7; }

/* --- Pricing --- */
.pricing { text-align: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; text-align: left; }
.price-card {
  background: var(--white); border-radius: var(--r-lg); padding: 26px 22px;
  box-shadow: var(--shadow-card); border: 2px solid transparent; position: relative;
}
.price-card.featured { border-color: var(--forest); }
.price-badge {
  position: absolute; top: -11px; left: 22px;
  background: var(--forest); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 12px; border-radius: var(--r-pill);
}
.price-card h3 { font-weight: 700; margin-bottom: 10px; }
.price { font-size: 36px; font-weight: 900; letter-spacing: -0.03em; color: var(--forest); }
.price-per { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.price-card ul { list-style: none; }
.price-card li { font-size: 14px; color: var(--bark); padding: 6px 0 6px 24px; position: relative; }
.price-card li::before {
  content: ''; position: absolute; left: 2px; top: 12px;
  width: 12px; height: 7px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg);
}
.pricing-note { margin-top: 24px; font-size: 13px; color: var(--muted); }

/* --- FAQ --- */
.faq .label { color: var(--sage); }
.faq-item {
  background: var(--white); border-radius: var(--r-md);
  margin-top: 12px; box-shadow: var(--shadow-card); overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px; font-weight: 700; font-size: 16px; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 22px; font-weight: 400; color: var(--forest); flex-shrink: 0; transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* --- Final CTA --- */
.final-cta { background: var(--sand); text-align: center; }
.final-cta h2 { font-size: 32px; }
.final-cta .waitlist-form { margin: 28px auto 0; }
.final-cta .form-message { color: var(--forest); }
.final-cta .form-message.error { color: var(--terra); }

/* --- Footer --- */
.site-footer { background: var(--bark); color: rgba(255,255,255,0.7); padding: 48px 0 28px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-logo { color: var(--white); }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.55); margin-top: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-links a:hover { color: var(--white); }
.footer-legal { text-align: center; font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 36px; }

/* --- Legal pages --- */
.legal-main { max-width: var(--maxw-narrow); margin: 0 auto; padding: 48px 24px 80px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--sage); }
.legal-main h1 { font-size: 36px; margin-bottom: 8px; }
.legal-updated { font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.legal-main h2 { font-size: 22px; margin: 36px 0 12px; }
.legal-main h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.legal-main p, .legal-main li { font-size: 16px; line-height: 1.7; color: var(--bark); margin-bottom: 14px; }
.legal-main ul, .legal-main ol { padding-left: 24px; margin-bottom: 16px; }
.legal-main li { margin-bottom: 8px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--sand); font-size: 15px; vertical-align: top; }
.legal-table th { background: var(--sage-pale); color: var(--forest); font-weight: 700; }
.legal-callout { background: var(--terra-pale); border-radius: var(--r-md); padding: 18px 20px; margin: 24px 0; }
.legal-callout p { color: var(--bark); font-size: 15px; margin: 0; }

/* --- Responsive --- */
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero-headline { font-size: 40px; }
  h1 { font-size: 30px; } h2 { font-size: 24px; }
  .rescue-content h2, .final-cta h2 { font-size: 26px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 34px; }
  .hero-subline, .lede { font-size: 16px; }
  .form-row { flex-direction: column; }
  /* Full-width only for form buttons — never the nav button (it lives in a flex row) */
  .form-input, .form-row .btn { width: 100%; }
  .form-row .btn { padding: 16px; }
  /* Compact nav button so the wordmark keeps breathing room (≥44px touch target) */
  .btn-nav { padding: 12px 16px; font-size: 13px; }
  /* Three items (wordmark + 2 CTAs) don't fit this narrow — drop the nav-level
     secondary; the hero's own "Try it now" link still covers that path. */
  .nav-ctas .btn-secondary { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; gap: 24px; }
  .hero-content { padding: 90px 24px 60px; }
}

/* ===================================================================
   MOTION LAYER — scroll-reveal, micro-interactions, parallax
   Premium calm feel. Transform/opacity only. Spring-ish easing.
   =================================================================== */

:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);   /* soft spring-out for entrances */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-micro: 200ms;
  --t-enter: 600ms;
}

/* --- Scroll reveal: hidden until .is-visible is added by IntersectionObserver --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-left  { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal-scale { transform: scale(0.96); }

/* Staggered children — set --i on each child (or via JS) */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out);
}
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 60ms; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 120ms; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 180ms; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 240ms; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 300ms; }
.stagger.is-visible > *:nth-child(7) { transition-delay: 360ms; }
.stagger.is-visible > *:nth-child(8) { transition-delay: 420ms; }

/* --- Nav: condense + add shadow once scrolled --- */
.site-nav { transition: padding var(--t-micro) var(--ease-out), box-shadow var(--t-micro) var(--ease-out), background var(--t-micro); }
.site-nav.scrolled { padding-top: 9px; padding-bottom: 9px; box-shadow: 0 4px 24px rgba(28,26,22,0.08); }
.nav-logo svg circle { transition: transform var(--t-micro) var(--ease-out); transform-origin: center; transform-box: fill-box; }
.nav-logo:hover svg circle:first-child  { transform: translateX(1.5px); }
.nav-logo:hover svg circle:last-child   { transform: translateX(-1.5px); }

/* --- Hero parallax target (translated by JS, capped) --- */
.hero-media img { will-change: transform; }
.hero-content { animation: hero-rise 900ms var(--ease-out) both; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* --- Card micro-interactions --- */
.pillar-card, .price-card, .faq-item, .chip {
  transition: transform var(--t-micro) var(--ease-out), box-shadow var(--t-micro) var(--ease-out);
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.price-card.featured:hover { transform: translateY(-8px) scale(1.01); }
.chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.insights-states li { transition: transform var(--t-micro) var(--ease-out), background var(--t-micro); }
.insights-states li:hover { transform: translateY(-3px); background: rgba(255,255,255,0.18); }

/* Press feedback on all buttons */
.btn:active { transform: translateY(0) scale(0.97); }

/* --- Animated link underline (footer + inline) --- */
.footer-links a { position: relative; }
.footer-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-micro) var(--ease-out);
}
.footer-links a:hover { text-decoration: none; }
.footer-links a:hover::after { transform: scaleX(1); }

/* --- FAQ: animate the disclosure body --- */
.faq-item > p { animation: faq-open 320ms var(--ease-out); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* --- Counter number (tabular to prevent width jitter while counting) --- */
.count { font-variant-numeric: tabular-nums; }

@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; gap: 24px; }
  .hero-content { padding: 90px 24px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* Reveal content immediately — never leave it stuck invisible */
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
  .hero-content { animation: none !important; }
}
