/* ==========================================================================
   AI Hub round 4: TRUST, LEGAL AND BUYER-TRACK PAGES
   Security (T21), Privacy (T16), Small business and Enterprise (T20).
   Loads after system.css and company.css (steps, faq, inline-link, hero--compact),
   and after use-cases.css on the two buyer-track pages (the approved .uc-card).
   Everything here is page-level; nothing in the shared files is overridden.

   Contents
    1  Shared bits (note rows, section heads, link rows)
    2  Pillar grid, two by two (security)                  .hgrid--2
    3  Deployment options table (security)                 .dtable
    4  Controls (security)                                 .ctl
    5  Ownership band (security)                           .own3
    6  First projects (buyer tracks)                       .fp
    7  Department picks table (small business)             .picks
    8  Around the products: cards and system logos (enterprise)  .arc  .sys
    9  Related use cases grid                              .rel
   10  Lead magnet                                         .gm
   11  Crossover and closing rows                          .xrow
   12  Legal page: contents, sections, tables (privacy)    .legal
   13  Responsive
   ========================================================================== */

/* ---------- 1. Shared bits ---------- */
.fineprint { margin-top: 22px; max-width: 52em; font-size: .875rem; line-height: 1.6; color: var(--ink-3); }
.fineprint + .fineprint { margin-top: 10px; }
.sec-link { margin-top: clamp(24px, 3vw, 36px); }

/* ---------- 2. Pillar grid: the U-09 hairline grid in two columns, so four pillars read two by two ---------- */
.hgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hgrid--2 .hgrid__cell { min-height: 0; padding: clamp(28px, 3.4vw, 48px); gap: 8px; }
.hgrid--2 .hgrid__cell:nth-child(3n) { border-right: 1px solid var(--line-strong); }
.hgrid--2 .hgrid__cell:nth-child(2n) { border-right: 0; }
.hgrid--2 .hgrid__cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-strong); }
.hgrid--2 .hgrid__cell:nth-last-child(-n+2) { border-bottom: 0; }
.hgrid--2 .hgrid__cell h3 { font-size: clamp(1.375rem, .8vw + 1.1rem, 1.75rem); }
.hgrid--2 .hgrid__cell p { font-size: 1.0625rem; line-height: 1.6; max-width: 30em; }
.hgrid--2 .hgrid__cell .tag { margin-top: 14px; }
.hgrid--2 .hgrid__cell .icon { margin-bottom: clamp(20px, 2.6vw, 36px); }

/* ---------- 3. Deployment options table: two options, one Voice row group ---------- */
.dtable-wrap { background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; }
.dtable { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.dtable th, .dtable td { padding: 22px clamp(18px, 2.4vw, 32px); vertical-align: top; border-top: 1px solid var(--line); }
.dtable thead th { border-top: 0; padding-top: clamp(26px, 3vw, 36px); padding-bottom: 24px; background: var(--paper); }
.dtable thead th:first-child { width: 22%; }
.dtable__opt { display: block; font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.5rem, 1vw + 1.1rem, 1.875rem); line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
.dtable__desc { display: block; margin-top: 8px; font-weight: 400; font-size: .9688rem; line-height: 1.5; color: var(--ink-2); }
.dtable tbody th { width: 22%; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; color: var(--ink-3); }
.dtable tbody td { font-size: 1.0625rem; line-height: 1.55; color: var(--ink); }
.dtable thead th:not(:first-child), .dtable tbody td { border-left: 1px solid var(--line); }
.dtable__group th { padding: 14px clamp(18px, 2.4vw, 32px); background: var(--tan); border-top: 1px solid var(--line-strong); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--coral-text-s, #A8402F); }
.dtable__group th::after { content: none; }
.dtable-notes { margin-top: 28px; }

/* ---------- 4. Controls: four hover cards, two by two ---------- */
.ctl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ctl { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(26px, 3vw, 40px); background: var(--tan); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ctl .icon-tile { width: 60px; height: 60px; border-radius: 16px; margin-bottom: 12px; }
.ctl .icon-tile .icon { width: 26px; height: 26px; }
.ctl .tag { color: var(--coral-text-s, #A8402F); }
.ctl h3 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.375rem, .8vw + 1.1rem, 1.625rem); line-height: 1.2; letter-spacing: -.01em; }
.ctl p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; max-width: 32em; }

/* ---------- 5. Ownership band: dark, three columns on hairlines ---------- */
.own3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dark-strong); }
.own3__col { display: flex; flex-direction: column; gap: 10px; padding: clamp(28px, 3.4vw, 44px) clamp(20px, 2.6vw, 36px) 8px; border-left: 1px solid var(--line-dark-strong); }
.own3__col:first-child { padding-left: 0; border-left: 0; }
.own3__col .icon { width: 36px; height: 36px; margin-bottom: 14px; color: var(--coral-lt); stroke-width: 1.25; }
.own3__col h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; }
.own3__col p { color: var(--on-dark-2); font-size: 1.0625rem; line-height: 1.6; max-width: 26em; }

