/* =========================================================
   Home hero copy — eyebrow, two-tone title, lead, two buttons, topic chips
   (overrides the original Figma text block in styles.css)
   ========================================================= */
.hero__content.hh {
  top: calc(150 * var(--u));
  width: min(640px, calc(100% - 2 * var(--gutter)));
  gap: 0;
}

/* eyebrow pill */
.hh__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 16px;
  border-radius: 999px;
  font-size: max(12.5px, calc(14 * var(--u))); font-weight: 500;
  color: #f1f1f1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,214,106,.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hh__eyebrow i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #f5aa03; box-shadow: 0 0 0 4px rgba(245,170,3,.18), 0 0 12px #f5aa03;
  animation: hh-pulse 2.4s ease-in-out infinite;
}
@keyframes hh-pulse { 50% { box-shadow: 0 0 0 7px rgba(245,170,3,0), 0 0 12px #f5aa03; } }

/* title: white line + gold line */
.hh__title {
  margin-top: max(16px, calc(22 * var(--u)));
  font-size: max(38px, calc(64 * var(--u)));
  line-height: 1.22;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.hh__gold {
  display: block;
  margin-top: .08em;
  font-size: .8em;
  background: linear-gradient(180deg, #ffd34f 0%, #f5aa03 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .12em;
}

/* lead */
.hh__lead {
  margin-top: max(12px, calc(16 * var(--u)));
  max-width: 520px;
  font-size: max(15px, calc(18 * var(--u)));
  line-height: 1.9;
  color: #b4b4b8;
  font-weight: 300;
}

/* buttons */
.hh__actions { margin-top: max(22px, calc(30 * var(--u))); display: flex; flex-wrap: wrap; gap: 12px; }
.hh__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: max(50px, calc(56 * var(--u)));
  padding-inline: max(24px, calc(30 * var(--u)));
  border-radius: 999px;
  font-size: max(15px, calc(17 * var(--u))); font-weight: 600;
  white-space: nowrap;
  transition: transform .4s var(--ease-spring, ease), box-shadow .4s, background .3s, border-color .3s;
}
.hh__btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-spring, ease); }
.hh__btn--gold {
  color: #0b0b0b;
  background: linear-gradient(180deg, #ffd24d 0%, #f5aa03 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 28px rgba(245,170,3,.28);
}
.hh__btn--gold:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 16px 36px rgba(245,170,3,.42); }
.hh__btn--gold:hover svg { transform: translateX(-4px); }
.hh__btn--ghost {
  color: #f1f1f1; font-weight: 500;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hh__btn--ghost:hover { border-color: rgba(255,214,106,.55); background: rgba(255,214,106,.07); }

/* topic chips (moved from the absolute row at the bottom) */
.topics.hh__topics {
  position: static;
  margin-top: max(26px, calc(36 * var(--u)));
  padding-top: max(18px, calc(22 * var(--u)));
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: max(13px, calc(14.5 * var(--u)));
  color: #d9d9dc;
}
.topics.hh__topics li {
  width: auto !important;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.topics.hh__topics li::before { content: none !important; }
.topics.hh__topics svg { width: 16px; height: 16px; fill: none; stroke: #f5aa03; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ultrawide */
@media (min-width: 1349px) {
  .hero__content.hh { top: min(calc(100vw * 150 / 1348), 200px); }
}

/* phones */
@media (max-width: 760px) {
  .hero__content.hh { top: auto; padding: 130px 20px 30px; width: auto; }
  .hh__title { font-size: 36px; }
  .hh__gold { font-size: .74em; }
  .hh__lead { font-size: 14.5px; max-width: 360px; }
  .hh__actions { width: 100%; }
  .hh__btn { flex: 1 1 auto; height: 48px; font-size: 15px; padding-inline: 18px; }
  .topics.hh__topics { padding-inline: 0; padding-bottom: 0; gap: 8px; }
  .topics.hh__topics li { padding: 7px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .hh__eyebrow i { animation: none; } }

/* tablets: keep the copy off the face in the photo */
@media (min-width: 761px) and (max-width: 1100px) {
  .hero__content.hh { width: min(440px, 52%); }
  .hh__title { font-size: 40px; }
  .hh__lead { font-size: 14.5px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .hero__shade { background: linear-gradient(270deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,0) 62%); }
}

/* =========================================================
   Keep the laptop look on every non-phone screen:
   the whole hero (photo + copy) scales as one picture, sized by
   the screen width, but never taller than the screen
   (minus the offer bar and the ticker under it).
   ========================================================= */
@media (min-width: 1101px) {
  .page-home .hero, body > .hero#home {
    --k: min(calc(100vw / 1348), calc((100svh - var(--bfbar-h, 0px) - 46px) / 680));
    height: max(560px, calc(680 * var(--k)));
    min-height: 0;
  }
  .hero__content.hh {
    --u: var(--k);
    top: calc(150 * var(--k));
    inset-inline-start: calc(96 * var(--k));
    width: calc(640 * var(--k));
  }
  .hh__lead { max-width: calc(520 * var(--k)); }
  .hh__eyebrow { padding: calc(7 * var(--k)) calc(14 * var(--k)) calc(7 * var(--k)) calc(16 * var(--k)); }
  .hh__actions { gap: calc(12 * var(--k)); }
  .hh__btn svg { width: calc(19 * var(--k)); height: calc(19 * var(--k)); }
  .topics.hh__topics { gap: calc(10 * var(--k)); }
  .topics.hh__topics li { padding: calc(8 * var(--k)) calc(14 * var(--k)); gap: calc(8 * var(--k)); }
  .topics.hh__topics svg { width: calc(16 * var(--k)); height: calc(16 * var(--k)); }
}

/* "why financial freedom" cars photo: new image, no stretching, soft edges */
.freedom__media img {
  object-fit: cover; object-position: center 62%;
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, #000 14%, #000 78%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(180deg, transparent 0%, #000 14%, #000 78%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
          mask-composite: intersect;
}

/* =========================================================
   Coins image + cars photo: no hard edges, no overlap
   ========================================================= */
/* coins: fade the left/right edges so wide screens never show a hard cut */
.coins__img {
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-composite: intersect;
}

/* cars: sit below the text (no negative pull), crop the empty floor, fade all edges */
.freedom__media {
  margin: max(18px, calc(28 * var(--u))) auto 0 !important;
  width: min(100%, 1400px);
  max-width: none;
  aspect-ratio: 2000 / 760;
}
.freedom__media img {
  position: absolute; inset: 0 !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important; height: 100% !important;
  object-fit: cover; object-position: center 70%;
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, #000 16%, #000 76%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image:
    linear-gradient(180deg, transparent 0%, #000 16%, #000 76%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
@media (max-width: 760px) {
  .freedom__media { width: 118%; margin-inline: -9% !important; aspect-ratio: 2000 / 820; }
  .coins__img {
    -webkit-mask-image:
      linear-gradient(180deg, transparent 0%, transparent 14%, rgba(0,0,0,.35) 30%, #000 48%, #000 72%, transparent 100%),
      linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
            mask-image:
      linear-gradient(180deg, transparent 0%, transparent 14%, rgba(0,0,0,.35) 30%, #000 48%, #000 72%, transparent 100%),
      linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  }
}

/* coins: the box itself clips the photo, so fade the box's sides (not just the photo) */
.coins {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.coins__img {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-over; mask-composite: add;
}
@media (max-width: 760px) {
  .coins { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%); }
  .coins__img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 14%, rgba(0,0,0,.35) 30%, #000 48%, #000 72%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, transparent 14%, rgba(0,0,0,.35) 30%, #000 48%, #000 72%, transparent 100%);
  }
}

/* hero copy: right edge on the content range, size capped so it never runs into the photo */
@media (min-width: 1101px) {
  .hero__content.hh {
    --u: min(var(--k), 1.1px);
    inset-inline-start: max(calc(96 * var(--k)), calc((100% - var(--wrap, 1155px)) / 2));
    width: calc(640 * min(var(--k), 1.1px));
  }
  .hh__lead { max-width: calc(520 * min(var(--k), 1.1px)); }
}

/* "why crypto" coins image: a bit smaller */
@media (min-width: 761px) {
  .coins { max-width: min(1300px, 100%); height: min(calc(540 * var(--u)), 540px); }
}

/* cars photo: a bit smaller, and the floor sinks into shadow */
@media (min-width: 761px) {
  .freedom__media { width: min(100%, 1150px); }
}
.freedom__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, #000 0%, rgba(0,0,0,.92) 14%, rgba(0,0,0,.55) 30%, rgba(0,0,0,0) 46%),
    radial-gradient(70% 55% at 50% 100%, rgba(0,0,0,.6), transparent 70%);
}

/* "quick ways to success" section: pitch black */
.resources { background: #000 !important; }
.resources::after { display: none !important; }

/* coins: darker at the top, behind the heading */
@media (min-width: 761px) {
  .coins__img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 8%, rgba(0,0,0,.25) 22%, rgba(0,0,0,.7) 36%, #000 50%, #000 70%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, transparent 8%, rgba(0,0,0,.25) 22%, rgba(0,0,0,.7) 36%, #000 50%, #000 70%, transparent 100%);
  }
}

/* coins: darker at the bottom too, behind "why financial freedom" */
@media (min-width: 761px) {
  .coins__img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 8%, rgba(0,0,0,.25) 22%, rgba(0,0,0,.7) 36%, #000 48%, #000 58%, rgba(0,0,0,.45) 72%, rgba(0,0,0,.12) 84%, transparent 94%);
            mask-image: linear-gradient(180deg, transparent 0%, transparent 8%, rgba(0,0,0,.25) 22%, rgba(0,0,0,.7) 36%, #000 48%, #000 58%, rgba(0,0,0,.45) 72%, rgba(0,0,0,.12) 84%, transparent 94%);
  }
}

/* phones: photo on top, copy starts below the face (no text over it) */
@media (max-width: 760px) {
  .hero { min-height: 0; justify-content: flex-start; }
  .hero__bg {
    height: min(118vw, 520px);
    bottom: auto;
    object-position: 26% 18%;
  }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 16%),
      linear-gradient(0deg, #000 0%, #000 calc(100% - min(118vw, 520px) + 10px), rgba(0,0,0,0) calc(100% - min(118vw, 520px) + 150px)) !important;
  }
  .hero__content.hh { padding-top: calc(min(118vw, 520px) - 70px); }
}

@media (max-width: 760px) { .hero__content.hh { padding-top: calc(min(118vw, 520px) - 115px); } }

/* topic chips link to the blog: whole chip is clickable */
.topics.hh__topics li { position: relative; transition: background .25s, border-color .25s; }
.topics.hh__topics li a { color: inherit; text-decoration: none; }
.topics.hh__topics li a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.topics.hh__topics li:hover { background: rgba(245,170,3,.08); border-color: rgba(245,170,3,.35); color: #fff; }
.topics.hh__topics li:has(a:focus-visible) { outline: 2px solid #f5aa03; outline-offset: 2px; }

/* direct buy: in-person (live) classes */
.hh__live {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 7px 7px 7px 14px; padding-inline: 14px 7px; border-radius: 999px;
  font-size: 13.5px; color: #e9e9ea; text-decoration: none;
  background: linear-gradient(90deg, rgba(245,170,3,.12), rgba(245,170,3,.04));
  border: 1px solid rgba(245,170,3,.45);
  transition: border-color .3s, background .3s;
}
.hh__live:hover { border-color: #ffd24d; background: linear-gradient(90deg, rgba(245,170,3,.2), rgba(245,170,3,.06)); }
.hh__live-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #ff4d4d; animation: hh-live 1.8s ease-out infinite; }
@keyframes hh-live { 0% { box-shadow: 0 0 0 0 rgba(255,77,77,.6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(255,77,77,0); } }
.hh__live-txt b { color: #fff; font-weight: 700; }
.hh__live-txt .en { font-family: var(--font-wix); }
.hh__live-cta {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; color: #0b0b0b;
  background: linear-gradient(180deg, #ffd24d, #f5aa03);
}
.hh__live-cta bdi { font-family: var(--font-wix); }
.hh__live-cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .hh__live { display: flex; width: 100%; justify-content: space-between; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .hh__live-dot { animation: none; } }
.hh__live { padding: 9px 16px; }
@media (max-width: 760px) { .hh__live { justify-content: center; } }

/* hero: live classes button (replaces the journey button) */
.hh__btn--live { gap: 10px; }
.hh__btn--live .hh__live-dot { animation: none; }
