/* Transpawrent site styles. Mobile first; no framework.
   Light base: white and mint with navy and teal type; the sign-up is the one full-bleed colour block on a page.
   Yellow is for buttons and small highlights. Soft shadows and thin borders. One thing moves at a time, slowly,
   and only when src/client.js has marked the page (html.js); without the script, or with reduced motion, every
   mock shows its end state. Contrast (WCAG AA): navy on white 15.6, navy on mint 13.5, teal on white 6.4, teal on
   mint 5.5, mute on white 6.7 and on mint 5.8, white on teal 6.4, navy on yellow 9.9, mint on teal 5.5. */

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #0E6B5C;
  --teal-d: #0A5A4D;
  --yellow: #FFC531;
  --yellow-h: #FFD35E;
  --navy: #10243E;
  --ink-2: #2E4258;
  --mint: #DDF3EC;
  --mint-d: #BFE6D9;
  --mint-l: #F3FAF7;
  --line: #DCE7E3;
  --mute: #4A5E72;
  --field: #5E7085;
  --grey-bar: #94A6B6;
  --white: #FFFFFF;
  --error: #B3261E;
  --pad: 16px;
  --font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.215, .61, .355, 1);
  --shadow: 0 1px 2px rgba(16, 36, 62, .05), 0 10px 28px -14px rgba(16, 36, 62, .22);
  --shadow-lg: 0 2px 6px rgba(16, 36, 62, .05), 0 26px 60px -28px rgba(16, 36, 62, .32);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--white); color: var(--navy);
  font-family: var(--font); font-weight: 500; font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.35rem + 2.9vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.625rem); line-height: 1.12; }
