/* =========================================
   MyNubs — Brand Stylesheet
   Pet answers, calculated with care.
   ========================================= */

/* ----- Design Tokens ----- */
:root {
  /* Primary */
  --warm-cream: #FFF7EA;
  --soft-ink: #24302F;
  --trust-teal: #2F8F83;
  --trust-teal-dark: #25736A;
  --trust-teal-light: #4DAFA3;
  --nub-coral: #FF7A59;
  --nub-coral-dark: #E5613F;

  /* Secondary */
  --butter-yellow: #FFD66B;
  --misty-blue: #DDEFF2;
  --soft-sage: #DDE8D5;
  --cloud-white: #FFFFFF;
  --light-sand: #F4E9D8;

  /* Functional */
  --success-green: #3FA77B;
  --warning-amber: #F4A940;
  --caution-coral: #E85D4A;
  --emergency-red: #C83B32;

  /* Text */
  --text-primary: var(--soft-ink);
  --text-secondary: #5A6766;
  --text-muted: #8A9594;

  /* Surfaces */
  --bg-page: var(--warm-cream);
  --bg-card: var(--cloud-white);
  --bg-soft: var(--light-sand);
  --border-soft: #ECE3D2;
  --border-card: #E8DFCC;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(36, 48, 47, 0.04), 0 1px 3px rgba(36, 48, 47, 0.06);
  --shadow-md: 0 4px 12px rgba(36, 48, 47, 0.06), 0 2px 4px rgba(36, 48, 47, 0.04);
  --shadow-lg: 0 12px 32px rgba(36, 48, 47, 0.08), 0 4px 8px rgba(36, 48, 47, 0.04);
  --shadow-teal: 0 8px 24px rgba(47, 143, 131, 0.18);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 880px;
  --reading-width: 760px;
  --breakout-width: 1180px;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-subhead: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ----- Reset / Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--trust-teal); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--trust-teal-dark); }
button { font-family: inherit; cursor: pointer; }

/* ----- Typography ----- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--soft-ink);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  line-height: 1.15;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.625rem); }
h4 { font-size: 1.15rem; font-family: var(--font-subhead); font-weight: 500; }

p { margin: 0 0 var(--space-4); color: var(--text-secondary); }
.lead { font-size: 1.2rem; color: var(--text-secondary); line-height: 1.55; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-subhead);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--trust-teal);
  margin-bottom: var(--space-3);
}

/* ----- Layout ----- */
.container { max-width: 100%; margin: 0 auto; padding: 0 clamp(20px, 4.5vw, 80px); }
.container-narrow { max-width: 100%; margin: 0 auto; padding: 0 clamp(20px, 4.5vw, 80px); }
section { padding: var(--space-8) 0; }
@media (max-width: 768px) { section { padding: var(--space-7) 0; } }

/* ----- Header / Nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 247, 234, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(36, 48, 47, 0.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) 0;
  gap: var(--space-5);
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 76px; width: auto; }
.nav-links {
  display: flex; gap: var(--space-5); align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--soft-ink);
  font-family: var(--font-subhead);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-2) 0;
  position: relative;
}
.nav-links a:hover { color: var(--trust-teal); }
.nav-links a.active { color: var(--trust-teal); }
/* CTA button in nav must stay white — beats .nav-links a specificity */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover,
.nav-links a.btn-coral,
.nav-links a.btn-coral:hover { color: var(--cloud-white); }
/* Restore button padding that .nav-links a (padding: x 0) was overriding to zero horizontally */
.nav-links a.btn { padding: 11px 22px; }
.nav-toggle { display: none; background: none; border: 0; padding: var(--space-2); }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--soft-ink); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-logo img { height: 58px; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-page);
    flex-direction: column;
    padding: var(--space-4) var(--space-5);
    gap: var(--space-3);
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-links.open { display: flex; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 14px 24px;
  font-family: var(--font-subhead);
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: all .18s ease;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--trust-teal);
  color: var(--cloud-white);
  border-color: var(--trust-teal);
}
.btn-primary:hover {
  background: var(--trust-teal-dark);
  border-color: var(--trust-teal-dark);
  color: var(--cloud-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-teal);
}
.btn-secondary {
  background: var(--cloud-white);
  color: var(--trust-teal);
  border-color: var(--trust-teal);
}
.btn-secondary:hover {
  background: var(--trust-teal);
  color: var(--cloud-white);
}
.btn-coral {
  background: var(--nub-coral);
  color: var(--cloud-white);
  border-color: var(--nub-coral);
}
.btn-coral:hover {
  background: var(--nub-coral-dark);
  border-color: var(--nub-coral-dark);
  color: var(--cloud-white);
  transform: translateY(-1px);
}
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: var(--space-7) 0 var(--space-8);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 50%; right: -8%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--soft-sage) 0%, transparent 70%);
  transform: translateY(-50%);
  opacity: 0.6;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-7);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 .accent { color: var(--trust-teal); }
