/* ════════════════════════════════════════════════════════════════
   Home hero — looping full-bleed VIDEO banner (assets/final.mp4).
   Ported from ShopDot Pet's hero so Health matches it: the same
   warm-charcoal (--sd-scrim-warm / #14110f) bottom-weighted scrim and
   the same font treatment — copy anchored bottom-left, a white display
   title with a light-orange (--sd-primary-400) accent word inherited
   from site.css's base .hero-title. The nav flips from white-on-video
   to solid-on-scroll via the shared .nav rules (index nav drops the
   .nav--on-light class it used for the old white island hero); the
   nav-scrim itself lives inline in index.html so it stays off the
   how-it-works page.

   Replaces the 2026-07-14 "Clean White" island-card hero. The
   device-duo (.hero-product / .hp-*) styles further down are kept —
   the Continuity-of-care section reuses them.
   ════════════════════════════════════════════════════════════════ */

.hero--video {
  position: relative;
  min-height: min(88vh, 780px);
  padding: 0;
  overflow: hidden;
  background: var(--sd-scrim-warm);   /* warm-charcoal hold before the video paints */
  color: #fff;
  isolation: isolate;
  display: flex;

  /* scrim opacities */
  --scrim-a: 0.82;      /* bottom edge */
  --scrim-b: 0.42;      /* mid */
  --scrim-stop: 68%;    /* where it clears */
}
.hero--video .hero-stage { position: absolute; inset: 0; z-index: 0; }
.hero--video .hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;   /* anchor top — crop the bottom, not the heads */
  display: block;
}
/* bottom-up scrim + a localized darkening pocket under the bottom-left copy */
.hero--video::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    /* left-column darkening under the copy — keeps the right-side video clear */
    linear-gradient(to right,
      rgba(20,17,15, 0.52) 0%,
      rgba(20,17,15, 0.20) 40%,
      rgba(20,17,15, 0) 64%),
    /* bottom-weighted scrim (ported from pet) */
    linear-gradient(to top,
      rgba(20,17,15, var(--scrim-a)) 0%,
      rgba(20,17,15, var(--scrim-b)) 35%,
      rgba(20,17,15, 0) var(--scrim-stop));
}

.hero--video .hero-inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: calc(var(--sd-container) + 60px);   /* 1170 content + gutters */
  margin: 0 auto;
  padding: 128px 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;      /* anchor copy to the bottom band */
}
.hero--video .hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

/* copy — bottom-left, left aligned */
.hero--video .hero-content {
  position: static;
  text-align: left;
  margin: 0;
  max-width: 900px;
  padding-top: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero--video .hero-title {
  margin: 0 0 18px;
  font-size: clamp(42px, 5.8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero--video .hero-sub {
  margin: 0 0 28px;
  max-width: 56ch;  /* fits the longer first line so the <br> yields exactly two lines */
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255,255,255,0.92);
}
.hero--video .hero-ctas { justify-content: flex-start; margin-bottom: 18px; }

/* hero proof points under the CTAs */
.hero-points {
  list-style: none;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px 0;
  margin: 4px 0 0; padding: 0;
  font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,0.84);
}
.hero-points li { display: inline-flex; align-items: center; }
.hero-points li:not(:last-child)::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.42);
  margin: 0 12px;
}

@media (max-width: 860px) {
  .hero--video { min-height: 92vh; }
  .hero--video .hero-inner { padding: 112px 22px 48px; }
  .hero--video .hero-foot {
    flex-direction: column; align-items: flex-start;
    text-align: left; gap: 34px;
  }
  .hero--video .hero-content { text-align: left; max-width: none; }
  .hero--video .hero-sub { margin-left: 0; margin-right: 0; }
}
@media (max-width: 640px) {
  /* title floor (42px) makes the longest word overflow as a flex item;
     cap the size + let the copy shrink */
  .hero--video .hero-title { font-size: clamp(30px, 8.6vw, 40px); }
  .hero--video .hero-content { min-width: 0; }
}

/* ── Device duo — an --sd-island card holding a desktop + overlapping
       phone frame. No longer in the hero (which is now a video banner);
       the Continuity-of-care section reuses this component, with its own
       transparent-card override inline in index.html. ── */
