/* Service pages: the homepage's tile hall, one service walked through end to end.
   Loaded after site.css; only adds what the service pages need. */

/* hero: panel + scene, with a You bring / You get strip in the index slot */
.svc-hero { grid-template-columns: minmax(0, 1fr) calc(var(--t) * 7); }
.svc-hero .hero h1 { max-width: none; font-size: clamp(2.5rem, 5vw, 4.25rem); }
.crumb { font: 500 .8125rem/1.4 var(--mono); color: var(--ink-2); margin-bottom: 1rem; }
.crumb a { color: var(--ink); padding-block: .8125rem; }   /* inline padding: a 44px hit area without moving the line */
.bring-get {
  grid-area: index;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--rule); background: var(--white);
}
.bring-get > div { padding: .9rem 1.25rem; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.bring-get > div + div { border-left: 1px solid var(--grout-2); }
.bring-get h2 { font: 700 .8125rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--orange-ink); margin-bottom: .45rem; }
.bring-get ul { list-style: none; padding: 0; margin: 0; font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.bring-get li { padding: .35rem 0; border-top: 1px solid var(--grout); }
.bring-get li:first-child { border-top: 0; padding-top: 0; }

/* what we usually build with */
.stack { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: calc(var(--t) * .5); border-top: 1px solid var(--rule); }
.stack div { padding: 1rem 1.25rem 0 0; min-width: 0; }
.stack div + div { padding-left: 1.25rem; border-left: 1px solid var(--grout); }
.ti { width: 28px; height: 28px; fill: currentColor; flex: none; }
.ti[stroke] { fill: none; }   /* outline icons for products without a free mark */
.stack .ti { display: block; margin-bottom: .75rem; color: var(--ink); }
.toolbox-h { font: 700 .75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--orange-ink); margin-top: calc(var(--t) * .6); }
.toolbox { margin-top: .75rem; display: grid; gap: .75rem; }
.tb-group { display: grid; grid-template-columns: calc(var(--t) * 2) minmax(0, 1fr); align-items: start; gap: .5rem; }
.tb-group h4 { font: 500 .75rem/1.3 var(--mono); color: var(--ink-2); padding-top: .85rem; }
.tb-group ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.toolbox li { display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem; border: 1px solid var(--grout); background: var(--white); font-weight: 700; font-size: .9688rem; }
.toolbox .ti { width: 20px; height: 20px; color: var(--ink-2); }
.tm-note { margin-top: .9rem; font-size: .8125rem; color: var(--ink-2); }
.stack dt { font: 500 .75rem/1.3 var(--mono); color: var(--ink-2); }
.stack dd { margin: .25rem 0 0; font-weight: 700; font-size: 1.125rem; line-height: 1.3; }

