/* ──────────────────────────────────────────────────────────────────────────────
   petfeedingguide.co.uk — Design System v2
   Fonts: Playfair Display 500/600 (display) + Inter 400/500/600 (body/UI)
   ────────────────────────────────────────────────────────────────────────────── */

:root {
  --bg:           #F9F6F0;
  --green:        #2D5A3D;
  --green-dark:   #1e3f2b;
  --green-light:  #4a7d5c;
  --green-pale:   #e8f2eb;
  --text:         #1A1A1A;
  --text-muted:   #5a5a5a;
  --text-light:   #999999;
  --sage:         #EEF4EE;
  --amber:        #C8860A;
  --amber-light:  #fdf3e3;
  --border:       #E0DDD8;
  --white:        #FFFFFF;
  --red:          #c0392b;
  --red-light:    #fdf0ef;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    18px;
  --radius-xl:    24px;

  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-green: 0 4px 20px rgba(45,90,61,0.22);

  --transition:   all 0.2s ease;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: var(--transition);
}
a:hover { color: var(--green-dark); }

button { cursor: pointer; font-family: var(--font-body); border: none; background: none; transition: var(--transition); }

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}

h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-body); color: var(--text); }

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container      { max-width: 820px;  margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ─── Navigation ─────────────────────────────────────────────────────────── */
.site-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { height: 40px; width: auto; }

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
}

.nav-wordmark .feeding { color: var(--green); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--green); }

.nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 0.875rem !important;
}

.nav-cta:hover { background: var(--green-dark) !important; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.site-hero { padding: 56px 24px 0; text-align: center; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--sage);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-title em { color: var(--green); font-style: italic; }

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

/* ─── Trust bar ──────────────────────────────────────────────────────────── */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  padding: 20px 24px 40px;
  border-bottom: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ─── Tool Container ─────────────────────────────────────────────────────── */
#tool-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 52px 24px 72px;
}

.tool-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

/* ─── Left Panel ─────────────────────────────────────────────────────────── */
#tool-left-panel {
  position: sticky;
  top: 96px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
  min-height: 300px;
}

.panel-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: var(--sage);
}

.panel-placeholder-inner {
  text-align: center;
  padding: 32px 24px;
}

.panel-placeholder-inner p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.55;
}

#tool-left-panel.panel-active .panel-placeholder { display: none; }
#tool-left-panel.panel-active .panel-portrait    { display: block; }

.panel-portrait {
  display: none;
  aspect-ratio: 1;
  background: var(--sage);
  overflow: hidden;
}

.panel-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.panel-portrait img:hover { transform: scale(1.03); }

.panel-info { padding: 20px; }

.panel-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}

.panel-breed { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; }
.panel-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.panel-chip {
  font-size: 0.72rem;
  background: var(--sage);
  color: var(--green);
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 500;
}

/* ─── Tool Main ──────────────────────────────────────────────────────────── */
.tool-main {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.tool-progress-bar-wrap { height: 4px; background: var(--border); }

.tool-progress-bar {
  height: 100%;
  background: var(--green);
  width: 0%;
  transition: width 0.4s ease;
}

.tool-progress-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: right;
  padding: 10px 28px 0;
  letter-spacing: 0.02em;
}

#tool-step-content {
  padding: 36px 40px 44px;
  min-height: 420px;
}

/* ─── Step Components ────────────────────────────────────────────────────── */
.step-header { margin-bottom: 28px; }

.step-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.step-subtitle { font-size: 0.9rem; color: var(--text-muted); }
.step-note     { font-size: 0.82rem; color: var(--text-muted); margin-top: 20px; text-align: center; }
.step-actions  { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Species Step ───────────────────────────────────────────────────────── */
.species-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 480px;
  margin: 0 auto;
}

.species-card {
  background: var(--sage);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
  cursor: pointer;
}

.species-card:hover {
  border-color: var(--green);
  background: var(--green-pale);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.species-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  flex-shrink: 0;
}

.species-icon img { width: 100%; height: 100%; object-fit: cover; }

.species-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
}

/* ─── Name Step ──────────────────────────────────────────────────────────── */
.name-input-wrap { max-width: 420px; }

.name-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1.05rem;
  font-family: var(--font-body);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.name-input:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(45,90,61,0.08);
}

