/* First paint for /updatescore. The full sheet stays deferred, so this
   has to match the hero or a refresh shows a broken layout until it lands. */

body.landing {
  --held-content: 1192px;
  --held-panel: calc(var(--held-content) + 248px);
  --held-inset: 124px;
  --held-gutter: max(24px, calc((100% - var(--held-panel)) / 2));
  margin: 0;
  background: #f3efe5;
  color: #0a0a0a;
  font-family: Inter, Arial, sans-serif;
}

.site-nav-paper {
  display: none;
}

.hero-shell {
  position: relative;
  background:
    radial-gradient(56.82% 39.06% at 50% 0%, rgba(217, 249, 157, 0.12) 0%, rgba(6, 95, 70, 0) 100%),
    #022c22;
}

/* Stay out of the first paint. The full sheet turns these back on. */
body.landing .how,
body.landing main,
body.landing .page-end {
  content-visibility: hidden;
}

/* A deferred sheet failed or stalled (see openScoreStyles). Show the page
   anyway rather than leave it stuck on the hero. */
body.landing:has(link[data-score-forced]) .how,
body.landing:has(link[data-score-forced]) main,
body.landing:has(link[data-score-forced]) .page-end {
  content-visibility: visible;
}

body.landing .site-nav-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: min(100%, var(--held-content));
  max-width: var(--held-content);
  height: 36px;
  margin: 0 auto;
  padding: 0;
  color: #fff;
}

body.landing .site-nav-hero .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

body.landing .site-nav-hero .nav-links a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

body.landing .site-nav-hero .nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 52px;
  background: rgba(255, 255, 255, 0.08);
}

body.landing .hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 24px max(var(--held-inset), calc((100% - var(--held-content)) / 2)) 72px;
  color: #fff;
}

body.landing .hero-layout {
  display: flex;
  align-items: center;
  gap: 72px;
  width: min(100%, var(--held-content));
  max-width: var(--held-content);
  margin-inline: auto;
}

body.landing .hero-copy {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 80px;
  min-width: 0;
  margin: 0;
  padding-top: 36px;
  text-align: left;
}

body.landing .hero-copy-main,
body.landing .hero-copy-text,
body.landing .hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

body.landing .hero-copy-main {
  gap: 40px;
}

body.landing .hero-copy-text {
  gap: 16px;
  container-type: inline-size;
}

body.landing .hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-instrument-serif), Georgia, serif;
  font-size: min(68px, 11.5cqi);
  font-weight: 400;
  line-height: 1;
}

body.landing .hero-stories {
  position: relative;
  display: inline-block;
}

body.landing .hero-stories > img {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 79px;
  height: 177px;
  max-width: none;
  transform: translate(-50%, -50%) rotate(-92.85deg);
  pointer-events: none;
}

body.landing .hero-copy-text > p {
  width: min(533px, 100%);
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.7;
}

body.landing .hero-cta {
  gap: 12px;
}

body.landing .hero-actions {
  display: flex;
  gap: 16px;
}

body.landing .hero-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 555px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

body.landing .button-lime {
  color: #0a0a0a;
  background: linear-gradient(#d9f99d, #bef264);
}

body.landing .button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

body.landing .hero-assurances {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.landing .hero-assurances li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

body.landing .hero-assurance-check {
  width: 16px;
  height: 16px;
  flex: none;
  color: rgba(255, 255, 255, 0.7);
}

body.landing .hero-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.landing .hero-stats li {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.landing .hero-stats p {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.7;
}

body.landing .hero-stat-label {
  color: rgba(255, 255, 255, 0.5);
}

body.landing .hero-stats li > img,
body.landing .hero-stat-imessage {
  width: 24px;
  height: 24px;
  flex: none;
}

body.landing .hero-portrait {
  position: relative;
  flex: 1 1 0;
  align-self: stretch;
  min-width: 0;
  min-height: 560px;
  overflow: hidden;
  border-radius: 24px;
}

body.landing .hero-portrait video,
body.landing .hero-portrait .hero-portrait-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

body.landing .hero-founders {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: stretch;
  gap: 12px;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 24px;
  background: #fff;
}

body.landing .hero-portrait .hero-founders-photo {
  position: static;
  width: 152px;
  height: auto;
  aspect-ratio: 152 / 156;
  object-fit: cover;
  border-radius: 12px;
  flex: none;
}

body.landing .hero-founders-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  padding: 12px;
  color: #022c22;
}

body.landing .hero-founders-quote,
body.landing .hero-founders-names,
body.landing .hero-founders-role {
  margin: 0;
}

body.landing .hero-founders-quote {
  font-size: 16px;
  line-height: 1.5;
}

body.landing .hero-founders-names,
body.landing .hero-founders-role {
  font-size: 14px;
  line-height: 1.7;
}

body.landing .hero-founders-role {
  opacity: 0.5;
}

/* The portrait image is absolutely positioned. Give it a box before the
   full sheet arrives, or it fills the viewport for the first paint. */
body.landing .how-signal-you-mark {
  position: relative;
  display: block;
  width: 124px;
  height: 124px;
  overflow: hidden;
}

@media (max-width: 1050px) {
  body.landing {
    --held-inset: 28px;
    --held-gutter: 24px;
  }

  body.landing .site-nav-hero .nav-links a:not(.nav-cta):not(.nav-login) {
    display: none;
  }

  body.landing .hero {
    padding: 24px var(--held-inset) 56px;
  }

  body.landing .hero-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  body.landing .hero-portrait {
    flex: none;
    width: 100%;
    min-height: 280px;
    max-height: 520px;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 680px) {
  body.landing .site-nav-hero {
    width: 100%;
    max-width: none;
    height: 60px;
    margin: 0;
    padding: 16px 20px;
  }

  body.landing .site-nav-hero .nav-links a.nav-login {
    display: none;
  }

  body.landing .hero {
    padding: 0 0 40px;
    gap: 20px;
  }

  body.landing .hero-layout {
    gap: 28px;
    width: 100%;
    max-width: none;
    padding: 0 20px;
  }

  body.landing .hero-copy {
    display: contents;
    padding-top: 0;
  }

  body.landing .hero-copy-main {
    order: 1;
    align-items: center;
    gap: 28px;
  }

  body.landing .hero-copy-text {
    align-items: center;
    text-align: center;
  }

  body.landing .hero h1,
  body.landing .hero-copy-text > p {
    text-align: center;
  }

  body.landing .hero-assurances {
    align-items: center;
  }

  body.landing .hero h1 {
    font-size: 44px;
    line-height: 1.05;
  }

  body.landing .hero-copy-text > p {
    width: 100%;
  }

  body.landing .hero-cta,
  body.landing .hero-actions {
    align-items: stretch;
    width: 100%;
  }

  body.landing .hero-actions {
    flex-direction: column;
  }

  body.landing .hero-actions .button {
    width: 100%;
  }

  body.landing .hero-stats {
    order: 2;
    gap: 8px;
  }

  body.landing .hero-stats p {
    font-size: 14px;
  }

  body.landing .hero-portrait {
    order: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-height: none;
    aspect-ratio: auto;
    padding: 290px 4px 4px;
    border-radius: 16px;
  }

  body.landing .hero-founders {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px;
    width: 100%;
    padding: 4px;
    border-radius: 12px;
  }

  body.landing .hero-portrait .hero-founders-photo {
    width: 100%;
    aspect-ratio: 456 / 486.4;
    border-radius: 8px;
  }

  body.landing .hero-founders-quote {
    font-size: 14px;
  }
}
