/**
 * Zoop home — faithful port of the approved v5 design (build/design/home-v5).
 * Scoped under .zoop-home so nothing leaks onto article/legal templates.
 * Tokens (--ivory/--peri/...) are defined in zoop.css, mapped to theme.json palette
 * (single hex source — no hardcoded color here). Content is visible without JS;
 * float/hover are CSS-only enhancements, disabled under reduced-motion.
 */

/* The frosted nav is designed to float OVER the hero (not sit above it in an ivory strip).
   The site header is sticky and reserves ~90px; pull the home <main> up under it (on main's own
   margin — a first-child margin just collapses) so the hero wash flows to the very top of the page.
   --zoop-header-h is defined on .zoop-home-main and inherits down to the hero padding + scatter offset.
   Home-scoped: article/legal templates keep the header reserving space. */
.zoop-home-main { --zoop-header-h: 90px; margin-top: calc(-1 * var(--zoop-header-h)); }
.zoop-home { background: var(--ivory); color: var(--ink); }
.zoop-home .wrap      { max-width: var(--max); margin: 0 auto; padding-inline: var(--page-x); }
.zoop-home .wrap-wide { max-width: var(--max-wide); margin: 0 auto; padding-inline: var(--page-x); }

.zoop-home h1, .zoop-home h2, .zoop-home h3 {
  font-family: var(--display); font-weight: 600; line-height: 1.06;
  letter-spacing: -0.015em; font-optical-sizing: auto;
}
.zoop-home .eyebrow { font-family: var(--body); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.zoop-home .sec-label { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.74rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.zoop-home .sec-label .ln { width: 26px; height: 6px; border-radius: 3px; background: var(--peach); }
.zoop-home .mark { position: relative; white-space: nowrap; font-style: italic; }
.zoop-home .mark::after { content: ""; position: absolute; left: -0.05em; right: -0.05em; bottom: 0.05em;
  height: 0.34em; z-index: -1; background: var(--lemon); border-radius: 3px; }

/* buttons */
.zoop-home .btn { font-family: var(--body); font-weight: 700; font-size: 0.94rem; border-radius: var(--r-pill);
  padding: 0.7rem 1.4rem; cursor: pointer; border: 0; transition: transform .12s var(--pop), box-shadow .2s, background .2s;
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; white-space: nowrap; }
.zoop-home .btn:hover { text-decoration: none; }
.zoop-home .btn .chev { width: 15px; height: 15px; }
.zoop-home .btn-primary { background: var(--peri); color: var(--ink); box-shadow: 0 4px 14px rgba(153,142,244,0.32); }
.zoop-home .btn-primary:hover { transform: translateY(-2px); background: var(--peri-deep); color: #fff;
  box-shadow: 0 8px 20px rgba(153,142,244,0.42); }
.zoop-home .btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.zoop-home .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ============ HERO ============ */
.zoop-home .hero { position: relative; overflow: hidden;
  padding-top: calc(var(--zoop-header-h) + clamp(2rem, 4vw, 3.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem); }
.zoop-home .hero-wash { position: absolute; inset: -10% -5% auto -5%; height: 130%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 52% at 80% 16%, rgba(188,180,255,0.40), transparent 70%),
    radial-gradient(34% 48% at 62% 86%, rgba(255,190,152,0.34), transparent 72%),
    radial-gradient(40% 50% at 14% 36%, rgba(255,255,255,0.65), transparent 72%); }
.zoop-home .hero-grid { position: relative; z-index: 2; display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); gap: 2rem; align-items: center;
  min-height: clamp(420px, 54vw, 580px); }
.zoop-home .hero-copy { max-width: 34rem; }
.zoop-home .hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.7rem); font-weight: 600; letter-spacing: -0.018em; line-height: 1.02; }
.zoop-home .hero .deck { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ink-muted); max-width: 40ch; }
.zoop-home .hero-cta { margin-top: 2rem; display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* hero visual scatter — real Ivory Studio category stills, no fabricated claims.
   v5-faithful: an absolute full-width layer centered over the hero (NOT a grid cell),
   so cards float across the right half without clipping against .hero{overflow:hidden}. */
.zoop-home .hero-scatter { position: absolute; top: var(--zoop-header-h); bottom: 0; left: 50%; transform: translateX(-50%);
  width: var(--max-wide); max-width: 100%; z-index: 1; pointer-events: none; }
.zoop-home .scard { position: absolute; width: var(--w, 200px); background: var(--surface);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card);
  animation: zfloat var(--d, 9s) ease-in-out infinite; animation-delay: var(--fd, 0s); }
