/* ==========================================================================
   Scout — landing page
   Tokens first, then the single full-viewport hero.
   Reference frames: desktop 1280x832, mobile 375x812.
   ========================================================================== */

:root {
  --lime: #d6e854;
  --white: #fff;
  --ink: #000;

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* mobile-first spacing */
  --pad-x: 20px;
  --pad-top: 28px;
  --pad-bottom: 24px;

  --logo-h: 28px;
  --icon-size: 30px;
  --icon-gap: 12px;

  --tag-fs: 13px;
  --tag-pad-x: 14px;
  --tag-h: 30px;

  --cta-fs: 15px;
  --cta-h: 44px; /* design shows 36px; raised to the 44px touch-target floor */
  --cta-pad-x: 22px;

  --focus: 0 0 0 3px rgba(0, 0, 0, 0.55), 0 0 0 6px var(--lime);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Hero shell
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
}

.hero__media,
.hero__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media {
  object-fit: cover;
  z-index: -2;
  /* poster is frame 0 of the clip, so there is no pop when playback starts */
  background: var(--ink) center / cover no-repeat;
}

/* Kept light so it reads like the mockup, and paired with the headline's
   text-shadow so copy still holds up over the montage's brightest frames. */
.hero__scrim {
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0) 17%),
    linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.32) 24%, rgba(0, 0, 0, 0) 58%);
}

/* --------------------------------------------------------------------------
   Layout — corner-anchored grid.
   Mobile: socials sit on the bottom row beside the CTA.
   Desktop: socials move to the top-right, legal fills the empty middle.
   -------------------------------------------------------------------------- */

.hero__layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto auto;
  grid-template-areas:
    "brand  .     legal"
    ".      .     ."
    "copy   copy  copy"
    "social .     cta";
  column-gap: 16px;
  padding:
    calc(var(--pad-top) + env(safe-area-inset-top))
    calc(var(--pad-x) + env(safe-area-inset-right))
    calc(var(--pad-bottom) + env(safe-area-inset-bottom))
    calc(var(--pad-x) + env(safe-area-inset-left));
}

/* Brand ------------------------------------------------------------------ */

/* brand / legal / social share the top row and centre against each other */
.brand {
  grid-area: brand;
  justify-self: start;
  align-self: center;
  border-radius: 6px;
}

.brand img {
  height: var(--logo-h);
  width: auto;
}

/* Social ----------------------------------------------------------------- */

/* Mobile: shares the bottom row with the CTA, centred against it.
   Desktop: moves to the top-right corner. */
.social { grid-area: social; align-self: center; }

.social ul {
  display: flex;
  align-items: center;
  gap: var(--icon-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: var(--icon-size);
  height: var(--icon-size);
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  /* keeps the visual ring small while meeting the 44px touch target */
  position: relative;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.social a::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.social svg { width: 56%; height: 56%; }

.social a:hover,
.social a:focus-visible {
  color: var(--lime);
  border-color: var(--lime);
  transform: translateY(-1px);
}

/* Copy ------------------------------------------------------------------- */

.copy {
  grid-area: copy;
  align-self: end;
  margin-bottom: 18px;
}

.headline {
  margin: 0 0 14px;
  max-width: 15em;
  font-size: clamp(15px, 4vw, 19px);
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  /* Edge definition + soft halo. Only affects pixels near glyphs, so the frame
     stays as bright as the mockup while copy survives the sand-pit shot. */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38), 0 2px 18px rgba(0, 0, 0, 0.55);
}

.headline strong {
  color: var(--lime);
  font-weight: 800;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Lime wash behind white type — measured off the mockups at 38% opacity. */
.tags li {
  display: inline-flex;
  align-items: center;
  height: var(--tag-h);
  padding: 0 var(--tag-pad-x);
  border-radius: 999px;
  background: rgba(214, 232, 84, 0.38);
  color: var(--white);
  font-size: var(--tag-fs);
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* CTA -------------------------------------------------------------------- */

.cta {
  grid-area: cta;
  justify-self: end;
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--cta-h);
  padding: 0 var(--cta-pad-x);
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: var(--cta-fs);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cta:active { transform: translateY(0); }

/* Legal ------------------------------------------------------------------ */

/* Top row, opposite the logo on mobile; tucked left of the socials on desktop.
   Deliberately quiet — present without competing with the CTA. */
.legal {
  grid-area: legal;
  align-self: center;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px 14px;
  /* white, but small uppercase with tracking so it reads as quiet utility
     type rather than competing with the CTA */
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 1px 10px rgba(0, 0, 0, 0.55);
}

/* padding grows the tap target without shifting the row (logo is taller) */
.legal a { padding: 7px 2px; transition: color 0.18s ease; }
.legal a:hover,
.legal a:focus-visible { color: var(--lime); }

/* Very narrow phones: shrink the legal group so it stays on one line beside
   the logo rather than wrapping to two. */
@media (max-width: 360px) {
  .legal {
    font-size: 9.5px;
    letter-spacing: 0.04em;
    gap: 9px;
    flex-wrap: nowrap;
  }
}

/* --------------------------------------------------------------------------
   Desktop
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  :root {
    --pad-x: 52px;
    --pad-top: 40px;
    --pad-bottom: 44px;

    --logo-h: 32px;
    --icon-size: 34px;
    --icon-gap: 15px;

    --tag-fs: 14px;
    --tag-pad-x: 16px;
    --tag-h: 32px;

    --cta-fs: 19px;
    --cta-h: 58px;
    --cta-pad-x: 34px;
  }

  .hero__layout {
    /* col 4 is sized by the socials, so the legal group in col 3 sits directly
       beside them instead of being pushed off by the wider CTA */
    grid-template-columns: auto 1fr auto auto;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "brand  .     legal  social"
      ".      .     .      ."
      "copy   copy  cta    cta";
    column-gap: 20px;
  }

  .social { align-self: center; justify-self: end; }

  .copy { margin-bottom: 0; }

  .headline {
    /* em-based so the design's three-line break survives every viewport width */
    max-width: 22.6em;
    font-size: clamp(20px, 1.72vw, 32px);
  }

  .legal {
    align-self: center;
    flex-wrap: nowrap;
    gap: 20px;
  }
}

/* Large displays — nudge the fixed chrome up so it doesn't shrink away. */
@media (min-width: 1600px) {
  :root {
    --pad-x: 64px;
    --pad-top: 48px;
    --pad-bottom: 48px;
    --logo-h: 38px;
    --icon-size: 40px;
    --cta-fs: 21px;
    --cta-h: 64px;
    --cta-pad-x: 40px;
    --tag-fs: 15px;
    --tag-h: 36px;
  }
}

/* --------------------------------------------------------------------------
   Short viewports (landscape phones) — the bottom-anchored stack needs room.
   -------------------------------------------------------------------------- */

@media (max-height: 560px) and (orientation: landscape) {
  :root {
    --pad-top: 16px;
    --pad-bottom: 16px;
    --logo-h: 24px;
    --icon-size: 30px;
    --cta-h: 44px;
    --tag-h: 28px;
  }

  .headline {
    font-size: 15px;
    max-width: 34em;
    margin-bottom: 10px;
  }

  .legal { margin-top: 10px; }
}

/* --------------------------------------------------------------------------
   Motion / data preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* When JS declines to load the video (reduced motion, Save-Data, slow link) the
   element keeps its poster attribute, which stands in as a still hero. */
