/* ==========================================================================
   PetPulse — site stylesheet (Phase 1)
   Palette: forest #143A32 · bone #F7F2E8 · terracotta #C96A45 · sage #8FA98A
   Type: Fraunces (display) / Inter (ui & text)
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #143A32;
  --forest-deep: #0E2A24;
  --forest-soft: #1C4A40;
  --bone: #F7F2E8;
  --bone-2: #EFE7D8;
  --bone-3: #E4D9C6;
  --terracotta: #C96A45;
  --terracotta-dark: #A9532F;
  --sage: #8FA98A;
  --sage-soft: #DDE6D8;
  --ink: #1B1F1D;
  --ink-soft: #4A5450;
  --muted: #616C66;
  --line: rgba(27, 31, 29, .14);
  --line-soft: rgba(27, 31, 29, .08);
  --white: #fff;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --radius-xl: 28px;
  --shadow-s: 0 2px 8px rgba(20, 32, 28, .05);
  --shadow-m: 0 14px 40px rgba(20, 32, 28, .10);
  --shadow-l: 0 30px 80px rgba(20, 32, 28, .16);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1240px;
  --gutter: 32px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--terracotta-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding-left: 1.15em; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
::selection { background: var(--terracotta); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: 96px 0; }
.section + .section { padding-top: 0; }

/* ---------------------------------------------------------------- typography */
.display, .hero-title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.022em;
  line-height: 1.02;
  color: var(--forest);
  font-variation-settings: "SOFT" 40, "WONK" 0;
}
h2.display { font-size: clamp(2.1rem, 4.1vw, 3.6rem); }
h3 { font-family: var(--serif); font-weight: 500; font-size: 1.32rem; letter-spacing: -.01em; line-height: 1.2; }
.eyebrow {
  font-family: var(--sans);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--bone-2); }
