/* v5 additions on top of /v4/styles.css — the combined Family + Places site.
   Only what v4's sheet doesn't already have: the hero path pills, the
   Intercom section, and the two-product collection duo. */

/* ── Hero: compact audience path pills (keep the video visible) ── */
.hero-paths { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero-path {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 11px 18px; border-radius: 999px; text-decoration: none;
  background: rgba(10, 14, 20, 0.42);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.hero-path:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(10, 14, 20, 0.58);
}
.hp-kicker {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: #6fd0f2; white-space: nowrap;
}
.hp-cta { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; }
@media (max-width: 480px) {
  .hero-paths { flex-direction: column; align-items: flex-start; }
}

/* ── Intercom section (mirrors the AI section's two-column rhythm) ── */
.intercom-grid {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px); align-items: center;
}
.intercom-art { text-align: center; }
.intercom-art img {
  max-height: 440px; width: auto; max-width: 100%;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.3));
}
.intercom-ctas { display: flex; align-items: center; gap: 22px; margin-top: 24px; flex-wrap: wrap; }
.family-more { color: var(--cyan); font-weight: 600; text-decoration: none; }
.family-more:hover { text-decoration: underline; }
.intercom-loc-head { margin-top: 54px; margin-bottom: 8px; }

/* ── Intercom locations: uniform 3-column card grid (replaced the carousel).
   Every tile is the same size: a small container card with the panorama set
   inside on its own radius and the label beneath. 9 tiles = a clean 3x3. ── */
.loc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 16px); margin-top: 26px;
}
.loc-tile {
  margin: 0; padding: 10px 10px 12px; border-radius: 16px;
  background: var(--bg);
  border: 1px solid rgba(120, 130, 150, 0.16);
  box-shadow: 0 14px 30px -22px rgba(10, 20, 40, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
html.dark .loc-tile { border-color: rgba(255, 255, 255, 0.1); }
.loc-tile img {
  display: block; width: 100%; aspect-ratio: 1.6 / 1; object-fit: cover;
  border-radius: 10px;
}
.loc-tile figcaption {
  margin-top: 10px; text-align: center; color: var(--muted);
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.loc-tile:hover { transform: translateY(-2px); border-color: rgba(120, 130, 150, 0.34); }
html.dark .loc-tile:hover { border-color: rgba(255, 255, 255, 0.22); }
@media (max-width: 900px) { .loc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .loc-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .loc-tile { transition: none; } }
@media (max-width: 800px) {
  .intercom-grid { grid-template-columns: 1fr; }
  .intercom-art img { max-height: 320px; }
}

/* ── Collection: the two products as matched panels ── */
.product-duo {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 30px); align-items: stretch;
}
.prod-panel {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(24px, 4vw, 40px) clamp(18px, 3vw, 34px);
  border-radius: 26px; background: var(--bg);
  border: 1px solid rgba(120, 130, 150, 0.16);
  box-shadow: 0 20px 44px -24px rgba(10, 20, 40, 0.35);
}
html.dark .prod-panel { border-color: rgba(255, 255, 255, 0.1); }
.prod-panel h3 { margin: 18px 0 8px; font-size: clamp(20px, 2.4vw, 25px); }
.prod-blurb { margin: 0 0 16px; max-width: 400px; color: var(--muted); line-height: 1.6; font-size: 15px; }
/* The interactive spinner and the intercom render occupy the same visual slot. */
.prod-panel .kids-shot { min-height: 440px; justify-content: center; }
.prod-art {
  min-height: 440px; display: flex; align-items: center; justify-content: center;
}
.prod-art img {
  max-height: 400px; width: auto; max-width: 100%;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.28));
}
.prod-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.prod-chip {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid rgba(120, 130, 150, 0.3);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
html.dark .prod-chip { border-color: rgba(255, 255, 255, 0.18); }
.duo-foot { text-align: center; margin-top: 30px; }
.ship-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.duo-foot .kids-price { max-width: 560px; margin: 0 auto 18px; }
@media (max-width: 800px) {
  .product-duo { grid-template-columns: 1fr; }
  .prod-panel .kids-shot, .prod-art { min-height: 0; }
  .prod-art img { max-height: 300px; }
}

/* ── Hero crossfade: two stacked clips; .is-front is the visible one ── */
.hero-card .hero-bg { opacity: 0; transition: opacity 0.9s ease; }
.hero-card .hero-bg.is-front { opacity: 1; }

/* ── Insiders-list capture modal ──
   Theme-aware overlay + card. Hidden until JS un-hides and adds .is-open.
   Mobile-first: full-width card on small screens, centered dialog on larger. */
.ins-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(6, 10, 16, 0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.22s ease;
}
/* Author `display:flex` above beats the UA [hidden]{display:none}, so restore
   it explicitly, or the invisible overlay covers the page and eats all clicks. */
.ins-overlay[hidden] { display: none !important; }
.ins-overlay.is-open { opacity: 1; }
.ins-modal {
  position: relative; width: 100%; max-width: 420px;
  background: var(--bg); color: var(--ink);
  border: 1px solid rgba(120, 130, 150, 0.16);
  border-radius: 22px; padding: 30px 26px 22px;
  box-shadow: 0 30px 70px -20px rgba(4, 10, 22, 0.6);
  transform: translateY(12px) scale(0.98); transition: transform 0.22s ease;
  text-align: center;
}
html.dark .ins-modal { border-color: rgba(255, 255, 255, 0.1); }
.ins-overlay.is-open .ins-modal { transform: translateY(0) scale(1); }
.ins-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.ins-close:hover { background: rgba(120, 130, 150, 0.14); color: var(--ink); }
.ins-eyebrow {
  margin: 0 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cyan);
}
.ins-title { margin: 0 0 8px; font-size: 23px; font-weight: 800; line-height: 1.2; }
.ins-sub { margin: 0 0 18px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ins-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.ins-input {
  width: 100%; box-sizing: border-box; padding: 13px 15px; font-size: 15px;
  border-radius: 12px; border: 1px solid rgba(120, 130, 150, 0.32);
  background: var(--bg); color: var(--ink);
}
.ins-input:focus { outline: none; border-color: var(--cyan); }
.ins-form .btn { width: 100%; justify-content: center; text-align: center; }
/* .btn sets its own display, which beats the UA [hidden]{display:none}; restore
   it so the Kickstarter button actually hides in discount mode. */
.ins-ks[hidden] { display: none !important; }
.ins-done { margin: 16px 0 0; font-size: 15px; font-weight: 700; color: var(--cyan); }
.ins-fine { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); }
@media (max-width: 480px) {
  .ins-overlay { padding: 0; align-items: flex-end; }
  .ins-modal { max-width: none; border-radius: 22px 22px 0 0; padding: 28px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ins-overlay, .ins-modal { transition: none; }
}

/* Mobile-only repeat of the hero supporting line, below the video (phones
   hide .hero-sub inside the card so the film stays unobstructed). */
.hero-sub-mobile { display: none; }
@media (max-width: 600px) {
  .hero-sub-mobile {
    display: block;
    margin: 16px auto 0;
    max-width: 640px;
    padding: 0 22px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--ink-2);
  }
}

/* Larger hero tagline ("Introducing PhoneTag.") on phones; desktop keeps the
   shared clamp() size from v4/styles.css. */
@media (max-width: 600px) {
  .hero-tagline { font-size: 21px; }
}
