/* Home: keep the planner beside the opening and bring the next section into view. */
#top.az-22 { min-height: min(100svh, 800px); padding-block: clamp(108px, 9.3vw, 134px) clamp(40px, 6vw, 82px); }
.az-72, .az-126, .az-149, .az-174, .az-191 { padding-block: clamp(54px, 7.9vw, 113px); }
.az-183 { padding-block: clamp(52px, 7.1vw, 102px); }
.az-183 .az-185 { margin-top: clamp(28px, 4vw, 54px); }
#book.az-222 { padding-block: clamp(54px, 8.5vw, 120px); }

/* About: put the department lists on the same baseline and balance their length. */
.about-page .about-hero { padding-top: clamp(104px, 9.1vw, 132px); }
.about-page .stats { margin-top: clamp(24px, 4vw, 60px); }
.about-page .about-close { padding-block: clamp(58px, 8vw, 115px); }
.about-page .team-columns .people { border-top: 1px solid #92b09a; }
.about-page .team-columns .person { min-width: 0; padding-block: 10px; }
@media (min-width: 1050px) {
  .about-page .team-columns { grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); }
  .about-page .team-columns .team-group:first-child .people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(15px, 2.4vw, 32px);
  }
}

/* Staff: make all eight reasons visible in an easy-to-read comparison. */
.staff-page #section-9 { background: #fff; }
.staff-page #section-9 .section-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.staff-page #section-9 .section-copy { max-width: none; }
.staff-page #section-9 .section-copy > p { max-width: 65ch; }
.staff-page #section-9 .source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(15px, 2.3vw, 30px);
  padding: 0;
  gap: 0 clamp(18px, 4vw, 54px);
  list-style: none;
}
.staff-page #section-9 .source-list li {
  position: relative;
  margin: 0;
  padding: 12px 0 12px 25px;
  border-top: 1px solid #b7cdbd;
}
.staff-page #section-9 .source-list li::before {
  content: "";
  position: absolute;
  inset: 1.15rem auto auto 2px;
  width: 11px;
  height: 5px;
  border: solid #287249;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

