/* ==========================================================================
   AI Hub v2: service page (Custom Development & Integration), 404 and thank-you pages.
   Loads after system.css and company.css.  Page-level only; nothing in either file is overridden.

   Contents
    1  Service page: what-you-get cards, typical engagements, pairs-with cards
    2  Service page: who it is for (SMB and enterprise columns)
    3  Connected systems wall (reuses .tech from company.css)
    4  404: link list
    5  Thank-you: confirmation mark, download panel, suggested reads
    6  Responsive
   ========================================================================== */

/* ---------- 1. Service page: cards (D-04AK: .card-hover) ---------- */
.cd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cd-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(26px, 2.8vw, 36px); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--white); }
.cd-card .icon-tile { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 14px; }
.cd-card .icon-tile .icon { width: 24px; height: 24px; }
.cd-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.3125rem, .5vw + 1.15rem, 1.5rem); line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.cd-card p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.cd-card .chip { margin-bottom: 14px; }
.cd-note { margin-top: clamp(28px, 3.4vw, 40px); }

/* Pairs with: the whole card is the link */
.cd-pair { position: relative; }
.cd-pair .tag { color: var(--coral-text-s, #A8402F); }
.cd-pair .cd-pair__link { color: inherit; }
.cd-pair .cd-pair__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.cd-pair .cd-pair__link:focus-visible { outline: none; }
.cd-pair:has(.cd-pair__link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.cd-pair__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; font-weight: 600; font-size: .9375rem; color: var(--ink); }
.cd-pair__go .icon { width: 1em; height: 1em; transition: transform var(--t); }
.cd-pair:hover .cd-pair__go .icon { transform: translateX(4px); }

/* ---------- 2. Who it is for: two columns ---------- */
.aud { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.aud__col { padding: clamp(28px, 3.4vw, 44px) clamp(0px, 3vw, 48px) 0 0; }
.aud__col + .aud__col { padding-left: clamp(0px, 3vw, 48px); padding-right: 0; border-left: 1px solid var(--line-strong); }
.aud__col h3 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.5rem, 1vw + 1.2rem, 1.875rem); line-height: 1.15; letter-spacing: -.01em; }
.aud__col > p { margin-top: 10px; color: var(--ink-2); line-height: 1.6; max-width: 30em; }
.aud__list { margin-top: 22px; }
.aud__list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink-2); line-height: 1.55; }
.aud__list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--coral-text); stroke-width: 2; }

/* ---------- 3. Connected systems: the About "technologies" pattern, five groups of marks and names ---------- */
.tech--sys { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tech--sys .tech__group li { gap: 14px; }
.tech--sys .tech__group img { width: 52px; height: 22px; filter: brightness(0); object-fit: contain; object-position: left center; }   /* a 52 x 22 slot: square marks keep their size, wide wordmarks stay readable */
.tech--sys li > span { display: grid; gap: 1px; }
.tech--sys small { font-size: .75rem; color: var(--ink-3); line-height: 1.3; }
.tech--sys li.is-wm img { width: auto; max-width: 100%; }   /* wordmark-only logos: the name is in the artwork, so no separate name; set height inline as on Automation Pro */
.tech--sys li.is-wm > span { gap: 5px; }
.tech--sys li.is-text { padding-left: 66px; }   /* text-only row, no mark yet: keeps the names on the same line as the rows that have one */

/* ---------- 4. 404: helpful links ---------- */
.nf-list { border-top: 1px solid var(--line-strong); }
.nf-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) auto; align-items: center; gap: 12px clamp(20px, 4vw, 56px); min-height: 44px; padding-block: clamp(22px, 2.6vw, 32px); border-bottom: 1px solid var(--line-strong); }
.nf-row__t { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.5rem, 1vw + 1.2rem, 2rem); line-height: 1.15; letter-spacing: -.01em; }
.nf-row__d { color: var(--ink-2); line-height: 1.5; }
.nf-row .icon { width: 22px; height: 22px; color: var(--coral-text); transition: transform var(--t); }
.nf-row:hover .nf-row__t { color: var(--coral-text); }
.nf-row:hover .icon { transform: translateX(6px); }

/* ---------- 5. Thank-you ---------- */
.ty-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--coral); color: #fff; }
.ty-mark .icon { width: 30px; height: 30px; stroke-width: 2.25; }
.hero__title .ty-mark { margin-bottom: 8px; }

.dl-sec { padding-bottom: 0; }
.dl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 3vw, 40px); padding: clamp(24px, 3vw, 40px); border: 1px solid rgba(20, 20, 19, .07); border-radius: var(--r-lg); background: var(--tan); }
.dl .icon-tile { width: 72px; height: 72px; }
.dl__t { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.375rem, 1vw + 1.1rem, 1.75rem); line-height: 1.2; letter-spacing: -.01em; }
.dl__meta { margin-top: 6px; color: var(--ink-2); }
.dl__act { display: grid; gap: 10px; justify-items: start; }

.read { position: relative; }
.read .tag { color: var(--coral-text-s, #A8402F); }
.read__link { color: inherit; }
.read__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.read__link:focus-visible { outline: none; }
.read:has(.read__link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ---------- 6. Responsive ---------- */
@media (max-width: 1000px) {
  .cd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech--sys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech--sys .tech__group:nth-child(n + 3) { padding-top: 36px; }
  .dl { grid-template-columns: auto minmax(0, 1fr); }
  .dl__act { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .aud { grid-template-columns: 1fr; }
  .aud__col, .aud__col + .aud__col { padding-inline: 0; border-left: 0; }
  .aud__col + .aud__col { margin-top: 20px; border-top: 1px solid var(--line-strong); }
  .nf-row { grid-template-columns: minmax(0, 1fr) auto; }
  .nf-row__d { grid-column: 1; grid-row: 2; }
  .nf-row .icon { grid-column: 2; grid-row: 1; }
}
@media (max-width: 640px) {
  .cd-grid { grid-template-columns: 1fr; gap: 14px; }
  .tech--sys { grid-template-columns: 1fr 1fr; }
  .tech--sys .tech__group { padding-right: 12px; }
  .dl { grid-template-columns: 1fr; }
  .dl .icon-tile { width: 60px; height: 60px; }
}