.lede, .content-hero-sub, .hero-sub, .page-hero-lede { font-size: 1.06rem; line-height: 1.6; color: var(--ink-soft); }
.muted { color: var(--muted); }
.fineprint, .hint, .page-note { font-size: .82rem; line-height: 1.6; color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; letter-spacing: .02em; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 550;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--forest); color: var(--bone); }
.btn-solid:hover { background: var(--forest-deep); color: var(--bone); box-shadow: var(--shadow-s); }
.btn-cream { background: var(--bone); color: var(--forest); }
.btn-cream:hover { background: #fff; color: var(--forest); }
.btn-outline { background: transparent; color: var(--forest); border-color: rgba(20, 58, 50, .34); }
.btn-outline:hover { border-color: var(--forest); background: rgba(20, 58, 50, .05); color: var(--forest); }
.btn-ghost-light { background: transparent; color: var(--bone); border-color: rgba(247, 242, 232, .38); }
.btn-ghost-light:hover { background: rgba(247, 242, 232, .1); color: #fff; border-color: rgba(247, 242, 232, .7); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .82rem; }
.btn-wide { width: 100%; }
.btn-disabled, .btn[disabled] { background: var(--bone-3); color: var(--muted); border-color: transparent; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-disabled:hover, .btn[disabled]:hover { background: var(--bone-3); color: var(--muted); transform: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .86rem;
  font-weight: 550;
  color: var(--forest);
  border-bottom: 1px solid rgba(20, 58, 50, .28);
  padding-bottom: 3px;
  transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.text-link:hover { border-color: var(--terracotta); color: var(--terracotta-dark); gap: 12px; }
.text-link-dark { color: var(--forest); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 90; background: var(--forest); color: var(--bone); padding: 12px 18px; border-radius: 0 0 8px 8px; transition: top .2s; }
.skip-link:focus { top: 0; color: var(--bone); }

/* ---------------------------------------------------------------- announcement + header */
.announce {
  background: var(--forest);
  color: var(--bone-2);
  text-align: center;
  font-size: .78rem;
  letter-spacing: .06em;
  padding: 11px 16px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 232, .92);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(20, 32, 28, .06); background: rgba(247, 242, 232, .97); }
.header-inner { display: flex; align-items: center; gap: 36px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--forest); flex: none; }
.brand svg { width: 30px; height: 30px; }
.brand-word { font-family: var(--serif); font-size: 1.34rem; font-weight: 600; letter-spacing: -.015em; }
.primary-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .86rem; font-weight: 500; color: var(--ink);
  padding: 8px 0; position: relative;
}
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: var(--terracotta); transition: right .28s var(--ease); }
.nav-link:hover::after { right: 0; }
.nav-link:hover { color: var(--forest); }
.nav-shop { position: relative; }
.has-menu svg { transition: transform .25s; }
.nav-shop:hover .has-menu svg { transform: rotate(180deg); }
.shop-drawer {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translate(-50%, 8px);
  width: 620px; display: grid; grid-template-columns: 1.1fr .9fr;
  background: var(--bone); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-m); overflow: hidden;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav-shop:hover .shop-drawer, .nav-shop:focus-within .shop-drawer { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.shop-drawer-list { padding: 24px 26px 22px; }
.drawer-kicker { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.shop-drawer-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.shop-drawer-list a small { font-size: .74rem; color: var(--muted); }
.drawer-all { border-bottom: 0 !important; margin-top: 8px; color: var(--terracotta-dark); font-weight: 550; justify-content: flex-start !important; }
.shop-drawer-feature { position: relative; display: block; }
.shop-drawer-feature img { width: 100%; height: 100%; object-fit: cover; }
.shop-drawer-feature span { position: absolute; left: 20px; right: 20px; bottom: 18px; font-family: var(--serif); font-size: .98rem; line-height: 1.3; color: var(--bone); text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.header-tools { display: flex; align-items: center; gap: 14px; flex: none; }
.tool-link { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--ink-soft); padding: 6px; }
.tool-link:hover { color: var(--forest); }
.menu-toggle, .menu-close { display: none; border: 0; background: none; padding: 8px; cursor: pointer; color: var(--forest); }

/* mobile panel */
.mobile-panel {
  position: fixed; inset: 0; z-index: 80;
  background: var(--forest); color: var(--bone);
  padding: 22px 24px 40px; overflow-y: auto;
}
.mobile-panel[hidden] { display: none; }
.mobile-panel-head { display: flex; align-items: center; justify-content: space-between; }
.mobile-panel-head .eyebrow { color: var(--sage); margin: 0; }
.menu-close { color: var(--bone); }
.mobile-panel nav { display: grid; margin: 26px 0 30px; }
.mobile-panel nav a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(247, 242, 232, .16); font-family: var(--serif); font-size: 1.45rem; color: var(--bone); }
.mobile-cats { margin-bottom: 26px; }
.mobile-cats .eyebrow { color: var(--sage); }
.mobile-cats a { display: inline-block; margin: 0 8px 8px 0; padding: 8px 15px; border: 1px solid rgba(247,242,232,.28); border-radius: 999px; font-size: .82rem; color: var(--bone-2); }
.mobile-search { display: flex; gap: 8px; margin-bottom: 22px; }
.mobile-search input { flex: 1; min-width: 0; background: rgba(247,242,232,.1); border: 1px solid rgba(247,242,232,.28); border-radius: 999px; padding: 12px 18px; color: var(--bone); }
.mobile-search input::placeholder { color: rgba(247,242,232,.6); }
.mobile-search .btn { min-height: 44px; }
.mobile-contact { font-size: .85rem; color: var(--bone-2); }
.mobile-contact .social-row { margin-top: 14px; }

/* flash */
.flash-stack { position: relative; z-index: 40; margin-top: 18px; display: grid; gap: 8px; }
.flash { padding: 12px 18px; border-radius: var(--radius-m); font-size: .86rem; border: 1px solid; }
.flash-success { background: #EAF2E4; border-color: #B9CDA8; color: #2C4227; }
.flash-error { background: #F8E7E0; border-color: #E0B6A6; color: #7A2F18; }

/* ---------------------------------------------------------------- home hero */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 1.12fr;
  min-height: min(78vh, 720px);
  background: var(--forest);
  color: var(--bone);
  overflow: hidden;
}
.hero-copy { padding: clamp(48px, 6vw, 92px) clamp(28px, 5vw, 84px); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero-title { color: var(--bone); font-size: clamp(2.9rem, 4.9vw, 5.1rem); letter-spacing: -.03em; margin-bottom: 22px; }
.hero-title em { font-style: italic; color: var(--sage); }
.hero-sub { color: rgba(247, 242, 232, .78); max-width: 44ch; font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; align-items: center; gap: 12px; margin-top: 40px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(247, 242, 232, .55); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(247, 242, 232, .4); }
.hero-visual { position: relative; min-height: 420px; }
.hero-visual picture, .hero-visual img { width: 100%; height: 100%; }
.hero-visual img { object-fit: cover; }
.hero-card {
  position: absolute; left: 26px; bottom: 26px;
  max-width: 268px; padding: 20px 22px;
  background: rgba(247, 242, 232, .94); color: var(--ink);
  border-radius: var(--radius-m); box-shadow: var(--shadow-m);
  backdrop-filter: blur(6px);
}
.hero-card .eyebrow { margin-bottom: 8px; color: var(--terracotta-dark); }
.hero-card p { font-size: .84rem; line-height: 1.5; }
.hero-card a { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .78rem; font-weight: 550; color: var(--forest); border-bottom: 1px solid rgba(20,58,50,.3); padding-bottom: 2px; }
.hero-caption { position: absolute; right: 22px; top: 24px; font-family: var(--serif); font-style: italic; font-size: .92rem; color: var(--bone); text-shadow: 0 1px 12px rgba(0,0,0,.5); }

/* ---------------------------------------------------------------- trust */
.trust-bar { background: var(--forest-deep); color: var(--bone-2); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 26px var(--gutter); }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: .78rem; line-height: 1.4; color: rgba(247,242,232,.82); }
.trust-item svg { color: var(--sage); flex: none; }

/* ---------------------------------------------------------------- section head */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.section-head > div { max-width: 720px; }
.section-note { max-width: 320px; font-size: .84rem; line-height: 1.6; color: var(--muted); text-align: right; }
.section-head-light .display { color: var(--bone); }
.section-head-light .eyebrow { color: var(--sage); }

/* ---------------------------------------------------------------- categories */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card { display: block; background: var(--white); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-s); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); color: var(--ink); }
.cat-media { position: relative; aspect-ratio: 9 / 11; overflow: hidden; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.035); }
.cat-index { position: absolute; left: 16px; top: 16px; font-family: var(--serif); font-size: .78rem; letter-spacing: .12em; color: var(--bone); background: rgba(20, 58, 50, .55); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.cat-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px 22px; }
.cat-meta h3 { color: var(--forest); margin-bottom: 4px; }
.cat-meta p { font-size: .8rem; color: var(--muted); }
.circle-arrow { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--forest); transition: background .25s, color .25s, border-color .25s; }
.cat-card:hover .circle-arrow { background: var(--forest); color: var(--bone); border-color: var(--forest); }