/* "Before you decide": two bays, not three */
@media (min-width: 56.25em) { .trust .bays { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* two-up panels */
.pair { grid-template-columns: minmax(0, 1fr) calc(var(--t) * 10); }   /* same columns as .get-course, so stacked rows line up */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: calc(var(--t) * .6); border-top: 1px solid var(--rule); }
.split > div { padding: 1.4rem 1.75rem 0 0; }
.split > div + div { padding: 1.4rem 0 0 1.75rem; border-left: 1px solid var(--grout); }
.split h3 { margin-bottom: .75rem; }

.fit { list-style: none; padding: 0; display: grid; gap: 0; }
.fit li { display: grid; grid-template-columns: 1rem minmax(0, 1fr); gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--grout); }
.fit li:first-child { border-top: 0; padding-top: 0; }
.fit li::before { content: ""; width: 1rem; height: 1rem; margin-top: .3rem; background: var(--orange); -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.fit.not li::before { -webkit-mask: none; mask: none; background: none; border-top: 2px solid var(--ink-2); height: 0; margin-top: .8rem; }
.fit li.ai-line { padding: .75rem .9rem; border: 1px solid var(--wash-2); margin-top: .5rem; }
.fit li.ai-line::before { display: none; }
.fit li.ai-line { grid-template-columns: minmax(0, 1fr); }

/* the walk-through: steps with what you get at each */
.walk h2 { margin-bottom: .75rem; }
.walk .panel-head { margin-bottom: calc(var(--t) * .6); }
/* what each step leads to: an arrow, not a repeated "You get" label */
.walk .steps p.get { margin-top: .5rem; color: var(--ink); font-size: .9375rem; font-weight: 600; display: flex; gap: .5rem; }
.walk .steps p.get::before { content: "\2192"; flex: none; font: 700 .9375rem/inherit var(--mono); color: var(--orange-ink); }
.walk .steps .ai-line { margin-top: .6rem; color: var(--ink); }

/* what you get + an illustrative piece */
.get-course { grid-template-columns: minmax(0, 1fr) calc(var(--t) * 10); }
.deliver .checks { margin-top: calc(var(--t) * .5); font-size: 1.0625rem; list-style: none; padding: 0; }
.deliver .ai-line { margin-top: 1rem; }
.sample { display: flex; flex-direction: column; gap: .75rem; background-color: var(--white); }
.sample .ex-head h2 { font-size: clamp(1.375rem, 2vw, 1.625rem); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tbl th, .tbl td { text-align: left; padding: .5rem .75rem; border-top: 1px solid var(--grout); vertical-align: top; }
.tbl thead th { border-top: 0; font: 500 .75rem/1.3 var(--mono); color: var(--ink-2); }
.tbl tr.ai td { background: var(--wash); }
.pill { font: 700 .6875rem/1 var(--mono); padding: .3em .45em; border: 1px solid var(--ink); }
.pill.act { background: var(--orange); border-color: var(--orange); }
.pill.watch { border-color: var(--orange-ink); color: var(--orange-ink); }

/* what we need + questions */
.needs { list-style: none; padding: 0; margin-top: calc(var(--t) * .5); counter-reset: n; }
.needs li { padding: .7rem 0; border-top: 1px solid var(--grout); }
.needs li:first-child { border-top: 0; padding-top: 0; }
.needs b { display: block; }
.needs li > span { color: var(--ink-2); font-size: .9688rem; }
.faq { margin-top: calc(var(--t) * .5); border-top: 1px solid var(--grout); }
.faq details { border-bottom: 1px solid var(--grout); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 52px; padding: .6rem 0; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; background: var(--orange-ink);
  -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > p { padding: 0 0 1rem; color: var(--ink-2); max-width: 60ch; }
.faq details > p.ai-line { color: var(--ink); margin-bottom: 1rem; padding: .75rem .9rem; }

/* check us first: what stands in for case studies */
.trust .panel-head { margin-bottom: calc(var(--t) * .6); }
.trust .bays { margin-top: 0; }
.trust .bay h3 { font-size: 1.25rem; }
.trust .bay p { color: var(--ink-2); }

/* other services */
.others { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); border: 1px solid var(--rule); background: var(--white); }
.others a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: calc(var(--t) - 2px); padding: 0 1.1rem; font-weight: 700; font-size: 1.0625rem; line-height: 1.3; text-decoration: none; }
.others a + a, .others .label + a { border-left: 1px solid var(--grout-2); }
.others a::after { content: ""; flex: none; width: 14px; height: 14px; background: var(--orange-ink); transform: rotate(-90deg); -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; }
.others a:hover { background: var(--wash); }
.others .label { color: var(--orange-ink); font: 700 .75rem/calc(1.0625rem * 1.3) var(--mono); text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; padding: 0 1.1rem; }
.others .tag { margin-left: auto; }

.cta { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy copy" "addr btn"; }   /* the rest: site.css */
.cta p { margin-top: .75rem; font-size: 1.125rem; color: var(--ink-2); max-width: 46ch; }

@media (max-width: 89.9375em) {
  .tb-group { grid-template-columns: minmax(0, 1fr); }   /* label above, so six tiles still fit a row */
  .tb-group h4 { padding-top: 0; }
  .toolbox li { font-size: .875rem; padding-inline: .6rem; }
}
@media (max-width: 79.9375em) {
  .tb-group ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .others .label { display: none; }   /* the links need the room; the heading is implied */
  .get-course { grid-template-columns: minmax(0, 1fr); }
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1rem; }
  .stack div:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 68.6875em) {
  .svc-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "panel" "index" "scene"; }
  .svc-hero .scene { height: calc(var(--t) * 4); }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .cta { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "btn" "addr"; }
}
@media (max-width: 43.6875em) {
  .bring-get { grid-template-columns: minmax(0, 1fr); }
  .bring-get > div + div { border-left: 0; border-top: 1px solid var(--grout-2); }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-group ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack div:nth-child(4) { padding-left: 1.25rem; border-left: 1px solid var(--grout); }
  .stack div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > div, .split > div + div { padding: 1.25rem 0 0; border-left: 0; }
  .split > div + div { margin-top: 1.25rem; border-top: 1px solid var(--grout); }
  .others { grid-template-columns: minmax(0, 1fr); }
  .others a + a, .others .label + a { border-left: 0; border-top: 1px solid var(--grout-2); }
  .others .label { display: flex; min-height: var(--t); }
  .others a { min-height: calc(var(--t) * 1.5); }   /* 48px touch rows */
  .tbl th, .tbl td { padding: .45rem .5rem; overflow-wrap: anywhere; }
  .doc { min-width: 0; }   /* the code sample scrolls inside its frame instead of widening the page */
}

/* steps carry extra lines ("You get", + AI): keep them all beside the number */
.walk .steps li > * { grid-column: 2; }
.walk .steps li > h3 { align-self: center; }
.walk .steps li::before { grid-row: 1 / span 2; }

/* sample shapes used by the other service pages */
.steps-mini { list-style: none; margin: 0; padding: .85rem 1rem; font-size: .9375rem; }
.steps-mini li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .75rem; padding: .5rem 0; border-top: 1px solid var(--grout); }
.steps-mini li:first-child { border-top: 0; padding-top: 0; }
.steps-mini li:last-child { padding-bottom: 0; }
.steps-mini li > span:first-child { font: 700 .75rem/1.7 var(--mono); color: var(--orange-ink); }
.code { font: .875rem/1.8 var(--mono); padding: .85rem 1rem; white-space: pre; overflow-x: auto; margin: 0; }
.code:focus-visible { outline-offset: -3px; }   /* inside the doc frame, which clips anything outside */
.code .c { color: var(--ink-2); }
.code .no { color: var(--orange-ink); font-weight: 700; }
.human-note { display: grid; gap: 1rem; justify-items: start; }
.human-note p { color: var(--ink-2); font-size: 1.125rem; max-width: 52ch; }
.steps-mini li.ai-row { background: var(--wash); margin: .25rem -1rem 0; padding: .6rem 1rem; }

/* phones with enlarged text: the tech stack goes to one column so long names fit */
@media (max-width: 20em) {
  .stack { grid-template-columns: minmax(0, 1fr); }
  .stack div, .stack div:nth-child(4) { padding-left: 0; border-left: 0; }
  .stack dd { overflow-wrap: anywhere; }
  .steps-mini li { grid-template-columns: minmax(0, 1fr); gap: .15rem; }   /* step name above its line */
}
