/* ===================================================================
   Page — Agentic Engineering for Teams home
   Layout only; shared typography and color tokens stay in base/tokens.
   =================================================================== */

.document-shell:has(.standard-hero-header) {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
  padding: 0;
}

.has-marketing-chrome .document-shell:has(.standard-hero-header) {
  padding-top: 64px;
}

.document-shell:has(.standard-hero-header) .doc-rail {
  display: none !important;
}

body:has(.standard-hero-header) .nav-trigger--fixed {
  display: none !important;
}

.standard-hero-header {
  width: 100%;
  background: var(--background);
}

.standard-hero-header__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 970px);
  margin: 0 auto;
  padding: 72px 24px 64px;
}

.standard-hero-header__toolbar {
  align-self: flex-start;
  margin-bottom: 48px;
}

.standard-hero-header__contents {
  width: auto;
}

.standard-hero-header__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.standard-hero-header__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  color: var(--ao-body-black);
  text-align: center;
}

.standard-hero-header__text h1 {
  margin-bottom: var(--spacing-xsmall);
  color: var(--ao-body-black);
}

.standard-hero-header__text .subtitle {
  margin-bottom: var(--spacing-xxsmall);
  color: var(--ao-body-black);
}

.standard-hero-header__text p {
  width: min(100%, 970px);
  margin-bottom: 0;
  color: var(--ao-body-black);
}

.standard-hero-header__text > p:not(.subtitle) {
  font-family: var(--ao-type-body-font-family);
  font-size: var(--ao-type-body-font-size);
  line-height: var(--ao-type-body-line-height);
}

.standard-hero-header__text > p:nth-of-type(2) {
  margin-bottom: 24px;
}

.process-figure {
  width: 100%;
  background: var(--ao-light-grey);
}

.process-figure__inner {
  width: min(100%, 1108px);
  margin: 0 auto;
  padding: 64px 24px;
}

.process-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.book-contents {
  width: 100%;
  background: var(--background);
}

.book-contents__inner {
  width: min(calc(100% - 48px), 908px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.book-contents__nav {
  width: 100%;
}

.book-contents h2 {
  display: block;
  margin: 0 0 28px;
  color: var(--ao-body-black);
}

.contents-section {
  padding: 0 0 28px;
  border-bottom: 1px solid var(--ao-light-grey);
}

.contents-section + .contents-section {
  padding-top: 28px;
}

.contents-section__label {
  margin: 0 0 12px;
  color: var(--ao-body-black);
  font-size: var(--ao-type-body-sm-font-size);
  font-weight: 700;
  line-height: var(--ao-type-body-sm-line-height);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contents-list,
.contents-subsections {
  padding: 0;
  margin: 0;
  list-style: none;
}

.contents-chapter {
  margin: 0;
}

.contents-chapter + .contents-chapter {
  margin-top: 22px;
}

.contents-chapter__link {
  display: inline-block;
  color: var(--ao-body-black);
  font-family: var(--ao-type-h4-font-family);
  font-size: var(--ao-type-h4-font-size);
  font-weight: 400;
  line-height: var(--ao-type-h4-line-height);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.contents-chapter__link:hover,
.contents-chapter__link:focus-visible,
.contents-subsections__link:hover,
.contents-subsections__link:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.contents-subsections {
  margin-top: 8px;
}

.contents-subsections li {
  margin: 0;
}

.contents-subsections__link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--ao-body-black);
  font-family: var(--ao-type-body-sm-font-family);
  font-size: var(--ao-type-body-sm-font-size);
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.contents-subsections__link[data-sub="true"] {
  padding-left: 16px;
}

@media (min-width: 768px) {
  .standard-hero-header__content {
    padding: 88px 56px 80px;
  }

  .process-figure__inner {
    padding: 82px 56px;
  }

  .book-contents__inner {
    width: min(calc(100% - 112px), 908px);
    padding: 80px 0 112px;
  }
}

@media (min-width: 992px) {
  .standard-hero-header__content {
    padding: 96px 0;
  }

  .standard-hero-header__toolbar {
    display: none;
  }

  .standard-hero-header__body {
    min-height: 236px;
  }

  .standard-hero-header__text h1 {
    font-size: 58px;
    line-height: 1.172;
    letter-spacing: -2px;
  }

  .standard-hero-header__text .subtitle {
    font-size: 28px;
    line-height: 1.429;
  }

  .standard-hero-header__text > p:not(.subtitle) {
    font-size: 20px;
    line-height: 1.2;
  }

  .process-figure__inner {
    padding: 32px 0;
  }

  .book-contents__inner {
    width: 908px;
    padding: 80px 0 120px;
    transform: translateX(-4px);
  }
}

@media (min-width: 1320px) {
  .book-contents__inner {
    padding-right: 0;
    padding-left: 0;
  }
}