h3 { font-weight: 800; font-size: 1.25rem; line-height: 1.25; }
a { color: var(--teal); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.lead { margin-top: 14px; max-width: 40ch; font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
/* Read by screen readers only: the aria-live lines that say what a tap changed. */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* New words in a preview fade in once (src/client.js adds the class after a tap). */
@keyframes settle { from { opacity: 0; } }
.is-new { animation: settle .6s var(--ease); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50; padding: 10px 16px; border-radius: 999px;
  background: var(--navy); color: var(--white); font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  border: 0; border-radius: 999px; background: var(--yellow); color: var(--navy);
  font-family: var(--font); font-weight: 800; font-size: 1.0625rem; line-height: 1.15; text-align: center; text-decoration: none;
  cursor: pointer; box-shadow: inset 0 -2px 0 rgba(16, 36, 62, .1);
}
.btn:hover { background: var(--yellow-h); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn--lg { min-height: 54px; padding: 0 28px; }
.btn--navy { background: var(--navy); color: var(--white); box-shadow: none; }
.btn--navy:hover { background: #1C3A5E; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--navy); }
.btn--ghost:hover { background: var(--mint); }
.btn:disabled { cursor: default; opacity: .7; }
@media (prefers-reduced-motion: no-preference) { .btn { transition: background-color .2s var(--ease); } }

/* Header: logo, the two audience links, one waitlist button */
.top__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; padding-top: 10px; }
.top__logo { display: flex; align-items: center; min-height: 44px; }
.top__logo img { width: auto; height: 26px; }
.top__nav { order: 3; flex: 1 0 100%; display: flex; gap: 22px; margin-top: 2px; }
.top__nav a {
  display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent;
  color: var(--mute); font-weight: 700; font-size: .9375rem; text-decoration: none;
}
.top__nav a:hover { color: var(--navy); }
.top__nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--teal); }
@media (max-width: 359px) {
  .top__logo img { height: 22px; }
  .top__cta { padding: 0 12px; font-size: .875rem; }
}

/* Hero */
.hero { position: relative; padding: 22px 0 28px; }
.hero__em { color: var(--teal); }
.hero__row .btn { margin-top: 20px; }
.replay {
  display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 6px 0 0 auto; padding: 0 4px;
  border: 0; background: none; cursor: pointer; color: var(--teal-d); font-weight: 700; font-size: .875rem;
}
.replay:hover { text-decoration: underline; text-underline-offset: 3px; }
.replay__icon { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
html:not(.js) .replay { display: none; }
@media (prefers-reduced-motion: reduce) { .replay { display: none; } }
/* On phones the heroes start a little higher, so more of their mock is on the first screen. */
@media (max-width: 559px) {
  .hero { padding-top: 12px; }
  .hero .lead { margin-top: 10px; }
  .hero__row .btn { margin-top: 14px; }
}

/* Brand hero: a store's product page. The mint band sits behind the lower part of it. On phones the pets stand in
   the empty space beside the product's name, so the page and its graphic start high on the first screen; from 560px
   up they look over the page's top edge. */
.hero--brand::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: var(--mint); }
.hero--brand .wrap { position: relative; }
.stage { position: relative; margin-top: 10px; }
.stage__pets { position: absolute; z-index: 2; right: 8px; top: -24px; width: 150px; pointer-events: none; }
@media (max-width: 359px) { .stage__pets { top: 5px; width: 110px; right: 6px; } }

.pdp { position: relative; z-index: 1; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
.pdp__bar {
  display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-bottom: 1px solid var(--line);
  border-radius: 16px 16px 0 0; background: var(--mint-l); color: var(--mute); font-weight: 700; font-size: .75rem;
}
.pdp__bar span { flex: 1; }
.pdp__dots { flex: none; width: 7px; height: 7px; margin-right: 22px; border-radius: 50%; background: #C7D5D0; box-shadow: 11px 0 #C7D5D0, 22px 0 #C7D5D0; }
.pdp__cart { position: relative; flex: none; width: 15px; height: 12px; margin-top: 4px; border: 2px solid var(--mute); border-radius: 2px 2px 4px 4px; }
.pdp__cart::before { content: ""; position: absolute; left: 2px; right: 2px; top: -7px; height: 7px; border: 2px solid var(--mute); border-bottom: 0; border-radius: 6px 6px 0 0; }
.stage .pdp__cart { visibility: hidden; }
.pdp__body { display: grid; grid-template-columns: 36px 1fr; grid-template-areas: "media name" "slot slot" "add add"; gap: 12px; padding: 12px; }
.pdp__media { grid-area: media; }
.pdp__media .pack { width: 36px; }
.pdp__thumbs { display: none; }
.pdp__name { grid-area: name; align-self: center; }
.pdp__title { font-weight: 800; font-size: 1.0625rem; line-height: 1.15; }
.pdp__price { font-weight: 700; font-size: .9375rem; color: var(--teal); }
.pdp__add {
  grid-area: add; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px;
  background: var(--navy); color: var(--white); font-weight: 800; font-size: .9375rem;
}
.slot { grid-area: slot; position: relative; }

/* The pack: the brand's product, drawn in CSS */
.pack {
  position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; padding: 0;
  border-radius: 10px 10px 16px 16px / 8px 8px 20px 20px; container-type: inline-size;
  background: linear-gradient(100deg, rgba(255, 255, 255, .1) 0 18%, transparent 18% 70%, rgba(0, 0, 0, .14) 70%), var(--navy);
  box-shadow: 0 10px 16px -10px rgba(16, 36, 62, .5);
}
.pack::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 13%; border-radius: 10px 10px 0 0 / 8px 8px 0 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 6px);
}
.pack::after { content: ""; position: absolute; top: 4%; left: 50%; width: 9%; aspect-ratio: 1; margin-left: -4.5%; border-radius: 50%; background: var(--mint-l); }
.pack__band { width: 108%; margin-top: 16cqi; padding: 9cqi 4cqi; border-radius: 6px; background: var(--yellow); color: var(--navy); text-align: center; transform: rotate(-4deg); }
.pack__band b { display: block; font-weight: 900; font-size: 14cqi; line-height: 1; white-space: nowrap; }
@container (max-width: 90px) { .pack:not(.pack--short) .pack__band b { visibility: hidden; } }
.pack--cat { background-color: var(--yellow); }
.pack--cat .pack__band { background: var(--navy); color: var(--white); }

/* The brand's own graphic over the panel, before it gives way (only with the script): the badge and its note stacked
   in the middle of the box. On phones the badge is drawn large, so the graphic fills the panel's place while it
   holds; the box is the slot itself, so nothing moves when the panel takes over. */
.brag {
  position: absolute; inset: 0; z-index: 2; display: none; flex-flow: column nowrap; align-items: center;
  justify-content: center; gap: 6px; padding-top: 22px;
  border: 1px dashed #E3CF95; border-radius: 14px; background: #FFFAEC;
}
.js .brag { display: flex; }
.brag__label { position: absolute; left: 12px; top: 7px; color: var(--mute); font-weight: 700; font-size: .75rem; }
.brag__badge { position: relative; display: grid; place-items: center; width: 200px; transform: rotate(-6deg); }
.brag__badge img { width: 100%; }
.brag__badge b {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 0 18%; text-align: center;
  font-weight: 900; font-size: 2.125rem; line-height: 1; color: var(--navy);
}
.brag__note { font-weight: 700; font-style: italic; font-size: 1.25rem; color: var(--ink-2); }
/* Short phones: the badge is drawn smaller, with its note beside it at the top of the box, so the whole badge is on
   the first screen while it holds. */
@media (max-width: 559px) and (max-height: 740px) {
  .js .brag { display: grid; grid-template-columns: auto auto; justify-content: center; align-content: start; align-items: center; gap: 0 12px; padding-top: 28px; }
  .brag__badge { width: 128px; }
  .brag__badge b { font-size: 1.375rem; }
  .brag__note { font-size: 1.125rem; }
}

/* Until the swap the panel is hidden, not only transparent, so its link cannot take keyboard focus unseen. */
.js .stage:not(.is-after) .vp { opacity: 0; visibility: hidden; transform: translateY(14px); }
.js .stage .vp { transition: opacity .9s var(--ease) .3s, transform .9s var(--ease) .3s, visibility 0s linear .3s; }
.js .stage.is-after .brag { opacity: 0; transform: scale(.97); pointer-events: none; }
.js .stage .brag { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.is-reset, .is-reset * { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .js .stage .brag { display: none; }
  .js .stage .vp { opacity: 1; visibility: visible; transform: none; }
}

/* The results panel */
.vp { container-type: inline-size; position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--mint-d); border-radius: 14px; box-shadow: var(--shadow); color: var(--navy); }
.vp__head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--mint-l); font-weight: 800; font-size: .8125rem; line-height: 1.2; }
.vp__mark { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); }
.vp__mark img { width: 15px; height: 15px; }
.vp__by { flex: 1; color: var(--teal-d); }
.tag { flex: none; padding: 2px 8px; border-radius: 6px; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: .6875rem; line-height: 1.35; }
.vp__facts { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; }
.vp__facts span { padding: 2px 10px; border-radius: 999px; background: var(--mint); font-weight: 700; font-size: .75rem; }
.vp__facts b { font-weight: 900; color: var(--teal-d); }
.vp__body { padding: 8px 12px 0; }
.vp__hero { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; }
.vp__big { font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -.03em; color: var(--teal); font-variant-numeric: tabular-nums; }
.vp__say { font-weight: 700; font-size: .875rem; line-height: 1.25; }
.vp__hero .bar { grid-column: 1 / -1; height: 8px; margin-top: 6px; }
.vp__also { margin-top: 12px; color: var(--mute); font-weight: 700; font-size: .75rem; }
.vp__minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.vp__minis li { display: flex; flex-direction: column; gap: 1px; }
.vp__minis b { font-weight: 800; font-size: 1.25rem; line-height: 1.1; color: var(--teal); font-variant-numeric: tabular-nums; }
.vp__minis span { font-weight: 700; font-size: .75rem; line-height: 1.2; }
.vp__minis .bar { height: 6px; margin-top: auto; }
.vp__minis span { margin-bottom: 4px; }
.vp__link {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px 12px; border-top: 1px solid var(--line);
  color: var(--teal-d); font-weight: 800; font-size: .8125rem; text-decoration: none;
}
a.vp__link:hover { text-decoration: underline; }
.arrow { position: relative; flex: none; width: 14px; height: 2px; background: currentColor; }
.arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.is-low b { color: var(--mute); }
.is-low .bar__fill { fill: var(--grey-bar); }
@container (min-width: 540px) {
  .vp__head { padding: 10px 16px; font-size: .9375rem; }
  .vp__mark { width: 28px; height: 28px; }
  .vp__mark img { width: 18px; height: 18px; }
  .tag { font-size: .75rem; }
  .vp__facts { padding: 14px 18px 0; }
  .vp__facts span { font-size: .8125rem; padding: 3px 12px; }
  .vp__body { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; padding: 10px 18px 0; }
  .vp__big { font-size: 4.25rem; }
  .vp__say { font-size: 1.0625rem; }
  .vp__hero .bar { height: 10px; margin-top: 10px; }
  .vp__also { margin-top: 0; font-size: .8125rem; }
  .vp__minis { grid-template-columns: 1fr; gap: 8px; margin-top: 6px; }
  .vp__minis li { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 10px; }
  .vp__minis span { margin-bottom: 0; }
  .vp__minis .bar { margin-top: 0; }
  .vp__minis b { order: 2; font-size: 1.375rem; }
  .vp__minis span { order: 1; font-size: .9375rem; }
  .vp__minis .bar { order: 3; grid-column: 1 / -1; height: 7px; }
  .vp__link { margin-top: 14px; padding: 11px 18px 13px; font-size: .9375rem; }
}

