@font-face {
  font-family: "Sora";
  src: url("./assets/fonts/Sora-VariableFont_wght.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "SUSE";
  src: url("./assets/fonts/SUSE-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SUSE";
  src: url("./assets/fonts/SUSE-SemiBold.ttf") format("truetype");
  font-weight: 650;
  font-display: swap;
}

:root {
  --blue: #15143a;
  --green: #2bf78b;
  --tea: #d3ffb4;
  --lavender: #c5b6f1;
  --paper: #f7fff1;
  --white: #ffffff;
  --ink-soft: rgba(21, 20, 58, 0.78);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  min-width: 320px;
  background: var(--blue);
  color: var(--blue);
  font-family: "SUSE", sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--green);
}

a {
  color: inherit;
}

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

.page-shell {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  --edge: clamp(18px, 3vw, 42px);

  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: clamp(10px, 1.7vh, 24px);
  height: 100vh;
  min-height: 100vh;
  padding: var(--edge);
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(43, 247, 139, 1) 0%, rgba(43, 247, 139, 0.94) 44%, rgba(211, 255, 180, 0.72) 100%),
    var(--green);
}

@supports (height: 100dvh) {
  .page-shell,
  .hero {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.46;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 106%, transparent 0 34%, rgba(211, 255, 180, 0.56) 34.2% 41.5%, transparent 41.7%),
    radial-gradient(ellipse at 18% 113%, transparent 0 46%, rgba(211, 255, 180, 0.34) 46.2% 52.5%, transparent 52.7%),
    radial-gradient(ellipse at 18% 122%, transparent 0 58%, rgba(255, 255, 255, 0.26) 58.2% 63.5%, transparent 63.7%);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 32px);
}

.brand {
  display: inline-flex;
  width: clamp(158px, 18vw, 268px);
  min-width: 0;
  background: transparent;
}

.brand img {
  width: 100%;
  height: auto;
}

.masthead__domain {
  margin: 0;
  color: var(--blue);
  font-size: clamp(0.86rem, 1vw, 1rem);
  font-weight: 650;
  white-space: nowrap;
}

.hero__spotlight {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(250px, 0.5fr) minmax(520px, 1.24fr);
  align-items: center;
  gap: clamp(24px, 4vw, 66px);
  min-height: 0;
}

.video-stage {
  position: relative;
  width: min(100%, 97.78vh, 1102px);
  min-width: 0;
  justify-self: center;
  max-height: min(55vh, 620px);
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 3px solid var(--blue);
  background: transparent;
  box-shadow: 0 34px 110px rgba(21, 20, 58, 0.36);
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.hero__content {
  width: min(100%, 390px);
}

.eyebrow {
  width: fit-content;
  margin: 0 0 clamp(10px, 1.5vw, 18px);
  padding: 7px 12px 8px;
  background: var(--blue);
  color: var(--green);
  font-size: clamp(0.82rem, 1vw, 0.98rem);
  font-weight: 650;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  width: min(100%, 7.1ch);
  margin: 0;
  color: var(--blue);
  font-family: "Sora", sans-serif;
  font-size: clamp(3.7rem, 6.2vw, 6.6rem);
  font-weight: 800;
  line-height: 0.84;
}

h1 span {
  display: block;
}

.hero__lede {
  max-width: 360px;
  margin: clamp(18px, 3vw, 30px) 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 1.55vw, 1.55rem);
  font-weight: 650;
  line-height: 1;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(22px, 3vw, 34px);
}

.action-row span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px 10px;
  border: 2px solid var(--blue);
  background: rgba(255, 255, 255, 0.52);
  color: var(--blue);
  font-weight: 650;
  line-height: 1;
}

.support-strip {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 1px;
  width: min(100%, 1160px);
  max-height: 132px;
  background: rgba(21, 20, 58, 0.32);
}

.offer-panel,
.benefits article {
  background: rgba(247, 255, 241, 0.78);
}

.offer-panel {
  padding: clamp(12px, 1.3vw, 17px);
  color: var(--blue);
}

.offer-panel__kicker,
.offer-panel__copy {
  margin: 0;
  font-weight: 650;
}

.offer-panel__kicker {
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.offer-panel__amount {
  margin: 6px 0 4px;
  color: var(--blue);
  font-family: "Sora", sans-serif;
  font-size: clamp(2.55rem, 3.6vw, 4rem);
  font-weight: 800;
  line-height: 0.85;
}

.offer-panel__copy {
  color: var(--ink-soft);
  font-size: clamp(0.94rem, 1vw, 1.05rem);
  line-height: 1.05;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
}

.benefits article {
  min-height: 100%;
  padding: clamp(12px, 1.3vw, 17px);
}

.benefits span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.benefits p {
  margin: 0;
  color: var(--blue);
  font-size: clamp(0.98rem, 1.15vw, 1.18rem);
  font-weight: 650;
  line-height: 1;
}

.contact-bar {
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  margin: 0 calc(var(--edge) * -1) calc(var(--edge) * -1);
  padding: 14px var(--edge);
  border-top: 2px solid var(--blue);
  background: var(--white);
  color: var(--blue);
}

.contact-bar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  font-weight: 650;
}

.contact-bar a {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.16rem, 2vw, 2rem);
  font-weight: 750;
  line-height: 1;
  text-decoration-color: var(--green);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
  transition: color 180ms var(--ease-out), text-underline-offset 180ms var(--ease-out);
}

.contact-bar a:hover,
.contact-bar a:focus-visible {
  color: #0aa95d;
  text-underline-offset: 9px;
}

.contact-bar a:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 4px;
}