/* ─── Breed Step ─────────────────────────────────────────────────────────── */
.breed-search-wrap { margin-bottom: 18px; }

.breed-search {
  width: 100%;
  padding: 11px 16px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.breed-search:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,90,61,0.08); }

.breed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding: 2px;
}

.breed-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.breed-card:hover, .breed-card.selected { border-color: var(--green); background: var(--sage); }
.breed-card.selected { box-shadow: var(--shadow-green); }

.breed-portrait {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.breed-portrait img { width: 100%; height: 100%; object-fit: cover; }

.breed-placeholder {
  font-size: 1.3rem;
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 500;
}

.breed-name {
  font-size: 0.72rem;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

/* ─── Life Stage ─────────────────────────────────────────────────────────── */
.life-stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px;
}

.life-stage-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
  text-align: left;
  cursor: pointer;
}

.life-stage-card:hover, .life-stage-card.selected { border-color: var(--green); background: var(--sage); }

.ls-icon  { font-size: 1.3rem; margin-bottom: 4px; }
.ls-label { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.ls-range { font-size: 0.76rem; color: var(--text-muted); }

/* ─── Weight Step ────────────────────────────────────────────────────────── */
.weight-unit-toggle {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
  background: var(--border);
  border-radius: 100px;
  padding: 3px;
  width: fit-content;
}

.unit-btn { padding: 6px 20px; border-radius: 100px; font-size: 0.875rem; font-weight: 500; color: var(--text-muted); transition: var(--transition); }
.unit-btn.active { background: var(--white); color: var(--green); box-shadow: var(--shadow-sm); }

.weight-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }

.weight-field label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.optional-tag { font-size: 0.73rem; color: var(--text-light); font-weight: 400; margin-left: 4px; }
.unit-display { font-weight: 400; color: var(--text-light); }

.weight-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1.05rem;
  font-family: var(--font-body);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.weight-input:focus { border-color: var(--green); background: var(--white); }
.weight-note { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 4px; }

/* ─── Activity Step ──────────────────────────────────────────────────────── */
.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.activity-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  transition: var(--transition);
  cursor: pointer;
}

.activity-card:hover, .activity-card.selected { border-color: var(--green); background: var(--sage); }

.activity-icon { width: 40px; height: 40px; margin-bottom: 4px; }
.activity-icon img { width: 100%; height: 100%; object-fit: contain; }
.activity-label { font-size: 0.97rem; font-weight: 600; color: var(--text); }
.activity-desc  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ─── Health Step ────────────────────────────────────────────────────────── */
.health-grid { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }

.health-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  cursor: pointer;
}

.health-chip:hover { border-color: var(--green); color: var(--green); }
.health-chip.selected { background: var(--sage); border-color: var(--green); color: var(--green); }
.health-icon { width: 16px; height: 16px; }
.health-note { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }

/* ─── Food Step ──────────────────────────────────────────────────────────── */
.food-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.food-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  transition: var(--transition);
  cursor: pointer;
}

.food-card:hover, .food-card.selected { border-color: var(--green); background: var(--sage); }

.food-icon { width: 40px; height: 40px; margin-bottom: 4px; }
.food-icon img { width: 100%; height: 100%; object-fit: contain; }
.food-label { font-size: 0.97rem; font-weight: 600; color: var(--text); }
.food-desc  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  min-height: 48px;
  text-decoration: none;
}

.btn-primary:hover { background: var(--green-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-green); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  padding: 11px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  min-height: 48px;
  cursor: pointer;
}

.btn-ghost:hover { color: var(--text); border-color: var(--text); }

.text-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid var(--green);
  padding-bottom: 1px;
  transition: var(--transition);
}

.text-link:hover { color: var(--green-dark); border-color: var(--green-dark); }

/* ─── Result Screen ──────────────────────────────────────────────────────── */
.result-screen { display: flex; flex-direction: column; gap: 32px; }

.result-hero {
  text-align: center;
  padding: 12px 0 24px;
  border-bottom: 1px solid var(--border);
}

.result-portion { display: flex; flex-direction: column; align-items: center; margin-bottom: 16px; }

