/* Signed-out home only. html:has([data-landing-hero]) keeps this off every
   other default-layout screen. The kit still owns the components. These
   rules set the landing measure: Inter, heading weight 500, a 56px bar,
   and a hero column over the magazines photo.
   Ink matches the rounded backdrop on main: white. The description is
   92% white so it sits with the headline. Flatpack paints the account
   button, the Continue buttons, and the cutout mark. This sheet does
   not set their size, padding, radius, or fill. */

html:has([data-landing-hero]) {
  --top-nav-height: 56px;
  --layout-content-inset: 24px;
  --page-layout-padding-inline: 24px;
  --top-nav-padding-inline: 24px;
  --carousel-bleed: var(--page-layout-padding-inline);
  --backdrop-content-color: oklch(1 0 0);
  --backdrop-muted-content-color: rgb(255 255 255 / 0.8);
  --hero-overlay-text-color: oklch(1 0 0);
  --hero-overlay-muted-text-color: rgb(255 255 255 / 0.8);
  /* HeroTitle writes these on the h1. A later font-size rule cannot beat that inline style. */
  --type-display-size: var(--text-4xl);
  --type-display-weight: 500;
  --type-display-leading: 1.12;
  --type-display-tracking: -0.03em;
  font-family: var(--font-sans);
}

html:has([data-landing-hero]) .fp-page-layout-frame {
  gap: 0;
}

html:has([data-landing-hero]) .fp-page-layout-main {
  padding-top: 0;
}

html:has([data-landing-hero]) .fp-top-nav {
  --top-nav-height: 56px;
  height: calc(56px + env(safe-area-inset-top, 0px));
}

html:has([data-landing-hero]) .fp-top-nav__left a {
  gap: 8px;
  color: #fff;
}

html:has([data-landing-hero]) .fp-top-nav__left a span {
  font-family: var(--font-sans);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}

html:has([data-landing-hero]) [data-landing-content] {
  box-sizing: border-box;
  padding-top: calc(var(--space-6) + var(--space-5));
}

html:has([data-landing-hero]) [data-landing-copy] {
  box-sizing: border-box;
  width: min(100%, 440px);
  max-width: 440px;
  gap: 16px;
}

html:has([data-landing-hero]) [data-landing-hero] h1 {
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--type-display-size);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
}

html:has([data-landing-hero]) [data-landing-content] p {
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: var(--leading-normal);
  letter-spacing: 0;
  color: rgb(255 255 255 / 0.92);
}

html:has([data-landing-hero]) [data-landing-actions] {
  margin-top: 30px;
  margin-bottom: calc(var(--space-6) + var(--space-4) + var(--space-6));
}

/* The chat stacks under the words below 768px. The grid gap is --stack-gap-lg,
   so the rest of the band's padding sits under the subtitle and that white
   gap matches the space above the headline. */
html:has([data-landing-hero]) [data-landing-pitch-copy] {
  padding-bottom: calc(var(--space-6) * 4 - var(--stack-gap-lg));
}

@media (min-width: 768px) {
  html:has([data-landing-hero]) {
    --layout-content-inset: 40px;
    --page-layout-padding-inline: 40px;
    --top-nav-padding-inline: 40px;
    --type-display-size: var(--text-7xl);
    --type-display-leading: 1.08;
    --type-display-tracking: -0.035em;
  }

  html:has([data-landing-hero]) [data-landing-content] {
    padding-top: calc(var(--space-6) * 2 + var(--space-4));
  }

  html:has([data-landing-hero]) [data-landing-copy] {
    width: min(100%, 640px);
    max-width: 640px;
  }

  html:has([data-landing-hero]) [data-landing-hero] h1 {
    max-width: 640px;
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  html:has([data-landing-hero]) [data-landing-content] p {
    font-size: var(--text-2xl);
  }

  html:has([data-landing-hero]) [data-landing-actions] {
    margin-bottom: calc(var(--space-6) + var(--space-5) + var(--space-5) + var(--space-4));
  }

  html:has([data-landing-hero]) [data-landing-pitch-copy] {
    padding-bottom: 0;
  }
}

@media (min-width: 1024px) {
  html:has([data-landing-hero]) {
    --type-display-leading: 1.05;
    --type-display-tracking: -0.04em;
  }

  html:has([data-landing-hero]) [data-landing-hero] h1 {
    margin-bottom: 12px;
    line-height: 1.05;
    letter-spacing: -0.04em;
  }
}

html:has([data-landing-hero]) [data-landing-footer] {
  box-sizing: border-box;
  padding: 32px 24px 40px;
  text-align: center;
}

html:has([data-landing-hero]) [data-landing-footer] nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
}

html:has([data-landing-hero]) [data-landing-footer] a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  color: rgb(255 255 255 / 0.65);
  text-decoration: none;
}

html:has([data-landing-hero]) [data-landing-footer] a:hover {
  color: rgb(255 255 255 / 0.85);
}