/* ---------------------------------------------------------------- product cards */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { display: block; color: var(--ink); }
.product-card:hover { color: var(--ink); }
.product-media { position: relative; aspect-ratio: 1 / 1; background: var(--bone-2); border-radius: var(--radius-m); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.045); }
.product-badge { position: absolute; left: 12px; top: 12px; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; background: var(--forest); color: var(--bone); padding: 5px 10px; border-radius: 999px; }
.product-preview { position: absolute; right: 12px; bottom: 12px; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(247,242,232,.92); color: var(--forest); padding: 5px 10px; border-radius: 999px; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.product-card:hover .product-preview { opacity: 1; transform: none; }
.product-info { padding: 16px 2px 0; }
.product-cat { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta-dark); margin-bottom: 6px; }
.product-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.product-info h3 { font-family: var(--sans); font-size: .98rem; font-weight: 550; letter-spacing: -.005em; line-height: 1.35; color: var(--forest); }
.price { font-family: var(--serif); font-size: .98rem; color: var(--forest); white-space: nowrap; }
.product-info p:not(.product-cat) { font-size: .8rem; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.featured-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.featured-foot .fineprint { max-width: 420px; margin: 0; }

/* ---------------------------------------------------------------- story */
.story-split { display: grid; grid-template-columns: 1.05fr .95fr; background: var(--bone-2); min-width: 0; }
.story-media { min-height: 460px; min-width: 0; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { padding: clamp(48px, 6vw, 96px) clamp(28px, 5vw, 84px); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.story-copy .display { color: var(--forest); margin-bottom: 20px; }
.story-copy p { max-width: 48ch; color: var(--ink-soft); font-size: .96rem; }
.story-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.story-facts div dt { font-family: var(--serif); font-size: 2rem; color: var(--forest); line-height: 1; }
.story-facts div dd { margin: 8px 0 0; font-size: .74rem; line-height: 1.4; color: var(--muted); }

/* ---------------------------------------------------------------- pillars */
.section-pillars { background: var(--forest); padding: 96px 0; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pillar { padding-top: 26px; border-top: 1px solid rgba(247,242,232,.24); }
.pillar-num { display: block; font-family: var(--serif); font-size: .82rem; letter-spacing: .16em; color: var(--sage); margin-bottom: 40px; }
.pillar h3 { color: var(--bone); font-size: 1.35rem; margin-bottom: 12px; }
.pillar p { font-size: .9rem; line-height: 1.6; color: rgba(247,242,232,.7); }

/* ---------------------------------------------------------------- reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { padding: 30px 28px; background: var(--white); border-radius: var(--radius-m); box-shadow: var(--shadow-s); display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; }
.review blockquote { font-family: var(--serif); font-size: 1.16rem; line-height: 1.45; color: var(--forest); font-style: italic; }
.review figcaption { margin-top: 24px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.review figcaption::before { content: "— "; }

/* ---------------------------------------------------------------- community */
.community-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.community-item { aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius-s); }
.community-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.community-item:hover img { transform: scale(1.05); }

/* ---------------------------------------------------------------- subscribe */
.subscribe { background: #AD5230; color: var(--bone); padding: 78px 0; margin-top: 96px; }
.subscribe-inner { display: grid; grid-template-columns: 1fr .9fr; gap: 48px; align-items: center; }
.subscribe-copy .display { color: var(--bone); font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 14px; }
.subscribe-copy p { max-width: 44ch; font-size: .92rem; color: rgba(255,250,244,.85); }
.subscribe-form { position: relative; }
.subscribe-form > div { display: flex; gap: 10px; }
.subscribe-form input[type=email] { flex: 1; min-width: 0; height: 54px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255,250,244,.5); background: rgba(255,250,244,.12); color: #fff; }
.subscribe-form input[type=email]::placeholder { color: rgba(255,250,244,.7); }
.subscribe-form .btn { min-height: 54px; }
.subscribe-note { margin-top: 12px; font-size: .74rem; color: #FFF9F3; }
.subscribe-copy .eyebrow, .subscribe-copy p { color: #FFF9F3; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--forest-deep); color: var(--bone-2); padding: 72px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, .8fr) 1.1fr; gap: 36px; padding-bottom: 48px; border-bottom: 1px solid rgba(247,242,232,.14); }
.footer-brand .brand { color: var(--bone); }
.footer-brand p { max-width: 30ch; margin: 16px 0 18px; font-size: .86rem; line-height: 1.6; color: rgba(247,242,232,.65); }
.footer-title { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: .84rem; color: rgba(247,242,232,.82); }
.footer-col a:hover { color: var(--bone); }
.footer-contact p { font-size: .8rem; line-height: 1.5; color: rgba(247,242,232,.6); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; font-size: .74rem; color: rgba(247,242,232,.58); }
.footer-note { text-align: right; }
.social-row { display: flex; gap: 8px; }
.social-row a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(247,242,232,.22); color: var(--bone-2); transition: background .2s, color .2s, border-color .2s; }
.social-row a:hover { background: var(--bone); color: var(--forest); border-color: var(--bone); }
.social-row-dark a { border-color: var(--line); color: var(--forest); }
.social-row-dark a:hover { background: var(--forest); color: var(--bone); border-color: var(--forest); }

/* ---------------------------------------------------------------- content pages */
.content-hero, .page-hero { position: relative; padding: 92px 0 72px; background: var(--bone-2); overflow: hidden; }
.content-hero.is-textonly, .page-hero { background: var(--bone); }
.content-hero.has-media { color: var(--bone); min-height: 460px; display: flex; align-items: flex-end; }
.content-hero-media { position: absolute; inset: 0; }
.content-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.content-hero.has-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,42,36,.12) 0%, rgba(14,42,36,.55) 62%, rgba(14,42,36,.86) 100%); }
.content-hero.has-media .wrap { position: relative; z-index: 2; }
.content-hero.has-media .display { color: var(--bone); }
.content-hero.has-media .content-hero-sub { color: rgba(247,242,232,.82); max-width: 62ch; }
.content-hero.has-media .eyebrow { color: var(--sage); }
.content-hero-sub { max-width: 58ch; margin-top: 18px; }
.page-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.page-hero-row .display { max-width: 620px; }
.page-hero-row .page-hero-lede { max-width: 430px; font-size: .94rem; }
.page-hero-shop { padding: 78px 0 56px; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: start; }
.content-aside, .faq-aside { position: sticky; top: 104px; display: grid; gap: 18px; }
.aside-card { background: var(--white); border-radius: var(--radius-l); padding: 28px 26px; box-shadow: var(--shadow-s); }
.aside-card h3 { color: var(--forest); margin-bottom: 10px; }
.aside-card p { font-size: .86rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 18px; }
.aside-card-warm { background: var(--bone-2); }
.aside-mail { display: block; margin-top: 14px; font-size: .8rem; color: var(--terracotta-dark); word-break: break-all; }
.faq-links { display: grid; background: var(--white); border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line-soft); }
.faq-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; font-size: .84rem; border-bottom: 1px solid var(--line-soft); }
.faq-links a:last-child { border-bottom: 0; }
.faq-links a:hover { background: var(--bone-2); }

