/* =========================================================================
   PetPaw — Modern Soft-Brutalist (2026)
   Cream paper + hard borders + flat colour blocks + bold display type
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg:          #FAF5EE;
  --bg-elev:     #FFFCF7;
  --ink:         #2B221C;          /* warm dark brown (was near-black) */
  --ink-soft:    #6B5D52;
  --line:        rgba(43, 34, 28, 0.16);   /* translucent warm brown — softer than solid line */
  --line-soft:   rgba(43, 34, 28, 0.10);
  --on-color:    #FFFAF2;          /* "white" on coloured blocks — warm cream, not pure white */

  --brand-pink:  #F47DA0;          /* coral-pink, ~30% less saturated than electric */
  --brand-blue:  #6E91D8;          /* dusty blue */
  --brand-yel:   #F2CC73;          /* honey */
  --brand-mint:  #C8E5D2;          /* sage */
  --brand-coral: #F2987A;          /* soft coral */

  --r-1: 6px;
  --r-2: 18px;
  --r-3: 28px;

  --bw:    1px;
  --bw-lg: 1.25px;

  --shadow-soft:     0 1px 2px rgba(43,34,28,0.04), 0 8px 24px rgba(43,34,28,0.05);
  --shadow-soft-lg:  0 2px 6px rgba(43,34,28,0.05), 0 18px 40px rgba(43,34,28,0.07);
  /* legacy aliases — kept so existing rules using --shadow-hard still resolve */
  --shadow-hard:    var(--shadow-soft);
  --shadow-hard-lg: var(--shadow-soft-lg);

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 72px; --sp-9: 112px;

  --fs-display: clamp(2.4rem, 9vw, 7rem);
  --fs-h2:      clamp(2.2rem, 4.5vw, 4rem);
  --fs-h3:      1.5rem;
  --fs-body:    1.0625rem;
  --fs-small:   0.875rem;
  --fs-tag:     0.75rem;

  --font-display: 'Cabinet Grotesk', 'General Sans', system-ui, sans-serif;
  --font-body:    'Inter Tight', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw:    1280px;
  --gutter:  24px;
  --ease:    cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: var(--fs-display); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
p  { margin: 0; color: var(--ink-soft); }
a  { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px;
     text-underline-offset: 4px; text-decoration-color: rgba(43,34,28,0.30); }
a:hover { text-decoration-color: var(--brand-pink); }

