/* ============================================================
   HERO  .hero
   Full-height intro: portrait on a grey radial gradient,
   the H1, intro text, two buttons and one quiet proof line.
   ============================================================ */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* svh = small viewport height: fixed, so it doesn't change when the mobile address bar slides in/out (vh does in some browsers, which made the page jiggle on touch). vh line = fallback for old browsers */
  height: 100vh;
  height: 100svh;
  padding: 0 20px var(--space-s) 10vw;
  background-image:
    url("../../img/hero-portrait.webp")   /* 1800px tall WebP (from the 2.3 MB PNG); preloaded in index.html */,
    radial-gradient(circle at 74% 59%, #f8f9ff, #7b7d89 43%, #615f68);
  background-position: 80% 110%, 0 0;
  background-size: auto 85vh, auto;
  background-size: auto 85svh, auto;
  background-repeat: no-repeat, repeat;
}

/* ---- Heading ---- */
.hero__title {
  padding: 10px 0;
  color: var(--color-white);
  font-size: 6.5rem;
  font-weight: var(--fw-black);
  line-height: 95%;
  letter-spacing: var(--ls-h1);
  text-shadow: 0 1px 5px #0006;
}

.hero__title-accent {
  color: var(--color-primary);
}

/* ---- Intro text ---- */
.hero__text {
  width: 50%;
  padding: 0.5rem 0 1rem 0.5rem;
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: var(--fw-extralight);
  line-height: 145%;
  text-shadow: 0 1px 1px #0003;
}

/* ---- Buttons ---- */
.hero__actions {
  display: flex;
  gap: 14px;
  padding-top: 0.3rem;
}

/* ---- Proof line under the buttons: plain small text, no pills ---- */
.hero__proof {
  padding-top: 1.5rem;
  color: #ffffffc4;   /* white at ~77%: quieter than the headline */
  font-size: 0.9rem;
  font-weight: var(--fw-light);
}

/* ============ Tablet ============ */
@media (max-width: 991px) {
  .hero {
    justify-content: flex-start;
    height: 115vh;
    height: 115svh;
    padding: 130px 3% var(--space-s);
    background-position: 80% 161%, 0 0;
  }

  .hero__title {
    font-size: 5rem;
  }
}

/* ============ Mobile (up to 767px) ============ */
@media (max-width: 767px) {
  /* Phones are sized to the screen HEIGHT, so every phone matches the iPhone SE
     proportions: the portrait is 58% of the screen tall, the text starts 19% down
     and the headline is 5.3% of the screen tall (11.5vw caps it on narrow phones).
     The first line of each pair is the fallback for old browsers. */
  .hero {
    display: block;
    height: 100vh;
    height: 100svh;
    padding-top: 125px;
    padding-top: 19svh;
    background-position: 100% 100%, 0 0;
    background-size: auto 58vh, auto;
    background-size: auto 58svh, auto;
  }

  /* phones: no paragraph and no proof line, just the headline and the two buttons */
  .hero__text,
  .hero__proof {
    display: none;
  }

  .hero__title {
    font-size: 2.2rem;
    font-size: min(5.3svh, 11.5vw);
    letter-spacing: -0.08em;   /* em = scales with the font, so it stays as tight as on the iPhone SE */
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.4rem;
  }
}

