@font-face {
  font-family: "Duello Handwritten";
  src: url("/home/fonts/duello-handwritten-bold.woff2?v=1") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

:root {
  --home-hero-center-width: 340px;
  --home-hero-column-gap: clamp(1.25rem, 2.8vw, 3rem);
  --home-hero-lift: clamp(8rem, 10vw, 9.5rem);
  --home-tagline-width: 8ch;
  --home-hero-side-shift: clamp(1.5rem, 2.5vw, 2.5rem);
  --home-mobile-tagline-clearance: 3.5rem;
  --home-handwritten-font: "Duello Handwritten", "Segoe Print", "Bradley Hand", cursive;
}

.site-navigation {
  grid-column: 3;
}

.demo-section {
  grid-template-columns:
    minmax(0, 1fr)
    minmax(304px, var(--home-hero-center-width))
    minmax(0, 1fr);
  align-items: center;
  column-gap: var(--home-hero-column-gap);
  transform: translateY(calc(-1 * var(--home-hero-lift)));
}

.demo-section .product-stage {
  grid-column: 2;
  grid-row: 1;
  max-width: var(--home-hero-center-width);
  transform: none;
}

.demo-tagline {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: min(100%, var(--home-tagline-width));
  margin: 0;
  margin-inline-end: var(--home-hero-side-shift);
  justify-self: end;
  font-family: var(--home-handwritten-font);
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  text-align: left;
}

.demo-section .demo-track-picker {
  grid-column: 3;
  grid-row: 1;
  margin-inline-start: var(--home-hero-side-shift);
  justify-self: start;
  gap: 0.8rem;
}

.demo-offers-link {
  min-height: 48px;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}

.demo-offers-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.typewriter-word {
  display: inline-block;
  white-space: nowrap;
}

[data-typewriter].is-typing .typewriter-word > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.18em);
  animation: tagline-letter-in 220ms ease-out forwards;
  animation-delay: calc(120ms + var(--letter-index) * 56ms);
}

@keyframes tagline-letter-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1000px) {
  :root {
    --home-hero-lift: 8rem;
  }

  .demo-section {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: clamp(1.5rem, 5vw, 2.5rem);
  }

  .demo-section .product-stage {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .demo-tagline {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 12em);
    margin-inline-end: 0;
    justify-self: start;
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .demo-section .demo-track-picker {
    grid-column: 2;
    grid-row: 2;
    margin-inline-start: 0;
    justify-self: end;
  }
}

@media (max-width: 680px) {
  :root {
    --home-hero-lift: 5rem;
  }

  .demo-section {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.25rem;
  }

  .demo-tagline {
    grid-column: 1;
    grid-row: 1;
    width: min(100%, 18em);
    margin-top: var(--home-mobile-tagline-clearance);
    justify-self: center;
    text-align: center;
  }

  .demo-section .product-stage {
    grid-column: 1;
    grid-row: 2;
  }

  .demo-section .demo-track-picker {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
  }

  .brand-wordmark {
    display: inline-flex;
    font-size: 0.78rem;
    gap: 0.14em;
  }
}

@media (max-width: 420px) {
  .demo-tagline {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-typewriter].is-typing .typewriter-word > span {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