::selection { background: var(--brand-yel); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: var(--r-1);
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
section { padding-block: var(--sp-9); }
section > .container { display: grid; gap: var(--sp-7); }

@media (max-width: 768px) {
  :root { --gutter: 16px; }
  section { padding-block: var(--sp-7); }
}

/* ---------- Pill / Tag ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(255,252,247,0.7);
  border: var(--bw) solid var(--line);
  border-radius: 99em;
  text-decoration: none;
  backdrop-filter: blur(6px);
}
.tag--solid { background: var(--ink); color: var(--on-color); border-color: transparent; }
.tag--pink  { background: var(--brand-pink); color: var(--on-color); border-color: transparent; }
.tag--blue  { background: var(--brand-blue); color: var(--on-color); border-color: transparent; }
.tag--yel   { background: var(--brand-yel); color: var(--ink); border-color: transparent; }
.tag--mint  { background: var(--brand-mint); color: var(--ink); border-color: transparent; }
.tag--coral { background: var(--brand-coral); color: var(--on-color); border-color: transparent; }
/* For tags placed on top of a coloured / branded card background */
.tag--on-brand { background: rgba(0,0,0,0.18); color: var(--on-color); border-color: rgba(255,250,242,0.20); backdrop-filter: blur(6px); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-color);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 14px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: var(--bw) solid transparent;
  border-radius: var(--r-2);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover    { transform: translateY(-2px); box-shadow: var(--shadow-soft-lg); text-decoration: none; }
.btn:active   { transform: translateY(0);    box-shadow: var(--shadow-soft); }
.btn          { max-width: 100%; word-break: break-word; }
.btn span     { white-space: normal; }

.btn--ghost { --btn-bg: var(--bg-elev); --btn-fg: var(--ink); border-color: var(--line); }
.btn--pink  { --btn-bg: var(--brand-pink); --btn-fg: var(--on-color); }
.btn--blue  { --btn-bg: var(--brand-blue); --btn-fg: var(--on-color); }
.btn--yel   { --btn-bg: var(--brand-yel); --btn-fg: var(--ink); }
.btn--sm    { padding: 9px 14px; font-size: var(--fs-small); }
.btn--block { width: 100%; justify-content: center; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- Card primitive ---------- */
.card {
  background: var(--bg-elev);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-3);
  padding: var(--sp-6);
}
.card--flat   { box-shadow: none; }
.card--shadow { box-shadow: var(--shadow-soft); }
.card--pink   { background: var(--brand-pink); color: var(--on-color); border-color: transparent; }
.card--blue   { background: var(--brand-blue); color: var(--on-color); border-color: transparent; }
.card--yel    { background: var(--brand-yel); color: var(--ink); border-color: transparent; }
.card--mint   { background: var(--brand-mint); color: var(--ink); border-color: transparent; }
.card--coral  { background: var(--brand-coral); color: var(--on-color); border-color: transparent; }
.card--ink    { background: var(--ink); color: var(--on-color); border-color: transparent; }
.card--pink p, .card--blue p, .card--coral p, .card--ink p { color: rgba(255,250,242,0.85); }

/* Section eyebrow + title pattern */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--sp-3);
}
.section-head { display: grid; gap: var(--sp-3); max-width: 760px; }
.section-head p { font-size: 1.125rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(250,245,238,0.72) 0%, rgba(250,245,238,0.45) 100%);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: none;
}
/* Soft blurred fade just below the bar so the bottom edge dissolves into the page */
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 22px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(250,245,238,0.32) 0%, rgba(250,245,238,0) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}
.nav__brand-img {
  width: 32px; height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(43,34,28,0.12));
  /* small optical adjustment so the wordmark visually centres against the paw */
  transform: translateY(-1px);
}
.nav__links {
  display: flex; gap: var(--sp-5);
  margin-left: var(--sp-7);
}
.nav__links a {
  font-weight: 500; font-size: var(--fs-small);
  text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { border-bottom-color: var(--ink); }
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav__lang-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--bg-elev);
  border: var(--bw) solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  position: relative;
  transition: background .2s var(--ease);
}
.nav__lang-btn:hover { background: var(--brand-mint); }
.nav__lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-elev);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-2);
  box-shadow: var(--shadow-hard);
  padding: 6px;
  display: none;
  z-index: 60;
}
.nav__lang-menu[data-open="true"] { display: block; }
.nav__lang-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  border-radius: var(--r-1);
  font-size: var(--fs-small);
}
.nav__lang-menu a:hover { background: var(--brand-mint); }
.nav__lang-menu a.is-current { background: var(--ink); color: var(--bg); }