.hero .tagline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--nub-coral);
  font-weight: 500;
  font-style: italic;
  margin: var(--space-4) 0 var(--space-5);
}
.hero-ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.hero-image-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, transparent 50%, rgba(255, 247, 234, 0.3));
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero::before { width: 320px; height: 320px; right: -30%; }
}

/* ----- Value Props ----- */
.value-props {
  background: var(--soft-sage);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-5);
  margin: var(--space-7) 0;
}
.value-props-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.value-prop {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.value-prop-icon {
  width: 64px; height: 64px;
  background: var(--cloud-white);
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.value-prop-icon svg { width: 32px; height: 32px; stroke: var(--trust-teal); }
.value-prop:nth-child(3) .value-prop-icon svg { stroke: var(--nub-coral); }
.value-prop h4 { font-family: var(--font-subhead); font-size: 1rem; font-weight: 500; color: var(--soft-ink); margin: 0; }
.value-prop p { font-size: 0.875rem; margin-top: var(--space-1); }

@media (max-width: 768px) {
  .value-props-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
}

/* ----- Calculator Cards Grid ----- */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .calc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.calc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--trust-teal-light);
}
.calc-card-icon {
  width: 48px; height: 48px;
  background: var(--misty-blue);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  margin-bottom: var(--space-4);
}
.calc-card-icon svg { width: 28px; height: 28px; stroke: var(--trust-teal); }
.calc-card.cat .calc-card-icon { background: var(--light-sand); }
.calc-card.cat .calc-card-icon svg { stroke: var(--nub-coral); }
.calc-card h3 { font-size: 1.2rem; margin-bottom: var(--space-2); }
.calc-card p { font-size: 0.925rem; margin-bottom: var(--space-4); flex: 1; }
.calc-card .calc-card-cta {
  font-family: var(--font-subhead);
  font-weight: 500;
  color: var(--trust-teal);
  font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: var(--space-1);
}
.calc-card .calc-card-cta::after { content: "→"; transition: transform .15s ease; }
.calc-card:hover .calc-card-cta::after { transform: translateX(3px); }

/* ----- Trust Badge / Vet Reviewed ----- */
.vet-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--soft-sage);
  color: var(--trust-teal-dark);
  font-family: var(--font-subhead);
  font-weight: 500;
  font-size: 0.825rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(47, 143, 131, 0.2);
}
.vet-badge svg { width: 16px; height: 16px; stroke: var(--trust-teal); }
.vet-reviewer {
  display: flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}
.vet-reviewer strong { color: var(--soft-ink); }
.vet-reviewer .sep { color: var(--text-muted); margin: 0 var(--space-2); }

/* ----- Calculator Page Layout ----- */
.calc-page-header {
  padding: var(--space-7) 0 var(--space-5);
}
.calc-breadcrumb {
  font-family: var(--font-subhead);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.calc-breadcrumb a { color: var(--text-secondary); }
.calc-breadcrumb a:hover { color: var(--trust-teal); }

.calc-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } }

.calc-form, .calc-result {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.calc-step {
  display: flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-subhead);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.calc-step-num {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--soft-sage);
  color: var(--trust-teal-dark);
  font-weight: 600;
  font-size: 0.75rem;
}

/* Form elements */
.field { margin-bottom: var(--space-4); }
.field label {
  display: block;
  font-family: var(--font-subhead);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--soft-ink);
  margin-bottom: var(--space-2);
}
.field .help { font-size: 0.8rem; color: var(--text-muted); margin-top: var(--space-1); }

.input, .select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--soft-ink);
  background: var(--cloud-white);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--trust-teal);
  box-shadow: 0 0 0 3px rgba(47, 143, 131, 0.12);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%2324302F' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.input-with-unit { display: grid; grid-template-columns: 1fr 80px; gap: var(--space-2); }