/* prose */
.prose { max-width: 72ch; font-size: 1rem; line-height: 1.78; color: var(--ink-soft); }
.prose .lead { font-family: var(--serif); font-size: 1.34rem; line-height: 1.55; color: var(--forest); margin-bottom: 26px; }
.prose h2 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--forest); margin: 44px 0 14px; letter-spacing: -.01em; }
.prose h3 { font-size: 1.1rem; color: var(--forest); margin: 30px 0 10px; }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 22px; display: grid; gap: 8px; }
.prose li { padding-left: 2px; }
.prose a { color: var(--forest); border-bottom: 1px solid rgba(20,58,50,.3); }
.prose a:hover { color: var(--terracotta-dark); border-color: var(--terracotta); }
.prose blockquote { margin: 32px 0; padding: 22px 26px; border-left: 2px solid var(--terracotta); background: var(--bone-2); font-family: var(--serif); font-size: 1.12rem; font-style: italic; color: var(--forest); border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.prose img { border-radius: var(--radius-m); margin: 24px 0; }
.prose details { border-top: 1px solid var(--line-soft); padding: 18px 0; }
.prose details summary { cursor: pointer; font-weight: 550; color: var(--forest); display: flex; justify-content: space-between; gap: 16px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose-compact { max-width: none; font-size: .94rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 18px 0 26px; }
.prose table th, .prose table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose table th { font-weight: 600; color: var(--forest); }

/* faq */
.section-faq .faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 72px; align-items: start; }
.faq-list { display: grid; gap: 0; }
.faq-list h2 { font-family: var(--serif); font-size: 1.22rem; color: var(--forest); margin: 0 0 4px; padding-top: 26px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 4px 0 0; }
.faq-list details[open] { padding-bottom: 18px; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; font-size: .98rem; font-weight: 550; color: var(--forest); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--sans); font-size: 1.2rem; color: var(--terracotta); flex: none; transition: transform .25s; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { font-size: .9rem; line-height: 1.7; color: var(--ink-soft); max-width: 68ch; }

/* ---------------------------------------------------------------- shop */
.shop-toolbar { position: sticky; top: 78px; z-index: 20; background: rgba(247,242,232,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.shop-toolbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 66px; }
.filter-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.filter-pills::-webkit-scrollbar { display: none; }
.pill { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .8rem; color: var(--ink-soft); transition: background .2s, color .2s, border-color .2s; }
.pill:hover { border-color: var(--forest); color: var(--forest); }
.pill.is-active { background: var(--forest); border-color: var(--forest); color: var(--bone); }
.shop-count { font-size: .76rem; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.section-shop-list { padding-top: 56px; }
.preview-note { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; margin-bottom: 34px; background: var(--bone-2); border-radius: var(--radius-m); font-size: .84rem; color: var(--ink-soft); max-width: 760px; }
.preview-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--terracotta); flex: none; }
.product-grid-shop { grid-template-columns: repeat(3, 1fr); gap: 34px 22px; }
.empty-state { text-align: center; padding: 80px 20px; max-width: 560px; margin: 0 auto; }
.empty-state .display { margin-bottom: 14px; }
.empty-state p { color: var(--ink-soft); margin-bottom: 24px; }
.section-shop-story { padding: 96px 0; }
.shop-story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.shop-story img { border-radius: var(--radius-l); aspect-ratio: 10/12; object-fit: cover; }
.shop-story .display { margin-bottom: 18px; }
.shop-story p { color: var(--ink-soft); max-width: 50ch; margin-bottom: 22px; }

/* ---------------------------------------------------------------- product detail */
.breadcrumb-row { padding-top: 22px; padding-bottom: 22px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .76rem; color: var(--muted); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb span[aria-current] { color: var(--forest); }
.product-detail { padding: 8px 0 96px; }
.product-detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.gallery-main { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-l); overflow: hidden; background: var(--bone-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumb { padding: 0; border: 1px solid transparent; border-radius: var(--radius-s); overflow: hidden; width: 82px; height: 82px; background: none; cursor: pointer; opacity: .62; transition: opacity .2s, border-color .2s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.is-active { opacity: 1; border-color: var(--forest); }
.product-detail-copy .display { font-size: clamp(2.1rem, 3.4vw, 3rem); margin: 8px 0 12px; }
.product-lede { font-size: 1rem; color: var(--ink-soft); max-width: 52ch; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 22px 0 14px; }
.price-lg { font-size: 1.7rem; }
.price-compare { font-size: 1rem; color: var(--muted); text-decoration: line-through; }
.stock-pill { font-size: .7rem; letter-spacing: .06em; padding: 5px 11px; border-radius: 999px; background: var(--sage-soft); color: #34462F; }
.rating-row { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--muted); }
.rating-mark { color: var(--terracotta); }
.rating-sep { width: 1px; height: 12px; background: var(--line); }
.product-desc { margin: 22px 0 0; font-size: .96rem; line-height: 1.75; color: var(--ink-soft); max-width: 56ch; }
.buy-block { display: grid; gap: 10px; margin: 28px 0 30px; max-width: 430px; }
.buy-note { font-size: .78rem; line-height: 1.55; color: var(--muted); }
.spec-table { display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: 26px; max-width: 500px; }
.spec-table div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .84rem; }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; color: var(--ink); }
.detail-accordions { border-top: 1px solid var(--line); }
.detail-accordions details { border-bottom: 1px solid var(--line-soft); }
.detail-accordions summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-size: .9rem; font-weight: 550; color: var(--forest); }
.detail-accordions summary::-webkit-details-marker { display: none; }
.detail-accordions summary svg { color: var(--muted); transition: transform .25s; }
.detail-accordions details[open] summary svg { transform: rotate(180deg); }
.detail-accordions p { font-size: .86rem; line-height: 1.7; color: var(--ink-soft); padding-bottom: 16px; max-width: 56ch; }
.detail-accordions a { border-bottom: 1px solid var(--line); }
.section-related { padding-top: 0; }

/* ---------------------------------------------------------------- contact */
.contact-hero { padding-bottom: 56px; }
.section-contact { padding-top: 64px; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact-list { display: grid; gap: 0; margin: 32px 0; border-top: 1px solid var(--line); }
.contact-list div { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: .88rem; }
.contact-list dt { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.contact-list dt svg { color: var(--terracotta); }
.contact-list dd { margin: 0; color: var(--ink); }
.contact-social { margin-bottom: 30px; }
.contact-routing { padding-top: 4px; }
.contact-routing p { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: .84rem; }
.contact-routing span { color: var(--muted); }
.contact-form-wrap { background: var(--white); border-radius: var(--radius-xl); padding: clamp(26px, 4vw, 46px); box-shadow: var(--shadow-m); }
.form-head { margin-bottom: 24px; }
.form-head h2 { font-family: var(--serif); font-size: 1.7rem; color: var(--forest); font-weight: 500; }
.contact-form .form-row, .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .8rem; font-weight: 550; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bone); padding: 12px 14px; font-size: .9rem; transition: border-color .2s, background .2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); background: #fff; box-shadow: 0 0 0 3px rgba(20,58,50,.08); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 12px; font-size: .76rem; color: var(--muted); }
.form-note a { border-bottom: 1px solid var(--line); }
.form-success { text-align: center; padding: 30px 10px; }
.success-mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--sage-soft); color: var(--forest); }
.form-success h2 { font-family: var(--serif); font-size: 1.7rem; color: var(--forest); margin-bottom: 10px; }
.form-success p { color: var(--ink-soft); margin-bottom: 18px; }

