@import url("article-logic.css");

:root {
  --ink: #151515;
  --ink-soft: #3a3732;
  --muted: #6f6a61;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --surface-warm: #fff7ee;
  --line: #deded7;
  --teal: #006b5f;
  --teal-dark: #004c43;
  --coral: #f15d4a;
  --amber: #f1b84b;
  --mint: #d9f2e8;
  --sky: #dcecf7;
  --shadow: 0 18px 50px rgba(21, 21, 21, 0.08);
  --shadow-soft: 0 10px 28px rgba(21, 21, 21, 0.06);
  --radius: 8px;
  --max-width: 1180px;
  --header-height: 72px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--teal);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

main {
  min-height: 70vh;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.announcement {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  min-height: 34px;
  padding: 0.35rem 1rem;
  color: #fff;
  background: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

.announcement a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement span {
  min-width: 0;
}

.header-inner {
  max-width: var(--max-width);
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 900;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.logo-text {
  font-size: 1.05rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 800;
}

.main-nav a {
  padding: 0.5rem 0;
}

.main-nav a.active {
  color: var(--ink);
}

.nav-cta {
  padding: 0.65rem 0.95rem !important;
  color: #fff !important;
  background: var(--ink);
  border-radius: var(--radius);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--teal);
}

.btn-primary:hover {
  color: #fff;
  background: var(--teal-dark);
}

.btn-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.btn-secondary:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.btn-card {
  width: 100%;
  color: #fff;
  background: var(--ink);
}

.btn-card:hover {
  color: #fff;
  background: var(--teal);
}

.btn-light {
  color: var(--ink);
  background: var(--surface);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.text-link {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-hero {
  min-height: 640px;
  padding: 5.75rem max(1.25rem, calc((100vw - var(--max-width)) / 2 + 1.25rem));
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(247, 248, 244, 0.98) 0%, rgba(247, 248, 244, 0.92) 36%, rgba(247, 248, 244, 0.62) 58%, rgba(247, 248, 244, 0.14) 100%),
    url("/images/petlibro-granary/lifestyle-home.jpg");
  background-size: cover;
  background-position: center right;
}

.home-hero .hero-copy {
  width: min(100%, 690px);
}

.hero-copy h1,
.product-hero h1,
.article-hero h1,
.list-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 4rem;
  line-height: 1;
  font-weight: 950;
}

.hero-lede,
.hero-copy > p:not(.eyebrow),
.article-hero > p,
.list-hero p {
  max-width: 620px;
  margin: 1.25rem 0 1.5rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.trust-row span,
.pill-row span,
.proof-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-visual {
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-stage {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 107, 95, 0.1), rgba(241, 184, 75, 0.14)),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-stage::before {
  content: "";
  position: absolute;
  inset: auto 8% 10% 8%;
  height: 18%;
  background: rgba(21, 21, 21, 0.08);
  border-radius: 50%;
  filter: blur(16px);
}

.device {
  position: absolute;
  background: #fff;
  border: 2px solid #d6d9d2;
  box-shadow: var(--shadow-soft);
}

.feeder {
  left: 18%;
  top: 17%;
  width: 31%;
  height: 52%;
  border-radius: 26px 26px 10px 10px;
}

.feeder::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 54%;
  height: 24%;
  border-radius: 50%;
  background: var(--mint);
  transform: translateX(-50%);
}

.camera {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  border: 7px solid #dcecf7;
  transform: translateX(-50%);
}

.bowl {
  position: absolute;
  left: 50%;
  bottom: -24px;
  width: 110%;
  height: 50px;
  border-radius: 0 0 60px 60px;
  background: var(--coral);
  transform: translateX(-50%);
}

.litter {
  right: 12%;
  bottom: 17%;
  width: 39%;
  height: 39%;
  border-radius: 42% 42% 12px 12px;
}

.entry {
  position: absolute;
  left: 50%;
  top: 32%;
  width: 54%;
  height: 58%;
  border-radius: 44% 44% 8px 8px;
  background: var(--ink);
  transform: translateX(-50%);
}

.status-light {
  position: absolute;
  right: 18%;
  top: 18%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
}

.metric-card {
  position: absolute;
  min-width: 142px;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.metric-card strong,
.metric-card span {
  display: block;
}

.metric-card strong {
  font-size: 1.05rem;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.metric-card.meals {
  right: 7%;
  top: 14%;
}

.metric-card.clean {
  left: 8%;
  bottom: 10%;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-header.split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
}

.section-header.split > p,
.section-header > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.section-header h2,
.final-band h2,
.footer-cta h2,
.newsletter h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.25rem;
  line-height: 1.08;
  font-weight: 950;
}

.value-grid,
.solution-grid,
.feature-grid,
.blog-grid,
.product-grid {
  display: grid;
  gap: 1rem;
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-item,
.solution-item,
.feature-item,
.blog-card,
.product-card,
.article-aside,
.offer-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.value-item,
.solution-item,
.feature-item,
.blog-card {
  padding: 1.25rem;
}

.value-item h3,
.solution-item h3,
.feature-item h3,
.blog-card h3 {
  margin: 0 0 0.6rem;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.25;
}

.value-item p,
.solution-item p,
.feature-item p,
.blog-card p {
  margin: 0;
  color: var(--muted);
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 107, 95, 0.24);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-warm);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.product-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(21, 21, 21, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.product-silhouette {
  position: relative;
  width: 150px;
  height: 170px;
}

.product-silhouette.large {
  width: 180px;
  height: 200px;
  margin: 0 auto 1.5rem;
}

.feeder-shape::before,
.litter-shape::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--surface);
  border: 2px solid #d7d9d1;
  box-shadow: 0 20px 34px rgba(21, 21, 21, 0.12);
}

.feeder-shape::before {
  border-radius: 34px 34px 12px 12px;
}

.feeder-shape::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -20px;
  height: 44px;
  border-radius: 0 0 60px 60px;
  background: var(--coral);
}

.litter-shape::before {
  border-radius: 48% 48% 12px 12px;
}

.litter-shape::after {
  content: "";
  position: absolute;
  left: 26%;
  right: 26%;
  bottom: 14%;
  height: 58%;
  border-radius: 44% 44% 8px 8px;
  background: var(--ink);
}

.product-info {
  padding: 1.25rem;
}

.product-kicker {
  margin: 0 0 0.45rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-info h3 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  line-height: 1.18;
}

.product-info p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: baseline;
  margin: 1rem 0;
}