.nav__burger {
  display: none;
  width: 38px; height: 38px;
  background: var(--bg-elev);
  border: var(--bw) solid var(--line);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: background .2s var(--ease);
}
.nav__burger:hover { background: var(--brand-mint); }
.nav__burger span {
  display: block;
  width: 16px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .15s var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav__mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(250,245,238,0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: var(--sp-3) var(--gutter) var(--sp-4);
  flex-direction: column;
  gap: 2px;
}
.nav__mobile[data-open="true"] { display: flex; }
.nav__mobile a {
  display: block;
  padding: 12px 4px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(43,34,28,0.08);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:active { color: var(--brand-pink); }

@media (max-width: 900px) {
  .nav__links  { display: none; }
  .nav__burger { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { padding-top: var(--sp-7); padding-bottom: var(--sp-9); position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(250,245,238,0.55) 0%, rgba(250,245,238,0.92) 70%, var(--bg) 100%);
}
.hero__bg video, .hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.7);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--sp-7);
  align-items: center;
}
.hero__copy { display: grid; gap: var(--sp-5); }
.hero__title {
  font-size: var(--fs-display);
  font-weight: 900;
}
.hero__title .accent { color: var(--brand-pink); }
.hero__title .accent-2 { color: var(--brand-blue); }
.hero__lead { font-size: 1.25rem; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__tags {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-3);
  background: var(--bg-elev);
  box-shadow: var(--shadow-soft-lg);
  overflow: hidden;
}
.hero__visual-slot {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity .8s var(--ease);
}
.hero__visual-slot.is-active { opacity: 1; }
.hero__visual-slot video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__visual-label {
  position: absolute;
  left: var(--sp-3); bottom: var(--sp-3);
  z-index: 2;
  background: rgba(255,252,247,0.9);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 99em;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 900px) {
  .hero__inner  { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero__visual { max-width: 360px; margin: 0 auto; order: -1; }   /* video icons appear FIRST on mobile */
  .hero__copy   { order: 0; }
}

/* ---------- Section: Choose your PetPaw ---------- */
.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}
@media (max-width: 800px) {
  .products { grid-template-columns: 1fr; }
}
.product {
  position: relative;
  border-radius: var(--r-3);
  padding: var(--sp-7) var(--sp-6) var(--sp-6);
  display: grid;
  gap: var(--sp-4);
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft-lg); }
.product--cube { background: var(--brand-pink); color: var(--on-color); }
.product--paw  { background: var(--brand-blue); color: var(--on-color); }
.product__badge {
  align-self: start;
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,250,242,0.20);
  padding: 6px 12px;
  border-radius: 99em;
}
.product__name {
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: .95;
  color: var(--on-color);
}
.product__tag { font-size: 1.0625rem; color: rgba(255,250,242,0.90); }
.product__shot {
  display: grid;
  place-items: center;
  padding: var(--sp-3);
  min-height: 320px;
}
.product__shot img,
.product__shot video {
  max-height: 320px; width: auto; height: auto;
  filter: drop-shadow(0 12px 28px rgba(43,34,28,0.20));
  background: transparent;
}
.product__price {
  display: flex; align-items: baseline; gap: var(--sp-3);
  font-family: var(--font-display);
}
.product__price-value {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; color: var(--on-color);
}
.product__price-note { font-family: var(--font-mono); font-size: var(--fs-small); opacity: 0.80; }
.product .btn { align-self: start; }

/* ---------- Section: Live from the den (camera demo + phone) ---------- */
.live {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px) 1fr;
  align-items: center;
  gap: var(--sp-7);
}
.live__col h3 { margin-bottom: var(--sp-3); }
.live__bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.live__bullets li {
  display: grid; grid-template-columns: 28px 1fr; gap: var(--sp-3);
  align-items: start;
  font-size: 1rem;
  color: var(--ink);
}
.live__bullets svg { width: 24px; height: 24px; color: var(--brand-pink); }

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  overflow: hidden;
  border: var(--bw) solid var(--line);
  box-shadow: var(--shadow-soft-lg);
  background: var(--bg-elev);
}
.phone__shot { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* The Live Stream card is positioned in the upper third of the screenshot.
   Coordinates calibrated against app_main_screen.png portrait layout. */
.phone__stream {
  position: absolute;
  left: 5.5%;
  top: 19%;
  width: 89%;
  aspect-ratio: 16 / 11;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
}
.phone__stream video { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1000px) {
  .live { grid-template-columns: 1fr; gap: var(--sp-6); }
  .live .phone { max-width: 320px; margin: 0 auto; }
}

/* ---------- Section: Talk. Reward. Repeat. (interaction bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } }
.bento .card {
  display: grid;
  gap: var(--sp-3);
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.bento .card h3 { font-size: 1.625rem; }
.bento .icon-box {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: rgba(255,250,242,0.25);
  border-radius: 16px;
}
.card--mint .icon-box, .card--yel .icon-box { background: rgba(43,34,28,0.10); }
.bento .icon-box svg { width: 28px; height: 28px; }

/* Device-fragment background overlay for bento cards.
   Card sets `--feature-bg: url('/images/feature-xxx.webp')` inline. */
.bento .card { isolation: isolate; }
.bento .card[style*="--feature-bg"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--feature-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: multiply;
  filter: saturate(0.6);
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}
.bento .card > * { position: relative; z-index: 1; }
.card--mint[style*="--feature-bg"]::before { mix-blend-mode: multiply; opacity: 0.28; }
.card--yel[style*="--feature-bg"]::before  { mix-blend-mode: multiply; opacity: 0.30; }
.card--coral[style*="--feature-bg"]::before { mix-blend-mode: overlay;  opacity: 0.40; }

/* Polaroid-style auto-capture photo inside a bento card */
.card__photo {
  position: relative;
  margin: var(--sp-3) 0 0;
  padding: 0;
  border-radius: var(--r-2);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  height: auto;               /* aspect-ratio drives height — grid mustn't stretch */
  background: #000;
  box-shadow: 0 4px 14px rgba(43,34,28,0.22);
  align-self: start;
}
.card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 0%;     /* top centre — never crop from above */
  display: block;
}
.card__photo-stamp {
  position: absolute;
  bottom: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card__photo-dot {
  width: 7px; height: 7px;
  background: #FF6B5C;
  border-radius: 99em;
  animation: photoLiveDot 1.6s ease-in-out infinite;
}
@keyframes photoLiveDot {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.3); }
}
@media (prefers-reduced-motion: reduce) { .card__photo-dot { animation: none; opacity: 1; } }

