/* =========================================================
   Polymathic Group — Accounts Payable page
   Extends styles.css. Section rhythm follows caoffice.css.
   ========================================================= */

.ap-sheet {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(246, 244, 238, 0.96) 100%
  );
}

.ap-advantages,
.ap-features,
.ap-faq {
  padding: var(--section-space) 0;
}

/* =========================================================
   Key advantages — dark band
   Three items with a title and one sentence each don't earn cards, so these
   are hairline rows, unnumbered because they are not a sequence, matching
   .ca-roster.
   ========================================================= */

.ap-advantages {
  background: var(--navy-900);
}

.ap-advantages .section-intro h2 {
  color: #fff;
}

.ap-advantages .section-intro__lede {
  color: var(--text-on-dark);
}

.ap-roster {
  margin: var(--content-gap) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line-dark);
}

.ap-roster__row {
  display: grid;
  grid-template-columns: minmax(12rem, 24%) 1fr;
  gap: 1.5rem;
  align-items: baseline;
  /* Negative inline margin stays inside the shared container gutter. */
  padding: var(--row-space) 0.75rem;
  margin: 0 -0.75rem;
  border-top: 1px solid var(--line-dark);
}

.ap-roster__name {
  margin: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
}

.ap-roster__desc {
  color: var(--text-on-dark);
}

/* =========================================================
   Features
   Flat groups rather than boxes — a rule above the heading and hairlines
   between items carry the grouping, so the list needs no card and no mono.
   ========================================================= */

.ap-features {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.ap-feature-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap) var(--content-gap);
  margin-top: var(--content-gap);
}

.ap-feature-group {
  min-width: 0;
  padding-top: 1.1rem;
  border-top: 2px solid var(--navy-900);
}

.ap-feature-group h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}

/* Heading icon — mirrors .prod-feature-group__icon in styles.css, which is the
   canonical version. Same recipe as .solution-card__icon (pale navy, navy
   stroke) at 30px rather than 48px: the full-size tile is card vocabulary and
   outweighs a flat group's hairline rule. Navy stroke, not brass, so it doesn't
   compete with the brass bullet dots below. Icons are decorative — the h3 text
   carries the meaning. */
.ap-feature-group__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--navy-pale);
  color: var(--navy-900);
}

.ap-feature-group__icon svg {
  width: 16px;
  height: 16px;
}

.ap-feature-group ul {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.ap-feature-group li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.ap-feature-group li:first-child {
  border-top: 0;
}

.ap-feature-group li::before {
  position: absolute;
  top: 1.37rem;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--brass);
  content: "";
}

.ap-integration p {
  max-width: 78ch;
}

/* =========================================================
   Commonly asked questions
   Rows come from the shared .qa-list component in styles.css.
   ========================================================= */

.ap-faq {
  padding-bottom: var(--section-space);
}

/* =========================================================
   Responsive layout
   ========================================================= */

@media (max-width: 1020px) {
  .ap-feature-groups {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Rows stack under the index / question rather than reflowing into narrower
   columns, which would squeeze the text to a few words per line. */
@media (max-width: 860px) {
  .ap-roster__row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    align-items: start;
  }
}