textarea.input { min-height: 168px; resize: vertical; line-height: 1.55; }

/* Option chips */
.chip-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  display: inline-flex; align-items: center;
  padding: 9px 16px;
  font-family: var(--font-subhead);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--cloud-white);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--trust-teal-light); color: var(--soft-ink); }
.chip.selected {
  background: var(--trust-teal);
  color: var(--cloud-white);
  border-color: var(--trust-teal);
}

/* Result panel */
.calc-result-big {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background: var(--soft-sage);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.calc-result-big .label {
  font-family: var(--font-subhead);
  font-size: 0.875rem;
  color: var(--trust-teal-dark);
  margin-bottom: var(--space-2);
  font-weight: 500;
}
.calc-result-big .value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--trust-teal-dark);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.calc-result-big .unit {
  font-family: var(--font-subhead);
  font-size: 1rem;
  color: var(--trust-teal-dark);
}
.calc-result-big .meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: var(--space-3);
}
.calc-result-big.placeholder { background: var(--bg-soft); }
.calc-result-big.placeholder .value { color: var(--text-muted); }
.calc-result-big.placeholder .label { color: var(--text-muted); }

/* Alert / Important */
.alert {
  display: flex; gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  align-items: flex-start;
}
.alert-warning {
  background: rgba(244, 169, 64, 0.12);
  border: 1px solid rgba(244, 169, 64, 0.35);
  color: #8a5800;
}
.alert-warning svg { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--warning-amber); }
.alert-success {
  background: rgba(47, 143, 131, 0.10);
  border: 1px solid rgba(47, 143, 131, 0.35);
  color: var(--trust-teal-dark);
}
.alert-success strong { color: var(--trust-teal-dark); }
.alert strong { color: var(--soft-ink); }

/* Sections under calculator */
.calc-sections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
@media (max-width: 900px) { .calc-sections { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .calc-sections { grid-template-columns: 1fr; } }

.calc-section-card {
  background: var(--cloud-white);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
}
.calc-section-card svg { width: 28px; height: 28px; margin-bottom: var(--space-2); stroke: var(--trust-teal); }
.calc-section-card.coral svg { stroke: var(--nub-coral); }
.calc-section-card h4 { font-family: var(--font-subhead); font-weight: 500; font-size: 1rem; color: var(--soft-ink); margin: 0 0 var(--space-1); }
.calc-section-card p { font-size: 0.875rem; margin: 0; }

/* What it means box */
.what-it-means {
  background: var(--cloud-white);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  margin-bottom: var(--space-4);
}
.what-it-means h4 {
  font-family: var(--font-subhead);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 var(--space-2);
}
.what-it-means p:last-child { margin-bottom: 0; }

/* Nub Tip callout */
.nub-tip {
  display: flex; gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  background: rgba(255, 122, 89, 0.08);
  border: 1px solid rgba(255, 122, 89, 0.25);
  border-radius: var(--radius-md);
}
.nub-tip img { width: 56px; height: auto; flex-shrink: 0; }
.nub-tip-content { flex: 1; }
.nub-tip h5 {
  font-family: var(--font-subhead);
  font-weight: 600;
  color: var(--nub-coral-dark);
  margin: 0 0 var(--space-1);
  font-size: 0.95rem;
}
.nub-tip p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); }