/* ---------- Section: AI vet ---------- */
.ai-disclaimer {
  margin: var(--sp-5) 0 0;
  padding: var(--sp-3) var(--sp-4);
  border: var(--bw) dashed var(--line);
  border-radius: var(--r-2);
  font-size: var(--fs-small);
  color: var(--ink-soft);
  display: flex;
  gap: var(--sp-3);
  align-items: start;
  text-align: left;
}
.ai-disclaimer svg { width: 22px; height: 22px; color: var(--brand-coral); flex-shrink: 0; margin-top: 2px; }
.ai-disclaimer strong { color: var(--ink); }
/* (legacy .chat / .bubble / .disclaimer rules removed — superseded by .ai-disclaimer) */

/* ---------- Editorial layout (phone + numbered features) ---------- */
.editorial {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.editorial--phone-right .editorial__phone { order: 2; }
@media (max-width: 860px) {
  .editorial { grid-template-columns: 1fr; }
  .editorial--phone-right .editorial__phone { order: 0; }
  .editorial__phone { max-width: 320px; margin: 0 auto; }
}

.editorial__phone { display: grid; gap: var(--sp-3); justify-items: center; }
.editorial__phone-caption {
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-align: center;
}

.phone--standalone {
  width: 100%;
  max-width: 290px;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  border: 1px solid rgba(43,34,28,0.12);
  box-shadow: 0 24px 48px rgba(43,34,28,0.18), 0 4px 12px rgba(43,34,28,0.08);
  overflow: hidden;
  background: var(--bg-elev);
  position: relative;
}
.phone--standalone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

.editorial__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
.ed-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--sp-2) var(--sp-5);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
}
.ed-item:last-child { border-bottom: none; }
.ed-item__num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-pink);
  line-height: 1;
  padding-top: 8px;
  position: relative;
}
.ed-item__num::after {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 32px;
  height: 2px;
  background: var(--brand-pink);
  border-radius: 2px;
}
.editorial--phone-right .ed-item__num { color: var(--brand-blue); }
.editorial--phone-right .ed-item__num::after { background: var(--brand-blue); }
/* AI vet uses pink even though it's phone-right (overrides the blue rule above) */
.editorial--ai .ed-item__num { color: var(--brand-pink); }
.editorial--ai .ed-item__num::after { background: var(--brand-pink); }
.ed-item h3 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
  line-height: 1.2;
}
.ed-item p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
@media (max-width: 480px) {
  .ed-item { grid-template-columns: 48px 1fr; gap: var(--sp-1) var(--sp-3); }
  .ed-item h3 { font-size: 1.2rem; }
}

/* (legacy health bento styles removed — superseded by .editorial layout above) */