/* A counting number keeps the width of its final value (an invisible copy of it, no height), so the words beside
   it never move or re-wrap while it counts up. */
.num::after { content: attr(data-count) "%"; display: block; height: 0; overflow: hidden; visibility: hidden; }

/* Bars (SVG, sized by the rect's width) and the fill animation */
.bar { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: var(--mint); }
.bar svg { display: block; width: 100%; height: 100%; }
.bar__fill { fill: var(--teal); transform-box: fill-box; transform-origin: 0 50%; }
.js [data-fill]:not(.is-filled) .bar__fill { transform: scaleX(0); }
.js [data-fill].is-filled .bar__fill { transition: transform 2s var(--ease-out); }

/* Sections */
.proof, .how, .checkins { padding: 64px 0; }
.head h2 { max-width: 20ch; }

/* Proof (brand): the full study on a phone */
.proof__grid { display: grid; gap: 34px; }
.proof__visual { position: relative; }
.proof__visual::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(100%, 500px); aspect-ratio: 1; border-radius: 50%; background: var(--mint); transform: translate(-50%, -50%); }

.phone { position: relative; width: min(100%, 330px); margin: 0 auto; padding: 9px; border-radius: 42px; background: var(--navy); box-shadow: var(--shadow-lg); }
.phone__screen { position: relative; overflow: hidden; border-radius: 34px; background: var(--white); padding-bottom: 16px; }
.phone__notch { display: block; width: 74px; height: 20px; margin: 10px auto 8px; border-radius: 999px; background: var(--navy); }
.phone .pdp__bar { padding: 6px 12px; border-radius: 0; border-top: 1px solid var(--line); font-size: .75rem; }

.sheet { margin-top: 8px; padding: 6px 14px 0; border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; background: var(--white); box-shadow: 0 -14px 26px -18px rgba(16, 36, 62, .35); }
.sheet__grab { display: block; width: 40px; height: 5px; margin: 2px auto 10px; border-radius: 3px; background: #C9D6D1; }
.sheet__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet__kind { font-weight: 800; font-size: 1.125rem; line-height: 1.15; }
.sheet__by { display: flex; align-items: center; gap: 7px; margin-top: 6px; color: var(--teal-d); font-weight: 800; font-size: .75rem; line-height: 1.2; }
.sheet__by .vp__mark { width: 20px; height: 20px; }
.sheet__by .vp__mark img { width: 12px; height: 12px; }
.sheet__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.sheet__facts p { padding: 6px 10px; border-radius: 10px; background: var(--mint); font-weight: 700; font-size: .75rem; line-height: 1.2; }
.sheet__facts b { display: block; font-weight: 900; font-size: 1.5rem; line-height: 1.05; color: var(--teal); }
.sheet__ticks { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.sheet__ticks li { position: relative; padding-left: 22px; font-weight: 700; font-size: .75rem; line-height: 1.3; }
.sheet__ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 15px; height: 15px; border-radius: 50%; background: var(--teal); }
.sheet__ticks li::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 8px; border-right: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(40deg); }
.sheet__chart { margin-top: 10px; padding: 8px 10px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--mint-l); }
.sheet__chart > p:first-child { color: var(--mute); font-weight: 800; font-size: .75rem; }
.chart { display: block; width: 100%; height: auto; margin-top: 4px; overflow: visible; }
.chart__line { fill: none; stroke: var(--teal); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.chart__area { fill: rgba(14, 107, 92, .12); }
.js [data-fill] .chart:not(.is-drawn) .chart__line { stroke-dashoffset: 1; }
.js [data-fill] .chart:not(.is-drawn) .chart__area { opacity: 0; }
.js .chart.is-drawn .chart__line { transition: stroke-dashoffset 1.6s var(--ease-out); }
.js .chart.is-drawn .chart__area { transition: opacity .8s var(--ease) .8s; }
.sheet__axis { display: flex; justify-content: space-between; color: var(--mute); font-weight: 700; font-size: .6875rem; }
.sheet__h { margin-top: 12px; color: var(--mute); font-weight: 800; font-size: .8125rem; }
/* The hint under the rows' label, only with the script (without it the rows do nothing). */
.sheet__tap { color: var(--mute); font-weight: 700; font-size: .75rem; line-height: 1.3; }
html:not(.js) .sheet__tap { display: none; }
/* At 320 the longest chart title takes two lines; every title gets room for two, so the chart never jumps. */
@media (max-width: 359px) { .sheet__chart > p:first-child { min-height: 3.1em; text-wrap: balance; } }
/* Each result is a button with a radio dot; the one on is the one the chart shows. */
.sheet__rows { display: grid; gap: 6px; margin-top: 6px; }
.sheet__row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; width: 100%; min-height: 44px;
  padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--navy); text-align: left;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