/* ---------- 6. First projects (buyer tracks): three hover cards, each with a real product frame ---------- */
.fp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fp-grid > li { display: flex; min-width: 0; }
.fp { display: flex; flex-direction: column; flex: 1; overflow: hidden; background: var(--tan); border: 1px solid var(--line); border-radius: 16px; }
.fp__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--line); }
.fp__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.fp__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 22px 26px 24px; }
.fp .tag { color: var(--coral-text-s, #A8402F); }
.fp__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.fp__line { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; }
.fp__links { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-top: auto; padding-top: 14px; }
.fp__links .link-arrow { font-size: .9688rem; }

/* ---------- 7. Department picks (small business): a table, department and problem left, products right ---------- */
.picks { width: 100%; border-collapse: collapse; text-align: left; border-top: 1px solid var(--line-strong); }
.picks thead th { padding: 14px 24px 14px 0; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line-strong); }
.picks tbody th, .picks tbody td { padding: clamp(22px, 2.4vw, 30px) 24px clamp(22px, 2.4vw, 30px) 0; vertical-align: top; border-bottom: 1px solid var(--line-strong); }
.picks tbody th { width: 20%; font-family: var(--font-serif); font-weight: 600; font-size: 1.375rem; line-height: 1.25; letter-spacing: -.01em; }
.picks tbody th a { background: linear-gradient(var(--coral), var(--coral)) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; transition: color var(--t); }
.picks tbody th a:hover { color: var(--coral-text); }
.picks tbody td:nth-child(2) { width: 32%; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; }
.picks__prods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -4px; }
.picks__prods a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); font-size: .9688rem; font-weight: 500; line-height: 1.2; color: var(--ink); transition: background var(--t), border-color var(--t), color var(--t); }
.picks__prods a:hover { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }

/* ---------- 8. Enterprise: around the products. Three hover cards; the first carries the connector logos ---------- */
.arc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.arc { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(26px, 3vw, 38px); background: var(--tan); border: 1px solid var(--line); border-radius: var(--r-lg); }
.arc .icon-tile { width: 60px; height: 60px; border-radius: 16px; margin-bottom: 10px; }
.arc .icon-tile .icon { width: 26px; height: 26px; }
.arc h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; }
.arc p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; }
.arc .link-arrow { margin-top: auto; font-size: .9688rem; }
.arc p + .sys, .arc p + .link-arrow { margin-top: 6px; }
.arc .sys + .link-arrow { margin-top: auto; }
.sys { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 14px 0 6px; }
.sys li { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: .9688rem; font-weight: 500; color: var(--ink-2); }
.sys img { flex: none; width: 24px; height: 24px; opacity: .65; transition: opacity var(--t); }
.sys li:hover img { opacity: 1; }
.arc:hover .sys img, .arc:has(:focus-visible) .sys img { filter: invert(1); opacity: .85; }   /* the marks are black SVGs: they invert on the near-black hover card */

/* ---------- 9. Related use cases: the approved .uc-card in a calm grid ---------- */
.rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rel > li { display: flex; min-width: 0; }
.rel > li > .uc-card { flex: 1; }
.rel--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.rel--5 > li { grid-column: span 2; }
.rel--5 > li:nth-child(n+4) { grid-column: span 3; }
.rel-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-bottom: var(--gap-head); }
.rel-head .section__head { margin-bottom: 0; }