/* ---------- Section: Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: stretch;
}
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.pricing__card {
  display: grid; gap: var(--sp-4);
  border-radius: var(--r-3);
  padding: var(--sp-7);
  box-shadow: var(--shadow-soft);
}
.pricing__card--hw  { background: var(--bg-elev); border: var(--bw) solid var(--line); }
.pricing__card--ai  { background: var(--ink); color: var(--on-color); }
.pricing__card--ai p { color: rgba(255,250,242,0.78); }
.pricing__card--ai .pricing__list svg { color: var(--brand-yel); }
.pricing__tabs { display: flex; gap: var(--sp-2); padding: 4px; background: rgba(43,34,28,0.06); border-radius: 14px; }
.pricing__tab {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: inherit;
  text-align: center;
  transition: background .2s var(--ease);
}
.pricing__tab[aria-pressed="true"] { background: var(--bg-elev); box-shadow: var(--shadow-soft); }
/* Note: AI card has no tab toggle (only the hardware card does) */
.pricing__sku-shot { display: grid; place-items: center; min-height: 160px; }
.pricing__sku-shot img { max-height: 160px; width: auto; }
.pricing__price-line { display: flex; align-items: baseline; gap: var(--sp-3); }
.pricing__price {
  font-family: var(--font-display); font-weight: 900; font-size: 3rem;
  letter-spacing: -0.03em; color: inherit;
}
.pricing__price-sub { font-family: var(--font-mono); font-size: var(--fs-small); opacity: 0.8; }
.pricing__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.pricing__list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.95rem; }
.pricing__list svg { width: 20px; height: 20px; color: var(--brand-pink); margin-top: 2px; }
.pricing__free {
  margin-top: var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  background: var(--brand-mint);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-2);
  font-size: var(--fs-small);
  color: var(--ink);
  text-align: center;
}

/* ---------- Section: Social proof (video background) ---------- */
.social-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.social-section > .container { position: relative; z-index: 2; }
.social-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.social-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;       /* the cat sits in the middle of the portrait frame */
  filter: saturate(0.7);
}
/* Warm cream wash so counters/testimonials stay legible */
.social-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(250,245,238,0.78) 14%, rgba(250,245,238,0.78) 86%, var(--bg) 100%);
}


.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: var(--bw) solid var(--line);
  border-radius: var(--r-3);
  background: var(--bg-elev);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
@media (max-width: 800px) { .counters { grid-template-columns: repeat(2, 1fr); } }
.counter {
  padding: var(--sp-6);
  border-right: var(--bw) solid var(--line);
  text-align: center;
}
.counter:last-child { border-right: none; }
@media (max-width: 800px) {
  .counter:nth-child(2) { border-right: none; }
  .counter:nth-child(1), .counter:nth-child(2) { border-bottom: var(--bw) solid var(--line); }
}
.counter__value {
  font-family: var(--font-display); font-weight: 900;
  font-size: 2.6rem; letter-spacing: -0.03em; color: var(--ink); line-height: 1;
}
.counter__label {
  font-family: var(--font-mono); font-size: var(--fs-tag);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: var(--sp-2);
}

.testimonials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5);
  margin-top: var(--sp-7);
}
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial { display: grid; gap: var(--sp-3); }
.testimonial__quote { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.testimonial__author { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-2); }
.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: 99em;
  background: var(--brand-mint);
  border: var(--bw) solid var(--line);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800;
}
.testimonial__name { font-weight: 600; font-size: var(--fs-small); }
.testimonial__role { font-family: var(--font-mono); font-size: var(--fs-tag); color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.testimonial[data-placeholder="true"] .testimonial__quote::before { content: "\201C"; color: var(--brand-pink); margin-right: 4px; }
.testimonial[data-placeholder="true"] .testimonial__quote::after  { content: "\201D"; color: var(--brand-pink); margin-left: 4px; }

/* ---------- Section: FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5) var(--sp-6);
}
@media (max-width: 800px) { .faq { grid-template-columns: 1fr; } }
.faq details {
  background: var(--bg-elev);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-2);
  padding: var(--sp-4) var(--sp-5);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: rgba(43,34,28,0.06);
  border-radius: 10px;
  flex-shrink: 0;
  transition: all .2s var(--ease);
}
.faq details[open] summary::after { content: "\2212"; background: var(--ink); color: var(--on-color); }
.faq details > p { margin-top: var(--sp-3); font-size: 0.95rem; line-height: 1.6; }

/* ---------- Section: Final CTA ---------- */
.final {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--r-3);
  overflow: hidden;
  box-shadow: var(--shadow-soft-lg);
}
@media (max-width: 900px) { .final { grid-template-columns: 1fr; } }
.final__col { padding: var(--sp-7); display: grid; gap: var(--sp-4); }
.final__col--buy { background: var(--brand-pink); color: var(--on-color); }
.final__col--app { background: var(--brand-blue); color: var(--on-color); }
.final__col h3 { color: var(--on-color); font-size: 2rem; }
.final__col p  { color: rgba(255,250,242,0.88); }
.final__col .btn { align-self: start; }
.final__store-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- Footer (dark, clearly separated from main flow) ---------- */
.footer {
  margin-top: var(--sp-8);
  background: var(--ink);
  color: var(--on-color);
  border-radius: var(--r-3) var(--r-3) 0 0;
  position: relative;
  overflow: hidden;
}
.footer a { color: rgba(255,250,242,0.78); text-decoration: none; }
.footer a:hover { color: var(--on-color); }
.footer p, .footer li { color: rgba(255,250,242,0.70); }