@media (hover: hover) { .sheet__row:hover { border-color: var(--mint-d); background: var(--mint-l); } }
.sheet__row[aria-checked="true"] { border-color: var(--teal); background: var(--mint-l); }
.sheet__pick { width: 14px; height: 14px; border: 2px solid var(--grey-bar); border-radius: 50%; background: var(--white); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.sheet__row[aria-checked="true"] .sheet__pick { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 2px var(--white); }
.sheet__row span { font-weight: 700; font-size: .8125rem; line-height: 1.2; }
.sheet__row b { font-weight: 800; font-size: 1rem; line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums; }
.sheet__row .bar { grid-column: 2 / -1; height: 6px; }
/* With a mouse the rows can be a little shorter, so the whole phone fits a laptop screen; touch keeps 44px. */
@media (hover: hover) and (pointer: fine) {
  .sheet__rows { gap: 4px; }
  .sheet__row { min-height: 38px; padding-top: 4px; padding-bottom: 4px; }
}
/* Below 760px wide, a little less room at the phone's top and bottom; on short screens the whole phone is drawn
   smaller, so it always fits on the screen in one piece (the waitlist bar stays off while it is on screen). */
@media (max-width: 759px) {
  .phone--study .phone__notch { margin: 6px auto; }
  .phone--study .sheet__grab { margin: 0 auto 8px; }
  .phone--study .phone__screen { padding-bottom: 8px; }
}
@media (max-width: 759px) and (max-height: 760px) { .phone--study { zoom: .86; } }
@media (max-width: 759px) and (max-height: 640px) { .phone--study { zoom: .72; } }

/* Try setting up a study (brand): chips to tap beside a live preview (below it on phones) of what owners see, the
   check-in on a phone, and what shoppers see, the results panel. The preview sits on a soft mint stage. */
.setup { padding: 64px 0; }
.setup__grid { display: grid; gap: 30px; margin-top: 28px; }
.setup__choices { display: grid; gap: 22px; align-content: start; }
.setup__label { font-weight: 800; font-size: 1.0625rem; line-height: 1.3; }
.setup__hint { display: block; margin-top: 1px; color: var(--mute); font-weight: 700; font-size: .875rem; }
.setup__preview { display: grid; gap: 20px; justify-items: start; }
.setup__stage { display: grid; gap: 22px; width: 100%; padding: 20px 16px 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--mint-l); }
.setup__fig { display: grid; gap: 10px; justify-items: center; align-content: start; margin: 0; }
.setup__cap { color: var(--mute); font-weight: 800; font-size: .8125rem; }
.setup .phone { width: 250px; }
.setup .vp { width: 100%; max-width: 440px; }
.setup__cta { width: 100%; }
/* The panel's smaller results as rows, each folding open or shut as picks come and go. */
.setup .vp__minis { display: block; margin-top: 6px; }
.setup .vp__minis li {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 10px; max-height: 40px; overflow: hidden;
  transition: max-height .7s var(--ease), opacity .7s var(--ease), margin-top .7s var(--ease);
}
.setup .vp__minis li + li { margin-top: 8px; }
.setup .vp__minis b { order: 2; }
.setup .vp__minis span { order: 1; margin-bottom: 0; font-size: .875rem; }
.setup .vp__minis .bar { order: 3; grid-column: 1 / -1; height: 7px; margin-top: 0; }
.setup .vp__minis li.is-off { max-height: 0; margin-top: 0; opacity: 0; }
.setup .vp__more { max-height: 140px; overflow: hidden; transition: max-height .7s var(--ease), opacity .7s var(--ease); }
.setup .vp__more.is-off { max-height: 0; opacity: 0; }
/* On phones the shoppers' panel comes first, right under the choices, so a tap and what it changes share the screen,
   and the spacing is a little tighter (the chips keep their height): with the heading at the top of a 375 x 812
   screen, the panel's headline and all three results show. */
@media (max-width: 699px) {
  .setup__fig--panel { order: -1; }
  .setup__grid { gap: 20px; margin-top: 20px; }
  .setup__choices { gap: 16px; }
  .setup .chips { row-gap: 6px; margin-top: 8px; }
  .setup__stage { padding-top: 14px; }
  .setup__fig { gap: 8px; }
}

/* Chips: pill buttons. Where only one can be on (role="radio") the one on is navy; where several can (chip--multi)
   each shows a plus, and a yellow tick once on. Chips that cannot be picked right now are faded and dashed. The
   plus and the tick take the same room, so nothing moves when a chip is tapped. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--field); border-radius: 999px;
  background: var(--white); color: var(--navy); font-weight: 800; font-size: .9375rem; line-height: 1.15; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
@media (hover: hover) { .chip:hover { border-color: var(--navy); background: var(--mint-l); } }
.chip[aria-checked="true"], .chip[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.chip--multi { padding-left: 14px; }
.chip--multi::before {
  content: ""; flex: none; width: 12px; height: 12px; margin: 0 8px 0 0;
  background: linear-gradient(currentColor, currentColor) 50% 50% / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) 50% 50% / 2px 12px no-repeat;
}
.chip--multi[aria-pressed="true"]::before {
  width: 6px; height: 11px; margin: -3px 11px 0 3px; background: none;
  border-right: 2.5px solid var(--yellow); border-bottom: 2.5px solid var(--yellow); transform: rotate(40deg);
}
.chip[aria-disabled="true"] { border-style: dashed; color: var(--mute); opacity: .55; cursor: not-allowed; }
@media (hover: hover) { .chip[aria-disabled="true"]:hover { border-color: var(--field); background: var(--white); } }

/* How it works (the owner page): a line of stops */
.trip { position: relative; display: grid; gap: 22px; margin: 34px 0 0; padding: 0; list-style: none; }
.trip::before { content: ""; position: absolute; left: 11px; top: 40px; bottom: 60px; border-left: 3px dotted var(--mint-d); }
.stop { position: relative; display: grid; grid-template-columns: 26px clamp(84px, 27vw, 120px) minmax(0, 1fr); align-items: center; gap: 0 14px; }
.stop__dot { grid-column: 1; grid-row: 1; justify-self: center; width: 16px; height: 16px; border: 3px solid var(--teal); border-radius: 50%; background: var(--white); }
.stop__art { grid-column: 2; grid-row: 1; }
.stop__img { width: 100%; margin: -18% 0; pointer-events: none; }
.illo--step-consent.stop__img { width: 76%; margin: -6% auto; }
.stop p { grid-column: 3; grid-row: 1; font-weight: 700; font-size: 1.0625rem; line-height: 1.35; }
.stop--end { grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 12px 14px; }
.stop--end .stop__dot { margin-top: 18px; }
.stop--end .stop__art { grid-column: 2; }
.stop--end p { grid-column: 2; grid-row: 2; }
.vp--tiny { width: min(100%, 290px); }
.vp--tiny .vp__head { flex-wrap: wrap; padding: 7px 10px; font-size: .75rem; }
.vp--tiny .vp__by { flex: 1 1 120px; }
.vp--tiny .vp__body { padding: 10px 12px 14px; }
.vp--tiny .vp__big { font-size: 2.5rem; }
.vp--tiny .vp__say { font-size: .8125rem; }