.hero-product {
  position: relative;
  z-index: 1;
  background: var(--sd-island);
  border: 1px solid rgba(160,166,196,0.20);
  border-radius: 22px;
  padding: 36px 30px 46px;
  box-shadow: var(--sd-shadow-xl-indigo);
}
.hero-product::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(420px 260px at 88% 6%, rgba(255,255,255,0.08), transparent 70%);
}
.hp-tag {
  position: absolute; top: -14px; left: 26px; z-index: 8;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--sd-primary);
  padding: 5px 11px; border-radius: 9999px;
  box-shadow: 0 8px 18px rgba(225,84,57,0.35);
}
.hp-desktop {
  position: relative; z-index: 1;
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 54px -22px rgba(8,9,20,0.55);
}
.hp-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f5f6f6; }
.hp-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cdd1d4; display: block; }
.hp-bar em { margin-left: 10px; font-style: normal; font-size: 11.5px; color: #657075; }
.hp-shot { position: relative; aspect-ratio: 16/10; background: #eef0f3; }
.hp-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

.hp-phone {
  position: absolute; left: -28px; bottom: -38px; z-index: 6;
  width: 132px;
  background: linear-gradient(135deg,#2c2f32,#16181b 60%,#000);
  border-radius: 27px; padding: 5px;
  box-shadow: 0 34px 58px -20px rgba(0,0,0,0.55);
}
.hp-screen { position: relative; border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 393/852; }
.hp-screen img { position: absolute; top: 6.5%; left: 0; right: 0; bottom: 0; object-fit: cover; object-position: top center; display: block; }
.hp-island { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 38px; height: 11px; background: #000; border-radius: 7px; z-index: 3; }
.hp-home { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); width: 34%; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.7); z-index: 3; }

/* ════════════════════════════════════════════════════════════════
   Home · "How it works" — light 3-up card row.
   Card art: 01 device duo + 03 checkout use real storefront
   screenshots in .ipx frames (markup + frame styles in index.html);
   02 share-ring is drawn here. Dead CSS from the earlier CSS-drawn
   mockups (bench-phone, checkout-card, .feature) removed 2026-06-05.
   ════════════════════════════════════════════════════════════════ */

.hiw2-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.hiw2-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--sd-border);
  border-radius: 20px;
  padding: 28px 26px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(44,47,50,0.04);
  transition: transform var(--sd-dur-base) var(--sd-ease),
              box-shadow var(--sd-dur-base) var(--sd-ease);
}
.hiw2-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(44,47,50,0.12);
}
.hiw2-badge {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--sd-neutral-950);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sd-font-display);
  font-weight: 700; font-size: 16px;
  margin-bottom: 16px;
  flex: none;
}
.hiw2-card h3 {
  font-family: var(--sd-font-display);
  font-size: 21px; font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.2;
  margin: 0 0 10px;
  color: var(--sd-neutral-950);
}
.hiw2-card > p {
  font-size: 16px; line-height: 1.55;
  color: var(--sd-fg-muted);
  margin: 0 0 20px;
  max-width: 44ch;
}

/* Visual region — bleeds to the card edges, art anchors to the bottom */
.hiw2-viz {
  margin-top: auto;
  margin-left: -26px;
  margin-right: -26px;
  position: relative;
  flex: 1;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

/* ─── 01 — Storefront (device duo: real screenshots in .ipx frames,
       markup + frame styles live in index.html) ──────────────────── */
.hiw2-viz.art-storefront { min-height: 290px; }

/* ─── 02 — Share ring (feature centerpiece) ──────────────────────── */
.hiw2-viz.art-share {
  align-items: center;
  min-height: 290px;
}
.hiw2-viz .share-ring {
  position: relative;
  width: 256px;
  height: 256px;
  margin: 0 auto;
}
.share-ring::before {
  content: "";
  position: absolute;
  inset: 30px;
  border: 1.5px dashed var(--sd-neutral-200);
  border-radius: 50%;
}
.share-ring::after {
  content: "";
  position: absolute;
  inset: 60px;
  border: 1.5px dashed var(--sd-primary-200, #ffd2c9);
  border-radius: 50%;
  opacity: 0.6;
}
.share-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff 0%, #fef4ee 100%);
  border: 1px solid var(--sd-primary-200, #ffd2c9);
  box-shadow: 0 10px 28px rgba(225,84,57,0.18);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  z-index: 2;
}
.share-center i { width: 22px; height: 22px; color: var(--sd-primary); }
.share-center span { font-size: 9.5px; font-weight: 700; color: var(--sd-neutral-950); letter-spacing: 0.02em; }
.share-pip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--sd-border);
  border-radius: 9999px;
  padding: 7px 12px 7px 8px;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 8px 18px rgba(44,47,50,0.08);
  font-size: 10.5px; font-weight: 600;
  color: var(--sd-neutral-950);
  white-space: nowrap;
}
.share-pip i {
  width: 14px; height: 14px;
  color: var(--sd-primary);
  flex: none;
}
.pip-ig   { top: -4px;   left: 50%; transform: translateX(-50%); }
.pip-link { top: 32%;    right: -16px; }
.pip-qr   { bottom: 4px; right: 6px; }
.pip-sms  { bottom: 4px; left: 6px; }
.pip-web  { top: 32%;    left: -16px; }

/* ─── 03 — Unified checkout ──────────────────────────────────────── */
.hiw2-viz.art-checkout {
  align-items: flex-end;
  padding: 0 8px 18px;
}
/* ─── Reveal stagger + responsive ────────────────────────────────── */
.hiw2-card.reveal { transition-delay: 0s; }
.hiw2-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.hiw2-card.reveal:nth-child(3) { transition-delay: 0.16s; }

@media (max-width: 1024px) {
  .hiw2-row { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
