/* ==========================================================================
   Game, Set and Tax – Splash page
   Tokens mirror the Figma variables (Layout/*, Font/*, default-font)
   ========================================================================== */

:root {
  /* Typography */
  --default-font: "Poppins", sans-serif;
  --font-size-h1: 56px;
  --font-size-lead: 20px;
  --font-size-base: 16px;
  --font-size-sm: 14px;

  /* Layout */
  --body-gutter-x: 82px;
  --container-max-width: 1276px;
  --container-gap: 32px;
  --component-padding: 48px;
  --component-row-gap: 32px;
  --component-column-gap: 52px;
  --section-gap: 100px;

  /* Colour */
  --color-white: #ffffff;
  --color-green-deep: #11231b;
  --color-green-mid: #15251c;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--color-green-deep);
  color: var(--color-white);
  font-family: var(--default-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p,
h1 {
  margin: 0;
}

img {
  display: block;
}

/* --------------------------------------------------------------------------
   Page frame ("Splash Page") – background media + gradient overlay
   -------------------------------------------------------------------------- */
.splash {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--section-gap);
  min-height: 100vh;
  padding: 0 var(--body-gutter-x);
  position: relative;
  isolation: isolate; /* keeps the media layer's z-index local to the page */
}

/* Background media: poster image (shown until the video plays),
   the Vimeo background video, then the gradient overlay on top. */
.splash__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  container-type: size;
  background: var(--color-green-deep) url("../assets/images/splash-background.png") center / cover no-repeat;
  pointer-events: none;
}

/* Cover the layer with a 16:9 video, like background-size: cover */
.splash__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 177.78cqh);
  height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%);
  border: 0;
}

.splash__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(21, 37, 28, 0) 16%,
    rgba(17, 35, 27, 0.68) 29%,
    rgba(17, 35, 27, 0.85) 60%,
    rgba(17, 35, 27, 0.95) 100%
  );
}

.splash__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  flex: 1 0 auto;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   Brand
   -------------------------------------------------------------------------- */
.brand {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  gap: var(--component-row-gap) var(--container-gap);
  width: 100%;
  height: 202px;
  padding: var(--component-padding) 0 16px;
}

.brand__logo {
  display: block;
  width: 310px;
  min-width: 260px;
  max-width: 310px;
}

.brand__logo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1430 / 488;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Hero content
   -------------------------------------------------------------------------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  row-gap: var(--component-row-gap);
  width: 100%;
  max-width: var(--container-max-width);
  padding-top: var(--component-padding);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 45px;
  flex: 1 0 0;
  min-width: 342px;
  max-width: 600px;
}

.hero__title {
  width: 100%;
  font-size: var(--font-size-h1);
  font-weight: 200; /* Poppins ExtraLight */
  line-height: normal;
  text-box: trim-both cap alphabetic;
}

.hero__text {
  width: 100%;
  font-size: var(--font-size-lead);
  font-weight: 400;
  line-height: normal;
}

.hero__lead {
  margin-bottom: 16px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Button ("Email us")
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 7px 7px 7px 17px;
  border: 1px solid var(--color-white);
  border-radius: 48px;
  color: var(--color-white);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.button__label {
  padding-right: 10px;
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
}

.button__icon {
  flex-shrink: 0;
  width: 34.69px;
  height: 31.9955px;
  transition: transform 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background-color: rgba(255, 255, 255, 0.08);
}

.button:hover .button__icon,
.button:focus-visible .button__icon {
  transform: translateX(3px);
}

.button:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  gap: var(--component-column-gap);
  width: 100%;
  padding: var(--component-padding) 0;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  width: 262px;
  overflow: hidden;
}

.footer__powered {
  font-size: var(--font-size-base);
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
}

/* Accountum logo */
.accountum-logo {
  display: block;
  flex-shrink: 0;
  width: 150px;
}

.accountum-logo img {
  width: 100%;
  height: auto;
}

.accountum-logo:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

.footer__legals {
  flex: 1 0 0;
  min-width: 360px;
  font-size: var(--font-size-sm);
  font-weight: 400;
  line-height: normal;
}

.footer__legals p + p {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --body-gutter-x: 16px;
    --font-size-h1: 44px;
    --section-gap: 64px;
  }

  .brand {
    height: auto;
  }

  .hero__title {
    line-height: 1.15;
  }

  .brand__logo {
    width: 260px;
  }

  .hero__content,
  .footer__legals {
    min-width: 0;
    flex-basis: 100%;
  }

  .footer {
    gap: 24px;
  }
}
