/* Type scale shifted one step down from text-lg to approximate Airbnb's sizing.
   On landing pages, text-lg renders at 16px, text-xl at 18px, and so on. */
:root {
  --text-lg: 1rem;
  --text-xl: 1.125rem;
  --text-2xl: 1.375rem;
  --text-3xl: 1.625rem;
  --text-4xl: 2rem;
  --text-5xl: 2.5rem;
}

html {
  scroll-padding-top: 5rem;
}

h1, h2 {
  letter-spacing: -0.02em;
}

/* The landing design uses the browser's default line height, not Tailwind's 1.5. */
.landing-home {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  line-height: normal;
}

.landing-home p {
  font-family: "Inter", system-ui, sans-serif;
}

.landing-home h1, .landing-home h2 {
  letter-spacing: -0.035em;
}

/* FAQ: native <details> with the "+" turning into an "x" when open. */
.landing-home summary {
  list-style: none;
  cursor: pointer;
}

.landing-home summary::-webkit-details-marker {
  display: none;
}

.landing-home details[open] .faq-icon {
  transform: rotate(45deg);
}

/* Logo drives in from the left once on page load. */
.logo-intro {
  animation: logo-intro 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes logo-intro {
  from {
    opacity: 0;
    transform: translateX(-2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-intro {
    animation: none;
  }
}