/* ---------------------------------------------------------------- search */
.section-search { padding-top: 64px; }
.search-hero { padding: 76px 0 40px; background: var(--bone-2); }
.search-hero .display { margin-bottom: 12px; }
.search-form-lg { display: flex; gap: 10px; max-width: 680px; margin-top: 26px; }
.search-form-lg input { flex: 1; min-width: 0; height: 54px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: .95rem; }
.search-form-lg input:focus { outline: none; border-color: var(--forest); }
.search-form-lg .btn { min-height: 54px; }
.search-hint { margin-top: 14px; font-size: .8rem; color: var(--muted); }
.search-summary { margin-bottom: 34px; font-size: .9rem; color: var(--ink-soft); }
.search-results { display: grid; gap: 0; border-top: 1px solid var(--line); }
.search-result { display: block; padding: 24px 4px 26px; border-bottom: 1px solid var(--line-soft); }
.search-result:hover { background: rgba(20,58,50,.025); }
.search-result .eyebrow { margin-bottom: 8px; }
.search-result h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--forest); margin-bottom: 8px; }
.search-result p { font-size: .88rem; line-height: 1.65; color: var(--ink-soft); max-width: 74ch; }
.empty-search { padding: 60px 0; }
.suggest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.suggest-grid a { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-m); font-size: .86rem; background: var(--white); }
.suggest-grid a:hover { border-color: var(--forest); }

