/* Homepage-only visual refinements. Versioned URL for immutable asset caching. */
:root {
  --layout-gap: clamp(1.25rem, 3vw, 2.5rem);
  --layout-section: clamp(2rem, 4vw, 3.5rem);
  --layout-heading: clamp(1.65rem, 2.7vw, 2.25rem);
}

.site-shell {
  max-width: 80rem;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.screen-inner,
.product-example {
  padding-block: var(--layout-section);
}

.product-example-inner { max-width: none; }

.hero-inner {
  min-height: 0;
  padding-top: var(--layout-section);
  padding-bottom: 1rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--layout-gap);
  align-items: center;
  margin-bottom: 1rem;
}

.hero-copy { padding: 0; }

.hero-inner h1 {
  margin-top: 0;
  font-size: clamp(2rem, 3.7vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-copy .hero-subheader {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.65;
}

.hero-benefits { margin-top: 1rem; gap: 0.4rem; }
.hero-visual-shell { align-self: center; margin: 0; padding: 0; }
.hero-visual-frame { max-width: 32rem; }
.hero-link-row { margin: 0; padding-block: 0.75rem; }
.hero-link-row .text-link {
  min-width: 0;
  max-width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  letter-spacing: 0;
  box-shadow: none;
}

.creator-trust { max-width: 40rem; margin-top: 1.25rem; padding-top: 1rem; }

/* Query the available form width, independent of page breakpoints. */
.lead-form.lead-form-inline {
  container-type: inline-size;
  container-name: signup;
  width: 100%;
  max-width: 40rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.hero-copy .lead-form { margin: 1.5rem 0 0; }
.video-lead-form,
.final-lead-form { margin: 0 auto; }
.lead-form .lead-form-row { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
.lead-form button { width: 100%; padding-inline: 1rem; }
.lead-form input[type="email"] { padding-inline: 1rem; }
.lead-form .signup-value { margin-top: 1rem; font-size: 0.875rem; line-height: 1.6; }
.lead-form .consent-field { margin-top: 1.25rem; font-size: 0.8125rem; line-height: 1.6; }
.lead-form .form-note { margin-top: 0.75rem; font-size: 0.8125rem; }

@container signup (min-width: 28rem) {
  .lead-form .lead-form-row { grid-template-columns: minmax(0, 1fr) auto; }
  .lead-form button { width: auto; }
}

.product-example-heading h2,
.problem-heading h2,
.preview-copy h2 {
  margin-top: 0;
  max-width: none;
  font-size: var(--layout-heading);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.problem-story h3,
.problem-thesis h3,
.problem-essay h3 {
  margin-top: 0;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.video-shell {
  max-width: 64rem;
  margin-inline: auto;
  padding: 0;
  gap: 2rem;
  border: 0;
  background: transparent;
}

.promo-video { border: 0; }
.benefit-tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.benefit-tile { min-height: 5.5rem; padding: 1rem; background: transparent; }
.benefit-tile h2 {
  max-width: none;
  font-size: 1rem;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.problem-layout { gap: var(--layout-section); }
.problem-hero,
.problem-explainer-shell { padding: var(--layout-gap); gap: var(--layout-gap); }
.problem-heading { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-content: start; }
.problem-heading-visual { flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; }
.problem-heading-picture { width: min(100%, 10rem); }
.lebcia-callout { position: static; transform: none; align-items: center; }
.lebcia-callout-label { box-shadow: none; }
.problem-checklist-shell { padding-left: var(--layout-gap); }
.problem-checklist { margin-top: 0; }
.problem-checklist li { padding-left: 2.25rem; }
.problem-essay { padding-left: var(--layout-gap); }
.problem-story { max-width: 68ch; }

.preview-inner {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  padding: var(--layout-gap);
  gap: var(--layout-gap);
  margin-block: var(--layout-section);
}
.preview-copy { padding-right: var(--layout-gap); }
.preview-copy p { max-width: 65ch; line-height: 1.75; }
.preview-motto-card { padding: var(--layout-gap); border: 0; background: transparent; }
.preview-motto-logo { max-width: 15rem; filter: none; }

.person-shell { padding: var(--layout-gap); align-items: flex-start; }
.person-identity { flex-basis: 36%; padding-right: var(--layout-gap); }
.person-portrait-card,
.person-portrait-frame { height: auto; }
.person-portrait-frame { align-items: flex-start; }
.person-story-slider { padding-left: var(--layout-gap); gap: 0.75rem; }
.person-story { height: auto; }
/* Keep the active biography in flow instead of reserving the taller slide's space. */
.person-version-stage { height: auto !important; }
.person-version.person-version-active { position: relative; inset: auto; }
.person-socials { margin-top: 0; padding-top: 1.5rem; justify-content: flex-start; }
.person-social-link,
.person-slider-arrow { box-shadow: none; }

.person-version p { margin-top: 0.75rem; line-height: 1.68; }
.person-version p:first-child { margin-top: 0; }
.person-lead { line-height: 1.68; }
.person-points { margin-top: 0.75rem; }
.person-points li { margin-top: 0.3rem; line-height: 1.55; }
.person-socials { padding-top: 1rem; }

.community-shell { padding: var(--layout-gap); gap: 1.5rem; }
.community-action { gap: 2rem; }
.benefit-copy h2,
.benefit-copy p { text-align: left; }
.benefit-copy h2 { font-size: clamp(1.125rem, 1.6vw, 1.375rem); }

@media (max-width: 960px) {
  .person-story-slider { padding-left: 0; }
  .person-identity { flex-basis: auto; padding-right: 0; }
  .person-portrait-media { width: min(100%, 28rem); }
  .person-portrait-frame { justify-content: center; }
  .problem-heading h2,
  .problem-heading .problem-heading-copy,
  .problem-thesis h3,
  .problem-thesis p,
  .problem-essay-head h3,
  .problem-pattern h4,
  .problem-pattern p,
  .problem-checklist,
  .preview-copy h2,
  .preview-copy p { text-align: left; margin-left: 0; margin-right: 0; }
  .problem-checklist-shell { padding-left: 0; }
  .problem-essay { padding-left: 0; }
  .preview-inner { grid-template-columns: minmax(0, 1fr); }
  .preview-copy { padding-right: 0; }
}

@media (min-width: 801px) and (max-width: 960px) {
  .site-header { flex-direction: row; align-items: center; }
  .hero-copy h1,
  .hero-copy .hero-subheader { text-align: left; margin-inline: 0; }
  .hero-benefits,
  .creator-trust { margin-inline: 0; }
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .hero-copy { max-width: 40rem; margin-inline: auto; }
  .hero-copy h1 { max-width: 22ch; margin-inline: auto; }
  .hero-visual-shell { justify-content: center; }
  .hero-visual-frame { width: min(100%, 22rem); }
  .hero-visual-art { max-height: 17rem; }
  .benefit-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .hero-copy .hero-subheader { text-align: left; }
  .hero-benefits { width: auto; margin-inline: 0; }
  .problem-hero,
  .problem-explainer-shell,
  .preview-inner,
  .person-shell,
  .community-shell {
    padding: 1.5rem 0;
    border-inline: 0;
    border-radius: 0;
    background: transparent;
  }
  .person-story { padding: 1.5rem 0 0; }
  .problem-heading-picture { width: min(100%, 10rem); }
  .preview-motto-card { padding: 1rem; }
  .benefit-item { gap: 0.75rem; }
  .benefit-index { width: 2.4rem; height: 2.4rem; }
  .hero-link-row .text-link { padding-inline: 1rem; font-size: 0.9375rem; }
}

/* Author slider: inactive content must never participate in layout or paint. */
.person-version:not(.person-version-active),
.person-version[hidden] {
  display: none;
  transition: none;
}

.person-version.person-version-active {
  transition: none;
  transform: none;
}

@media (min-width: 961px) {
  .person-story-slider {
    grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
    gap: 0.65rem;
  }

  .person-slider-arrow {
    grid-row: auto;
    margin: auto 0;
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
  }
}
