html {
  scroll-padding-top: 150px;
}

section,
#top {
  scroll-margin-top: 0;
}

.site-nav-row {
  flex-wrap: wrap;
}

.navlinks {
  flex-wrap: wrap;
  gap: clamp(12px, 1.5vw, 24px);
}

.navlinks[hidden],
.menu-toggle[hidden] {
  display: none;
}

.menu-toggle {
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #8f818c;
  border-radius: 8px;
  background: transparent;
  color: #3a2c3d;
  font: 500 16px Jost, sans-serif;
  cursor: pointer;
}

.menu-symbol {
  width: 20px;
  height: 14px;
  border-block: 2px solid currentColor;
  position: relative;
}

.menu-symbol::after {
  content: "";
  position: absolute;
  inset: 4px 0 auto;
  border-top: 2px solid currentColor;
}

.menu-toggle[aria-expanded="true"] .menu-symbol {
  border: 0;
}

.menu-toggle[aria-expanded="true"] .menu-symbol::before,
.menu-toggle[aria-expanded="true"] .menu-symbol::after {
  content: "";
  position: absolute;
  inset: 6px 0 auto;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-symbol::after {
  transform: rotate(-45deg);
}

.hero {
  grid-template-areas: "intro visual" "signup visual";
  row-gap: 20px;
}

.hero-intro {
  grid-area: intro;
}

.hero-visual {
  grid-area: visual;
  min-width: 0;
  margin: 0;
}

.hero-visual img {
  height: auto;
}

.hero > .waitlist-widget {
  grid-area: signup;
  width: 100%;
}

.feature-preview-note {
  margin-top: 8px;
}

.tframe img {
  height: auto;
}

.faq details {
  align-self: start;
  padding: 20px;
  border: 1px solid rgba(58, 44, 61, 0.18);
  border-radius: 14px;
  background: #fffcfa;
}

.faq summary {
  min-height: 44px;
  cursor: pointer;
  color: #3a2c3d;
}

.faq summary h3 {
  display: inline;
}

.faq details > p {
  padding-top: 12px;
}

@media (max-width: 960px) {
  html {
    scroll-padding-top: 90px;
  }

  .site-nav {
    position: relative !important;
  }

  .site-nav.navigation-enhanced {
    position: sticky !important;
  }

  .site-nav-row {
    gap: 8px !important;
    padding-block: 12px !important;
  }

  .site-nav-row > a {
    min-height: 44px;
    min-width: 0;
    flex: 1;
    font-size: clamp(17px, 4.6vw, 20px) !important;
  }

  .site-nav-row > a svg {
    flex: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex: none;
  }

  .navlinks {
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .navlinks .nl {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(58, 44, 61, 0.14);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
  }

  .navlinks .navcta {
    justify-content: center;
    margin-top: 16px;
  }

  .navigation-enhanced .navlinks:not([hidden]) {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    padding: 8px clamp(16px, 5vw, 40px) 20px;
    background: #fbf8f3;
    border-bottom: 1px solid rgba(58, 44, 61, 0.18);
    box-shadow: 0 12px 20px rgba(58, 44, 61, 0.12);
  }

  #top {
    padding-block: 32px 40px !important;
  }

  .hero {
    grid-template-areas: "intro" "visual" "signup";
    gap: 20px;
  }

  .hero-visual {
    width: 100%;
    max-width: 460px;
    justify-self: center;
  }

  .hero-intro > h1 {
    font-size: clamp(36px, 6vw, 48px) !important;
  }

  .hero-intro > p:not(:first-child) {
    font-size: 18px !important;
  }

  #problem,
  #how,
  #memory,
  #next,
  #story,
  #faq,
  #waitlist,
  #partners {
    padding-block: 40px !important;
  }

  #problem {
    padding-bottom: 8px !important;
  }

  #problem .wrap > div:first-child,
  #how .wrap > div:first-child,
  #memory .wrap > div:first-child,
  #next .wrap > div:first-child,
  #partners .wrap > div:first-child {
    margin-bottom: 28px !important;
  }

  .trio,
  .stages {
    margin-bottom: 32px !important;
    gap: 20px;
  }

  .trio > div {
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(58, 44, 61, 0.14);
    border-radius: 16px;
    background: #fffcfa;
  }

  .trio .tframe {
    width: 100%;
    max-width: 320px;
    height: auto !important;
    margin-inline: auto;
  }

  .trio .tframe img {
    height: auto;
  }

  .quad {
    gap: 20px;
    padding-top: 24px !important;
  }

  .faq {
    gap: 12px;
  }

  #faq h2 {
    margin-bottom: 24px !important;
  }

  .faq details {
    padding: 12px 16px;
  }

  .partners {
    margin-bottom: 24px !important;
  }

  .wrap,
  .wrap > *,
  .waitlist-widget {
    min-width: 0;
  }

  a,
  p,
  h1,
  h2,
  h3,
  h4,
  label {
    overflow-wrap: anywhere;
  }
}