.price-row strong {
  font-size: 1.65rem;
  line-height: 1;
}

.price-row s {
  color: var(--muted);
  font-weight: 700;
}

.price-row span {
  color: var(--teal);
  font-weight: 900;
}

.proof-panel,
.safety-band,
.final-band,
.list-hero,
.article-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.proof-panel {
  padding: 2rem;
  background: linear-gradient(135deg, var(--ink), #2b2a25);
  color: #fff;
}

.proof-panel h2,
.proof-panel .eyebrow {
  color: #fff;
}

.proof-panel p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.78);
}

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.proof-panel .proof-list span {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.testimonials {
  max-width: none;
  background: var(--surface-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.testimonials .section-header,
.testimonials .testimonial-grid {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.testimonial-stars {
  color: var(--amber);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.testimonial p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.testimonial-author {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.guide-pillar-grid {
  width: min(calc(100% - 2.5rem), var(--max-width));
  max-width: var(--max-width);
  margin: 1rem auto 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.guide-pillar {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.guide-pillar span,
.guide-card-kicker,
.guide-product-card > span {
  display: block;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.guide-pillar p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.guide-grid {
  width: min(calc(100% - 2.5rem), var(--max-width));
  max-width: var(--max-width);
  margin: 1.25rem auto 0;
  align-items: stretch;
}

.guide-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.guide-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}

.guide-card.is-featured {
  grid-column: span 2;
  min-height: 340px;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(217, 242, 232, 0.7), rgba(255, 247, 238, 0.92)),
    var(--surface);
}

.guide-card.is-featured h3 {
  max-width: 760px;
  font-size: 2rem;
  line-height: 1.08;
}

.guide-card .blog-excerpt {
  max-width: 680px;
  margin-top: 0.1rem;
  color: var(--ink-soft);
}

.guide-card-points {
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  list-style: none;
}

.guide-card-points li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.guide-card-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.guide-card .blog-tags {
  margin-top: auto;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.76rem;
  font-weight: 850;
}

.guide-card-link {
  margin-top: 1rem;
  color: var(--teal);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guide-final-band {
  margin-bottom: 0;
}

.final-band {
  max-width: var(--max-width);
  margin: 2rem auto 4rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--ink);
  color: #fff;
}

.final-band h2,
.final-band .eyebrow {
  color: #fff;
}

.final-band p {
  max-width: 720px;
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.final-band.compact {
  margin-top: 3rem;
}

.breadcrumb {
  max-width: var(--max-width);
  margin: 1.25rem auto 0;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--teal);
}

.product-page,
.article-page {
  padding-bottom: 1rem;
}

.product-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.55fr);
  gap: 2rem;
  align-items: center;
}

.product-hero-copy {
  min-width: 0;
}

.offer-panel {
  padding: 1.25rem;
  background: var(--surface-warm);
}

.offer-label,
.offer-save {
  margin: 0 0 0.5rem;
  color: var(--coral);
  font-weight: 950;
}

.offer-price {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.offer-price strong {
  font-size: 2.35rem;
  line-height: 1;
}

.offer-price s,
.offer-note {
  color: var(--muted);
  font-weight: 700;
}

.offer-note {
  margin: 0.75rem 0 0;
}

.solution-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.safety-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: 1.5rem;
  align-items: center;
  background: var(--mint);
}

.safety-band p {
  color: var(--ink-soft);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  background: var(--paper);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

td {
  color: var(--ink-soft);
}

tr:last-child td {
  border-bottom: 0;
}

.content-section {
  padding-top: 1rem;
}

.content-body {
  max-width: 820px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.content-body h1,
.content-body h2,
.content-body h3 {
  color: var(--ink);
  line-height: 1.16;
}

.content-body h1 {
  font-size: 2.4rem;
}

.content-body h2 {
  margin-top: 2.2rem;
  font-size: 1.75rem;
}

.content-body h3 {
  margin-top: 1.6rem;
  font-size: 1.25rem;
}

.content-body p,
.content-body ul,
.content-body ol {
  margin: 0 0 1.1rem;
}

.content-body ul,
.content-body ol {
  padding-left: 1.3rem;
}

.content-body a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

summary {
  padding: 1rem 1.2rem;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 1.2rem 1.2rem;
  color: var(--muted);
}

.list-hero,
.article-hero {
  width: min(calc(100% - 2.5rem), var(--max-width));
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 3rem 1.25rem;
}

.article-hero {
  max-width: 960px;
  text-align: center;
}

.article-hero .action-row {
  justify-content: center;
}

.article-hero .blog-meta {
  justify-content: center;
}

.article-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 2rem;
  align-items: start;
}

.article-aside {
  position: sticky;
  top: 130px;
  padding: 1.25rem;
}

.article-aside h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.18;
}

.guide-article-hero {
  text-align: left;
}

.guide-article-hero .inline-breadcrumb {
  max-width: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.guide-article-hero h1 {
  max-width: 890px;
}

.guide-article-hero > p:not(.eyebrow) {
  max-width: 760px;
}

.guide-article-hero .action-row,
.guide-meta {
  justify-content: flex-start;
}

.guide-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.guide-main {
  min-width: 0;
  display: grid;
  gap: 1.1rem;
}

.guide-callout,
.guide-checklist,
.guide-trust-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.guide-callout {
  padding: 1.4rem;
  background:
    linear-gradient(135deg, rgba(217, 242, 232, 0.72), rgba(255, 255, 255, 0.96)),
    var(--surface);
}

.guide-callout h2,
.guide-checklist h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.14;
}

.guide-callout p:last-child {
  margin-bottom: 0;
}

.guide-snapshot-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.guide-snapshot-grid div {
  padding: 0.85rem;
  border: 1px solid rgba(0, 107, 95, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.guide-snapshot-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-snapshot-grid strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.25;
}

.guide-checklist {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  background: #fffdf8;
}

.guide-checklist ul,
.guide-product-card ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  list-style: none;
}

.guide-checklist li,
.guide-product-card li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-soft);
}

.guide-checklist li::before,
.guide-product-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.guide-content {
  max-width: none;
  padding: 0.75rem 0 0;
}

.guide-content h2 {
  scroll-margin-top: 130px;
}

.guide-article-cta {
  margin: 1rem 0 0;
}

.guide-aside {
  display: grid;
  gap: 1rem;
}

.guide-product-card {
  display: grid;
  gap: 0.85rem;
}

.guide-product-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.14;
}

.guide-product-card .price-row {
  margin: 0;
}

.guide-product-card .price-row strong {
  font-size: 1.45rem;
}

.guide-trust-note {
  padding: 1rem;
}

.guide-trust-note strong {
  color: var(--ink);
}

.guide-trust-note p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.guide-aside-tags {
  gap: 0.35rem;
}

.footer-cta {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
}

.footer-cta .eyebrow,
.footer-cta h2 {
  color: #fff;
}

.newsletter {
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(217, 242, 232, 0.96), rgba(255, 247, 238, 0.9)),
    url("/images/petlibro-granary/detail-tank.jpg");
  background-size: cover;
  background-position: center right;
  box-shadow: var(--shadow-soft);
}

.newsletter > div {
  max-width: 620px;
}

.newsletter p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.newsletter-form {
  width: min(100%, 410px);
  display: flex;
  gap: 0.65rem;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.newsletter-form input:focus {
  outline: 3px solid rgba(0, 107, 95, 0.16);
  border-color: var(--teal);
}

.newsletter-form button {
  min-height: 46px;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: var(--teal);
  font-weight: 900;
  cursor: pointer;
}

.newsletter-form button:hover {
  background: var(--teal-dark);
}

.site-footer {
  padding: 3rem 1.25rem 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(150px, 1fr));
  gap: 2rem;
}

.site-footer .site-logo,
.site-footer h4 {
  color: #fff;
}

.site-footer .logo-mark {
  background: var(--amber);
  color: var(--ink);
}

.footer-brand p {
  max-width: 280px;
  margin: 1rem 0 0;
}

.footer-col {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.footer-col h4 {
  margin: 0 0 0.4rem;
}

.footer-col a,
.footer-col span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
}

@media (max-width: 980px) {
  .home-hero,
  .product-hero,
  .article-layout,
  .safety-band {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .product-hero h1,
  .article-hero h1,
  .list-hero h1 {
    font-size: 3rem;
  }

  .hero-visual {
    min-height: 360px;
  }

  .visual-stage {
    max-width: 430px;
  }

  .value-grid,
  .guide-pillar-grid,
  .product-grid,
  .blog-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-aside {
    position: static;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .announcement {
    font-size: 0.76rem;
  }

  .announcement a {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: grid;
    gap: 0.25rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-cta {
    text-align: center;
  }

  .home-hero {
    min-height: 560px;
    align-items: flex-end;
    padding-top: 4rem;
    padding-bottom: 2.5rem;
    background:
      linear-gradient(180deg, rgba(247, 248, 244, 0.68) 0%, rgba(247, 248, 244, 0.98) 54%, rgba(247, 248, 244, 1) 100%),
      url("/images/petlibro-granary/lifestyle-home.jpg");
    background-size: cover;
    background-position: 58% top;
  }

  .hero-copy h1,
  .product-hero h1,
  .article-hero h1,
  .list-hero h1 {
    font-size: 2.35rem;
  }

  .home-hero .hero-copy,
  .hero-lede,
  .hero-copy > p:not(.eyebrow) {
    max-width: 22rem;
  }

  .action-row {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 22rem;
  }

  .action-row .btn {
    width: 100%;
  }

  .section-header.split,
  .final-band,
  .footer-cta,
  .newsletter {
    align-items: stretch;
    flex-direction: column;
  }

  .section-header h2,
  .final-band h2,
  .footer-cta h2 {
    font-size: 1.55rem;
    line-height: 1.14;
    max-width: 22rem;
  }

  .section-header.split > p,
  .section-header > p {
    max-width: 22rem;
  }

  .product-grid,
  .blog-grid,
  .guide-pillar-grid,
  .solution-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .guide-card.is-featured {
    grid-column: auto;
    min-height: 310px;
  }

  .guide-card.is-featured h3 {
    font-size: 1.25rem;
    line-height: 1.2;
  }

  .guide-checklist,
  .guide-snapshot-grid {
    grid-template-columns: 1fr;
  }

  .product-media {
    min-height: 230px;
  }

  .newsletter-form {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-inner,
  .home-hero,
  .section,
  .product-hero,
  .article-layout,
  .list-hero,
  .article-hero,
  .footer-cta,
  .final-band {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-copy h1,
  .product-hero h1,
  .article-hero h1,
  .list-hero h1 {
    font-size: 1.95rem;
  }

  .action-row .btn,
  .newsletter-form button {
    width: 100%;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .hero-visual {
    min-height: 310px;
  }

  .metric-card {
    min-width: 118px;
    padding: 0.65rem;
  }
}

/* ===== EVIDENCE & TRUST ELEMENTS (New) ===== */
.evidence-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.evidence-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #0369a1;
    font-weight: 600;
}
.evidence-body ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}
.evidence-body li {
    margin-bottom: 0.25rem;
}
.badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}
.badge.level-b { background: #dcfce7; color: #166534; }
.badge.level-d { background: #fee2e2; color: #991b1b; }

/* User Quote Block */
.user-quote {
    background: #fff;
    border-left: 4px solid #cbd5e1;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #475569;
}
.user-quote .source {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8em;
    font-style: normal;
    font-weight: 600;
    color: #94a3b8;
}

/* Source Link */
.source-link {
    font-size: 0.8em;
    color: #64748b;
    text-decoration: underline;
    margin-left: 0.25rem;
}

/* Featured Image Caption */
figcaption {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ===== DATA REVIEW HOMEPAGE MODULES ===== */
.review-lab-section {
  padding-top: 4rem;
}

.review-lab-grid,
.monetization-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 1rem;
  align-items: stretch;
}

.lab-panel,
.monetization-grid,
.review-decision,
.fit-check-panel,
.pros-cons-panel,
.scorecard-panel,
.buy-panel,
.review-toc,
.rail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.lab-panel {
  padding: 1.35rem;
}

.lab-story {
  display: grid;
  align-content: start;
  gap: 1rem;
  background: #fffdf8;
}

.lab-story h3,
.monetization-copy h2,
.section-mini-header h2,
.pros-cons-panel h2,
.scorecard-panel h2,
.buy-panel h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.12;
  font-weight: 950;
}

.lab-story h3,
.monetization-copy h2 {
  font-size: 1.7rem;
}

.signal-stack,
.monetization-steps,
.fit-grid,
.scorecard-grid,
.retailer-grid {
  display: grid;
  gap: 0.75rem;
}

.signal-stack div,
.monetization-steps div,
.fit-grid div,
.scorecard-grid div,
.lab-kpi-row div {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.signal-stack span,
.fit-grid span,
.lab-kpi-row span,
.scorecard-grid span,
.decision-topline span,
.score-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-stack p,
.fit-grid p,
.monetization-copy p,
.monetization-steps p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

.lab-dashboard {
  background: linear-gradient(135deg, #f1fbf7, #fff7ee);
}

.lab-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.lab-kpi-row div {
  background: rgba(255, 255, 255, 0.78);
}

.lab-kpi-row strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.1;
}

.chart-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.chart-preview-grid figure {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid rgba(0, 107, 95, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.chart-preview-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.monetization-grid {
  padding: 1.4rem;
  background: #151515;
  color: #fff;
}

.monetization-copy {
  max-width: 560px;
}

.monetization-copy h2,
.monetization-copy .eyebrow {
  color: #fff;
}

.monetization-copy p,
.monetization-steps p {
  color: rgba(255, 255, 255, 0.76);
}

.monetization-steps div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.monetization-steps span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--amber);
  font-weight: 950;
}

/* ===== REVIEW DECISION PAGE ===== */
.review-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.review-header {
  max-width: 920px;
}

.review-header .breadcrumb {
  justify-content: center;
  margin-top: 0;
  padding: 0;
}

.review-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 1.25rem;
  align-items: stretch;
  margin: 0 0 1.25rem;
}

.review-product-media {
  margin: 0;
  min-height: 420px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fbf5, #fff7ee);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.review-product-media img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
}

.review-product-media figcaption {
  margin: 0;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.8);
}

.review-decision {
  padding: 1.35rem;
  display: grid;
  align-content: start;
  gap: 1rem;
  background: #fff;
}

.decision-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.decision-topline strong {
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius);
  color: #063f37;
  background: var(--mint);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.review-decision > p {
  margin: 0;
  color: var(--ink-soft);
}

.decision-score-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.score-tile {
  min-height: 92px;
  padding: 0.8rem;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.score-tile strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.1;
}

.primary-score {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.primary-score span,
.primary-score strong {
  color: #fff;
}

.best-avoid-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.best-avoid-grid div {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.best-avoid-grid p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.signal-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-good {
  color: var(--teal);
}

.signal-bad {
  color: #a13f2d;
}

.commerce-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.review-shell {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 240px;
  gap: 1rem;
  align-items: start;
}

.review-toc,
.review-rail {
  position: sticky;
  top: 120px;
}

.review-toc {
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
}

.review-toc strong,
.rail-panel strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.review-toc a,
.rail-panel a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.review-toc a:hover,
.rail-panel a:hover {
  color: var(--teal);
}

.review-main {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.fit-check-panel,
.scorecard-panel,
.buy-panel {
  padding: 1.25rem;
}

.section-mini-header {
  max-width: 680px;
  margin-bottom: 1rem;
}

.section-mini-header h2,
.buy-panel h2,
.scorecard-panel h2 {
  font-size: 1.55rem;
}

.fit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fit-grid div {
  background: var(--surface-warm);
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pros-cons-panel {
  padding: 1.25rem;
  background: #f8fbf5;
}

.pros-cons-panel.caution {
  background: #fff7ee;
}

.pros-cons-panel h2 {
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
}

.pros-cons-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.pros-cons-panel li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-soft);
}

.pros-cons-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.pros-cons-panel.caution li::before {
  background: var(--coral);
}

.scorecard-panel {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  background: #f1fbf7;
}

.scorecard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scorecard-grid div {
  background: rgba(255, 255, 255, 0.82);
}

.scorecard-grid strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: 1.25rem;
}

.review-content {
  max-width: none;
  padding: 0.25rem 0;
}

.review-content h2 {
  scroll-margin-top: 130px;
}

.review-content img {
  margin: 1.25rem auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.buy-panel {
  display: grid;
  gap: 1rem;
  background: #fffdf8;
}

.buy-panel > div:first-child p {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
}

.retailer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.retailer-link {
  min-height: 126px;
  padding: 1rem;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(0, 107, 95, 0.22);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.retailer-link:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--shadow-soft);
}

.retailer-link span {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.retailer-link strong {
  color: var(--ink);
  line-height: 1.2;
}

.retailer-link em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.review-rail {
  display: grid;
  gap: 1rem;
}

.rail-panel {
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
}

.rail-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.simple-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

@media (max-width: 1080px) {
  .review-shell {
    grid-template-columns: minmax(0, 1fr) 230px;
  }

  .review-toc {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .review-toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .review-lab-grid,
  .monetization-grid,
  .review-hero,
  .review-shell,
  .scorecard-panel {
    grid-template-columns: 1fr;
  }

  .review-rail {
    position: static;
  }

  .review-toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-product-media {
    min-height: 320px;
  }

  .retailer-grid,
  .scorecard-grid,
  .fit-grid,
  .lab-kpi-row,
  .chart-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .review-page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .review-header {
    text-align: left;
  }

  .review-header .breadcrumb,
  .review-header .content-meta {
    justify-content: flex-start;
  }

  .review-header h1 {
    font-size: 1.9rem;
  }

  .decision-score-row,
  .best-avoid-grid,
  .pros-cons-grid,
  .review-toc {
    grid-template-columns: 1fr;
  }

  .review-product-media {
    min-height: 260px;
  }

  .monetization-steps div {
    grid-template-columns: 1fr;
  }
}
