/* ============================================================
   improvements.css - geometry fixes over style.css + lp.css
   Goal: one left axis and full service-page container width.
   Project tokens only. No 12-column grid.
   ============================================================ */

/* 1. Section headings: index sits above the title, all aligned left. */
.section-head {
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.section-head__index {
  display: inline-flex;
  align-items: center;
}

/* 2. Includes grids stay inside the same content container. */
.lp-includes {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

/* 3. Section notes belong visually to their heading. */
.section-head__body .lp-section-note {
  margin-top: 0.85rem;
}

/* 4. Tariff prices should not split across lines. */
.tariff__price b {
  white-space: nowrap;
}

/* 5. Header center nav stays on the optical page axis on desktop. */
@media (min-width: 1025px) {
  .header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .header__brand { justify-self: start; }
  .header__nav { justify-self: center; }
  .header__tail { justify-self: end; }
}

/* 6. Split hero: copy left, form right, metrics full width. */
.lp-hero--split .lp-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  column-gap: clamp(2rem, 4.5vw, 4.5rem);
  row-gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
  text-align: left;
  max-width: var(--container);
  padding-block: clamp(3rem, 6vw, 5.25rem);
}

.lp-hero--split .lp-hero__copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  min-width: 0;
}

.lp-hero--split .lp-h1 {
  max-width: 16ch;
}

.lp-hero--split .lp-hero__sub {
  max-width: 50ch;
}

.lp-hero--split .lp-form {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  width: 100%;
  max-width: none;
}

.lp-hero--split .hero__meta {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0;
}

.lp-hero--split .lp-trustbar {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-content: flex-start;
  margin-top: 0;
}

@media (max-width: 960px) {
  .lp-hero--split .lp-hero__inner {
    grid-template-columns: 1fr;
  }

  .lp-hero--split .lp-hero__copy,
  .lp-hero--split .lp-form,
  .lp-hero--split .hero__meta,
  .lp-hero--split .lp-trustbar {
    grid-column: 1;
    grid-row: auto;
  }

  .lp-hero--split .lp-h1 {
    max-width: 18ch;
  }
}

/* 7. Process steps use the available width on desktop. */
@media (min-width: 721px) {
  .lp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 4vw, 3.5rem);
  }

  .lp-steps .lp-step:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

/* 8. FAQ spans the container; answers keep readable line length. */
#faq .faq__item > details > p {
  max-width: 82ch;
}