/* Chatbots: line up the two lists so business systems read separately from the build stack. */
.agents-page .agents-stack .section-copy { max-width: none; }
.agents-page .agent-stack-columns { gap: 17px clamp(14px, 2.4vw, 32px); }
.agents-page .agent-stack-columns article {
  border-top: 2px solid #17703d;
  background: linear-gradient(180deg, #edf4e9, #f9faf7 69%);
  padding: clamp(13px, 2.2vw, 29px);
}
.agents-page .agent-stack-columns h3 { border-bottom: 0; padding-bottom: 13px; }
.agents-page .agent-stack-columns dl > div { border: 0; border-top: 1px solid #a9c4ae; }
.agents-page .agent-stack-columns dt { color: #173f2a; }

/* Software directory: bring the area index alongside the selected tools on wide screens. */
.software-directory-page .software-b-index { margin-block: clamp(19px, 2.8vw, 36px) 0; }
.software-directory-page .software-demo { margin-top: clamp(17px, 2.5vw, 34px); }
.software-directory-page .approved-product-stage { min-height: clamp(115px, 14vw, 207px); }
@media (min-width: 541px) {
  .software-directory-page .software-demo button {
    grid-template-rows: minmax(66px, clamp(74px, 9vw, 128px)) 1px auto;
  }
}
.software-directory-page .software-stack-map { column-gap: clamp(17px, 3vw, 40px); }
.software-directory-page .software-stack-nav a { padding: 7px 8px 7px 13px; }
.software-directory-page .software-stack-nav a:is(:hover, :focus-visible) { background: #e5efe1; }
.software-directory-page .software-stack-body dl > div:target { box-shadow: inset 3px 0 #348253; padding-inline: 10px; }
@media (max-width: 760px) {
  .software-directory-page .software-stack-nav nav { display: flex; flex-wrap: wrap; gap: 5px; border-left: 0; }
  .software-directory-page .software-stack-nav a { padding: 5px 8px; border: 1px solid #a8c4af; border-radius: 5px; }
}

/* Strategy: keep the three different scenes aligned to the beginning of their reading lists. */
.strategy-page .strategy-chapter .strategy-content { align-items: start; }
.strategy-page .strategy-chapter-art { aspect-ratio: 1.88; min-height: 0; }
.strategy-page .strategy-chapter-art img { object-position: center; }
.strategy-page .strategy-chapter .content-rows { border-top: 2px solid #6a9d7a; }
@media (min-width: 951px) {
  .strategy-page .strategy-chapter .strategy-content { gap: clamp(19px, 3.6vw, 53px); }
}

/* Automation: give the two outcomes the same place in each story. */
.automation-page .automation-case-result { align-content: space-between; }
.automation-page .automation-case-story { align-self: center; }
.automation-page .automation-case-result > div:last-child {
  margin-top: 7px;
  padding-top: 16px;
  border-top: 1px solid #5c9170;
}
.automation-page .automation-case-index article:nth-child(2) .automation-case-result { background: #f0f4ea; }
.automation-page .automation-case-index article:nth-child(2) .automation-case-result > div:last-child { border-color: #9eb9a2; }
@media (max-width: 640px) {
  .automation-page .automation-case-result { padding: 17px; }
}

/* Sales: make the metrics a register across the page instead of a narrow table at the right. */
.sales-page .sales-telemetry { background: #f8faf6; }
.sales-page .sales-telemetry-intro { margin-bottom: clamp(19px, 3.1vw, 41px); }
.sales-page .sales-register { grid-template-columns: minmax(0, 1fr); gap: 14px; border-block: 0; padding: 0; }
.sales-page .sales-register h3 { max-width: none; }
.sales-page .sales-register dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(17px, 4vw, 55px); }
.sales-page .sales-register dl > div {
  display: block;
  padding: 12px 0;
  border-top: 1px solid #adc1ad;
}
.sales-page .sales-register dt { margin-bottom: 4px; }

/* Marketing: let the catalog index and the scroll-driven setup sequence each mark one place. */
.campaign-page .campaign-catalog-group { padding-block: clamp(15px, 2.5vw, 34px); column-gap: clamp(18px, 3.4vw, 48px); }
.campaign-page .campaign-catalog-group:target > h3 { text-decoration: underline; text-underline-offset: .19em; text-decoration-thickness: 2px; }
.campaign-page .campaign-setup-path li { position: relative; padding-inline: 12px; }
.campaign-page .campaign-setup-path li[data-progress-current] {
  background: linear-gradient(90deg, #e1eddf, transparent 93%);
  box-shadow: inset 2px 0 #3a8459;
}

/* Workflow and BPA: lead the terms with ownership, then pair the remaining safeguards. */
.workflow-page .workflow-terms dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(20px, 4vw, 57px);
}
.workflow-page .workflow-terms dl > div { display: block; padding-block: 13px 17px; }
.workflow-page .workflow-terms dl > div:first-child {
  grid-column: 1 / -1;
  margin-bottom: clamp(13px, 2.1vw, 28px);
  padding: clamp(16px, 2.9vw, 37px);
  border-top: 0;
  border-radius: 12px;
  background: #e9f1e5;
}
.workflow-page .workflow-terms dl > div:first-child dt { font-size: clamp(1.4rem, 2.9vw, 2.4rem); }
.workflow-page .workflow-terms dl dd { max-width: 67ch; margin-top: 5px; }

/* Custom software: connect the timing display directly to the currently visible stage. */
.release-page .release-schedule { gap: clamp(14px, 3vw, 43px); }
.release-page .release-schedule-list li { border-inline-start: 2px solid transparent; }
.release-page .release-schedule-list li[data-current] { border-inline-start-color: #277548; }
.release-page .release-schedule-readout::after {
  content: "";
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(90deg, #98c99f 0 1px, transparent 1px 6.25%);
  opacity: .65;
}
@media (max-width: 720px) {
  .release-page .release-schedule-list li { padding-block: 10px 13px; }
}

/* Apps: when a phone is selected, a pair of guides keeps the original browser width legible. */
.app-lab-stage::before {
  content: "";
  position: absolute;
  inset-block: 32%;
  left: 50%;
  width: min(645px, calc(100% - 60px));
  transform: translateX(-50%);
  border-inline: 1px solid #93c0aa91;
  background: linear-gradient(#93c0aa3b, #93c0aa3b) center / 100% 1px no-repeat;
  opacity: 0;
  pointer-events: none;
}
@media (min-width: 770px) {
  .app-lab:is([data-device="ios"], [data-device="android"]) .app-lab-stage::before { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .app-lab-stage::before { transition: opacity .55s; }
}

/* Cloud: turn the ownership list into a handover manifest with a shared branch. */
.cloud-page .cloud-handoff .wrap > p { max-width: 66ch; }
.cloud-page .cloud-handoff-list {
  position: relative;
  max-width: none;
  border: 1px solid #acbfaf;
  border-radius: 12px;
  padding: 8px 8px 8px clamp(22px, 4vw, 49px);
  background: #f6faf3;
}
.cloud-page .cloud-handoff-list::before {
  content: "";
  position: absolute;
  inset: 8px auto 21px clamp(9px, 2vw, 23px);
  width: 1px;
  background: #779e83;
}
.cloud-page .cloud-handoff-list li { position: relative; min-height: 44px; }
.cloud-page .cloud-handoff-list li::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: clamp(13px, 2vw, 26px);
  height: 1px;
  background: #779e83;
}
.cloud-page .cloud-handoff-list li[data-current] i { background: #477d58; border-color: #3c694c; }
@media (max-width: 610px) {
  .staff-page #section-9 .source-list,
  .sales-page .sales-register dl,
  .workflow-page .workflow-terms dl { grid-template-columns: minmax(0, 1fr); }
}