.result-grams {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 13vw, 7.5rem);
  font-weight: 600;
  color: var(--green);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.result-unit  { font-size: 0.45em; color: var(--green-light); }
.result-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }

.result-kcal,
.result-frequency {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.97rem;
  color: var(--text);
}

.result-kcal { font-family: var(--font-display); font-size: 1.1rem; }
.result-icon { width: 20px; height: 20px; flex-shrink: 0; object-fit: contain; }

.result-alert { margin-top: 16px; padding: 12px 18px; border-radius: var(--radius-md); font-size: 0.875rem; line-height: 1.6; }
.result-alert.amber { background: var(--amber-light); color: #7a4f06; border-left: 3px solid var(--amber); }
.result-alert.green { background: var(--sage); color: var(--green-dark); border-left: 3px solid var(--green); }

.result-raw-note { margin-top: 12px; padding: 12px 18px; background: var(--sage); border-radius: var(--radius-md); font-size: 0.875rem; }

.result-section { padding: 24px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); }

.result-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon { width: 20px; height: 20px; flex-shrink: 0; object-fit: contain; }
.section-desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 14px; }

.breed-notes-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.breed-note {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}

.breed-note::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  opacity: 0.5;
}

.breed-note--health_match { color: #7a4f06; }

.health-condition-note { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.health-condition-note:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.health-condition-note h4 { color: var(--green); margin-bottom: 6px; font-family: var(--font-body); font-size: 0.95rem; }
.health-condition-note p  { font-size: 0.875rem; color: var(--text); margin-bottom: 8px; }

.ingredient-flags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.flag-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0; }
.flag-label.prioritise { color: var(--green); }
.flag-label.reduce     { color: var(--amber); }

.flag-item { font-size: 0.8rem; padding: 3px 10px; border-radius: 100px; }
.flag-item.safe    { background: var(--sage); color: var(--green); }
.flag-item.caution { background: var(--amber-light); color: #7a4f06; }
.flag-item.avoid   { background: var(--red-light); color: var(--red); }

.ingredient-search-wrap { margin-bottom: 12px; }

.ingredient-search {
  width: 100%;
  padding: 11px 16px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.ingredient-search:focus { border-color: var(--green); background: var(--white); }

.ingredient-results { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

.ingredient-result { display: flex; gap: 12px; padding: 13px; border-radius: var(--radius-md); border: 1.5px solid transparent; }
.ingredient-result.safe    { background: #f0f7f2; border-color: #b8d9c4; }
.ingredient-result.caution { background: var(--amber-light); border-color: #f0c878; }
.ingredient-result.avoid   { background: var(--red-light); border-color: #f0b8b4; }

.ingredient-status-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 100px;
}

.ingredient-status-badge.safe    { background: var(--sage); color: var(--green); }
.ingredient-status-badge.caution { background: var(--amber-light); color: #7a4f06; }
.ingredient-status-badge.avoid   { background: var(--red-light); color: var(--red); }
.ingredient-status-badge img     { width: 14px; height: 14px; object-fit: contain; }

.ingredient-info strong { font-size: 0.925rem; display: block; margin-bottom: 3px; }
.ingredient-info p      { font-size: 0.825rem; color: var(--text-muted); margin: 0; }
.ingredient-caveat      { font-size: 0.8rem !important; color: #7a4f06 !important; margin-top: 4px !important; }
.ingredient-link        { font-size: 0.825rem; font-weight: 500; }
.no-results             { font-size: 0.825rem; color: var(--text-muted); padding: 10px 0; }

.merchant-recommendation { display: flex; flex-direction: column; gap: 14px; }
.merchant-context        { font-size: 0.875rem; color: var(--text-muted); }

.merchant-card { background: var(--sage); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.merchant-name    { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--green); }
.merchant-tagline { font-size: 0.825rem; color: var(--text-muted); margin-top: -4px; }
.merchant-why     { font-size: 0.875rem; color: var(--text); line-height: 1.7; }

.btn-merchant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  min-height: 48px;
  align-self: flex-start;
}

.btn-merchant:hover { background: var(--green-dark); color: var(--white); box-shadow: var(--shadow-green); transform: translateY(-1px); }

.affiliate-disclosure { font-size: 0.75rem; color: var(--text-light); line-height: 1.5; }
.result-merchant.placeholder { background: var(--bg); }
.merchant-coming { color: var(--text-muted); font-size: 0.875rem; }

.share-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1.5px solid var(--green);
  border-radius: 100px;
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  background: transparent;
  transition: var(--transition);
  min-height: 48px;
  cursor: pointer;
}

.btn-share:hover { background: var(--green); color: var(--white); }

.bookmark-url-wrap { display: flex; gap: 10px; }

.bookmark-url {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text-muted);
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy {
  padding: 10px 18px;
  background: var(--sage);
  border: 1.5px solid var(--green);
  border-radius: var(--radius-md);
  color: var(--green);
  font-size: 0.825rem;
  font-weight: 500;
  font-family: var(--font-body);
  white-space: nowrap;
  transition: var(--transition);
  min-height: 44px;
  cursor: pointer;
}

.btn-copy:hover { background: var(--green); color: var(--white); }

.result-disclaimer {
  padding: 14px 18px;
  background: var(--bg);
  border-radius: var(--radius-md);
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.6;
  border: 1px solid var(--border);
}

.result-actions { text-align: center; padding-bottom: 8px; }

/* ─── Content Sections ───────────────────────────────────────────────────── */
.content-section { padding: 72px 0; border-top: 1px solid var(--border); }
.content-section--white { background: var(--white); }

.section-intro { margin-bottom: 44px; }

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
}

.section-body {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.8;
}

/* ─── Feature cards ──────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; }

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--sage);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; font-family: var(--font-body); }
.feature-desc  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; }

.badge-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.badge-label { font-size: 0.875rem; font-weight: 600; }
.badge-label.safe    { color: var(--green); }
.badge-label.caution { color: var(--amber); }
.badge-label.avoid   { color: var(--red); }

.feature-card--safe    { border-left: 3px solid var(--green); }
.feature-card--caution { border-left: 3px solid var(--amber); }
.feature-card--avoid   { border-left: 3px solid var(--red); }

/* ─── Two column ─────────────────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col--reverse { direction: rtl; }
.two-col--reverse > * { direction: ltr; }

.two-col-image img { border-radius: var(--radius-xl); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ─── Breed showcase ─────────────────────────────────────────────────────── */
.breed-showcase {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 780px;
  margin: 0 auto 28px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: #1a1a1a; color: rgba(255,255,255,0.6); padding: 52px 0 32px; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}

.footer-logo { height: 36px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1) opacity(0.8); }

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
  display: block;
}

.footer-wordmark .feeding { color: #7ec9a4; }
.footer-brand p { font-size: 0.825rem; color: rgba(255,255,255,0.45); margin-top: 4px; line-height: 1.7; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 0.825rem; color: rgba(255,255,255,0.45); text-decoration: none; transition: var(--transition); }
.footer-col a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.775rem;
  color: rgba(255,255,255,0.28);
}

.footer-bottom a { color: rgba(255,255,255,0.28); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.55); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .tool-layout      { grid-template-columns: 1fr; }
  #tool-left-panel  { display: none; }
  .features-grid    { grid-template-columns: 1fr 1fr; }
  .two-col          { grid-template-columns: 1fr; gap: 32px; }
  .two-col--reverse { direction: ltr; }
  .footer-top       { grid-template-columns: 1fr 1fr; }
  .breed-showcase   { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  #tool-step-content { padding: 24px 20px 32px; }
  .species-grid      { grid-template-columns: 1fr 1fr; }
  .activity-grid     { grid-template-columns: 1fr 1fr; }
  .food-grid         { grid-template-columns: 1fr; }
  .weight-inputs     { grid-template-columns: 1fr; }
  .life-stage-grid   { grid-template-columns: 1fr 1fr; }
  .features-grid     { grid-template-columns: 1fr; }
  .footer-top        { grid-template-columns: 1fr; gap: 28px; }
  .nav-links         { display: none; }
  .trust-bar         { gap: 14px; justify-content: flex-start; padding: 16px 20px 24px; }
  .breed-showcase    { grid-template-columns: repeat(2, 1fr); }
  .share-buttons     { flex-direction: column; }
  .bookmark-url-wrap { flex-direction: column; }
  .hero-title        { font-size: 2rem; }
}

/* ─── Utility ────────────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