.zoop-home .scard img { width: 100%; height: var(--h, 150px); object-fit: cover; display: block; }
.zoop-home .scard .tag { position: absolute; top: 0.65rem; left: 0.65rem; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--peach);
  padding: 0.24rem 0.55rem; border-radius: var(--r-pill); }
.zoop-home .s1 { top: 6%;   right: 1.5%; --w: 224px; --h: 162px; --d: 8.5s; --fd: 0s;   transform: rotate(2.4deg); }
.zoop-home .s2 { top: 31%;  right: 19%;  --w: 206px; --h: 148px; --d: 10s;  --fd: .6s;  transform: rotate(-1.8deg); }
.zoop-home .s3 { bottom: 5%; right: 3%;  --w: 192px; --h: 138px; --d: 9.3s; --fd: 1.1s; transform: rotate(3deg); }
.zoop-home .s4 { top: 3%;   right: 31%;  --w: 152px; --h: 112px; --d: 9.8s; --fd: .35s; transform: rotate(-3deg); }
@keyframes zfloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* ============ CATEGORY BENTO ============ */
.zoop-home .cats { padding-block: clamp(3rem, 6vw, 5rem); }
.zoop-home .cats-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  margin-bottom: 2rem; flex-wrap: wrap; }
.zoop-home .cats-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-top: 0.7rem; }
.zoop-home .cats-head p { color: var(--ink-muted); margin-top: 0.5rem; max-width: 46ch; }
.zoop-home .cat-bento { display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(168px, 14.5vw, 212px); gap: clamp(0.7rem, 1.1vw, 1rem);
  grid-template-areas: "travel travel tech food" "travel travel health home" "cars parent money cta"; }
.zoop-home .bcell { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--cream);
  box-shadow: var(--shadow); display: block; color: var(--ink); transition: transform .3s var(--pop), box-shadow .3s; }
.zoop-home .bcell:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* The stills carry a baked-in ivory backdrop, so the image COVERS the cell (its backdrop becomes the
   card fill — no empty gaps, no tint clash). object-position keeps the objects low so the clean ivory
   top doubles as the label zone (design intent = clean top zone, NO scrim). */
.zoop-home .bcell img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 82%; transition: transform .5s var(--rise); }
.zoop-home .bcell:hover img { transform: scale(1.04); }
.zoop-home .b-travel img { object-position: center 66%; }
.zoop-home .bcell .lab { position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding: 1rem 1.1rem; }
.zoop-home .bcell .lab h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem;
  letter-spacing: -0.01em; color: var(--ink); line-height: 1.05; }
.zoop-home .b-travel .lab h3 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); }
.zoop-home .bcell .lab .n { display: block; margin-top: 0.18rem; font-size: 0.78rem; font-weight: 600;
  color: var(--ink-muted); font-family: var(--body); }
.zoop-home .bcell .chev { position: absolute; bottom: 0.8rem; right: 0.8rem; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(255,255,255,0.7); backdrop-filter: blur(5px); display: grid;
  place-items: center; color: var(--ink); transition: background .25s, transform .25s; }
.zoop-home .bcell:hover .chev { background: var(--peri); transform: translate(2px,-2px); }
.zoop-home .bcell .chev svg { width: 16px; height: 16px; }
.zoop-home .b-travel { grid-area: travel; } .zoop-home .b-tech { grid-area: tech; } .zoop-home .b-food { grid-area: food; }
.zoop-home .b-health { grid-area: health; } .zoop-home .b-home { grid-area: home; } .zoop-home .b-cars { grid-area: cars; }
.zoop-home .b-parent { grid-area: parent; } .zoop-home .b-money { grid-area: money; }
.zoop-home .b-cta { grid-area: cta; background: var(--peri); display: grid; place-items: center; text-align: center; padding: 1.2rem; }
.zoop-home .b-cta h3 { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--ink); line-height: 1.15; }
.zoop-home .b-cta .sub { margin-top: 0.5rem; font-size: 0.82rem; font-weight: 600; color: rgba(20,20,20,0.66);
  display: inline-flex; align-items: center; gap: 0.35rem; }
