/* Honest Paws — Well Multivitamin single-screen mobile landing page.
   Matches the mobile mockup and fits one phone viewport: the hero photo
   is the flexible element, and benefit descriptions drop away on short
   screens so nothing scrolls. The Amazon button is pinned in the footer. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --navy: #13235b;
  --navy-ink: #1b2a5e;
  --green: #1fa244;
  --green-icon: #2e9e47;
  --orange: #ee5a2b;
  --amber: #f6b324;
  --amber-hover: #f0a80f;
  --star: #f28b1d;
  --link: #1d5fd1;
  --muted: #4a5577;
  --line: #e4e7ef;
  --gutter: 16px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--navy-ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

/* ---------- One-screen frame ---------- */
.screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;            /* mobile-only page; stays phone-sized on desktop */
  height: 100vh;               /* fallback */
  height: 100dvh;              /* tracks mobile browser bars */
  min-height: 520px;           /* below this, scroll rather than squash */
  margin: 0 auto;
  background: #fff;
}

/* ---------- Header: logo | wordmark ---------- */
.topbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: clamp(48px, 7dvh, 60px);
  padding: 0 var(--gutter);
}

.topbar img {
  width: clamp(36px, 5.6dvh, 48px);
  height: auto;
}

.topbar__divider {
  width: 1.5px;
  height: 60%;
  background: var(--line);
}

.topbar__name {
  color: var(--navy);
  font-size: clamp(22px, 3.4dvh, 28px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.topbar__name sup { font-size: 0.32em; font-weight: 600; vertical-align: top; margin-left: 1px; }

/* ---------- Main column ---------- */
.main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ---------- Rating ---------- */
.rating {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 2px var(--gutter) 0;
  color: var(--navy-ink);
}

.rating__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.rating__row::before,
.rating__row::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: #c9cdd8;
}

.rating__score {
  font-size: clamp(22px, 3.4dvh, 28px);
  font-weight: 700;
  line-height: 1;
}

.stars {
  --size: clamp(19px, 2.9dvh, 24px);
  --pct: calc(var(--rating) / 5 * 100%);
  flex: none;
  width: calc(var(--size) * 5);
  height: var(--size);
  background: linear-gradient(90deg, var(--star) var(--pct), #f6d3ad var(--pct));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.6 7.2.9-5.3 5 1.4 7.1L12 17.9l-6.4 3.5 1.4-7.1-5.3-5 7.2-.9z'/%3E%3C/svg%3E") left center / var(--size) var(--size) repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.6 7.2.9-5.3 5 1.4 7.1L12 17.9l-6.4 3.5 1.4-7.1-5.3-5 7.2-.9z'/%3E%3C/svg%3E") left center / var(--size) var(--size) repeat-x;
}

.rating__count {
  color: var(--link);
  font-size: clamp(20px, 3.1dvh, 26px);
  font-weight: 600;
  line-height: 1;
}

.rating__label {
  font-size: clamp(14px, 2dvh, 17px);
  font-weight: 500;
}

/* ---------- Hero: copy left, photo right (flexible height) ---------- */
.hero {
  flex: 1 1 0;
  min-height: 150px;
  max-height: 340px;
  position: relative;
  display: flex;
  align-items: center;
  margin-top: clamp(6px, 1.2dvh, 12px);
  overflow: hidden;
  /* light studio backdrop; the product photo's white background is
     multiplied into it so the shot sits on the panel without a white box */
  background: linear-gradient(180deg, #f3f7fc 0%, #e9f1f9 100%);
}

.hero__copy {
  position: relative;
  z-index: 2;
  width: 46%;
  padding: 10px 0 10px var(--gutter);
}

.hero__title {
  color: var(--navy);
  font-size: clamp(21px, min(4.3dvh, 6.6vw), 32px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.hero__accent {
  display: block;
  color: var(--green);
  font-size: 1.3em;
  line-height: 0.95;
}

.hero__sub {
  margin-top: clamp(6px, 1.2dvh, 12px);
  font-size: clamp(13px, min(2.2dvh, 3.8vw), 17px);
  font-weight: 500;
  line-height: 1.28;
}

.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 54%;
  padding: 8px 6px 8px 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  mix-blend-mode: multiply;
}

/* ---------- Benefits ---------- */
.benefits {
  flex: none;
  padding: 0 var(--gutter);
  margin-top: clamp(4px, 0.8dvh, 8px);
}

.benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: clamp(6px, 1.1dvh, 10px) 0;
  border-bottom: 1px solid var(--line);
}
.benefit:last-child { border-bottom: 0; }

.benefit__icon {
  display: grid;
  place-items: center;
  width: clamp(38px, 6.4dvh, 54px);
  aspect-ratio: 1;
  border-radius: 50%;
}
.benefit__icon svg { width: 58%; }
.benefit__icon--navy   { background: var(--navy); }
.benefit__icon--orange { background: var(--orange); }
.benefit__icon--green  { background: var(--green-icon); }

.benefit__title {
  color: var(--navy);
  font-size: clamp(15px, 2.3dvh, 18px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.benefit__text {
  margin-top: 2px;
  color: var(--muted);
  font-size: clamp(13px, 1.85dvh, 15px);
  line-height: 1.3;
}

/* ---------- Trust row ---------- */
.trust {
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(4px, 1dvh, 10px);
  padding: 0 8px clamp(6px, 1dvh, 10px);
}

.trust li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  padding: 0 6px;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
}
.trust li + li { border-left: 1px solid #d6d9e3; }
.trust svg { height: clamp(22px, 3.6dvh, 30px); width: auto; }

/* ---------- Sticky footer CTA ---------- */
.footer {
  flex: none;
  position: sticky;            /* stays reachable if a tiny screen has to scroll */
  bottom: 0;
  z-index: 10;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(19, 35, 91, 0.08);
}

.btn-amazon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--amber);
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn-amazon:hover { background: var(--amber-hover); }
.btn-amazon:active { transform: translateY(1px); }
.btn-amazon__hand {
  font-size: 1.2em;
  line-height: 1;
  margin-right: -2px;
  /* recolor the emoji to a solid navy hand so it doesn't blend into the amber */
  color: transparent;
  text-shadow: 0 0 0 var(--navy);
}

.footer__note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

/* ---------- Short screens: keep everything in one viewport ---------- */
@media (max-height: 760px) {
  .benefit__text { display: none; }   /* titles only */
}

@media (max-height: 600px) {
  .rating__label { display: none; }
  .btn-amazon { min-height: 50px; font-size: 18px; }
  .footer__note { margin-top: 4px; }
  .hero__title { font-size: 21px; }
  .hero__sub { font-size: 13px; }
  .footer { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-amazon { transition: none; }
}