/* ----- How It Works (homepage) ----- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--bg-card);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  position: relative;
}
.step-num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  background: var(--trust-teal);
  color: var(--cloud-white);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.step h3 { font-size: 1.2rem; margin-bottom: var(--space-2); }
.step p { font-size: 0.95rem; margin: 0; }

/* ----- Trust strip ----- */
.trust-strip {
  background: var(--soft-ink);
  color: var(--cloud-white);
  padding: var(--space-7);
  border-radius: var(--radius-xl);
}
.trust-strip .container { padding: 0 var(--space-6); }
.trust-strip h2 { color: var(--cloud-white); margin-bottom: var(--space-2); }
.trust-strip .lead { color: rgba(255, 247, 234, 0.75); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--space-6);
  margin-top: var(--space-5);
}
@media (max-width: 700px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item {
  display: flex; gap: var(--space-3);
  font-size: 0.95rem;
  color: rgba(255, 247, 234, 0.9);
}
.trust-item svg { width: 24px; height: 24px; flex-shrink: 0; stroke: var(--trust-teal-light); }

/* ----- Pet Profile Card (saved) ----- */
.profile-card {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.profile-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.profile-card .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--soft-sage);
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.profile-card .avatar svg { width: 22px; height: 22px; stroke: var(--trust-teal); }
.profile-card .info { flex: 1; }
.profile-card .name { font-family: var(--font-subhead); font-weight: 500; color: var(--soft-ink); font-size: 0.95rem; }
.profile-card .meta { font-size: 0.8rem; color: var(--text-muted); }
.profile-card .arrow { color: var(--text-muted); }

/* ----- Footer ----- */
.site-footer {
  background: var(--soft-ink);
  color: rgba(255, 247, 234, 0.8);
  padding: var(--space-7) 0 var(--space-5);
  margin-top: var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand img { height: 46px; filter: brightness(0) invert(1) opacity(0.95); margin-bottom: var(--space-3); }
.footer-brand p { color: rgba(255, 247, 234, 0.7); font-size: 0.9rem; max-width: 320px; margin-bottom: var(--space-3); }
.footer-col h4 {
  color: var(--cloud-white);
  font-family: var(--font-subhead);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 var(--space-3);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a {
  color: rgba(255, 247, 234, 0.75);
  font-size: 0.925rem;
}
.footer-col a:hover { color: var(--cloud-white); }
.footer-bottom {
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 247, 234, 0.12);
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 247, 234, 0.55);
}
.footer-bottom .built-by { display: inline-flex; align-items: center; gap: var(--space-2); }
.footer-bottom .built-by .heart { color: var(--nub-coral); }

/* ----- Hub page (calculator list) ----- */
.hub-header {
  text-align: center;
  padding: var(--space-7) 0 var(--space-5);
  max-width: 720px;
  margin: 0 auto;
}

/* ----- Disclaimer ----- */
.disclaimer {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.disclaimer strong { color: var(--soft-ink); }

/* ----- Utilities ----- */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto var(--space-6); }

/* ----- Animations ----- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease-out both; }
.fade-up-2 { animation: fadeUp .5s ease-out .08s both; }
.fade-up-3 { animation: fadeUp .5s ease-out .16s both; }

/* ----- Email Capture ----- */
.email-capture {
  background: var(--cloud-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}
.email-capture-compact { padding: var(--space-3) var(--space-4); }
.email-capture h4 {
  font-family: var(--font-subhead);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--soft-ink);
  margin: 0 0 var(--space-1);
}
.email-capture p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 var(--space-3);
}
.email-capture-form {
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
}
.email-capture-form .input {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.95rem;
}
.email-capture-form .btn {
  padding: 10px 18px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.email-capture .success {
  display: none;
  padding: var(--space-3);
  background: rgba(63, 167, 123, 0.1);
  border: 1px solid rgba(63, 167, 123, 0.3);
  border-radius: var(--radius-sm);
  color: var(--success-green);
  font-size: 0.9rem;
  font-weight: 500;
}
.email-capture.subscribed .email-capture-form,
.email-capture.subscribed h4,
.email-capture.subscribed p { display: none; }
.email-capture.subscribed .success { display: block; }

/* Larger homepage email capture */
.email-capture-hero {
  background: var(--soft-sage);
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
}
.email-capture-hero h2 { margin-bottom: var(--space-2); }
.email-capture-hero p { font-size: 1rem; max-width: 480px; margin: 0 auto var(--space-4); }
.email-capture-hero .email-capture-form {
  max-width: 460px;
  margin: 0 auto;
}
.email-capture-hero .email-capture-form .input {
  padding: 14px 18px;
  font-size: 1rem;
}
.email-capture-hero .email-capture-form .btn { padding: 14px 22px; font-size: 1rem; }
.email-capture-hero .privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-3);
}

@media (max-width: 600px) {
  .email-capture-form { flex-direction: column; }
}

/* ----- FAQ Accordion ----- */
.faq-section {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-soft);
}
.faq-list { margin-top: var(--space-4); }
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}
.faq-item:first-child { border-top: 1px solid var(--border-soft); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: 0;
  padding: var(--space-4) 0;
  font-family: var(--font-subhead);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--soft-ink);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}