/* ---------------------------------------------------------------- 404 / error */
.notfound { padding: 90px 0 110px; }
.notfound-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.notfound-tag { font-family: var(--serif); font-size: clamp(4rem, 10vw, 8rem); line-height: .9; color: var(--bone-3); margin-bottom: -8px; }
.notfound-copy .display { margin-bottom: 16px; }
.notfound-copy p { color: var(--ink-soft); max-width: 46ch; margin-bottom: 26px; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .82rem; color: var(--muted); }
.notfound-links a { border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.notfound-media { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4/3; }
.notfound-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .cat-card:hover, .product-media img { transform: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .primary-nav { gap: 20px; }
  .header-tools .tool-label { display: none; }
  .hero { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .footer-contact { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 18px; align-items: baseline; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .content-layout, .section-faq .faq-layout { grid-template-columns: minmax(0,1fr) 290px; gap: 48px; }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .section { padding: 72px 0; }
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { min-height: 68px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 56px var(--gutter) 44px; }
  .hero-visual { height: 380px; min-height: 0; }
  .hero-title { font-size: clamp(2.4rem, 8vw, 3.4rem); }
  .hero-meta { margin-top: 28px; flex-wrap: wrap; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-media { aspect-ratio: 16/10; }
  .story-split { grid-template-columns: 1fr; }
  .story-media { height: 320px; min-height: 0; }
  .story-copy p { max-width: none; }
  .story-facts { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .pillar-grid { grid-template-columns: 1fr; gap: 0; }
  .pillar { margin-bottom: 30px; }
  .pillar-num { margin-bottom: 18px; }
  .review-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr 1fr; }
  .subscribe-inner { grid-template-columns: 1fr; gap: 28px; }
  .subscribe { margin-top: 72px; padding: 60px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-note { text-align: left; }
  .content-layout, .section-faq .faq-layout, .contact-grid, .product-detail-grid, .shop-story, .notfound-inner { grid-template-columns: 1fr; gap: 36px; }
  .content-aside, .faq-aside { position: static; }
  .page-hero-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-note { text-align: left; max-width: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .shop-toolbar { top: 68px; }
  .product-grid, .product-grid-shop, .product-grid-3 { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .contact-form .form-row, .form-row { grid-template-columns: 1fr; }
  .contact-list div { grid-template-columns: 120px 1fr; }
  .gallery-main { aspect-ratio: 1/1; }
  .suggest-grid { grid-template-columns: 1fr; }
  .search-form-lg { flex-direction: column; }
  .mobile-panel nav a { font-size: 1.2rem; padding: 13px 0; }
}
@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .hero-title { font-size: 2.25rem; }
  .hero-visual { height: 300px; }
  .hero-card { left: 14px; right: 14px; bottom: 14px; max-width: none; padding: 16px 18px; }
  .hero-caption { display: none; }
  .trust-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .community-grid { gap: 8px; }
  .product-grid, .product-grid-shop, .product-grid-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .subscribe-form > div { flex-direction: column; }
  .subscribe-form .btn { width: 100%; }
  .content-hero, .page-hero { padding: 64px 0 48px; }
  .price-lg { font-size: 1.45rem; }
}

/* ==========================================================================
   PetPulse Platform — user accounts, pet profiles, feeding (Phase 2/3)
   ========================================================================== */
.locale-select {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-s);
  padding: 6px 8px;
  font: 500 13px/1.2 var(--sans);
  cursor: pointer;
}
.locale-form { display: inline-flex; margin: 0; }
.tool-link.as-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.inline-form { display: inline-flex; gap: 8px; align-items: center; margin: 0; }

.platform-section { padding: 48px var(--gutter) 80px; }
.platform-section.narrow { max-width: 820px; margin: 0 auto; }
.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.page-head-row h1 { font: 600 clamp(1.9rem, 3vw, 2.6rem)/1.1 var(--serif); margin: 6px 0 0; }
.page-head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.auth-card {
  max-width: 460px;
  margin: 24px auto 0;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  padding: 40px 38px;
}
.auth-card h1 { font: 600 2rem/1.15 var(--serif); margin: 6px 0 4px; }
.auth-sub { color: var(--muted); margin: 0 0 22px; }
.auth-switch { margin: 18px 0 0; color: var(--muted); font-size: .92rem; }
.auth-switch a { color: var(--terracotta-dark); font-weight: 600; }

.stack-form { display: grid; gap: 16px; margin: 0; }
.stack-form.compact { gap: 10px; }
.field { display: grid; gap: 6px; }
.field label { font: 600 13px/1.3 var(--sans); color: var(--ink-soft); }
.field input, .field select, .field textarea, .date-jump input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--ink);
  padding: 10px 12px;
  font: 400 15px/1.4 var(--sans);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(201, 106, 69, .35);
  outline-offset: 1px;
  border-color: var(--terracotta);
}
.field-hint { color: var(--muted); font-size: .82rem; }
.btn-wide { width: 100%; }
.btn-danger {
  background: transparent;
  border: 1px solid rgba(169, 83, 47, .5);
  color: var(--terracotta-dark);
  border-radius: var(--radius-s);
  padding: 8px 14px;
  font: 600 14px/1 var(--sans);
  cursor: pointer;
}
.btn-danger:hover { background: rgba(169, 83, 47, .08); }
.check-row { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--ink-soft); }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; }
.form-grid.compact { gap: 12px; }
.form-grid .span-2 { grid-column: span 2; }

.pets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.pet-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-s);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.pet-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.pet-card-body { display: grid; gap: 3px; flex: 1; }
.pet-card-body small { color: var(--muted); }
.pet-card-body small.muted { font-size: .8rem; }
.pet-card-link { color: var(--terracotta-dark); font: 600 13px/1 var(--sans); white-space: nowrap; }
.pet-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-soft);
}
.pet-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pet-avatar.lg { width: 88px; height: 88px; }
.pet-avatar-fallback { font: 600 1.5rem/1 var(--serif); color: var(--forest); }
.avatar-row { display: flex; align-items: center; gap: 18px; }
.inline-upload { margin: 0; }
.file-btn { cursor: pointer; }

