/* Landing hub — Airstream-homepage formula: one full-screen cinematic panorama with a
   living pan/zoom drift, faded for contrast, transparent chrome, and large text-first
   CTAs visible without scrolling. Consumes tokens.css + build.css. */

body.hub-body { background: var(--pr-bone); }

/* transparent chrome floating over the hero */
.pr-topbar.hub-clear {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  margin: 0; background: linear-gradient(rgba(15, 18, 16, 0.45), rgba(15, 18, 16, 0));
  color: var(--pr-bone); padding-top: 1.1rem;
}
.hub-clear .pr-brand { color: var(--pr-bone); }
.hub-clear .pr-menu-btn span { background: var(--pr-bone); }
.pr-topbar-spacer { width: 34px; min-width: 34px; }
.pr-brand { text-decoration: none; }

/* ── Full-screen hero with living pan/zoom ── */
.hub-hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub-hero::before {
  content: ""; position: absolute; top: -4%; bottom: -4%; left: 0;
  width: 118%; /* oversized panel: cover fills it, the animation drifts + breathes */
  background-image: url("/assets/hero-landing.jpg?v=1b42216");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  animation: hub-live 34s ease-in-out infinite alternate;
  will-change: transform;
}
/* pan across the panorama while breathing in and out — tuned to be clearly noticeable */
@keyframes hub-live {
  0%   { transform: translateX(0) scale(1); }
  45%  { transform: translateX(-8%) scale(1.06); }
  100% { transform: translateX(-15%) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) { .hub-hero::before { animation: none; transform: translateX(-7.5%); } }
/* phones get a dedicated portrait crop (the 21:9 panorama over-zooms on tall screens) */
@media (max-width: 700px) {
  .hub-hero::before { background-image: url("/assets/hero-landing-mobile.jpg?v=1b42216"); background-position: center; width: 104%; animation-name: hub-live-m; }
  /* gentler drift sized to the slimmer panel — never exposes the page behind it */
  @media (prefers-reduced-motion: reduce) { .hub-hero::before { transform: translateX(-1.5%); } }
}
@keyframes hub-live-m {
  0%   { transform: translateX(0) scale(1); }
  45%  { transform: translateX(-1.5%) scale(1.05); }
  100% { transform: translateX(-3%) scale(1.02); }
}
/* the Airstream fade: gentle at the top, confident behind the CTAs */
.hub-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 18, 16, 0.42) 0%, rgba(15, 18, 16, 0.30) 48%, rgba(15, 18, 16, 0.55) 78%, rgba(15, 18, 16, 0.66) 100%);
}

.hub-hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 980px;
  padding: 5.5rem clamp(1rem, 4vw, 2rem) clamp(2rem, 6vh, 4rem);
  color: var(--pr-bone);
  text-align: center;
}
.hub-eyebrow { font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: var(--pr-track-label); margin: 0 0 0.7rem; opacity: 0.92; }
.hub-hero h1 { margin: 0 0 clamp(1.4rem, 4vh, 2.4rem); font-weight: 300; letter-spacing: -0.01em; font-size: clamp(2rem, 5.6vw, 3.6rem); line-height: 1.12; text-shadow: 0 2px 18px rgba(0,0,0,0.45); }
.hub-hero h1 b { font-weight: 700; }

/* large text-first CTAs — the interface itself */
.hub-ctas { display: grid; gap: 0.85rem; justify-content: center; justify-items: center; }
.hub-cta {
  display: flex; align-items: center; justify-content: center;
  width: min(420px, 86vw);
  padding: 1.05rem 1.6rem;
  border-radius: 999px;
  font-weight: 800; font-size: 0.92rem; text-transform: uppercase; letter-spacing: var(--pr-track-label);
  text-decoration: none; color: var(--pr-bone);
  border: 1.5px solid rgba(239, 237, 235, 0.75);
  background: rgba(15, 18, 16, 0.22);
  backdrop-filter: blur(3px);
  transition: background 0.15s var(--pr-ease), transform 0.1s var(--pr-ease), color 0.15s;
}
.hub-cta:hover { background: rgba(239, 237, 235, 0.18); transform: translateY(-1px); }
.hub-cta.primary { background: var(--pr-bone); color: var(--pr-ink); border-color: var(--pr-bone); }
.hub-cta.primary:hover { background: #fff; }
@media (min-width: 760px) {
  /* primary alone on row one, the three supporting doors beneath */
  .hub-ctas { grid-template-columns: repeat(3, minmax(230px, max-content)); gap: 0.9rem; }
  .hub-cta { width: auto; min-width: 230px; padding: 1.15rem 1.9rem; font-size: 0.95rem; }
  .hub-cta.primary { grid-column: 1 / -1; justify-self: center; min-width: 520px; margin-bottom: 0.2rem; }
}

/* ── Below the fold ── */
.hub-main { max-width: 1280px; margin: 0 auto; padding: clamp(1.4rem, 3vw, 2.4rem); }
.hub-how h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 1.1rem; }
.hub-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pr-gap); }
@media (max-width: 860px) { .hub-steps { grid-template-columns: 1fr; } }
.hub-step { background: #fff; border-radius: var(--pr-radius); padding: 1.2rem 1.3rem 1.3rem; box-shadow: var(--pr-shadow-sm); display: flex; flex-direction: column; gap: 0.3rem; }
.hub-step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--pr-forest); color: var(--pr-bone); font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; margin-bottom: 0.3rem; }
.hub-step b { font-size: 1rem; }
.hub-step span:not(.hub-step-n) { color: var(--pr-slate); font-size: 0.9rem; line-height: 1.45; }

/* ── Scroll cue: desktop-only "How it works" at the hero's bottom-center ── */
.hub-scrollcue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: none; align-items: center; gap: 0.6rem;
  cursor: pointer;
  color: var(--pr-bone); font: inherit; font-size: 0.88rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: var(--pr-track-label);
  padding: 0.85rem 1.7rem; border-radius: 999px;
  border: 1.5px solid rgba(239, 237, 235, 0.75);
  background: rgba(15, 18, 16, 0.30);
  backdrop-filter: blur(3px);
  transition: background 0.15s var(--pr-ease), color 0.15s, transform 0.1s var(--pr-ease);
}
.hub-scrollcue:hover { background: var(--pr-bone); color: var(--pr-ink); transform: translateX(-50%) translateY(-1px); }
.hub-scrollcue-chev { display: inline-block; animation: cue-bob 2.2s ease-in-out infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .hub-scrollcue-chev { animation: none; } }
@media (min-width: 760px) { .hub-scrollcue { display: inline-flex; } }

/* four-up steps row (3 steps + the Plus wishlist card) */
@media (min-width: 861px) { .hub-steps.four { grid-template-columns: repeat(4, 1fr); } }
.hub-step-n.plus { background: var(--pr-bone); color: var(--pr-forest); border: 2px solid var(--pr-forest); font-size: 1.1rem; }

/* wishlist card is a real door into the quiz */
.hub-step-link { text-decoration: none; color: inherit; transition: transform 0.15s var(--pr-ease), box-shadow 0.15s var(--pr-ease); }
.hub-step-link:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(51, 49, 46, 0.14); }
.hub-step-cta { margin-top: 0.4rem; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pr-forest) !important; }