/* Top zone: video card + tagline */
.footer__top {
  padding: var(--sp-7) 0;
  background: linear-gradient(135deg, rgba(244,125,160,0.10) 0%, rgba(110,145,216,0.08) 100%);
  border-bottom: 1px solid rgba(255,250,242,0.10);
}
.footer__feature {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-7);
  align-items: center;
}
@media (max-width: 720px) {
  .footer__feature { grid-template-columns: 1fr; gap: var(--sp-5); }
  .footer__video { max-width: 280px; margin: 0 auto; }
  .footer__feature-copy { text-align: center; }
}
.footer__video {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,250,242,0.14);
  box-shadow: 0 16px 36px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.25);
  background: #000;
}
.footer__video video {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  filter: saturate(0.85);
}
.footer__video-badge {
  position: absolute;
  top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
}
.footer__video-dot {
  width: 7px; height: 7px;
  background: var(--brand-coral);
  border-radius: 99em;
  animation: footerLiveDot 1.6s ease-in-out infinite;
}
@keyframes footerLiveDot {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.3); }
}
@media (prefers-reduced-motion: reduce) { .footer__video-dot { animation: none; opacity: 1; } }

.footer__feature-copy h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--on-color);
  margin-bottom: var(--sp-2);
}
.footer__feature-copy p {
  font-size: 1rem;
  color: rgba(255,250,242,0.72);
  max-width: 480px;
}
@media (max-width: 720px) { .footer__feature-copy p { margin-inline: auto; } }
.footer__eyebrow { color: var(--brand-pink) !important; }

/* Bottom zone: link columns */
.footer__bottom { padding: var(--sp-7) 0 var(--sp-6); }
.footer__cols {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--sp-6);
}
@media (max-width: 800px) {
  .footer__cols { grid-template-columns: 1fr 1fr; gap: var(--sp-5) var(--sp-4); }
}
.footer__col h4 {
  font-family: var(--font-mono); font-size: var(--fs-tag);
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,250,242,0.68); margin-bottom: var(--sp-3);
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__col a { font-size: var(--fs-small); transition: color .15s var(--ease); }
.footer__brand { display: grid; gap: var(--sp-3); }
.footer__logo { color: var(--on-color); }
.footer__copy { color: rgba(255,250,242,0.55); font-size: var(--fs-small); max-width: 280px; line-height: 1.6; }
.footer__made-in {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: rgba(255,250,242,0.08);
  border: 1px solid rgba(255,250,242,0.14);
  border-radius: 99em;
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-color);
  align-self: start;
  width: fit-content;
}
.footer__flag {
  width: 22px;
  height: 14px;
  border-radius: 3px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,250,242,0.18), 0 1px 2px rgba(0,0,0,0.25);
}
.footer__social { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); }
.footer__social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(255,250,242,0.08);
  border-radius: 10px;
  color: var(--on-color);
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.footer__social a:hover { background: var(--brand-pink); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }

/* ---------- Sticky bottom app-CTA (mobile only) ---------- */
.sticky-app {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 40;
  background: var(--ink);
  color: var(--on-color);
  padding: 10px 14px 10px 18px;
  border-radius: 18px;
  display: none;
  align-items: center;
  gap: var(--sp-3);
  transform: translateY(calc(100% + 16px));
  transition: transform .35s var(--ease);
  box-shadow: 0 12px 32px rgba(43,34,28,0.28), 0 2px 8px rgba(43,34,28,0.18);
}
.sticky-app.is-shown { transform: translateY(0); }
.sticky-app__copy { display: grid; gap: 2px; flex: 1; line-height: 1.2; }
.sticky-app__title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--on-color); }
.sticky-app__sub   { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,250,242,0.65); }
.sticky-app .btn { flex-shrink: 0; }
@media (max-width: 768px) { .sticky-app { display: flex; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Doodle pattern overlay (subtle texture for sections) ----------
   Apply by adding `.has-pattern` to a section. Optional modifiers:
     .has-pattern--dense    bigger tiles, more visible
     .has-pattern--sparse   bigger tiles, lower opacity
   The pattern uses currentColor of the section's text colour, so it adapts
   automatically to light/dark mode and to coloured section backgrounds. */
.has-pattern { position: relative; isolation: isolate; }
.has-pattern > * { position: relative; z-index: 1; }
.has-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/pattern.svg");
  background-repeat: repeat;
  background-size: 380px 380px;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  color: var(--ink); /* SVG uses currentColor for stroke */
}
.has-pattern--sparse::before { background-size: 520px 520px; opacity: 0.05; }
.has-pattern--dense::before  { background-size: 280px 280px; opacity: 0.09; }

/* Stronger contrast on coloured / dark blocks */
.card--ink.has-pattern::before,
.card--pink.has-pattern::before,
.card--blue.has-pattern::before,
.card--coral.has-pattern::before,
.has-pattern[style*="--ink"]::before { opacity: 0.12; }

/* ---------- Misc ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.icon { width: 1em; height: 1em; flex-shrink: 0; vertical-align: middle; }

/* ---------- Mobile fixes (≤480px) — applied last so they win cascade ---------- */
@media (max-width: 480px) {
  /* Counters: shrink padding/font so values like "1,200+" fit at 360px */
  .counter           { padding: var(--sp-4); }
  .counter__value    { font-size: 2rem; letter-spacing: -0.02em; }

  /* Product cards: drop fixed shot height; allow price line to wrap */
  .product           { padding: var(--sp-6) var(--sp-5) var(--sp-5); }
  .product__shot     { min-height: auto; aspect-ratio: 1; padding: var(--sp-4); }
  .product__shot img,
  .product__shot video { max-height: 240px; }
  .product__price    { flex-wrap: wrap; gap: var(--sp-2); }
  .product__badge    { letter-spacing: 0.04em; padding: 4px 10px; }

  /* Pricing card: shrink padding to give content room */
  .pricing__card     { padding: var(--sp-5); }
  .pricing__price    { font-size: 2.4rem; }

  /* Bento cards: don't reserve 320px when stacked */
  .bento .card       { min-height: auto; }

  /* Final CTA: less padding so buttons don't get squeezed */
  .final__col        { padding: var(--sp-5); }
  .final__col h3     { font-size: 1.6rem; }

  /* Footer "made in Poland" pill: tighter letter-spacing so it fits the brand col */
  .footer__made-in   { letter-spacing: 0.04em; padding: 5px 10px 5px 5px; }
}

/* Sticky buy bar is only visible on phones — body padding must follow the same rule */
@media (max-width: 768px) {
  body.has-sticky-bar { padding-bottom: 76px; }
}
@media (min-width: 769px) {
  body.has-sticky-bar { padding-bottom: 0; }
}

/* ---------- Print (kept minimal, used by legal pages) ---------- */
@media print {
  body { background: white; color: black; }
  .nav, .sticky-buy, .hero__bg, video { display: none !important; }
}

/* ---------- Legal pages (privacy / terms) shared layout ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--sp-9) var(--gutter);
}
.legal h1 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.legal .legal__date { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: var(--sp-7); display: block; }
.legal h2 { font-size: 1.5rem; margin-top: var(--sp-7); margin-bottom: var(--sp-3); }
.legal p, .legal li { font-size: 1rem; color: var(--ink); line-height: 1.65; }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--brand-pink); text-decoration-color: var(--brand-pink); }
.legal table { width: 100%; border-collapse: collapse; margin: var(--sp-4) 0; font-size: 0.95rem; }
.legal table th, .legal table td { border: var(--bw) solid var(--line); padding: 10px 12px; text-align: left; }
.legal table th { background: var(--brand-mint); }