.empty-card {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-l);
  padding: 44px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-card p { margin: 0 0 16px; font-size: 1.05rem; }

.panel-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  padding: 22px 24px;
}
.panel-title { font: 600 15px/1.3 var(--sans); color: var(--forest); margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.simple-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.simple-list li { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.rich { font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }

.stat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: .92rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.chip strong { color: var(--forest); font-size: 1.02rem; }
.chip-link { color: var(--terracotta-dark); font-weight: 600; border-style: dashed; }

.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }

.upcoming { margin-bottom: 24px; border-left: 3px solid var(--terracotta); }
.due-badge {
  font: 600 12px/1 var(--sans);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--bone-2);
  color: var(--ink-soft);
  white-space: nowrap;
}

.record-block { margin: 0 0 28px; }
.record-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.record-head h2 { font: 600 1.35rem/1.2 var(--serif); margin: 0; }
.rec-form summary {
  cursor: pointer;
  font: 600 14px/1 var(--sans);
  color: var(--terracotta-dark);
  padding: 10px 0;
}
.rec-form[open] summary { margin-bottom: 10px; }
.rec-form { border-bottom: 1px dashed var(--line-soft); margin-bottom: 14px; }
.record-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.record-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .95rem;
}
.record-list li strong { color: var(--ink); }
.record-list li .muted { font-size: .85rem; }
.record-list.wide li { padding: 13px 2px; }
.time-badge {
  font: 600 12px/1 var(--sans);
  background: var(--bone-2);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}
.link-danger {
  background: none;
  border: 0;
  color: rgba(169, 83, 47, .85);
  font: 600 12px/1 var(--sans);
  cursor: pointer;
  padding: 4px;
}
.link-danger:hover { text-decoration: underline; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.photo-cell { margin: 0; position: relative; }
.photo-cell img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid var(--line-soft);
}
.photo-cell figcaption { font-size: .82rem; color: var(--muted); padding-top: 6px; }
.photo-cell .inline-form { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.9); border-radius: 999px; padding: 2px 6px; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.plan-card.inactive { opacity: .65; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.plan-head strong { font: 600 1.05rem/1.2 var(--serif); }
.badge {
  font: 600 11px/1 var(--sans);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--sage-soft);
  color: var(--forest);
  white-space: nowrap;
}
.badge:not(.on) { background: var(--bone-2); color: var(--muted); }
.plan-card .form-actions { margin-top: 12px; }

.date-jump { gap: 8px; }
.date-jump input { width: auto; }

@media (max-width: 900px) {
  .three-col, .two-col { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
}
@media (max-width: 560px) {
  .platform-section { padding: 32px var(--gutter) 56px; }
  .auth-card { padding: 28px 22px; }
  .header-cta { display: none; }
}