.zoop-home .b-cta .sub svg { width: 15px; height: 15px; }

/* ============ HONEST BAND ============ */
.zoop-home .honest { padding-block: clamp(3.5rem, 7vw, 6rem); }
.zoop-home .honest-card { background: var(--ink); color: var(--ivory); border-radius: var(--r-xl);
  padding: clamp(2.5rem, 5vw, 4.5rem); position: relative; overflow: hidden; }
.zoop-home .honest-card::before { content: ""; position: absolute; width: 55%; height: 175%; right: -8%; top: -34%;
  background: radial-gradient(closest-side, rgba(255,190,152,0.30), transparent 70%); }
.zoop-home .honest-card::after { content: ""; position: absolute; width: 42%; height: 150%; left: -6%; bottom: -40%;
  background: radial-gradient(closest-side, rgba(188,180,255,0.22), transparent 72%); }
.zoop-home .honest-card .inner { position: relative; z-index: 1; }
.zoop-home .honest-card .eyebrow { color: rgba(255,254,236,0.55); }
.zoop-home .honest-card h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 600; margin-top: 1rem;
  max-width: 20ch; letter-spacing: -0.02em; }
.zoop-home .honest-card h2 .l { color: var(--peach); font-style: italic; }
.zoop-home .honest-card p { margin-top: 1.3rem; color: rgba(255,254,236,0.82); max-width: 52ch; font-size: 1.05rem; }
.zoop-home .honest-card .btn { margin-top: 2rem; }

/* ============ NEWSLETTER ============ */
.zoop-home .news { padding-bottom: clamp(4rem, 7vw, 6.5rem); }
.zoop-home .news-card { background: var(--peach); border-radius: var(--r-xl); padding: clamp(2.2rem, 4.5vw, 3.8rem);
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.zoop-home .news-card::after { content: ""; position: absolute; width: 340px; height: 340px; right: -70px; bottom: -130px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(20,20,20,0.08), transparent 70%); }
.zoop-home .news-card .eyebrow { color: var(--ink); opacity: 0.6; }
.zoop-home .news-card h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-top: 0.7rem; max-width: 20ch;
  color: var(--ink); position: relative; z-index: 1; }
.zoop-home .news-card p { color: rgba(20,20,20,0.78); margin-top: 0.7rem; max-width: 44ch; position: relative; z-index: 1; }
.zoop-home .news-form { display: flex; gap: 0.5rem; background: var(--surface); border-radius: var(--r-pill);
  padding: 0.42rem 0.42rem 0.42rem 1.25rem; align-items: center; box-shadow: 0 6px 18px rgba(20,20,20,0.14);
  position: relative; z-index: 1; }
.zoop-home .news-form input { border: 0; outline: 0; background: transparent; font-family: var(--body);
  font-size: 1rem; min-width: 220px; color: var(--ink); }
.zoop-home .news-form input::placeholder { color: var(--ink-faint); }
.zoop-home .news-card .btn-primary { background: var(--ink); color: var(--ivory); box-shadow: none; }
.zoop-home .news-card .btn-primary:hover { background: #000; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,0.25); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1040px) {
  .zoop-home .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .zoop-home .hero-copy { max-width: none; }
  .zoop-home .hero-scatter { display: none; }
}
@media (max-width: 940px) {
  .zoop-home .cat-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(160px, 38vw, 200px); grid-template-areas: none; }
  .zoop-home .cat-bento .bcell { grid-area: auto !important; }
  .zoop-home .b-travel { grid-column: span 2; }
  .zoop-home .news-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .zoop-home .cat-bento { grid-template-columns: 1fr 1fr; }
  .zoop-home .hero h1 { font-size: 2.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .zoop-home .scard { animation: none !important; }
  .zoop-home *, .zoop-home *::before, .zoop-home *::after { transition: none !important; }
}