.faq-question:hover { color: var(--trust-teal); }
.faq-toggle {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--soft-sage);
  color: var(--trust-teal-dark);
  flex-shrink: 0;
  margin-left: var(--space-3);
  transition: transform 0.2s ease;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s ease;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: var(--space-4);
}
.faq-answer p { margin: 0 0 var(--space-2); font-size: 0.95rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ----- Related Calculators ----- */
.related-section {
  margin-top: var(--space-7);
  padding: var(--space-6);
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
}
.related-section h3 {
  text-align: center;
  margin-bottom: var(--space-5);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 800px) {
  .related-grid { grid-template-columns: 1fr; }
}
.related-card {
  background: var(--cloud-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.related-card .related-icon {
  width: 36px;
  height: 36px;
  background: var(--misty-blue);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.related-card.cat .related-icon { background: var(--light-sand); }
.related-card .related-icon svg { width: 20px; height: 20px; stroke: var(--trust-teal); }
.related-card.cat .related-icon svg { stroke: var(--nub-coral); }
.related-card .related-info { flex: 1; }
.related-card h4 {
  font-family: var(--font-subhead);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--soft-ink);
  margin: 0 0 4px;
}
.related-card p {
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* ----- Reference Tables (AI-citation-friendly quick stats) ----- */
.reference-table-wrap {
  margin: var(--space-5) 0 var(--space-6);
  background: var(--cloud-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.reference-table-wrap h4 {
  font-family: var(--font-subhead);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
}
.reference-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}
.reference-table th, .reference-table td {
  padding: 10px var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.reference-table th {
  font-family: var(--font-subhead);
  font-weight: 500;
  font-size: 0.825rem;
  color: var(--text-secondary);
  background: var(--bg-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.reference-table tbody tr:last-child td { border-bottom: 0; }
.reference-table tbody tr:hover { background: rgba(47, 143, 131, 0.04); }
.reference-table td:first-child { font-weight: 500; color: var(--soft-ink); }
.reference-table .stage-puppy { color: var(--success-green); }
.reference-table .stage-adult { color: var(--trust-teal-dark); }
.reference-table .stage-senior { color: var(--warning-amber); }
.reference-table .stage-geriatric { color: var(--caution-coral); }
.reference-table-wrap .table-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  font-style: italic;
}

@media (max-width: 600px) {
  .reference-table { font-size: 0.825rem; }
  .reference-table th, .reference-table td { padding: 8px 10px; }
}

/* ----- Blog hub & articles ----- */
.blog-hero {
  padding: var(--space-7) 0 var(--space-5);
  text-align: center;
}
.blog-hero .eyebrow {
  color: var(--trust-teal);
  font-family: var(--font-subhead);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-hero h1 {
  margin: var(--space-3) auto var(--space-3);
  max-width: 720px;
}
.blog-hero .lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-secondary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-5);
  margin: var(--space-6) 0;
}

.blog-card {
  background: var(--cloud-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--soft-ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(36, 48, 47, 0.08);
}
.blog-card-image {
  aspect-ratio: 16 / 9;
  background: var(--soft-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.blog-card-image svg {
  width: 64px;
  height: 64px;
  color: var(--trust-teal-dark);
  opacity: 0.5;
}
.blog-card-image.cat-bg { background: var(--misty-blue); }
.blog-card-image.cat-bg svg { color: var(--nub-coral); }
.blog-card-content {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-subhead);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47, 143, 131, 0.1);
  color: var(--trust-teal-dark);
  margin-bottom: var(--space-3);
  align-self: flex-start;
}
.blog-card .tag.cat {
  background: rgba(255, 122, 89, 0.12);
  color: var(--nub-coral);
}
.blog-card h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 var(--space-2);
  font-family: var(--font-headline);
  font-weight: 600;
}
.blog-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 var(--space-3);
  flex: 1;
}
.blog-card-meta {
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.blog-card-meta .dot {
  width: 3px; height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
}

/* ----- Article layout ----- */
.article-header {
  padding: var(--space-7) 0 var(--space-6);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F2EAD9 0%, #E9DFC8 100%);
}
/* Text-only gradient banners, themed by article type */
.article-header.dog-theme {
  background: linear-gradient(135deg, #DCEFE9 0%, #BFE0D6 55%, #A7D4C6 100%);
}
.article-header.cat-theme {
  background: linear-gradient(135deg, #E7EDF5 0%, #D3DEEC 55%, #FBD9CE 100%);
}
.article-breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.article-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}
.article-breadcrumb a:hover { color: var(--trust-teal); }
.article-header h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: var(--space-2) 0 var(--space-4);
  max-width: 820px;
}
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-subhead);
  flex-wrap: wrap;
}
.article-meta-bar .author {
  font-weight: 500;
  color: var(--soft-ink);
}
.article-meta-bar .author a {
  color: var(--trust-teal-dark);
  text-decoration: none;
}
.article-meta-bar .article-tag {
  background: rgba(47, 143, 131, 0.1);
  color: var(--trust-teal-dark);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.article-body {
  max-width: 100%;
  margin: 0;
}
/* Keep running prose at a comfortable reading measure (left-aligned to match
   the site's full-width style); structural elements below break out wider. */
.article-body > p,
.article-body > ul,
.article-body > ol,
.article-body > h2,
.article-body > h3,
.article-body > h4,
.article-body > .article-lead,
.article-body > .pull-quote,
.article-body > .disclaimer {
  max-width: var(--reading-width);
}
/* Wide breakout elements use much more of the full-width page */
.article-body > .reference-table-wrap,
.article-body > .calc-callout,
.article-body > .related-section,
.article-body > .related-posts {
  max-width: var(--breakout-width);
}

/* Other full-width narrow-content pages (calculator how-it-works, legal,
   contact): keep flowing prose readable; let tables/cards/sections break out. */
.container-narrow > h1,
.container-narrow > h2,
.container-narrow > h3,
.container-narrow > p,
.container-narrow > ul,
.container-narrow > ol,
.container-narrow > .article-breadcrumb,
.container-narrow > .article-meta-bar,
.container-narrow > .lead,
.container-narrow > .pull-quote,
.container-narrow > pre,
.container-narrow > .disclaimer {
  max-width: var(--reading-width);
}
.container-narrow > .reference-table-wrap,
.container-narrow > .faq-section,
.container-narrow > .related-section,
.container-narrow > .related-posts,
.container-narrow > .contact-card,
.container-narrow > .contact-extras,
.container-narrow > .alert {
  max-width: var(--breakout-width);
}
.article-body p {
  font-size: 1.0625rem;
  line-height: 1.75;
  margin: 0 0 var(--space-4);
  color: var(--soft-ink);
}
.article-body h2 {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.625rem;
  line-height: 1.25;
  margin: var(--space-6) 0 var(--space-3);
  scroll-margin-top: var(--space-5);
}
.article-body h3 {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.25rem;
  margin: var(--space-5) 0 var(--space-2);
}
.article-body ul, .article-body ol {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
  color: var(--soft-ink);
}
.article-body li { margin-bottom: var(--space-2); }
.article-body strong { color: var(--soft-ink); font-weight: 600; }
.article-body a {
  color: var(--trust-teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--nub-coral); }

.article-lead {
  font-size: 1.25rem !important;
  line-height: 1.55 !important;
  color: var(--text-secondary) !important;
  font-weight: 400;
  margin-bottom: var(--space-5) !important;
}

/* Article hero image */
.article-hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: var(--space-2) 0 var(--space-5);
  display: block;
}

/* Calculator callout inside articles */
.calc-callout {
  background: linear-gradient(135deg, rgba(47, 143, 131, 0.08) 0%, rgba(255, 122, 89, 0.06) 100%);
  border: 1px solid rgba(47, 143, 131, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-5) 0;
  display: flex;
  gap: var(--space-4);
  align-items: center;
}
.calc-callout-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: var(--trust-teal);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.calc-callout-icon svg { width: 28px; height: 28px; }
.calc-callout-content { flex: 1; }
.calc-callout h4 {
  margin: 0 0 var(--space-1);
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 600;
}
.calc-callout p {
  margin: 0 0 var(--space-2) !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  color: var(--text-secondary) !important;
}
.calc-callout .btn { margin: 0; }

@media (max-width: 640px) {
  .calc-callout { flex-direction: column; text-align: center; }
}

/* Pull quote */
.pull-quote {
  font-family: var(--font-headline);
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--trust-teal-dark);
  font-weight: 500;
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
  border-left: 4px solid var(--nub-coral);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Related posts */
.related-posts {
  margin: var(--space-6) 0 var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-soft);
}
.related-posts h3 {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}
.related-post-card {
  background: var(--cloud-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-decoration: none;
  color: var(--soft-ink);
  display: block;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.related-post-card:hover {
  transform: translateY(-2px);
  border-color: var(--trust-teal);
}
.related-post-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-1);
  line-height: 1.35;
}
.related-post-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Print-friendly */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none; }
  body { background: white; color: black; }
}
