/* Pawdiatry™ — foot-scented therapeutics. Vintage apothecary x modern pet DTC. */

:root {
  --paper:    #ece2cd;
  --paper-2:  #e3d5ba;
  --card:     #f6efdf;
  --ink:      #2a2017;
  --ink-soft: #5f5345;
  --teal:     #3c6b62;
  --teal-2:   #6e9a93;
  --terra:    #bd6a49;
  --terra-2:  #d98a68;
  --lav:      #8a80a8;
  --gold:     #b3893f;
  --line:     rgba(42,32,23,0.16);

  --display: "Fraunces", Georgia, serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;
  --mono:    "Spline Sans Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* paper grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.4; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--terra); font-weight: 500;
}
.serif-i { font-family: var(--display); font-style: italic; }

/* ---------- marquee ---------- */
.marquee {
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 9px 0; overflow: hidden; white-space: nowrap;
}
.marquee__track { display: inline-block; animation: slide 34s linear infinite; }
.marquee__track span { padding: 0 1.1rem; opacity: 0.92; }
.marquee__track b { color: var(--terra-2); font-weight: 400; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(9px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { width: 34px; height: 34px; color: var(--teal); flex: none; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 1.32rem; letter-spacing: -0.01em; }
.brand__name sup { font-size: 0.6rem; opacity: 0.6; }
.brand__sub { display: block; font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.34em; color: var(--ink-soft); text-transform: uppercase; margin-top: -2px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 0.86rem; color: var(--ink-soft); transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--teal); color: var(--card) !important; padding: 10px 18px; border-radius: 100px;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.nav__cta:hover { transform: translateY(-2px); background: var(--ink); }
.nav__menu {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 9px; background: none; border: 0; cursor: pointer;
}
.nav__menu span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.28s var(--ease), opacity 0.2s; }
.nav__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 100px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { transform: translateY(-3px); background: var(--teal); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 70px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 {
  font-family: var(--display); font-weight: 600; font-size: clamp(2.7rem, 6vw, 4.6rem);
  line-height: 0.98; letter-spacing: -0.02em; margin: 20px 0 22px;
}
.hero h1 em { font-style: italic; color: var(--terra); }
.hero__lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 30em; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust { margin-top: 28px; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.04em; line-height: 1.9; }
.hero__trust .stars { color: var(--gold); letter-spacing: 0.1em; }

/* mascot stage — circular medallion */
.stage { display: grid; place-items: center; gap: 16px; }
.stage__badge { position: relative; width: clamp(238px, 74vw, 392px); aspect-ratio: 1; display: grid; place-items: center; }
.stage__halo {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, var(--teal-2), var(--teal) 62%, #2c5249 100%);
  box-shadow: inset 0 8px 36px rgba(0,0,0,0.28), 0 30px 60px -22px rgba(60,107,98,0.62);
}
.stage__halo::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.42);
}
.stage .mascot {
  position: relative; width: 84%; aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; object-position: 50% 25%;
  border: 4px solid var(--card);
  box-shadow: 0 16px 30px -8px rgba(0,0,0,0.4);
}
.stage__cap { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.stage__cap b { color: var(--teal); font-weight: 500; }
.seal {
  position: absolute; right: -2%; bottom: 4%; width: 104px; height: 104px; z-index: 3;
  animation: spin 26s linear infinite;
}
.seal__disc { fill: var(--terra); }
.seal__txt { fill: var(--card); font-family: var(--mono); font-size: 8.6px; letter-spacing: 2.4px; text-transform: uppercase; }
.seal__paw { fill: var(--card); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- section frame ---------- */
.section { padding: 84px 0; position: relative; scroll-margin-top: 86px; }
#top { scroll-margin-top: 86px; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--teal { background: var(--teal); color: var(--card); }
.rule { height: 1px; background: var(--line); border: 0; }
.shead { max-width: 40rem; margin-bottom: 48px; }
.shead h2 {
  font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.04; letter-spacing: -0.015em; margin: 14px 0 16px;
}
.shead h2 em { font-style: italic; color: var(--terra); }
.section--ink .shead h2 em, .section--teal .shead h2 em { color: var(--terra-2); }
.shead p { color: var(--ink-soft); font-size: 1.05rem; }
.section--ink .shead p, .section--teal .shead p { color: rgba(255,255,255,0.72); }
.section--ink .eyebrow, .section--teal .eyebrow { color: var(--terra-2); }

/* ---------- discovery ---------- */
.discovery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.discovery__body p { margin-bottom: 18px; font-size: 1.06rem; }
.pullquote {
  font-family: var(--display); font-style: italic; font-size: 1.5rem; line-height: 1.4;
  color: var(--teal); border-left: 3px solid var(--terra); padding: 6px 0 6px 22px; margin: 26px 0;
}
.discovery__fig { position: relative; }
.discovery__fig img { border-radius: 14px; box-shadow: 0 30px 60px -24px rgba(42,32,23,0.5); }
.tag {
  position: absolute; top: 18px; left: -14px;
  background: var(--card); color: var(--ink); font-family: var(--mono);
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 9px 15px; border: 1px solid var(--ink); border-radius: 4px;
  box-shadow: 4px 4px 0 var(--terra);
}

/* ---------- science cards ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.scard {
  background: color-mix(in srgb, var(--paper) 60%, transparent);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 16px; padding: 30px 26px;
}
.section--ink .scard { background: rgba(255,255,255,0.04); }
.scard__ico { width: 46px; height: 46px; color: var(--terra-2); margin-bottom: 18px; }
.scard h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.scard p { font-size: 0.96rem; color: rgba(255,255,255,0.72); }

.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; text-align: center; }
.stat .n { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; color: var(--terra-2); line-height: 1; }
.stat .l { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 10px; }

/* ---------- collection ---------- */
.collband { border-radius: 16px; overflow: hidden; margin-bottom: 44px; box-shadow: 0 24px 50px -26px rgba(42,32,23,0.5); }
.collband img { width: 100%; height: clamp(180px, 30vw, 320px); object-fit: cover; }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.prod {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px;
  position: relative; transition: transform 0.3s var(--ease), box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.prod::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); border-radius: 8px; pointer-events: none;
}
.prod:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -26px rgba(42,32,23,0.45); }
.prod__rx { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra); }
.prod__swatch { width: 34px; height: 34px; border-radius: 50%; position: absolute; top: 26px; right: 26px; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
.prod h3 { font-family: var(--display); font-size: 1.7rem; font-weight: 600; margin: 12px 0 4px; line-height: 1.05; }
.prod__notes { font-size: 0.96rem; color: var(--ink-soft); margin-bottom: 18px; flex: 1; }
.prod__foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; }
.prod__price { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.prod__add {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--ink); color: var(--card); border: 0; padding: 10px 16px; border-radius: 100px; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.prod__add:hover { background: var(--teal); transform: translateY(-2px); }
.prod__add.added { background: var(--terra); }

/* ---------- Dr. Po ---------- */
.po { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.po__fig { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,0.2); }
.po__fig img { width: 100%; }
.po__name { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1; }
.po__title { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra-2); margin: 12px 0 22px; }
.po__bio { font-size: 1.06rem; color: rgba(255,255,255,0.8); margin-bottom: 24px; max-width: 34em; }
.creds { list-style: none; display: grid; gap: 10px; }
.creds li { font-family: var(--mono); font-size: 0.82rem; color: rgba(255,255,255,0.72); padding-left: 22px; position: relative; }
.creds li::before { content: "✚"; position: absolute; left: 0; color: var(--terra-2); }

