/* Sections, buttons and section tags from PR #1 (assets/app-home.css?v=blue1 there). */
:root {
  --ph-ink: #0f0f11; --ph-muted: #6e727a; --ph-faint: #a2a6ad;
  --ph-line: #e7e9ec; --ph-soft: #f4f5f7;
  --ph-ease: cubic-bezier(.16, 1, .3, 1);
  --ph-spring: cubic-bezier(.34, 1.56, .64, 1);
}
@layer components {
/* ---- Type ---- */
.t-display { font-weight: 500; font-size: clamp(40px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
.t-h2-app { font-weight: 500; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.04em; text-wrap: balance; }

/* A row of pet photos set inside the headline, like an inline chip. */
.word-chip { display: inline-flex; vertical-align: middle; align-items: center; height: .82em; padding: .06em; margin: 0 .04em; border-radius: 999px; background: var(--ph-soft); box-shadow: inset 0 0 0 1px var(--ph-line); translate: 0 -.06em; }
.word-chip img { height: 100%; aspect-ratio: 1; border-radius: 999px; object-fit: cover; border: .05em solid #fff; }
.word-chip img + img { margin-left: -.18em; }

/* ---- Buttons: black pill, white round arrow ---- */
.btn-app { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 8px 0 24px;
           border-radius: 999px; background: var(--ph-ink); color: #fff; font-weight: 500; font-size: 15px; white-space: nowrap;
           transition: translate .25s var(--ph-ease), box-shadow .25s var(--ph-ease), background-color .2s; }
.btn-app:not(:has(.btn-app-dot)) { padding: 0 24px; }
.btn-app:hover { translate: 0 -2px; box-shadow: 0 12px 24px -14px rgba(15,15,17,.55); }
.btn-app:active { translate: 0 0; box-shadow: none; }
.btn-app-dot { rotate: -45deg; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; transition: rotate .3s var(--ph-ease); }
.btn-app:hover .btn-app-dot { rotate: -45deg; }
.btn-app-light { background: #fff; color: var(--ph-ink); box-shadow: inset 0 0 0 1px var(--ph-line); }
.btn-app-light:hover { box-shadow: inset 0 0 0 1px var(--ph-ink), 0 12px 24px -16px rgba(15,15,17,.35); }
.btn-app-white { background: #fff; color: var(--ph-ink); }
.btn-app-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }


/* ---- Memes as tilted cards ---- */
.meme-row { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.meme-card { margin: 0; padding: 10px; border-radius: 28px; background: var(--ph-soft); rotate: var(--r); transition: rotate .5s var(--ph-spring), translate .4s var(--ph-ease); }
.meme-card:hover { rotate: 0deg; translate: 0 -6px; }
@media (max-width: 1023px) { .meme-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .meme-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 12px 20px 20px; }
  .meme-card { flex: 0 0 76%; scroll-snap-align: center; }
}


.feature-card { display: flex; flex-direction: column; min-height: 100%; padding: 28px; border-radius: 32px; background: var(--ph-soft); }
@media (min-width: 768px) { .feature-card { padding: 36px; } }

/* ---- FAQ ---- */
.faq-list details { border-bottom: 1px solid var(--ph-line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; list-style: none; cursor: pointer; font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p { margin: -6px 0 0; padding: 0 56px 22px 4px; font-size: 16px; line-height: 1.5; color: var(--ph-muted); }
.faq-plus { position: relative; flex: none; width: 36px; height: 36px; border-radius: 999px; background: var(--ph-soft); transition: background-color .2s, rotate .3s var(--ph-ease); }
.faq-plus::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -7px 0 0 -4.5px; border-right: 2px solid var(--ph-ink); border-bottom: 2px solid var(--ph-ink); border-radius: 1px; rotate: 45deg; transition: border-color .2s; }
details[open] .faq-plus { background: var(--ph-ink); rotate: 180deg; }
details[open] .faq-plus::before { border-color: #fff; }

.foot-icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 999px; background: rgba(255,255,255,.08); transition: background-color .2s, translate .25s var(--ph-ease); }
.foot-icon:hover { background: rgba(255,255,255,.16); translate: 0 -2px; }


.caret::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.2em; background: var(--ph-ink); }

/* ---- Email pill (assets/forms.js) ---- */
#early-access .signup { display: flex; align-items: center; gap: 8px; width: 100%; border-radius: 999px; padding: 6px 6px 6px 22px; }
#early-access .signup input { flex: 1; min-width: 0; background: transparent; outline: none; font-size: 16px; color: var(--ph-ink); }
#early-access .signup input::placeholder { color: var(--ph-faint); }
#early-access .signup .btn-app { min-height: 46px; }
@media (max-width: 539px) {
  #early-access .signup { flex-wrap: wrap; padding: 6px; border-radius: 28px; }
  #early-access .signup input { min-height: 48px; padding-left: 16px; }
  #early-access .signup .btn-app { flex: 1 0 100%; }
}

/* The site's own buttons in the PR style. */
.t-h2 { font-weight: 500; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.04em; }
.btn { gap: 12px; min-height: 52px; padding: 0 24px; font-weight: 500; font-size: 15px; line-height: normal;
       transition: translate .25s var(--ph-ease), box-shadow .25s var(--ph-ease), background-color .2s; }
.btn:hover { filter: none; translate: 0 -2px; box-shadow: 0 12px 24px -14px rgba(15,15,17,.55); }
.btn:active { translate: 0 0; box-shadow: none; }
.btn:has(.btn-app-dot) { padding: 0 8px 0 24px; }
.btn:hover .btn-app-dot { rotate: -45deg; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.signup .btn { min-height: 46px; padding: 0 18px; font-size: 14px; }
}

/* Unlayered: these have to beat assets/theme.css. */
html, body { background: #fff; }
section.bg-white, #features, #faq { background: #fff; }
#for-whom { background: #f4f5f7; }
.btn-shine::after { display: none; }
.btn-navy, .btn-yellow, .btn-blue { background: #0f0f11; color: #fff; }
.btn-soft, .btn-outline,
.btn-mono:not([aria-current="page"]),
header:has(> nav) .btn-mono:not([aria-current="page"]) {
  border: 0; background: #fff; color: #0f0f11; box-shadow: inset 0 0 0 1px #e7e9ec; }
.btn-soft:hover, .btn-outline:hover,
.btn-mono:not([aria-current="page"]):hover,
header:has(> nav) .btn-mono:not([aria-current="page"]):hover {
  background: #fff; color: #0f0f11; translate: 0 -2px;
  box-shadow: inset 0 0 0 1px #0f0f11, 0 12px 24px -16px rgba(15,15,17,.35); }
.ff-sf, .ff-hand, .ff-impact { font-family: 'Onest', sans-serif; }

/* "Why I'm building" video, styled as a story. */
.story { position: relative; width: 100%; max-width: 420px; aspect-ratio: 9 / 16; margin-inline: auto; overflow: hidden; border-radius: 36px; background: #0f0f11; }
.story::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 130px; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0)); }
.story-top { position: absolute; inset: 14px 14px auto; z-index: 2; }
.story-head { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: #fff; font-size: 14px; }
.story-head b { font-weight: 600; }
.story-logo { flex: none; width: 40px; height: 40px; padding: 2px; border-radius: 50%; background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf); }
.story-logo img { display: block; width: 100%; height: 100%; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }
@media (max-width: 639px) { h1.t-display { font-size: clamp(26px, 8.5vw, 40px); } }
@media (max-width: 639px) { html[lang="en"] h1.t-display { font-size: clamp(24px, 7.5vw, 36px); } }

/* "What Roddi Health can do": pinned list with cards scrolling past it. */
/* Variant C: the pinned list and the panels that scroll by. */

/* Story montage: stacked videos, one live at a time, with a slow push-in. */
.story-stage { position: absolute; inset: 0; cursor: pointer; }
.story-stage > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.story-stage > .is-live { opacity: 1; animation: story-push var(--clip, 3s) linear both; }
.story.is-paused .story-stage > .is-live { animation-play-state: paused; }
@keyframes story-push { from { transform: scale(1); } to { transform: scale(1.08); } }
.story-bars { display: flex; gap: 4px; }
.story-bar { display: block; flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.38); }
.story-bar i { display: block; height: 100%; border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: left; }
.story-ig { display: inline-flex; align-items: center; gap: 5px; height: 32px; margin-left: auto; padding: 0 12px; border-radius: 999px; background: #0f0f11; color: #fff; font-size: 13px; font-weight: 500; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .2s; }
.story-ig:hover { background: #2a2a2e; }
.story-toggle { position: absolute; left: 50%; top: 50%; z-index: 3; display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 50%; background: rgba(15,15,17,.5); color: #fff; cursor: pointer; opacity: 0; translate: -50% -50%; transition: opacity .2s; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.story-toggle svg { width: 26px; height: 26px; }
.story-toggle .ic-play, .story.is-paused .story-toggle .ic-pause { display: none; }
.story.is-paused .story-toggle .ic-play { display: block; }
.story:hover .story-toggle, .story-toggle:focus-visible { opacity: 1; }
@media (hover: none) { .story:hover .story-toggle { opacity: 0; } }
.story.is-paused .story-toggle { opacity: 1; }
.story-cs { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; height: 58px; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .story-stage > .is-live { animation: none; } }
/* "Who it's for": all tags on one line; the row scrolls sideways on narrow screens. */
.pet-tags { display: flex; flex-wrap: nowrap; justify-content: safe center; gap: 8px; width: 100vw; padding-inline: 20px; overflow-x: auto; scrollbar-width: none; }
.pet-tags::-webkit-scrollbar { display: none; }
.pet-tags > * { flex: none; white-space: nowrap; }
/* Story comments: a round avatar and a dark chat bubble with a tail. */
.story-c { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: 8px; opacity: 0; translate: 0 10px; transition: opacity .45s var(--ph-ease), translate .45s var(--ph-ease); }
.story-c.is-on { opacity: 1; translate: 0 0; }
.story-ava { flex: none; width: 42px; height: 42px; overflow: hidden; border-radius: 50%; }
.story-ava img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-c p { position: relative; max-width: calc(100% - 64px); margin-bottom: 4px; padding: 10px 14px; border-radius: 20px; background: #fff; color: #0f0f11; font-size: 14px; line-height: 1.3; }
.story-c p::before { content: ""; position: absolute; left: -3px; bottom: -3px; width: 16px; height: 14px; background: inherit; clip-path: polygon(100% 0, 100% 72%, 0 100%, 34% 40%); }

/* Header: language switch and CTA as in the redesign draft (same markup as before), text links with a hover underline. */
header:has(> nav) .lang-toggle { display: flex; align-items: center; height: auto; padding: 3px; margin-right: 0; border-radius: 999px; background: #f4f5f7; }
header:has(> nav) .lang-opt { display: flex; align-items: center; justify-content: center; height: 36px; min-width: 38px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #a2a6ad; transition: color .15s, background-color .15s; }
header:has(> nav) a.lang-opt:hover { color: #0f0f11; }
header:has(> nav) .lang-opt.is-active { background: #fff; color: #0f0f11; box-shadow: 0 1px 2px rgba(15,15,17,.08); }
header:has(> nav) > nav .btn-navy { min-height: 42px; padding: 0 18px; border-radius: 999px; background: #0f0f11; color: #fff; font-size: 14px; font-weight: 500; }
@media (max-width: 639px) {
  header:has(> nav) .lang-opt { height: 30px; min-width: 34px; padding: 0 8px; }
  header:has(> nav) > nav .btn-navy { min-height: 36px; padding: 0 14px; font-size: 13px; }
}
header:has(> nav) > nav > div:first-child a { text-underline-offset: 6px; text-decoration-thickness: 1.5px; transition: color .15s; }
header:has(> nav) > nav > div:first-child a:hover,
header:has(> nav) > nav > div:first-child a[aria-current="page"] { color: #17171c; text-decoration-line: underline; }

/* Header: soft grey circle behind the logo. */
@media (min-width: 640px) { header:has(> nav) > .breathe { display: block; opacity: .5; filter: grayscale(1); } }

/* Tablet header follows the phone: centred logo, sidebar button on the left. */
@media (min-width: 640px) and (max-width: 1023px) {
  header > nav > a[aria-label^="Roddi Health"] { position: absolute; left: 50%; top: 37px; transform: translate(-50%, -50%); }
  header > nav > div:last-child { width: 100%; gap: 8px; }
  header > nav .btn-navy { margin-left: auto; }
  header > nav .btn-mono.btn-sm { display: none; }
  header > nav .menu-btn { display: inline-flex; align-items: center; justify-content: center; position: relative; flex: none; width: 36px; height: 36px; border-radius: 999px; }
  header > nav .menu-btn::before { content: ""; position: absolute; inset: -6px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  header > nav > a[aria-label^="Roddi Health"] { top: 43.5px; }
}

/* "Sound familiar?": each caption is a thought bubble trailing to the person in the photo. */
.meme-row { padding-top: 6px; }
.meme-card { display: flex; flex-direction: column; }
.think { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 78px; margin: 0 0 16px; padding: 14px 18px; border-radius: 22px; background: #fff; filter: drop-shadow(0 3px 6px rgba(15,15,17,.14)); text-align: center; }
.think p { margin: 0; color: #0f0f11; font-family: Impact, Haettenschweiler, 'Oswald', 'Arial Narrow', sans-serif; font-size: 20px; font-weight: 400; line-height: 1.16; letter-spacing: .03em; text-transform: uppercase; }
.think i { position: absolute; left: var(--tx, 50%); border-radius: 50%; background: #fff; }
.think i:nth-of-type(1) { bottom: -12px; width: 19px; height: 19px; margin-left: -9px; }
.think i:nth-of-type(2) { bottom: -33px; width: 12px; height: 12px; margin-left: 7px; }
.think-photo { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 18px; object-fit: cover; }

/* Early access: same side margins as the other sections, and room below. */
section.bg-\[\#141416\] { width: min(1280px, 100% - 40px); margin-bottom: 96px; }
@media (min-width: 768px) { section.bg-\[\#141416\] { margin-bottom: 130px; } }

/* Early access on tablets: narrower content, so the orbits show. */
@media (min-width: 640px) and (max-width: 1023px) {
  section.bg-\[\#141416\] > *:not(.orbits) { max-width: 420px; margin-inline: auto; }
  section.bg-\[\#141416\] form { max-width: 100%; }
  .orbit.o1 { --d: 640px; }
  .orbit.o2 { --d: 760px; }
}

/* Before / after: one table, each problem facing its solution. */
.ba-table { overflow: hidden; border-radius: 32px; background: #f4f5f7; }
.ba-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.ba-cell { display: flex; align-items: center; gap: 12px; padding: 20px 32px; font-size: 17px; line-height: 1.3; }
.ba-no { border-top: 1px solid #e7e9ec; color: #6e727a; }
.ba-yes { border-top: 1px solid rgba(255,255,255,.12); background: #0f0f11; color: #fff; font-weight: 500; }
.ba-head .ba-cell { border-top: 0; padding-block: 22px; font-size: 14px; font-weight: 500; }
.ba-head .ba-yes { color: rgba(255,255,255,.7); }
@media (max-width: 639px) {
  .ba-table { border-radius: 24px; }
  .ba-cell, .ba-yes { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; font-size: 14.5px; }
  .ba-head .ba-cell { padding-block: 16px; font-size: 13px; }
}

/* Memes on desktop: slightly smaller cards with more air between them. */
@media (min-width: 1024px) { .meme-row { gap: 44px; } }

/* Memes on phones: the same arc carousel as "Who it's for" (assets/meme-carousel.js). */
.meme-clone { display: none; }
.meme-row.is-carousel { position: relative; display: block; overflow: hidden; margin: 0 -20px; padding: 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.meme-row.is-carousel .meme-card { position: absolute; top: 14px; left: 0; width: min(62vw, 250px); rotate: 0deg; translate: none; will-change: transform; }
.meme-row.is-carousel .meme-clone { display: flex; }
.meme-row.is-carousel .think { min-height: 92px; }
.meme-row.is-carousel img { pointer-events: none; }

/* Early access on phones: a slightly smaller line under the title. */
@media (max-width: 639px) { section.bg-\[\#141416\] > p.t-lead { font-size: 16px; line-height: 1.4; } }

.site-menu:focus { outline: none; }

/* Hero phone: one sharp "Evening round" card over the rest of the app, blurred. */
header .stage { -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 92%); mask-image: linear-gradient(180deg, #000 76%, transparent 92%); }
.fx-blank::after { z-index: 3; }
.ph-blur { position: absolute; inset: 0; padding: 56px 14px 0; filter: blur(2.5px); }
.pb-h { margin: 0 0 12px; color: #2a2a2e; font-size: 22px; font-weight: 700; }
.pb-h:first-child { display: none; }
.pb-later { margin-top: 262px; }
.pb-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 12px; border-radius: 18px; background: #fff; }
.ph-card { position: absolute; left: 50%; top: 106px; z-index: 2; width: 316px; margin-left: -158px; padding: 17px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 3px rgba(49,114,200,.32), 0 18px 36px -20px rgba(20,33,50,.2); color: #26262b; text-align: left; }
.rc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rc-chip { padding: 4px 9px; border-radius: 8px; background: #e4eefb; color: #3172c8; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.rc-duo { display: flex; flex: none; }
.rc-duo img { width: 26px; height: 26px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }
.rc-duo img + img { margin-left: -9px; }
.rc-title { display: block; margin-top: 11px; font-size: 19px; font-weight: 700; line-height: 1.2; }
.rc-sub { display: block; margin-top: 3px; color: #8a8a92; font-size: 13px; line-height: 1.25; }
.rc-prog { position: relative; display: flex; align-items: center; gap: 8px; margin: 11px 0 3px; }
.rc-prog::before { content: ""; flex: 1; height: 6px; border-radius: 6px; background: #dff1e7; }
.rc-prog i { position: absolute; left: 0; top: 50%; width: 29%; height: 6px; margin-top: -3px; border-radius: 6px; background: #3fcb7e; }
.rc-prog span { color: #77777f; font-size: 12px; font-weight: 700; }
.rc-row { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.rc-mark { display: flex; flex: none; align-items: center; justify-content: center; width: 23px; height: 23px; border: 2px solid #adb6c2; border-radius: 50%; }
.rc-mark.is-done { border: 0; background: #3fcb7e; }
.rc-tile { display: flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: #f4f4f8; }
.rc-tile img { width: 28px; height: 28px; object-fit: contain; }
.rc-t { flex: 1; min-width: 0; }
.rc-t b { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; }
.rc-t small { display: block; margin-top: 1px; overflow: hidden; color: #8a8a92; font-size: 11.5px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.rc-btn { display: block; margin-top: 14px; padding: 13px; border-radius: 13px; background: #3172c8; color: #fff; font-size: 14px; font-weight: 600; text-align: center; }

/* Behind the card: quiet, colourless placeholders instead of blurred content. */
.fx-blank { background: #f5f4f6; }
.pb-later { visibility: hidden; }
.ph-blur .pb-row { background: #fff; }
.ph-blur .rc-mark { border: 0; background: #ebeaef; }
.ph-blur .rc-mark svg, .ph-blur .rc-tile img { display: none; }
.ph-blur .rc-tile { background: #ebeaef; }
.ph-blur .rc-t b, .ph-blur .rc-t small { width: fit-content; max-width: 100%; border-radius: 6px; background: #ebeaef; color: transparent; }
.ph-blur .rc-t b { width: 62%; }
.ph-blur .rc-t small { width: 42%; margin-top: 5px; }


/* "Who it's for" tags on phones: smaller and wrapped, so all of them show at once. */
@media (max-width: 639px) {
  .pet-tags { flex-wrap: wrap; justify-content: center; gap: 6px; width: 100%; padding-inline: 0; overflow: visible; }
  .pet-tags > * { padding: 5px 10px; font-size: 13px; }
}

/* Hero, desktop: symptom week, bell on the notification, softer lower fade. */
@media (min-width: 768px) {
  header .stage { -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 94%); mask-image: linear-gradient(180deg, #000 82%, transparent 94%); }
}
.hv-bell { position: absolute; left: -22px; top: -26px; z-index: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 42px; line-height: 1; rotate: -14deg; filter: drop-shadow(0 6px 8px rgba(52,92,144,.28)); }
.hv-veg { padding-left: 34px; }
.sy { padding: 2px 2px 18px; }
header .fx-push-top small { display: none; }
.sy-top { display: flex; align-items: baseline; justify-content: space-between; }
.sy-top b { font-size: 15px; font-weight: 700; }
.sy-top small { color: #8c8c94; font-size: 12px; font-weight: 500; }
.sy-row { display: flex; justify-content: space-between; margin-top: 12px; }
.sy-d { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.sy-d i { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #f4f4f8; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 20px; font-style: normal; line-height: 1; }
.sy-d i.sy-good { background: #d9f3e2; }
.sy-d i.sy-same { background: #fff1c4; }
.sy-d i.sy-bad { background: #fddcdc; }
.sy-d b { color: #8c8c94; font-size: 11px; font-weight: 600; }

/* Hero: low medication stock, in orange. */
.hv-stock { display: flex; align-items: center; gap: 11px; }
.hv-tile img { width: 32px; height: 32px; object-fit: contain; }
.hv-txt { flex: 1; min-width: 0; }
.hv-tile, .rc-tile { background: linear-gradient(145deg, #f8f8fb 0%, #e8e8ef 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.hv-tile { display: flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; }
.hv-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hv-row b { font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.hv-left { color: #d9730d; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.hv-bar { display: block; height: 6px; margin-top: 7px; overflow: hidden; border-radius: 6px; background: #f6e7d8; }
.hv-bar i { display: block; width: 32%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f7a23e, #e8791a); }
.hv-txt small { display: block; margin-top: 5px; color: #8c8c94; font-size: 12px; font-weight: 500; white-space: nowrap; }


/* Hero below desktop: the same scene, moved to fit a narrower stage. */
.hm-sy { left: 43px; }
@media (max-width: 767px) {
  .hm-push, .hm-sy, .hm-dox { display: none; }
  .hm-left { left: 372px; top: 884px; width: 240px; height: 266px; }
  .hm-rat { left: 0; top: 0; width: 240px; rotate: -10deg; }
  .hm-right { left: 905px; top: 640px; width: 190px; height: 150px; }
  .hm-ham { left: -24px; width: 190px; rotate: 10deg; }
}

/* Room between the pinned features and the black CTA (below 1024px .fp has its own padding). */
@media (min-width: 1024px) { #features + section.bg-\[\#141416\] { margin-top: 130px; } }

/* Hero on phones: the phone on a pastel circle, a rat and a hamster peeking from behind it, the bottom fading out. */
header .stage.hero-p { -webkit-mask-image: linear-gradient(180deg, #000 71%, transparent 98%); mask-image: linear-gradient(180deg, #000 71%, transparent 98%); }
.hero-p .hp-phone { filter: drop-shadow(0 26px 30px rgba(52,92,144,.22)); }
.hp-pet { filter: drop-shadow(0 12px 16px rgba(52,92,144,.18)); }
.hero-p .hg-dome img { filter: saturate(1.35) brightness(.97); }
.hero-p .hg-dome::before { background: radial-gradient(closest-side, rgba(255,255,255,.62) 0%, rgba(255,255,255,.3) 55%, rgba(255,255,255,0) 88%); }

/* Phone hero screen: "Important today" with the next round, on white. */
.td { background: #fff; }
.td-in { position: absolute; inset: 0; padding: 64px 16px 0; color: #2a2630; text-align: left; }
.td-next { margin: 18px 0; overflow: hidden; border-radius: 22px; background: #145ab5; }
.td-next-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 11px 25px 14px; color: #fff; }
.td-next-top small { display: block; font-size: 13px; font-weight: 500; opacity: .95; }
.td-next-top > div > b { display: block; margin-top: 1px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.td-timer { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.15); font-size: 10px; white-space: nowrap; }
.td-timer svg { width: 12px; height: 12px; }
.td-timer b { font-size: 11px; font-weight: 700; }
.td-next-body { margin-top: -12px; padding: 14px; border-radius: 20px 20px 22px 22px; background: #f4f4f5; }
.td-who { display: flex; align-items: center; gap: 10px; }
.td-who b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.td-who small { display: block; margin-top: 1px; color: #8a8a92; font-size: 11.5px; }
.td-ava { display: flex; flex: none; }
.td-ava img { width: 32px; height: 32px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }
.td-ava img + img { margin-left: -8px; }
.td-btn { position: relative; display: flex; align-items: center; justify-content: center; height: 46px; margin-top: 14px; border-radius: 999px; background: #2f2a2e; color: #fff; font-size: 14.5px; font-weight: 600; }
.td-btn i { position: absolute; right: 4px; top: 4px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #2f2a2e; }
.td-btn svg { width: 16px; height: 16px; }
/* Around the next step: light loading placeholders, as when the app is still fetching. */
.sk { display: block; border-radius: 8px; background: #eef0f3; }
.sk-title { width: 58%; height: 20px; margin-bottom: 18px; border-radius: 10px; }
.sk-row { display: flex; align-items: center; gap: 12px; padding: 12px; margin-top: 10px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px #f1f2f5; }
.sk-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; }
.sk-tx { flex: 1; display: grid; gap: 7px; }
.sk-l { width: 70%; height: 11px; }
.sk-s { width: 44%; height: 9px; background: #f3f4f6; }
.sk-row:nth-of-type(2n) .sk-l { width: 56%; }
.sk-row:nth-of-type(3n) .sk-s { width: 34%; }
@keyframes sk-shine { 0% { background-position: 120% 0; } 100% { background-position: -20% 0; } }
.td .sk { background-image: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.75) 50%, rgba(255,255,255,0) 70%); background-size: 220% 100%; background-repeat: no-repeat; animation: sk-shine 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .td .sk { animation: none; } }

/* Consent checkbox under the sign-up pills (hero and call-to-action). */
.consent { display: flex; align-items: flex-start; justify-content: center; gap: 10px; margin-top: 12px; color: #6e727a; font-size: 13px; line-height: 1.4; text-align: left; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: #0f0f11; cursor: pointer; }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: #0f0f11; }
.consent-dark { color: rgba(255,255,255,.72); }
.consent-dark input { accent-color: #fff; }
.consent-dark a:hover { color: #fff; }
@media (pointer: coarse) { .consent { align-items: center; min-height: 44px; } .consent input { margin-top: 0; } }


/* ---- Hero: one phone screen with pet photos in cloud frames and icon bubbles around it ---- */
:root { --cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='33' cy='32' r='27'/%3E%3Ccircle cx='68' cy='33' r='26'/%3E%3Ccircle cx='32' cy='69' r='26'/%3E%3Ccircle cx='68' cy='68' r='27'/%3E%3Crect x='30' y='30' width='40' height='40'/%3E%3C/svg%3E"); }
.hb { position: absolute; aspect-ratio: 1; filter: drop-shadow(0 16px 20px rgba(30,70,140,.22)); }
.hb::before { content: ""; position: absolute; inset: -2%; background: #fff; -webkit-mask: var(--shape, var(--cloud)) center / 100% 100% no-repeat; mask: var(--shape, var(--cloud)) center / 100% 100% no-repeat; }
.hb > span { position: absolute; inset: 0; overflow: hidden; background: var(--bg, #cfe0fb); -webkit-mask: var(--shape, var(--cloud)) center / 100% 100% no-repeat; mask: var(--shape, var(--cloud)) center / 100% 100% no-repeat; }
.hb img { position: absolute; left: var(--ix, -10%); top: var(--iy, -8%); width: var(--iw, 120%); max-width: none; }
.hi { position: absolute; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: radial-gradient(circle at 32% 26%, #fff 0%, #eaf2ff 55%, #cfe0fb 100%);
      box-shadow: 0 0 0 2px #fff, 0 16px 22px -10px rgba(30,70,140,.4); font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 30px; line-height: 1; }

/* ---- Hero phone: the app's home screen (Figma "1 · За замовчуванням") in an iPhone 17 Pro mockup ----
   Built at the real 402×874 pt screen size, then scaled to fit the hero (.ip-body). */
.ip { position: absolute; width: 387px; height: 812px; }
.ip-body { position: absolute; left: 0; top: 0; width: 430px; height: 902px; padding: 14px; border-radius: 70px; transform: scale(.9); transform-origin: 0 0;
           background: linear-gradient(135deg, #f6f7f9 0%, #cfd3da 22%, #eef0f3 48%, #b8bdc7 78%, #e3e6ea 100%);
           box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9), inset 0 0 0 3px rgba(120,128,142,.35), 0 60px 90px -40px rgba(26,64,150,.6), 0 24px 40px -26px rgba(26,64,150,.45); }
.ip-body::before { content: ""; position: absolute; inset: 4px; border-radius: 66px; background: #08090c; }
.ip-sb { position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(90deg, #aeb3bd, #e9ebef 50%, #aeb3bd); }
.ip-s1 { left: -3px; top: 150px; height: 36px; } .ip-s2 { left: -3px; top: 214px; height: 64px; } .ip-s3 { left: -3px; top: 296px; height: 64px; } .ip-s4 { right: -3px; top: 250px; height: 100px; }
.ip-screen { position: relative; width: 402px; height: 874px; overflow: hidden; border-radius: 56px; background: #f1f3f9; font-family: 'Onest', sans-serif; text-align: left; color: #312a2e; }
.ip-screen img { display: block; max-width: none; }
.ip-isl { position: absolute; left: 50%; top: 11px; z-index: 10; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.ip-gl { position: absolute; inset: 0; z-index: 11; pointer-events: none; border-radius: inherit; background: linear-gradient(120deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 28%); }
.ip-hd { position: absolute; left: 0; top: 0; z-index: 1; display: flex; flex-direction: column; gap: 20px; width: 402px; height: 296px; padding: 74px 16px 0; overflow: hidden; border-radius: 0 0 32px 32px; background: linear-gradient(180deg, #3b82dc 0%, #2a68d0 45%, #1e5bc4 100%); }
.ip-hbg { position: absolute; left: 0; top: 0; width: 418px; height: 428px; object-fit: cover; object-position: bottom; }
.ip-status { position: absolute; left: 35px; top: 20px; z-index: 2; width: 331px; height: 11.4px; }
.ip-hrow { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ip-ht { display: flex; flex: 1; flex-direction: column; gap: 6px; line-height: 1.2; }
.ip-ht small { font-size: 15px; font-weight: 500; letter-spacing: -0.03em; color: rgba(255,255,255,.7); }
.ip-dt { display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1.2; text-align: center; }
.ip-dt h5 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.ip-dt small { font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.75); }
.ip-day { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.ip-arr { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.18); }
.ip-arr img { width: 18px; height: 18px; }
.ip-prev img { transform: rotate(180deg); }
.ip-hb { display: flex; gap: 6px; }
.ip-round { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.15); }
.ip-round:last-child { background: none; }
.ip-round img { width: 22px; height: 22px; }
.ip-dot { position: absolute; left: 24px; top: 10px; width: 8px; height: 8px; border: 1.5px solid #2d95e0; border-radius: 50%; background: #fd6353; box-sizing: content-box; margin: -1.5px; }
.ip-pets { position: relative; display: flex; gap: 16px; align-items: flex-start; zoom: .93; }
.ip-pet { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: none; }
.ip-pw { position: relative; width: 90px; height: 94px; }
.ip-ring94 { position: absolute; left: 0; top: 3px; width: 88px; height: 88px; }
.ip-ring88 { position: absolute; left: 0; top: 3px; width: 88px; height: 88px; }
.ip-circ { position: absolute; left: 0; top: 3px; display: grid; place-items: center; width: 88px; height: 88px; border: 2px solid rgba(255,255,255,.3); border-radius: 50%; box-sizing: border-box; }
.ip-circ img { width: 76px; height: 76px; border-radius: 50%; }
.ip-bd { position: absolute; display: grid; place-items: center; width: 26px; height: 26px; border: 3px solid; border-radius: 50%; background: #122449; color: #fff; font-size: 14px; font-style: normal; font-weight: 700; box-sizing: border-box; }
.ip-sky { position: absolute; left: 0; right: 0; top: 30px; text-align: center; font-size: 26px; font-weight: 700; color: #fff; }
.ip-pl { padding: 3px 16px; line-height: 1.25; border-radius: 100px; font-size: 14px; color: #fff; white-space: nowrap; }
.ip-all .ip-pl { padding: 3px 20px; background: rgba(255,255,255,.3); font-weight: 600; }
.ip-cards { position: absolute; left: 0; top: 251px; z-index: 2; display: flex; flex-direction: column; gap: 12px; width: 402px; padding: 0 16px; }
.ip-card { padding: 20px; border-radius: 24px; background: #fff; filter: drop-shadow(0 0 21px rgba(65,34,54,.05)); }
.ip-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px; backdrop-filter: blur(50px); }
.ip-info > div { display: flex; flex: 1; flex-direction: column; gap: 2px; line-height: 1.2; }
.ip-info b { font-size: 16px; font-weight: 600; letter-spacing: -0.03em; } .ip-info > div span { font-size: 14px; letter-spacing: -0.03em; color: #919191; }
.ip-ico { align-self: flex-start; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #edeff5; } .ip-ico img { width: 20px; height: 20px; }
.ip-go { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #122449; } .ip-go img, .ip-start span img { width: 18px; height: 18px; }
.ip-sec { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ip-sec span { display: flex; align-items: center; gap: 6px; } .ip-sec img { width: 16px; height: 16px; }
.ip-sec b { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; } .ip-sec em { font-size: 14px; font-style: normal; font-weight: 600; letter-spacing: -0.03em; color: #b7b7b7; }
.ip-peek { display: flex; flex-direction: column; gap: 4px; margin-bottom: -14px; opacity: .35; filter: blur(1px); }
.ip-peek p { display: flex; align-items: center; gap: 6px; } .ip-peek i { width: 40px; font-size: 13px; font-style: normal; font-weight: 600; color: rgba(49,42,46,.6); } .ip-peek img { width: 16px; height: 16px; } .ip-peek span { font-size: 14px; font-weight: 500; color: rgba(49,42,46,.7); }
.ip-pill { position: relative; display: flex; align-items: center; gap: 6px; width: max-content; margin: 0 auto 10px; padding: 8px 16px; border-radius: 100px; background: #fff; box-shadow: 0 0 12px rgba(65,34,54,.1); font-size: 14px; font-weight: 600; }
.ip-pill img { width: 16px; height: 16px; }
.ip-next { display: flex; gap: 10px; margin-bottom: 10px; }
.ip-tm { flex: none; width: 44px; font-size: 14px; font-weight: 700; color: #14213d; } .ip-tm1 { width: 40px; padding-top: 24px; color: #312a2e; }
.ip-nc { flex: 1; min-width: 0; padding: 8px 6px 6px; border-radius: 24px; background: linear-gradient(180deg, rgba(27,127,198,.9), rgba(79,154,204,.9)); }
.ip-nt { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 10px; color: #fff; } .ip-nt > b { font-size: 14px; font-weight: 700; letter-spacing: -0.03em; }
.ip-badge { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 100px; background: rgba(255,255,255,.15); font-size: 12px; font-weight: 600; letter-spacing: -0.03em; } .ip-badge img { width: 16px; height: 16px; }
.ip-ni { display: flex; flex-direction: column; gap: 16px; padding: 14px; border-radius: 20px; background: #f6f6f6; }
.ip-nw { display: flex; align-items: center; gap: 8px; } .ip-nw > div { display: flex; flex-direction: column; gap: 4px; }
.ip-nw b { font-size: 16px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; } .ip-nw > div span { font-size: 13.5px; color: #5b5b68; }
.ip-avs { display: flex; flex: none; } .ip-av { position: relative; display: block; width: 30px; height: 30px; margin-right: -8px; overflow: hidden; border: 2px solid #f3f5fa; border-radius: 15px; background: #eadfcb; box-sizing: border-box; } .ip-av img { position: absolute; }
.ip-av36 .ip-av { width: 36px; height: 36px; margin-right: -12px; border-radius: 50%; border-color: #f6f6f6; } .ip-av36 { margin-right: 12px; }
.ip-start { display: flex; align-items: center; padding: 4px 4px 4px 32px; border-radius: 1000px; background: #122449; color: #fff; } .ip-start b { flex: 1; text-align: center; font-size: 14px; font-weight: 600; letter-spacing: -0.03em; }
.ip-start span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; }
.ip-task { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ip-tc { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; padding: 8px 16px; border-radius: 20px; background: #f3f5fa; }
.ip-tc b { display: block; font-size: 16px; font-weight: 600; line-height: 19px; color: #14213d; } .ip-tc span:not(.ip-avs):not(.ip-av) { display: block; font-size: 14px; line-height: 17px; color: #6b7488; }
.ip-nav { position: absolute; left: 23px; bottom: 38px; z-index: 5; display: flex; align-items: center; justify-content: space-between; width: 356px; height: 68px; padding: 10px 16px 10px 10px; border: 1px solid rgba(18,34,75,.05); border-radius: 34px; background: #fff; box-shadow: 0 10px 30px rgba(18,34,75,.22); box-sizing: border-box; }
.ip-tabon { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border-radius: 26px; background: #f1f3f9; } .ip-tabon b { font-size: 14px; font-weight: 700; color: #122449; } .ip-tabon img, .ip-tab img { width: 24px; height: 24px; }
.ip-tab { display: grid; place-items: center; width: 52px; height: 52px; }
.ip-bar { position: absolute; left: 50%; bottom: 8px; z-index: 6; width: 144px; height: 5px; margin-left: -72px; border-radius: 10px; background: #0f0f0f; }

/* Different shapes for the pet photos around the phone. */
.hb.sh-circle { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='48'/%3E%3C/svg%3E"); }
.hb.sh-squircle { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='3' y='3' width='94' height='94' rx='32'/%3E%3C/svg%3E"); }
.hb.sh-arch { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M3 72V50A47 47 0 0 1 97 50V72A25 25 0 0 1 72 97H28A25 25 0 0 1 3 72Z'/%3E%3C/svg%3E"); }
.hb.sh-blob { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M53 3C79 5 97 24 94 52 91 78 70 97 46 95 22 93 4 74 6 48 8 24 28 1 53 3Z'/%3E%3C/svg%3E"); }
.hb.sh-flower { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='30'/%3E%3Ccircle cx='50' cy='22' r='20'/%3E%3Ccircle cx='74' cy='36' r='20'/%3E%3Ccircle cx='74' cy='64' r='20'/%3E%3Ccircle cx='50' cy='78' r='20'/%3E%3Ccircle cx='26' cy='64' r='20'/%3E%3Ccircle cx='26' cy='36' r='20'/%3E%3C/svg%3E"); }
.hb.sh-pill { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='16' y='2' width='68' height='96' rx='34'/%3E%3C/svg%3E"); }

/* New home screen (Figma "1 · За замовчуванням"): compact header, rounder cards, blue tab icons. */
.ip-hbg { display: none; }
.ip-hd { height: 182px; padding-top: 76px; background: linear-gradient(180deg, #3b82dc 0%, #2a68d0 45%, #1e5bc4 100%); }
.ip-hd::after { content: ""; position: absolute; inset: 0; background: url(features/grain.png) 0 0 / 240px; opacity: .45; mix-blend-mode: soft-light; pointer-events: none; }
.ip-hrow { position: relative; z-index: 1; }
.ip-day { gap: 4px; }
.ip-arrow { flex: none; width: 42px; height: 42px; }
.ip-dt { gap: 4px; }
.ip-dt h5 { font-size: 24px; letter-spacing: .01em; }
.ip-dt small { font-size: 15px; letter-spacing: -0.03em; color: rgba(255,255,255,.7); }
.ip-cards { top: 150px; }
.ip-card { border-radius: 32px; }
.ip-nc { background: linear-gradient(135deg, rgba(41,94,188,.92) 11%, rgba(56,131,197,.92) 114%); }
.ip-ni { gap: 16px; background: #fff; border-radius: 16px; }
.ip-nw b { font-size: 16px; letter-spacing: -0.03em; }
.ip-nw > div span { font-size: 13px; color: #74747f; }
.ip-pa { display: block; flex: none; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.ip-pe { background: #dce4f2; }
.ip-tabon { background: #eff0f7; }
.ip-tabon b { color: #2a5fba; }
.ip-stack { display: flex; flex: none; }
.ip-stack .ip-pa { box-sizing: border-box; width: 32px; height: 32px; border: 2px solid #f3f5fa; }
.ip-stack .ip-pa + .ip-pa { margin-left: -10px; }

/* Hero mascot: sits BEHIND the phone, peeking out from its right edge (the cut edge of the picture is flush with the phone's outer edge (tucked ~1px under it),
   so the phone stays whole). A second copy, clipped to the paws only, lies on top so they reach over the phone.
   Sized in the phone's own units (inside .ip, 387×812): the top paw sits on the phone's top edge. */
.ip { isolation: isolate; }
.ip-mascot { position: absolute; left: 171.8px; top: -143.6px; z-index: -1; width: 518.2px; height: 572.7px; max-width: none; pointer-events: none; }
/* Paws: the front layer cut from the same reference (570×630 px canvas, like the mascot), so it lies exactly on top of it (same size and position). */
.ip-paws { position: absolute; left: 171.8px; top: -143.6px; z-index: 5; width: 518.2px; height: 572.7px; max-width: none; pointer-events: none; }
/* A tiny bit of life: the tail sways around its base and the eyes blink now and then
   (the body picture has the tail cut out and the eyes painted over, so nothing shows through). */
.ip-tail, .ip-eye { position: absolute; z-index: -1; max-width: none; pointer-events: none; }
.ip-tail { left: 510px; top: 104.55px; width: 139.09px; height: 215.45px; transform-origin: 30px 177.27px; animation: ip-tail 2.8s ease-in-out infinite alternate; }
.ip-eye-l { left: 402.73px; top: -8.18px; width: 40.91px; height: 44.55px; transform-origin: 20.06px 21.86px; }
.ip-eye-r { left: 502.73px; top: 40.91px; width: 39.09px; height: 46.36px; transform-origin: 19.16px 23.06px; }
/* Blink along the face's own axis (the head is tilted 26.9°): the eye squeezes shut, a thin closed-eye line shows for a moment, then the eye opens. */
.ip-eye { animation: ip-blink 6s infinite; }
.ip-lid { position: absolute; z-index: -1; width: 30px; height: 12px; max-width: none; pointer-events: none; opacity: 0; rotate: 26.9deg; animation: ip-lid 6s infinite; }
.ip-lid-l { left: 406.9px; top: 9.5px; }
.ip-lid-r { left: 506px; top: 59.8px; }
/* The lower arm (hand on the phone) is its own layer over the phone; it stays still for now. */
.ip-arm { position: absolute; left: 337.27px; top: 146.36px; z-index: 5; width: 205.45px; height: 138.18px; max-width: none; pointer-events: none; }
@keyframes ip-tail { from { rotate: -5deg; } to { rotate: 5deg; } }
@keyframes ip-blink {
  0%, 92% { transform: rotate(26.9deg) scaleY(1) rotate(-26.9deg); opacity: 1; animation-timing-function: ease-in; }
  93.5% { transform: rotate(26.9deg) scaleY(.25) rotate(-26.9deg); opacity: 1; }
  94% { transform: rotate(26.9deg) scaleY(.2) rotate(-26.9deg); opacity: 0; }
  96% { transform: rotate(26.9deg) scaleY(.2) rotate(-26.9deg); opacity: 0; }
  96.5% { transform: rotate(26.9deg) scaleY(.25) rotate(-26.9deg); opacity: 1; animation-timing-function: ease-out; }
  98.5%, 100% { transform: rotate(26.9deg) scaleY(1) rotate(-26.9deg); opacity: 1; }
}
@keyframes ip-lid { 0%, 93.3% { opacity: 0; } 94%, 96% { opacity: 1; } 96.7%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ip-tail, .ip-eye, .ip-lid { animation: none; } }

/* Hero cards: small app-style cards floating beside the phone (the visible part of the stage is x 165–1305 on tablets, so they stay inside it). */
.hc { position: absolute; display: flex; align-items: center; gap: 14px; padding: 14px 24px 14px 14px; border-radius: 26px; background: rgba(255,255,255,.94);
      box-shadow: 0 0 0 2px #fff, 0 22px 34px -16px rgba(30,70,140,.42); font-family: 'Onest', sans-serif; white-space: nowrap; }
.hc-i { display: grid; place-items: center; width: 58px; height: 58px; flex: none; border-radius: 18px; background: linear-gradient(160deg, #eef4ff, #d4e4fb);
        font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 30px; line-height: 1; }
.hc b { display: block; color: #14234b; font-size: 22px; font-weight: 700; line-height: 1.2; }
.hc small { display: block; margin-top: 3px; color: #5a6788; font-size: 17px; font-weight: 500; line-height: 1.2; }

/* Hero "blog" line: the two platforms the followers come from (Instagram, TikTok) as plain one-colour glyphs, no tiles. */
.soc { display: flex; flex: none; align-items: center; gap: 8px; color: #17171c; }
.soc-t { display: grid; place-items: center; width: 20px; height: 20px; opacity: .85; }

/* The first screen must not wait for JavaScript: the phone (it holds the LCP picture, the mascot) and the dome behind it fade in by CSS alone.
   (Before, they stayed invisible until the reveal script had run, about 3 s later on a phone.) */
.js header .stage .ip[data-reveal], .js header .stage .hg-dome[data-reveal] { opacity: 1; transform: none; transition: none; animation: hero-in .4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hero-in { from { opacity: 0; transform: var(--from, none); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js header .stage .ip[data-reveal], .js header .stage .hg-dome[data-reveal] { animation: none; } }

/* A stage (the hero collage and the like) gets its final height from CSS alone, so nothing jumps when layoutStages() runs
   (it sets the same height: width × H / W). Before, the page below the hero moved once the script had run. */
.stage:not(.stage-cover) { aspect-ratio: var(--w) / var(--h); }

/* The phone carousel measures its cards from the pictures (the script runs again when they have loaded). Reserve about the final height
   from the start (card width × 1.46 + 56 px) so the page below does not jump. */
@media (max-width: 639px) { .meme-row, .meme-row.is-carousel { height: calc(min(62vw, 250px) * 1.46 + 56px); } .meme-row:not(.is-carousel) { overflow: hidden; padding-bottom: 0; } }

/* Hero "blog" line on phones: the two platform icons sit at the left of the first line, the sentence runs next to them
   as one left-aligned block (its second line starts under its first), 13 px like the consent text above so it fits in two lines. */
@media (max-width: 639px) {
  .hero-blog { justify-content: flex-start; align-items: flex-start; gap: 8px; }
  .hero-blog .soc { gap: 6px; margin-top: 1px; }
  .hero-blog .soc-t, .hero-blog .soc svg { width: 17px; height: 17px; }
  .hero-blog p { text-align: left; text-wrap: wrap; font-size: 13px; line-height: 1.45; }
}
