/* Intelligent Automation: the sections only this page has. Written for tools/build_services.py, which places the markup.
   "What it changes" (.iv), "What makes it intelligent" (.cmp) and the note under "It earns its independence" (.ie-note).
   The three stages themselves use the shared .stp steps. Flat: hairlines and type only. */

/* ---------- How it works comes straight after the hero: a shorter gap above it, so the scene reads as part of the opening ---------- */
.cell.sec.ia-open{ padding-top:clamp(2.75rem, 5vw, 4.5rem); }

/* ---------- What it changes: four outcomes as a ledger, the outcome on the left and what is measured on the right ---------- */
.iv-lead{ margin-top:clamp(1.5rem, 2.5vw, 2rem); }
.iv > li{ display:grid; grid-template-columns:minmax(0,1fr); gap:.875rem 3rem; padding-block:clamp(1.5rem, 3vw, 2.25rem); box-shadow:inset 0 1px 0 var(--line); }
.iv > li:first-child{ box-shadow:inset 0 1px 0 var(--hard); }
.iv > li:last-child{ padding-bottom:0; }
@media (min-width:900px){ .iv > li{ grid-template-columns:minmax(0,5fr) minmax(0,7fr); align-items:baseline; } }
.iv-t{ font-weight:500; font-size:clamp(1.75rem, 3.2vw, 2.75rem); line-height:1.05; letter-spacing:-.032em; text-wrap:balance; }
.iv-p{ max-width:34rem; font-size:clamp(1.125rem, 1.5vw, 1.375rem); line-height:1.4; letter-spacing:-.01em; }
.iv-m{ margin-top:.875rem; max-width:34rem; font-size:1rem; line-height:1.55; color:var(--mid); }
.iv-m span{ font-weight:500; color:var(--fg); }

/* ---------- What makes it intelligent: three ways of doing the work, compared row by row ---------- */
.cmp{ width:100%; border-collapse:collapse; text-align:left; }
.cmp th, .cmp td{ vertical-align:top; }
.cmp-h{ display:block; font-weight:500; font-size:clamp(1.25rem, 1.7vw, 1.5rem); line-height:1.2; letter-spacing:-.018em; }
.cmp tbody th{ font-weight:500; font-size:clamp(1.0625rem, 1.3vw, 1.1875rem); line-height:1.35; letter-spacing:-.008em; }
.cmp tbody td{ font-size:clamp(1.0625rem, 1.3vw, 1.1875rem); line-height:1.4; color:var(--mid); }
.cmp tbody td.cmp-ia{ color:var(--fg); font-weight:500; }

@media (min-width:900px){
  .cmp{ table-layout:fixed; }
  .cmp thead td{ width:22%; }
  .cmp th, .cmp td{ padding:1.375rem 1.5rem 1.5rem 0; }
  .cmp thead th{ padding-top:1.25rem; padding-bottom:1.25rem; }
  .cmp tbody tr{ box-shadow:inset 0 1px 0 var(--line); }
  .cmp tbody tr:first-child{ box-shadow:inset 0 1px 0 var(--hard); }
  /* the intelligent automation column sits inside a hairline frame */
  .cmp .cmp-ia{ padding-left:1.5rem; border-left:1px solid var(--hard); border-right:1px solid var(--hard); }
  .cmp thead .cmp-ia{ border-top:1px solid var(--hard); }
  .cmp tbody tr:last-child .cmp-ia{ border-bottom:1px solid var(--hard); padding-bottom:1.5rem; }
}
/* phones and tablets: the row name runs across, the three answers sit under it in three narrow columns */
@media (max-width:899px){
  .cmp, .cmp thead, .cmp tbody{ display:block; }
  .cmp tr{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:.25rem 1rem; }
  .cmp thead td{ display:none; }
  .cmp thead tr{ padding-bottom:.875rem; }
  .cmp-h{ font-size:.875rem; line-height:1.3; letter-spacing:0; color:var(--lab); }
  .cmp thead .cmp-ia .cmp-h{ color:var(--fg); }
  .cmp tbody tr{ padding-block:1rem 1.125rem; box-shadow:inset 0 1px 0 var(--line); }
  .cmp tbody tr:first-child{ box-shadow:inset 0 1px 0 var(--hard); }
  .cmp tbody th{ grid-column:1 / -1; margin-bottom:.375rem; font-size:1rem; }
  .cmp tbody td{ font-size:.9375rem; line-height:1.4; }
}

/* ---------- It earns its independence ---------- */
#independence .stp-t{ text-wrap:balance; }
.ie-note{ margin-top:clamp(2.5rem, 5vw, 4rem); padding-top:1.25rem; box-shadow:inset 0 1px 0 var(--line); }