/* Owner hero: the pets with something new, and a check-in. On phones the pets and the pack stand small on the check-in
   card's top edge, so they and the whole card share the first screen, and the card is there from the first paint
   (only the answer is picked); from 560px up the pets stand large above the card, and the card comes in. */
.ostage { display: grid; gap: 22px; margin-top: 26px; }
.home { position: relative; width: min(100%, 340px); margin: 0 auto; }
.home::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 13%; height: 14%; border-radius: 50%; background: var(--mint); }
.home__pets { position: relative; width: 82%; margin: -11% 0 -13%; }
.home .pack { position: absolute; right: 2%; bottom: 16%; width: 13%; }
.pack--short .pack__band b { font-size: 26cqi; }
.pack--short .pack__band { padding: 6cqi 4cqi; }

.checkin { width: min(100%, 400px); margin: 0 auto; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow-lg); }
.checkin__top { display: flex; align-items: center; justify-content: space-between; }
.checkin__day { padding: 2px 10px; border-radius: 999px; background: var(--mint); color: var(--teal-d); font-weight: 800; font-size: .8125rem; }
.checkin__dots { display: flex; gap: 5px; }
.checkin__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-d); }
.checkin__dots i:nth-child(-n+3) { background: var(--teal); }
.checkin__q { margin-top: 12px; font-weight: 800; font-size: 1.25rem; line-height: 1.25; }
.checkin__opts { display: flex; gap: 12px; margin-top: 14px; }
/* A face: a radio button (button.face) or, in the set-up preview, a picture (span.face). The picked one is yellow
   with a tick; the others are mint with a thin ring, so they read as things to tap. */