/* ---------- testimonials ---------- */
.revgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.rev { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.rev:nth-child(1) { border-color: var(--terra); box-shadow: 6px 6px 0 -2px var(--terra); }
.rev__stars { color: var(--gold); letter-spacing: 0.15em; margin-bottom: 12px; }
.rev__q { font-family: var(--display); font-size: 1.18rem; line-height: 1.45; margin-bottom: 16px; }
.rev__who { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.rev__who b { color: var(--teal); font-weight: 400; }

/* ---------- sniff list ---------- */
.cta { text-align: center; }
.cta h2 { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 600; line-height: 1.02; margin-bottom: 14px; }
.cta h2 em { font-style: italic; color: var(--terra-2); }
.cta p { color: rgba(255,255,255,0.74); margin-bottom: 28px; }
.signup { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.signup input {
  flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px; padding: 14px 20px; color: var(--card); font-family: var(--body); font-size: 16px;
}
.signup input::placeholder { color: rgba(255,255,255,0.5); }
.signup button { white-space: nowrap; }
.signup__msg { font-family: var(--mono); font-size: 0.76rem; color: var(--terra-2); margin-top: 16px; min-height: 1.2em; letter-spacing: 0.04em; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--paper); padding: 70px 0 34px; }
.foot__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.foot__word { font-family: var(--display); font-size: 2.4rem; font-weight: 600; line-height: 1; }
.foot__tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 10px; }
.foot h4 { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra-2); margin-bottom: 16px; }
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot ul a { color: rgba(255,255,255,0.72); font-size: 0.9rem; }
.foot ul a:hover { color: var(--paper); }
.foot__fine { font-family: var(--mono); font-size: 0.7rem; line-height: 1.8; color: rgba(255,255,255,0.45); border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; }
.foot__love { color: var(--terra-2); margin-top: 14px; font-size: 0.78rem; letter-spacing: 0.04em; }
.foot__love b { font-weight: 400; color: var(--paper); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .nav__in { height: 64px; }
  .nav__menu { display: flex; }
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0; gap: 0;
    flex-direction: column; align-items: stretch; padding: 6px 24px 18px;
    background: color-mix(in srgb, var(--paper) 96%, transparent);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a:not(.nav__cta) { padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--ink); }
  .nav__cta { margin-top: 14px; text-align: center; padding: 13px; }

  .hero__grid, .discovery__grid, .po { grid-template-columns: 1fr; }
  .discovery__grid { gap: 30px; }
  .discovery__fig { order: -1; }          /* lead with the Exhibit A photo on phones */
  .discovery__fig img { max-height: 60vh; object-fit: cover; }
  .hero { padding: 34px 0 30px; }
  .hero__grid { gap: 26px; text-align: center; }
  .stage { order: -1; }
  .hero h1 { margin: 14px 0 18px; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .cards3 { grid-template-columns: 1fr; }
  .statband { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .products, .revgrid { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .po { text-align: center; }
  .po__fig { max-width: 300px; margin: 0 auto; }
  .creds { display: inline-grid; text-align: left; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .section { padding: 56px 0; }
  .marquee { font-size: 0.62rem; padding: 8px 0; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .signup { flex-direction: column; }
  .signup button { width: 100%; justify-content: center; }
  .shead { margin-bottom: 32px; }
  .prod { padding: 24px; }
  .prod::before { inset: 8px; }
  .foot { padding: 54px 0 30px; }
  .foot__top { grid-template-columns: 1fr 1fr; gap: 26px 20px; }   /* keep footer compact, not a single tall stack */
  .foot__word { font-size: 2rem; }
  .seal { width: 84px; height: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