body.video-paused .video-stage::after {
  content: "Video preview";
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 8px 11px;
  background: var(--blue);
  color: var(--tea);
  font-size: 0.82rem;
  font-weight: 650;
}

@media (max-width: 1100px) {
  .hero__spotlight {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .video-stage {
    order: -1;
  }

  .hero__content {
    width: min(100%, 720px);
  }

  h1 {
    width: min(100%, 10.5ch);
    font-size: clamp(3.6rem, 11vw, 6.8rem);
  }

  h1 span {
    display: inline;
  }

  .support-strip {
    grid-template-columns: 1fr;
    max-height: none;
  }
}

@media (min-width: 1101px) and (max-height: 820px) {
  .hero {
    --edge: clamp(18px, 2.2vw, 30px);

    gap: 10px;
  }

  .video-stage {
    width: min(100%, 76vh, 850px);
    max-height: min(42.75vh, 478px);
  }

  .eyebrow {
    margin-bottom: 10px;
    padding: 6px 10px 7px;
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(3.1rem, 5vw, 4.75rem);
  }

  .hero__lede {
    max-width: 330px;
    margin-top: 16px;
    font-size: clamp(1rem, 1.25vw, 1.2rem);
  }

  .action-row {
    margin-top: 18px;
  }

  .action-row span {
    min-height: 34px;
    padding: 7px 12px 8px;
  }

  .support-strip {
    max-height: 104px;
  }

  .offer-panel,
  .benefits article {
    padding: 10px 12px;
  }

  .offer-panel__amount {
    font-size: clamp(2.4rem, 3.1vw, 3.2rem);
    white-space: nowrap;
  }

  .offer-panel__copy,
  .benefits p {
    font-size: 0.92rem;
  }

  .benefits span {
    margin-bottom: 6px;
  }

  .contact-bar {
    min-height: 58px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .contact-bar a {
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  }
}

@media (max-width: 700px) {
  .hero {
    --edge: 16px;

    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 10px var(--edge) var(--edge);
  }

  .masthead {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .brand {
    width: 142px;
  }

  .masthead__domain {
    margin-left: auto;
    font-size: 0.76rem;
  }

  .hero__spotlight {
    align-self: center;
    align-content: center;
    gap: 10px;
    min-height: 0;
  }

  .video-stage {
    width: 100%;
    max-height: none;
    border-width: 2px;
    box-shadow: 0 18px 70px rgba(21, 20, 58, 0.28);
  }

  .hero__video {
    object-fit: contain;
  }

  .hero__content {
    width: 100%;
  }

  h1 {
    width: min(100%, 9.8ch);
    font-size: clamp(2.25rem, 11.2vw, 3.05rem);
    line-height: 0.9;
  }

  h1 span {
    display: inline;
  }

  .eyebrow {
    margin-bottom: 7px;
    padding: 6px 10px 7px;
    font-size: 0.76rem;
  }

  .hero__lede {
    max-width: 21em;
    margin-top: 8px;
    font-size: 0.96rem;
    line-height: 1;
  }

  .action-row {
    gap: 6px;
    margin-top: 9px;
  }

  .action-row span {
    min-height: 30px;
    padding: 5px 8px 6px;
    font-size: 0.86rem;
  }

  .support-strip {
    grid-template-columns: minmax(138px, 0.62fr) minmax(0, 1fr);
    align-self: end;
  }

  .offer-panel {
    padding: 8px;
  }

  .offer-panel__kicker {
    font-size: 0.58rem;
  }

  .offer-panel__amount {
    margin: 4px 0 3px;
    font-size: clamp(2rem, 8.4vw, 2.28rem);
    white-space: nowrap;
  }

  .offer-panel__copy {
    font-size: 0.68rem;
  }

  .benefits {
    grid-template-columns: 1fr;
  }

  .benefits article {
    min-height: 0;
    padding: 5px 10px;
  }

  .benefits span {
    display: none;
  }

  .benefits p {
    font-size: 0.76rem;
    line-height: 1.02;
  }

  .contact-bar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    padding: 8px var(--edge) max(12px, calc(env(safe-area-inset-bottom) + 8px));
    gap: 4px;
  }

  .contact-bar p {
    font-size: 0.68rem;
    line-height: 1.1;
  }

  .contact-bar a {
    font-size: clamp(0.98rem, 4.4vw, 1.12rem);
    word-break: break-word;
  }
}

@media (max-width: 380px), (max-width: 700px) and (max-height: 760px) {
  .hero {
    gap: 8px;
    padding-top: 10px;
  }

  .brand {
    width: 126px;
  }

  .masthead__domain {
    font-size: 0.68rem;
  }

  .video-stage {
    justify-self: start;
    width: min(100%, calc(23vh * 16 / 9));
  }

  h1 {
    font-size: clamp(2rem, 10.5vw, 2.55rem);
  }

  .hero__lede {
    font-size: 0.84rem;
  }

  .action-row span {
    min-height: 27px;
    padding: 4px 7px 5px;
  }

  .support-strip {
    grid-template-columns: minmax(128px, 0.62fr) minmax(0, 1fr);
  }

  .offer-panel__copy {
    display: none;
  }

  .contact-bar {
    min-height: 0;
    padding-top: 7px;
    padding-bottom: max(10px, calc(env(safe-area-inset-bottom) + 7px));
  }

  .contact-bar p {
    font-size: 0.64rem;
  }

  .contact-bar a {
    font-size: clamp(0.92rem, 4.1vw, 1rem);
  }
}

@supports (height: 100dvh) {
  @media (max-width: 380px), (max-width: 700px) and (max-height: 760px) {
    .video-stage {
      width: min(100%, calc(23dvh * 16 / 9));
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