.face {
  position: relative; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%;
  background: var(--mint); box-shadow: inset 0 0 0 1.5px var(--mint-d);
}
button.face { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
@media (hover: hover) {
  button.face:hover { background: var(--mint-d); }
  button.face[aria-checked="true"]:hover { background: var(--yellow-h); }
}
.face svg { width: 38px; height: 38px; fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linecap: round; }
.face svg .eye { fill: var(--navy); stroke: none; }
.face--yes, .face[aria-checked="true"] { background: var(--yellow); box-shadow: none; }
.face__tick { position: absolute; right: -4px; bottom: -2px; width: 22px; height: 22px; border: 2px solid var(--white); border-radius: 50%; background: var(--teal); opacity: 0; transition: opacity .2s var(--ease); }
.face--yes .face__tick, .face[aria-checked="true"] .face__tick { opacity: 1; }
.face__tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border-right: 2.5px solid var(--white); border-bottom: 2.5px solid var(--white); transform: rotate(40deg); }
/* Under the hero card's faces: a hint, then the card's reply to the face the visitor tapped (src/client.js). */
.checkin__said { min-height: 1.4em; margin-top: 12px; color: var(--mute); font-weight: 700; font-size: .9375rem; line-height: 1.4; }
/* Below 360px the longer replies take two lines, so the line keeps room for two and the card never grows on a tap. */
@media (max-width: 359px) { .checkin__said { min-height: 2.8em; } }
.is-user .checkin__said { color: var(--teal-d); }
html:not(.js) .checkin__said { display: none; }
.js .ostage:not(.is-card) .checkin { opacity: 0; transform: translateY(16px); }
.js .ostage .checkin { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .ostage:not(.is-picked) .checkin .face[aria-checked="true"] { background: var(--mint); box-shadow: inset 0 0 0 1.5px var(--mint-d); }
.js .ostage:not(.is-picked) .checkin .face__tick { opacity: 0; }
/* The timed pick is slow; a pick the visitor taps (is-user) changes at the quick .2s above. */
.js .ostage:not(.is-user) .checkin .face, .js .ostage:not(.is-user) .checkin .face__tick { transition-duration: .6s; }
@media (prefers-reduced-motion: reduce) {
  .js .ostage .checkin { opacity: 1; transform: none; }
  .js .ostage .checkin .face[aria-checked="true"] { background: var(--yellow); }
  .js .ostage .checkin .face[aria-checked="true"] .face__tick { opacity: 1; }
}
@media (max-width: 559px) {
  .ostage { gap: 0; margin-top: 8px; }
  .home { z-index: 1; width: 50%; margin: 0 14px -16px auto; }
  .home::before { display: none; }
  .home .pack { right: -4%; bottom: 8px; width: 24%; }
  .js .ostage:not(.is-card) .checkin { opacity: 1; transform: none; }
}
/* Short phones: smaller pets and a little less space in and above the card, so the card's reply to a tapped face is
   on the first screen. */
@media (max-width: 559px) and (max-height: 740px) {
  .hero--owner .hero__row .btn { margin-top: 10px; }
  .ostage { margin-top: 4px; }
  .home { width: 44%; }
  .home .pack { width: 26%; }
  .checkin { padding-top: 12px; }
  .checkin__q { margin-top: 8px; }
  .checkin .checkin__opts { margin-top: 10px; }
  .checkin__said { margin-top: 8px; }
}

/* Owner: a whole check-in on a phone */
.checkins__grid { display: grid; gap: 34px; }
.checkins__visual { position: relative; }
.checkins__visual::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(100%, 500px); aspect-ratio: 1; border-radius: 50%; background: var(--mint); transform: translate(-50%, -50%); }
.ci { position: relative; padding: 4px 16px 0; }
.ci__title { font-weight: 800; font-size: 1.125rem; }
.ci__day { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin-top: 4px; color: var(--mute); font-weight: 700; font-size: .75rem; }
.ci__day .bar { height: 6px; }
.ci__q { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ci__q > p:first-child { font-weight: 800; font-size: .9375rem; line-height: 1.25; }
.ci .checkin__opts { gap: 10px; margin-top: 10px; }
.ci .face { width: 46px; height: 46px; }
.ci .face svg { width: 32px; height: 32px; }
/* The appetite scale: five radio buttons, the picked one teal. */
.ci__scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.ci__scale button {
  display: grid; place-items: center; height: 44px; padding: 0; border: 0; border-radius: 10px; background: var(--mint); color: var(--navy);
  font-weight: 800; font-size: .9375rem; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
@media (hover: hover) { .ci__scale button:hover { background: var(--mint-d); } }
.ci__scale button[aria-checked="true"] { background: var(--teal); color: var(--white); }
.ci__ends { display: flex; justify-content: space-between; margin-top: 4px; color: var(--mute); font-weight: 700; font-size: .6875rem; }
/* The photo: a dashed box with a camera; once tapped, the example photo drops in where the camera was. */
.ci__photo {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 1.5px dashed var(--teal); border-radius: 12px;
  background: var(--white); color: var(--navy); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
@media (hover: hover) { .ci__photo:hover { background: var(--mint-l); } }
.ci__photo[aria-pressed="true"] { border-style: solid; border-color: var(--mint-d); }
/* The thumb trims only the empty canvas above and below the sleeping pets (drawn across 88% of its width and the
   middle 55% of its height), so the photo shows the whole drawing. */
.ci__thumb { position: relative; flex: none; display: grid; place-items: center; width: 84px; height: 60px; overflow: hidden; border-radius: 10px; background: var(--mint-l); }
.ci__cam { position: relative; flex: none; width: 34px; height: 26px; border-radius: 7px; background: var(--teal); transition: opacity .6s var(--ease); }
.ci__cam::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border: 2.5px solid var(--white); border-radius: 50%; }
.ci__pic {
  position: absolute; left: 50%; top: 50%; width: 88px; max-width: none; height: 88px; margin: -44px 0 0 -44px; pointer-events: none;
  opacity: 0; transform: scale(.88); transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.ci__photo[aria-pressed="true"] .ci__cam { opacity: 0; }
.ci__photo[aria-pressed="true"] .ci__thumb { background: var(--mint); }
.ci__photo[aria-pressed="true"] .ci__pic { opacity: 1; transform: none; }
.ci__say { display: grid; gap: 2px; }
.ci__say b { font-weight: 800; font-size: .9375rem; line-height: 1.25; }
.ci__say small { color: var(--mute); font-weight: 700; font-size: .8125rem; line-height: 1.25; }
.ci__on, .ci__photo[aria-pressed="true"] .ci__off { display: none; }
.ci__photo[aria-pressed="true"] .ci__on { display: block; color: var(--teal-d); }
.ci__send { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 16px; border: 0; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 800; font-size: .9375rem; }
button.ci__send { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .2s var(--ease); }
@media (hover: hover) { button.ci__send:hover { background: #1C3A5E; } }
/* After Send: the questions fade away, then the done state fades in over them, so the phone keeps its size and the two
   are never on screen together; Start over runs the same way back. The done state takes taps only while it shows. */
.ci__form { transition: opacity .6s var(--ease) .6s; }
.is-done .ci__form { opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s linear .6s; }
.ci__done {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 24px 24px;
  text-align: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.is-done .ci__done { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .7s var(--ease) .6s; }
.ci__done p { max-width: 14ch; font-weight: 800; font-size: 1.375rem; line-height: 1.2; }
.ci__tick { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--teal); }
.ci__tick::after { content: ""; position: absolute; left: 24px; top: 15px; width: 14px; height: 26px; border-right: 4px solid var(--white); border-bottom: 4px solid var(--white); transform: rotate(40deg); }
.ci__again {
  min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--teal-d); font-weight: 800; font-size: .9375rem;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* Owner proof: the store page with the panel */
.proof--owner { background: var(--mint-l); }
.hero--owner + .checkins { padding-top: 24px; }
.proof__pdp { margin-top: 34px; }

/* Sign-up: the one full-bleed colour block */
.join { padding: 60px 0 68px; background: var(--teal); color: var(--white); }
.join :focus-visible { outline-color: var(--white); }
.join__card :focus-visible { outline-color: var(--navy); }
.join .lead { color: var(--mint); }
.join__grid { display: grid; grid-template-areas: "copy" "side" "art"; gap: 28px; }
.join__copy { grid-area: copy; }
.join__side { grid-area: side; }
.join__art { grid-area: art; width: min(70%, 260px); margin: -8% auto -14%; }
.join__card { padding: 24px 20px 22px; border-radius: 22px; background: var(--white); color: var(--navy); box-shadow: 0 30px 60px -30px rgba(3, 28, 24, .55); }
.join__other { margin-top: 16px; color: var(--mint); font-weight: 600; }
.join__other a { color: var(--white); font-weight: 800; }

.field { margin: 0 0 14px; }
.field__label { display: block; margin: 0 0 6px; font-weight: 800; font-size: .9375rem; }
.input {
  width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--field); border-radius: 12px; background: var(--white);
  color: var(--navy); font-family: var(--font); font-weight: 600; font-size: 1.0625rem;
}
.input::placeholder { color: var(--field); font-weight: 500; }
.input:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; }
.input[aria-invalid="true"] { border-color: var(--error); }
.field__error, .form__error { margin-top: 8px; color: var(--error); font-weight: 700; font-size: .9375rem; }
.signup__go { width: 100%; }
.signup__fine { margin-top: 14px; color: var(--mute); font-size: .875rem; }
.signup__hi { margin-bottom: 16px; }
.signup__actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.signup__actions .btn { flex: 1; }
.signup__skip { min-height: 44px; padding: 0 8px; border: 0; background: none; cursor: pointer; color: var(--navy); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
/* The sign-up's checkboxes, drawn as chips like the set-up's (a plus, then a yellow tick and navy once on, the two the
   same width so nothing moves). The input stays in place under its chip, invisible, so it keeps focus and the keyboard. */
.picks { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.picks legend { padding: 0; }
.picks__row { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; display: flex; }
.pick input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.pick label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px 0 14px; border: 1.5px solid var(--field); border-radius: 999px;
  background: var(--white); color: var(--navy); font-weight: 800; font-size: .9375rem; line-height: 1.15; cursor: pointer;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
@media (hover: hover) { .pick label:hover { border-color: var(--navy); background: var(--mint-l); } }
.pick__name { display: inline-flex; align-items: center; }
.pick__name::before {
  content: ""; flex: none; width: 12px; height: 12px; margin: 0 8px 0 0;
  background: linear-gradient(currentColor, currentColor) 50% 50% / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) 50% 50% / 2px 12px no-repeat;
}
.pick input:checked + label { border-color: var(--navy); background: var(--navy); color: var(--white); }
.pick input:checked + label .pick__name::before {
  width: 6px; height: 11px; margin: -3px 11px 0 3px; background: none;
  border-right: 2.5px solid var(--yellow); border-bottom: 2.5px solid var(--yellow); transform: rotate(40deg);
}
.pick input:focus-visible + label { outline: 3px solid var(--navy); outline-offset: 3px; }
.pick input[aria-invalid="true"] + label { border-color: var(--error); }
.picks .field__error { margin-top: 6px; }
/* An owner's life-stage row for a ticked animal: it opens over .6s (at once with reduced motion) and is out of reach
   of the keyboard and screen readers while shut. Each stage is a chip with its age range under it, three to a row. */
.stages { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .6s var(--ease), opacity .6s var(--ease), visibility 0s linear .6s; }
.stages.is-open { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows .6s var(--ease), opacity .6s var(--ease); }
/* 8px of room each side, inside the card's padding, so the clip does not cut the first and last chips' focus rings. */
.stages__in { min-height: 0; overflow: hidden; margin: 0 -8px; padding: 0 8px; }
.picks--stages { margin: 0; padding: 0 0 16px; }
.picks__legend { margin-bottom: 6px; color: var(--ink-2); font-weight: 800; font-size: .875rem; }
.picks__row--stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
/* Names start from the top, so they stay in line when one age range wraps onto a second line. */
.pick--stage label { flex-direction: column; justify-content: flex-start; width: 100%; min-height: 58px; padding: 10px 4px 6px; border-radius: 14px; text-align: center; }
.pick__age { display: block; margin-top: 3px; color: var(--mute); font-weight: 700; font-size: .75rem; line-height: 1.2; text-wrap: balance; transition: color .2s var(--ease); }
.pick input:checked + label .pick__age { color: var(--mint); }
/* The narrowest phones: a little more room in the card for three stages to a row. */
@media (max-width: 359px) {
  .join__card { padding-left: 16px; padding-right: 16px; }
  .picks__row--stages { gap: 6px; }
  .pick--stage label { padding: 10px 2px 6px; font-size: .875rem; }
}
.signup__done { text-align: center; }
.signup__art { width: 200px; margin: -14% auto -10%; }
.signup__done p { margin: 6px auto 0; max-width: 30ch; color: var(--ink-2); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Plain pages: privacy and not found */
.page { padding: 40px 0 72px; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 36px; font-size: 1.5rem; }
.prose p { margin-top: 12px; max-width: 64ch; }
.prose .lead { max-width: 60ch; }
.lost { display: grid; gap: 24px; align-items: center; }
.lost__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.lost__art { width: min(100%, 380px); margin: -12% auto -14%; }

/* Footer: the brand, the links and the year */
.foot { padding: 32px 0 104px; border-top: 1px solid var(--line); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.foot__logo img { width: auto; height: 26px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 700; text-decoration: none; }
.foot__nav a:hover { text-decoration: underline; }
.foot__c { flex: 1 0 100%; color: var(--mute); font-size: .9375rem; }
main:focus { outline: none; }

/* On phones, a waitlist button once the hero and the sign-up are off screen */
.sticky {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97); box-shadow: 0 -10px 26px -16px rgba(16, 36, 62, .35);
  transform: translateY(110%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.sticky.is-on { transform: none; visibility: visible; transition: transform .5s var(--ease); }
.sticky .btn { width: 100%; }
html:not(.js) .sticky { display: none; }

/* Soft reveals as sections come into view, once */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Wider phones and tablets */
@media (min-width: 560px) {
  :root { --pad: 24px; }
  .stage { margin-top: 92px; }
  .stage__pets { top: auto; bottom: calc(100% - 16px); width: 190px; right: 12px; transform: translateY(23.8%); }
  .brag { padding-top: 0; }
  .brag__badge { width: 132px; }
  .brag__badge b { font-size: 1.375rem; }
  .brag__note { font-size: 1rem; }
  .setup__cta { width: auto; }
}

/* The set-up's phone and panel side by side, the stage no wider than the two (240 + 28 + the panel's 440, its padding
   and border), so it never leaves an empty strip beside the panel */
@media (min-width: 700px) {
  .setup__stage { grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 28px; max-width: 762px; padding: 26px; }
  .setup__fig { justify-items: start; }
  .setup .phone { width: 100%; }
}

@media (min-width: 760px) {
  :root { --pad: 32px; }
  .top__row { flex-wrap: nowrap; gap: 24px; padding-top: 14px; padding-bottom: 6px; }
  .top__logo img { height: 34px; }
  .top__nav { order: 0; flex: none; margin: 0 0 0 auto; gap: 26px; }
  .top__nav a { font-size: 1rem; }
  .hero { padding: 40px 0 36px; }
  .hero__em { display: block; }
  .lead { font-size: 1.1875rem; }
  .proof, .how, .checkins { padding: 88px 0; }
  .setup { padding: 88px 0; }
  .pdp { border-radius: 20px; }
  .pdp__bar { padding: 9px 16px; font-size: .8125rem; border-radius: 20px 20px 0 0; }
  .pdp__bar span { text-align: center; }
  .pdp__body {
    grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "media name" "media slot" "media add";
    gap: 14px 26px; padding: 20px;
  }
  .pdp__media { display: grid; grid-template-rows: 1fr auto; gap: 14px; padding: 22px 18px 16px; border-radius: 16px; background: var(--mint-l); }
  .pdp__media .pack { width: 116px; justify-self: center; align-self: center; }
  .pdp__thumbs { display: flex; justify-content: center; gap: 8px; }
  .pdp__thumbs i { width: 38px; height: 38px; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--mint-d); }
  .pdp__thumbs i:first-child { box-shadow: inset 0 0 0 2px var(--teal); }
  .pdp__name { display: flex; align-items: baseline; gap: 16px; }
  .pdp__title { font-size: 1.625rem; }
  .pdp__price { font-size: 1.25rem; }
  .pdp__add { min-height: 52px; font-size: 1.0625rem; }
  .brag__badge { width: 170px; }
  .brag__badge b { font-size: 1.75rem; }
  .brag__note { font-size: 1.125rem; }
  .stop { grid-template-columns: 26px 170px minmax(0, 1fr); gap: 0 22px; }
  .stop--end { grid-template-columns: 26px minmax(0, 1fr); }
  .home { width: min(100%, 420px); }
  .join { padding: 88px 0 92px; }
  .foot { padding-bottom: 40px; }
  .foot__c { flex: none; margin-left: auto; }
  .sticky { display: none; }
  .page { padding: 64px 0 96px; }
  .lost { grid-template-columns: 1fr 1fr; }
}

/* Desktop */
@media (min-width: 1000px) {
  :root { --pad: 40px; }
  .trip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 52px; }
  .trip::before { left: 12.5%; right: 12.5%; top: 182px; bottom: auto; border-left: 0; border-top: 3px dotted var(--mint-d); }
  .stop, .stop--end { grid-template-columns: 1fr; grid-template-rows: 170px auto auto; align-content: start; justify-items: center; gap: 0; text-align: center; }
  .stop__art, .stop--end .stop__art { grid-column: 1; grid-row: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 170px; }
  .stop__img { width: min(100%, 230px); margin: 0; }
  .illo--step-consent.stop__img { width: min(78%, 180px); margin: 0; }
  .stop__dot, .stop--end .stop__dot { grid-column: 1; grid-row: 2; margin: 4px 0 0; }
  .stop p, .stop--end p { grid-column: 1; grid-row: 3; max-width: 18ch; margin-top: 14px; }
  .vp--tiny { width: 100%; max-width: 270px; text-align: left; }
  .hero { padding: 48px 0 44px; }
  .hero--brand::before { height: 58%; }
  .hero__row { display: flex; align-items: center; gap: 32px; max-width: calc(100% - 330px); margin-top: 20px; }
  .hero__row .lead { margin-top: 0; text-wrap: balance; }
  .hero--brand .hero__row .lead { max-width: 44ch; }
  .hero__row .btn { flex: none; margin-top: 0; }
  .hero--brand .stage { margin-top: 38px; }
  .stage__pets { width: 300px; right: 10px; bottom: calc(100% - 22px); }
  .pdp__body { grid-template-columns: 320px minmax(0, 1fr); gap: 16px 34px; padding: 24px 26px 26px; }
  .pdp__media .pack { width: 150px; }
  .pdp__thumbs i { width: 44px; height: 44px; }
  .pdp__title { font-size: 1.875rem; }
  .pdp__price { font-size: 1.375rem; }
  .brag__badge { width: 190px; }
  .brag__badge b { font-size: 1.9375rem; }

  .hero--owner .hero__row { max-width: none; }
  .ostage { grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: 48px; margin-top: 30px; }
  .home { width: min(100%, 470px); margin: 0 auto; }
  .ostage .checkin { width: 100%; padding: 22px 24px 24px; border-radius: 24px; }
  .checkin__q { font-size: 1.5rem; }
  .face { width: 62px; height: 62px; }
  .face svg { width: 42px; height: 42px; }

  .proof, .how, .checkins { padding: 112px 0; }
  /* The set-up and the proof are both white: a shorter gap between them, and the proof's words start level with the
     top of its phone, so no hole opens up on the left. */
  .setup { padding: 112px 0 72px; }
  .proof__grid, .checkins__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
  .proof__grid { align-items: start; }
  .proof__grid .head { padding-top: 20px; }
  .checkins__grid .head { order: 2; }
  .phone { width: 340px; }
  .proof__pdp { margin-top: 44px; }
  /* Height the card gains (an owner's life-stage rows) goes under the art, so the words beside it stay still. */
  .join__grid { grid-template-columns: minmax(0, 1fr) 480px; grid-template-rows: auto 1fr; grid-template-areas: "copy side" "art side"; align-items: center; gap: 0 72px; }
  .join__copy { align-self: end; }
  .join__art { align-self: start; width: 320px; margin: 4px 0 -12%; }
  .join__card { padding: 32px 30px 28px; }
}

/* Wide screens: the set-up's choices beside its preview */
@media (min-width: 1100px) {
  .setup__grid { grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