/* ---------- 10. Lead magnet: text left, a typographic document tile right ---------- */
.gm { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.gm__copy { display: grid; gap: 18px; justify-items: start; }
.gm__copy .lead { max-width: 30em; }
.gm__doc { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; justify-self: end; width: min(280px, 100%); aspect-ratio: 3 / 4; padding: 28px 26px 26px; border-radius: 6px 14px 14px 6px; background: var(--dark); color: var(--on-dark); border-left: 6px solid var(--coral); box-shadow: var(--shadow-frame); }
.gm__doc-t { font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--coral-lt); }
.gm__doc-h { font-family: var(--font-serif); font-weight: 600; font-size: 1.75rem; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.gm__doc-f { padding-top: 14px; border-top: 1px solid var(--line-dark-strong); font-size: .8125rem; color: var(--on-dark-2); }

/* ---------- 11. Crossover and closing rows: quiet, navigational ---------- */
.xrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.xrow__text { color: var(--ink-2); }
.xrow--end { margin-top: clamp(36px, 4.4vw, 56px); }
.section--thin { padding-block: clamp(28px, 3.4vw, 44px); }

/* ---------- 12. Legal page: sticky contents left, numbered sections right ---------- */
.legal { display: grid; grid-template-columns: minmax(0, 3.4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; padding-right: 8px; }
.legal__toc-t { margin-bottom: 14px; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.legal__toc ol { border-top: 1px solid var(--line-strong); counter-reset: toc; }
.legal__toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.legal__toc a { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); align-items: baseline; min-height: 44px; padding: 10px 0; font-size: .9688rem; line-height: 1.4; color: var(--ink-2); transition: color var(--t); }
.legal__toc a::before { content: counter(toc) '.'; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.legal__toc a:hover { color: var(--coral-text); }
.legal__body { max-width: 46em; }
.legal__draft { display: inline-block; margin-bottom: clamp(28px, 3.4vw, 44px); padding: 10px 16px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--tan); font-size: .9375rem; font-weight: 500; color: var(--ink); }
.legal__sec { padding-top: clamp(28px, 3.4vw, 44px); margin-top: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--line-strong); }
.legal__sec:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }
.legal__sec { scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__sec h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.5rem, 1vw + 1.15rem, 1.875rem); line-height: 1.2; letter-spacing: -.012em; margin-bottom: 18px; }
.legal__sec h2 span { color: var(--coral-text); margin-right: .35em; font-variant-numeric: tabular-nums; }
.legal__sec p, .legal__sec li { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.legal__sec p + p, .legal__sec p + ul, .legal__sec ul + p, .legal__sec p + .ltable-wrap, .legal__sec .ltable-wrap + p { margin-top: 16px; }
.legal__sec ul { display: grid; gap: 10px; padding-left: 1.2em; list-style: disc; }
.legal__sec li::marker { color: var(--coral); }
.legal__sec strong { color: var(--ink); font-weight: 600; }
.legal__sec a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--coral); }
.legal__sec a:hover { color: var(--coral-text); }
.ltable-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white); }
.ltable { width: 100%; border-collapse: collapse; text-align: left; min-width: 440px; }
.ltable th, .ltable td { padding: 14px 18px; vertical-align: top; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.ltable thead th { border-top: 0; background: var(--paper-2); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ltable tbody th { width: 30%; font-weight: 600; color: var(--ink); }
.cf { display: inline; padding: 1px 7px; border: 1px dashed var(--line-strong); border-radius: 6px; background: var(--tan); font-size: .875em; font-weight: 500; line-height: 1.9; color: var(--ink); }
.legal__contact { margin-top: 18px; padding: 24px 28px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--tan); }
.legal__contact p { color: var(--ink); line-height: 1.6; }
.legal__contact p + p { margin-top: 2px; }
.legal__contact strong { font-family: var(--font-serif); font-size: 1.25rem; }
.legal-meta { font-size: .9375rem; color: var(--on-dark-2); }
.legal-meta b { color: var(--on-dark); font-weight: 600; }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1100px) {
  .arc-grid { grid-template-columns: 1fr; }
  .arc .icon-tile { margin-bottom: 4px; }
}
@media (max-width: 1000px) {
  .legal { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .legal__toc { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .legal__toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .gm { grid-template-columns: 1fr; }
  .gm__doc { justify-self: start; }
  .fp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .fp__body { padding: 18px 18px 20px; }
  .fp__name { font-size: 1.25rem; }
  .rel, .rel--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rel--5 > li, .rel--5 > li:nth-child(n+4) { grid-column: auto; }
  .rel--5 > li:last-child { grid-column: 1 / -1; }
  .ctl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hgrid--2 { grid-template-columns: 1fr; }
  .hgrid--2 .hgrid__cell, .hgrid--2 .hgrid__cell:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .hgrid--2 .hgrid__cell:last-child { border-bottom: 0; }
  .fp-grid { grid-template-columns: 1fr; }
  .own3 { grid-template-columns: 1fr; }
  .own3__col, .own3__col:first-child { padding: 28px 0 24px; border-left: 0; border-top: 1px solid var(--line-dark-strong); }
  .own3__col:first-child { border-top: 0; padding-top: 24px; }
}
@media (max-width: 760px) {
  /* deployment table: each row becomes a block, each option labelled in the cell */
  .dtable, .dtable tbody, .dtable tr, .dtable th, .dtable td { display: block; width: 100% !important; }
  .dtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dtable tbody tr { padding: 4px 0 10px; border-top: 1px solid var(--line-strong); }
  .dtable tbody tr:first-child { border-top: 0; }
  .dtable tbody th, .dtable tbody td { border: 0; padding: 6px 20px; }
  .dtable tbody th { padding-top: 16px; }
  .dtable tbody td::before { content: attr(data-opt); display: block; margin-bottom: 2px; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-text-s, #A8402F); }
  .dtable tbody td { font-size: 1rem; }
  .dtable__group { padding: 0 !important; border-top: 1px solid var(--line-strong); }
  .dtable__group th { padding: 12px 20px !important; }
  .picks, .picks tbody, .picks tr, .picks th, .picks td { display: block; width: 100% !important; }
  .picks thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .picks tbody tr { padding: 24px 0 14px; border-bottom: 1px solid var(--line-strong); }
  .picks tbody th, .picks tbody td { border: 0; padding: 0 0 8px; }
  .picks__prods { margin-top: 4px; }
  .rel, .rel--5 { grid-template-columns: 1fr; }
  .rel--5 > li:last-child { grid-column: auto; }
}
@media (max-width: 640px) {
  .legal__toc ol { grid-template-columns: 1fr; }
  .legal__sec p, .legal__sec li { font-size: 1rem; }
  .ltable th, .ltable td { padding: 12px 14px; }
  .xrow { flex-direction: column; align-items: flex-start; }
}
