/* Phoenix AI Solutions · trust.css
   Page styles for the trust lane: /why-phoenix/, /privacy-and-safety/, /automation-guide/, /contact/.
   Loads after site.css. Everything is prefixed trust-. Spacing values come from the scale only (4 8 12 16 24 32 48 64 96).
   Section rhythm (64 / 128, phones 48) and the shared .tile-full and .split come from site.css; nothing here sets them again.
   Spec: docs/SYSTEM.md; spacing maps: docs/spacing-maps/<page>.md.

    1  Small helpers and number sizes      6  Guide layout (contents list, reading sections)
    2  Heads, hero, closing tile           7  Figures and drawn examples (guide and privacy)
    3  Why Phoenix: chapters and link rows 8  Contact: the phone scene and form
    4  Steps                               9  Phones and reduced motion
    5  Who we are: limits
*/

/* ============================================================ 1. Small helpers (the .todo placeholder style is the shared one in site.css) */
/* Mono numbers take their size from the line they sit in (site.css, SYSTEM.md section 3); this page sets none.
   Headline prices stay in Display (DEC-010): a price inside a heading takes the heading's own face. */
.trust-way .num, .trust-offer-side .num { font-family: inherit; font-weight: inherit; letter-spacing: inherit; }   /* a price on a price block stays in Display */
.trust-step-n, .trust-auto-n { font-variant-numeric: tabular-nums; }

/* ============================================================ 2. Heads, hero and the closing tile */
.trust-head > * + * { margin-top: var(--s-16); }
.trust-head > .eyebrow + * { margin-top: var(--s-12); }
.trust-head > .cluster { margin-top: var(--s-32); }
.trust-head .lead { max-width: 600px; }

/* the left edge: every hero here starts on the .wrap edge (130 at 1440), the same x as the home page */
.trust-hero-2 { display: grid; gap: var(--s-48); align-items: center; }
@media (min-width: 900px) { .trust-hero-2 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-64); } }

/* Why Phoenix hero: the words 4fr, a real app screen 8fr (the screen sits beside the headline from 1024; stacked below it) */
.trust-hero-3 { display: grid; gap: var(--s-48); align-items: center; }
@media (min-width: 1024px) { .trust-hero-3 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-64); } }
.trust-fact { margin-top: var(--s-48); padding-top: var(--s-16); border-top: 1px solid var(--line); color: var(--ink-2); }

/* a real app screen, script-made (tools/trust-scenes.py), with the Sample chip bottom left */
.trust-shot { position: relative; min-width: 0; margin: 0; border-radius: var(--r-14); overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--black); }
.trust-shot :is(picture, img) { display: block; width: 100%; height: auto; }
.trust-shot.is-capped { padding-bottom: var(--s-48); }          /* a black strip under the screen holds the Sample chip, so it hides nothing */

/* The closing call: one line, the button, the second link (PAGE-BRIEFS: every page ends the same way) */
.trust-closing {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: var(--s-64) var(--s-32); background: var(--grey); border-radius: 24px;
}
.trust-closing > * + * { margin-top: var(--s-16); }
.trust-closing > .lead { max-width: 600px; text-wrap: balance; }
.trust-closing > .cluster { margin-top: var(--s-32); justify-content: center; }
.trust-closing > .small { margin-top: var(--s-24); }
.trust-line { display: block; }

/* ============================================================ 3. Why Phoenix: three chapters */
/* Link rows: a hairline above each, the title, two grey lines, the link. The whole row is the link, so there is no card and no box. */
.trust-picks { display: grid; align-self: stretch; width: 100%; }
.trust-pick {
  display: grid; align-content: start; row-gap: var(--s-8); padding: var(--s-16) 0; color: var(--ink);
  border-top: 1px solid var(--line);
}
.trust-picks > .trust-pick:last-child { border-bottom: 1px solid var(--line); }
.trust-pick > * { margin: 0; }
.trust-pick .h4 { display: flex; flex-wrap: wrap; align-items: center; align-self: start; gap: var(--s-4) var(--s-12); }
.trust-pick .link-arrow { display: block; justify-self: start; }                        /* a label that wraps keeps its arrow after the last word, not at the far edge */
.trust-pick .link-arrow::after { display: inline-block; vertical-align: -3px; margin-left: var(--s-4); }
.trust-pick .pill, .trust-glance .pill, .trust-auto-who { color: var(--ink); }
@media (hover: hover) { .trust-pick:hover .h4 > :first-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; } }
.trust-pick:active .h4 > :first-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.trust-pick:hover .link-arrow::after, .trust-pick:active .link-arrow::after { transform: translateX(var(--arrow-go)); }
.tile-words > .trust-picks, .split-words > .trust-picks { margin-top: var(--s-32); }

/* chapter two's four methods in a row: one top line per column, and the title, text and link rows shared across the four (subgrid),
   so every title ends on one line and every link sits on one baseline whatever the text length */
@media (min-width: 600px) {
  .trust-picks.is-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-24); }
  .trust-picks.is-cols > .trust-pick { grid-row: span 3; grid-template-rows: subgrid; row-gap: var(--s-8); padding: var(--s-16) 0 var(--s-24); border-top: 1px solid var(--line-strong); border-bottom: 0; }
}
@media (min-width: 1024px) {
  .trust-picks.is-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust-picks.is-cols > .trust-pick { padding-bottom: 0; }
}
@media (max-width: 599px) { .trust-picks.is-cols > .trust-pick:last-child { border-bottom: 1px solid var(--line); } }

/* the connector strip sits in a quiet panel above the four methods */
.trust-strip { margin-bottom: var(--s-48); padding: var(--s-32); background: var(--grey); border-radius: var(--r-24); }

/* ============================================================ 4. Steps (how we reply; what happens next) */
.trust-more { margin-top: var(--s-24); }
.trust-steps { display: grid; gap: var(--s-32); padding: 0; list-style: none; }
.trust-step { position: relative; display: flex; flex-direction: column; gap: var(--s-8); }
.trust-step-n {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--s-4); border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); font: 500 15px/1 var(--mono);
}
.trust-step > .h4 + p { color: var(--ink-2); }
@media (min-width: 900px) {
  /* circle, title, text are three rows shared by the three steps (subgrid): the texts start on one line */
  .trust-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; gap: 0 var(--s-24); }
  .trust-step { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: var(--s-8); }
  .trust-step-n { margin-bottom: 0; }
  .trust-step:not(:last-child)::after {                      /* the dashed connector to the next step */
    content: ""; position: absolute; top: 20px; left: 52px; right: calc(-1 * var(--s-24) + 12px); height: 0; border-top: 1px dashed var(--line-strong);
  }
}

/* ============================================================ 5. Who we are: the limits */
.trust-design { display: grid; gap: var(--s-16) var(--s-48); }
@media (min-width: 768px) { .trust-design { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust-design .h2 { grid-column: 1 / -1; margin-bottom: var(--s-8); } }
.trust-limits-head { margin-top: var(--s-64); margin-bottom: var(--s-16); }
.trust-limits { display: grid; gap: var(--s-24); padding: 0; list-style: none; }
.trust-limits li { padding-top: var(--s-16); border-top: 1px solid var(--line-strong); }
@media (min-width: 1024px) { .trust-limits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 600px) and (max-width: 1023px) { .trust-limits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================================================ 6. Guide layout: contents list and reading sections */
.trust-guide { display: grid; gap: var(--s-32); align-items: start; }
@media (min-width: 1024px) { .trust-guide { grid-template-columns: 220px minmax(0, 680px); gap: var(--s-64); } .trust-guide.is-wide { grid-template-columns: 220px minmax(0, 1fr); } }
/* a phone: the contents bar stays under the nav while you read, so it is one tap away from anywhere (the grid would hold it in its own row, so it is a plain block here) */
@media (max-width: 1023px) { .trust-guide { display: block; } .trust-guide > .trust-article { margin-top: var(--s-32); } }
.trust-toc { position: sticky; top: calc(var(--nav-h) + var(--s-32)); }
.trust-toc a:focus-visible { border-radius: var(--r-14); }
.trust-toc summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 var(--s-16);
  border: 1px solid var(--line-strong); border-radius: var(--r-14); font: 500 15px/20px var(--font-text); cursor: pointer; list-style: none;
}
.trust-toc summary::-webkit-details-marker { display: none; }
.trust-toc summary::after {
  content: ""; width: 12px; height: 12px; background: currentColor; opacity: .6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--d-hover) var(--ease);
}
.trust-toc details[open] summary::after { transform: rotate(180deg); }
.trust-toc ol { margin: var(--s-12) 0 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.trust-toc a {
  display: block; margin-left: -1px; padding: var(--s-8) 0 var(--s-8) var(--s-16); border-left: 2px solid transparent;
  color: var(--ink-2); font: 400 15px/20px var(--font-text); transition: color var(--d-hover) var(--ease), border-color var(--d-hover) var(--ease);
}
.trust-toc a:hover { color: var(--ink); }
.trust-toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--ink); }
@media (min-width: 1024px) { .trust-toc summary { display: none; } .trust-toc ol { margin-top: 0; } }
@media (max-width: 1023px) {
  .trust-toc { top: var(--nav-h); z-index: 5; margin-inline: calc(-1 * var(--gx)); padding: var(--s-8) var(--gx); background: var(--paper); box-shadow: 0 1px 0 var(--line); }
  .trust-toc details { position: relative; }
  .trust-toc ol {                                          /* the open list drops over the page and the script closes it again on a tap */
    display: grid; gap: var(--s-4); position: absolute; top: calc(100% + var(--s-8)); left: 0; right: 0; margin: 0; padding: var(--s-8) var(--s-16);
    background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-14); box-shadow: var(--shadow-float);
  }
  .trust-toc a { display: flex; align-items: center; min-height: 44px; padding-block: 0; }
  .trust-toc a:active { color: var(--ink); }
  .trust-sec, .trust-auto { scroll-margin-top: calc(var(--nav-h) + var(--s-64)); }     /* a jump lands below the contents bar as well as the nav */
}

.trust-article { min-width: 0; container: trustart / inline-size; }
.trust-guide.is-wide .trust-sec > :not(.trust-auto) { max-width: 680px; }                       /* prose keeps a reading width; the five automations use the full column */
.trust-guide.is-wide .trust-auto > :not(.trust-auto-top) { max-width: 680px; }
.trust-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.trust-sec { scroll-margin-top: calc(var(--nav-h) + var(--s-24)); }
.trust-sec + .trust-sec { margin-top: var(--s-32); padding-top: var(--s-32); border-top: 1px solid var(--line); }
.trust-sec > * + * { margin-top: var(--s-16); }
.trust-sec > .h3 + * { margin-top: var(--s-16); }
.trust-sec > .trust-keeps { margin-top: var(--s-12); }
.trust-sec > h3.h4 { margin-top: var(--s-32); }
.trust-sec > h3.h4 + * { margin-top: var(--s-12); }
.trust-sec > .trust-fig, .trust-sec > .trust-eg { margin-top: var(--s-24); }
.trust-sec ul:not(.ticks, .trust-plain, .trust-rows, .trust-linkrows, .trust-check), .trust-sec ol:not(.trust-plain) { padding-left: var(--s-24); }
.trust-sec :is(ul:not(.ticks, .trust-rows, .trust-linkrows, .trust-check, .trust-plain), ol:not(.trust-plain)) > li + li { margin-top: var(--s-8); }
.trust-sec :is(p, li) > a:not([class]) { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.trust-sec :is(p, li) > a:not([class]):hover { text-decoration-thickness: 2px; }
.trust-plain { padding: 0; list-style: none; }
.trust-lead-in { font-weight: 600; }

/* A plain row list with an icon tile each (who can see it, WhatsApp rules) */
.trust-rows { display: grid; gap: var(--s-24); padding: 0; list-style: none; }
.trust-rows li { display: flex; align-items: flex-start; gap: var(--s-16); margin-top: 0; }
.trust-rows .icon-tile { width: 48px; height: 48px; border-radius: var(--r-14); }
.trust-rows .icon-tile svg { width: 24px; height: 24px; }
.trust-rows b { display: block; font: 600 17px/24px var(--font-text); }
.trust-rows p { color: var(--ink-2); margin-top: var(--s-4); }

/* Link rows (the legal pages): hairline, arrow at the right */
.trust-linkrows { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.trust-linkrows li { margin-top: 0; border-bottom: 1px solid var(--line); }
.trust-lr { display: flex; align-items: center; justify-content: space-between; gap: var(--s-24); padding: var(--s-16) 0; }
.trust-lr b { display: block; font: 500 17px/24px var(--font-text); }
.trust-lr span.small { display: block; color: var(--ink-2); }
.trust-lr .ic { color: var(--ink-2); transition: transform var(--d-hover) var(--ease), color var(--d-hover) var(--ease); }
.trust-lr:hover .ic { color: var(--ink); transform: translateX(var(--arrow-go)); }
.trust-lr:hover b { text-decoration: underline; text-underline-offset: 3px; }

.trust-keeps { border-top: 1px solid var(--line); }
.trust-keeps > div { display: grid; gap: var(--s-8); padding: var(--s-16) 0; border-bottom: 1px solid var(--line); }
.trust-keeps dt { font: 600 17px/24px var(--font-display); }
.trust-keeps dd { color: var(--ink-2); font: 400 15px/20px var(--font-text); }
@media (min-width: 600px) { .trust-keeps > div { grid-template-columns: 168px minmax(0, 1fr); gap: var(--s-24); } }

/* Small side-by-side cards inside the reading column */
.trust-btnrow { display: flex; flex-wrap: wrap; gap: var(--s-8); margin-top: var(--s-4); }
.trust-pair { display: grid; gap: var(--s-16); }
.trust-pair > .card { padding: var(--s-24); }
.trust-pair h4 { margin-bottom: var(--s-8); font: 600 17px/24px var(--font-display); }
.trust-pair p + p { margin-top: var(--s-8); }
@media (min-width: 600px) { .trust-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust-pair.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trust-pair.is-3 > .card { padding: var(--s-16); }
.trust-pair.is-3 ul { margin: var(--s-8) 0 0; padding-left: var(--s-16); }
.trust-pair.is-3 li + li { margin-top: var(--s-4); }

/* ============================================================ 7. Figures and drawn examples (privacy, guide) */
.trust-fig { margin-bottom: 0; }
.trust-fig-box { padding: var(--s-24); background: var(--grey); border-radius: 20px; }
.trust-fig svg { display: block; width: 100%; height: auto; }
.trust-fig svg.trust-fig-phone { display: none; }               /* each wide drawing has a narrow twin for phones (section 9) */
.trust-fig figcaption { margin-top: var(--s-12); }
.trust-fig svg text { font-family: var(--font-text); fill: var(--ink); }
.trust-fig svg .t-muted { fill: var(--ink-2); }
.trust-fig svg .t-inv { fill: #fff; }
.trust-fig svg .t-display { font-family: var(--font-display); font-weight: 600; }
.trust-fig svg .ln { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.trust-fig svg .ln-soft { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 5 5; stroke-linecap: round; }
.trust-fig svg .box { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.trust-fig svg .box-hi { fill: var(--ink); }
.trust-fig svg .box-ghost { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 5 5; }

/* A drawn app example: a grey tile, a Sample chip, the mock inside */
.trust-eg { container: trusteg / inline-size; display: flex; flex-direction: column; gap: var(--s-16); padding: var(--s-24); background: var(--grey); border-radius: 20px; }
.trust-eg-row { display: grid; gap: var(--s-16); align-items: center; }
/* the example's own width decides its columns (it can sit in a half-width column or a full one) */
@container trusteg (min-width: 520px) { .trust-eg-row.is-2 { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1.3fr); } .trust-eg-row.is-split { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.trust-eg-arrow { color: var(--ink-2); justify-self: center; transform: rotate(90deg); }
@container trusteg (min-width: 520px) { .trust-eg-arrow { transform: none; } }
.trust-mock { display: flex; flex-direction: column; gap: var(--s-8); padding: var(--s-16); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.trust-mock-title { color: var(--ink-2); font: 500 13px/16px var(--font-text); }
.trust-mock p { font: 400 15px/20px var(--font-text); }
.trust-bubble { width: fit-content; max-width: 88%; padding: var(--s-8) var(--s-12); border-radius: var(--r-14); font: 400 15px/20px var(--font-text); background: var(--grey); }
.trust-eg .trust-bubble { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.trust-bubble.is-out { align-self: flex-end; background: var(--ink); color: var(--paper); }
.trust-bubble .pill { margin-bottom: var(--s-4); height: 24px; padding: 0 10px; }
.trust-chat { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-8); }
/* a drawn button is never the indigo of a real one: grey on white, or ink for the one primary */
.trust-mock-btn { align-self: flex-start; display: inline-flex; align-items: center; height: 32px; padding: 0 var(--s-12); border-radius: 980px; background: var(--grey); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); font: 500 13px/1 var(--font-text); white-space: nowrap; }
.trust-mock-btn.is-primary { background: var(--ink); color: var(--paper); box-shadow: none; }
.trust-deal { display: grid; gap: var(--s-8); padding: var(--s-12) 0; border-top: 1px solid var(--line); }
.trust-deal:first-child { border-top: 0; padding-top: 0; }
.trust-deal:last-child { padding-bottom: 0; }
.trust-deal-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); flex-wrap: wrap; }
.trust-deal-top b { font: 500 15px/20px var(--font-text); }
.trust-deal .muted { font: 400 15px/20px var(--font-text); }
.trust-sources { width: 100%; border-collapse: collapse; font: 400 15px/20px var(--font-text); }
.trust-sources th { padding: 0 0 var(--s-8); text-align: left; color: var(--ink-2); font: 500 13px/16px var(--font-text); }
.trust-sources td { padding: var(--s-8) 0; border-top: 1px solid var(--line); }
.trust-bars { display: grid; gap: var(--s-12); }
.trust-bar-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: var(--s-12); font: 400 13px/16px var(--font-text); }
.trust-bar-set { display: grid; gap: var(--s-4); }
.trust-bar { display: flex; align-items: center; gap: var(--s-8); }
.trust-bar i { display: block; width: calc(var(--w) * 1%); max-width: 100%; height: 10px; border-radius: var(--r-pill); background: var(--line-strong); }
.trust-bar.is-paid i { background: var(--ink); }
.trust-key { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-16); color: var(--ink-2); font: 400 13px/16px var(--font-text); }
.trust-key i { display: inline-block; width: 10px; height: 10px; margin-right: var(--s-8); border-radius: 50%; background: var(--line-strong); }
.trust-key i.is-paid { background: var(--ink); }
.trust-tick { display: inline-flex; align-items: center; gap: var(--s-8); color: var(--ink-2); font: 400 13px/16px var(--font-text); }
.trust-tick svg { width: 16px; height: 16px; color: var(--ink); }
.trust-file { display: inline-flex; align-items: center; gap: var(--s-8); align-self: flex-start; height: 32px; padding: 0 var(--s-12); border-radius: var(--r-14); background: var(--grey); font: 500 13px/1 var(--font-text); }
.trust-file svg { width: 16px; height: 16px; }

/* "Good at / Leave to a person" */
.trust-versus { display: grid; gap: var(--s-16); }
@media (min-width: 600px) { .trust-versus { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trust-versus > .card { padding: var(--s-24); }
.trust-versus .h4 { margin-bottom: var(--s-12); }
.trust-versus ul { display: grid; gap: var(--s-8); padding: 0; list-style: none; color: var(--ink-2); }
.trust-versus .is-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.trust-versus .is-ink ul { color: #d2d2d7; }

/* The sample consent line with its Copy button */
.trust-quote { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-16); padding: var(--s-16) var(--s-24); background: var(--grey); border-radius: 14px; }
.trust-quote p { font: 400 15px/20px var(--font-text); }
.trust-quote .btn { flex: none; min-width: 88px; }

/* Recipe card: When / Only if / Do / Stop */
.trust-recipe { padding: var(--s-24); }
.trust-recipe .eyebrow { margin-bottom: var(--s-12); }
.trust-recipe dl { display: grid; gap: var(--s-12) var(--s-16); grid-template-columns: 88px minmax(0, 1fr); }
.trust-recipe dt { color: var(--ink-2); font: 500 13px/20px var(--font-text); }
.trust-recipe dd { font: 400 15px/20px var(--font-text); }
.trust-auto-head { display: flex; align-items: baseline; gap: var(--s-16); }
.trust-auto-n { flex: none; color: var(--ink); font: 500 28px/32px var(--mono); }
.trust-auto-who { display: inline-flex; margin-left: var(--s-12); vertical-align: middle; font-family: var(--font-text); }
.trust-auto { margin-top: var(--s-32); padding-top: var(--s-32); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + var(--s-24)); }
.trust-auto > * + * { margin-top: var(--s-16); }
.trust-auto > .trust-auto-top { margin-top: 0; }
.trust-auto > .trust-eg, .trust-auto > .trust-recipe { margin-top: var(--s-24); }
.trust-auto-words > * + * { margin-top: var(--s-16); }
.trust-auto-media { min-width: 0; margin: 0; }
.trust-auto-media > .trust-eg { height: 100%; }

/* The top of each automation: the words (number, title, what it does) beside one picture. Three layouts, so five automations are not five copies:
   a plain split (picture right), a flipped split (picture left), and one tile with the picture bleeding off its edge. The picture is a drawn example
   or a real Reach screen (script-made, tools/trust-scenes.py). Stacked below 800px of column width (a container query, because the contents rail
   takes 284px of the page). */
.trust-auto-top { display: grid; gap: var(--s-24); align-items: center; }
.trust-auto-top.is-tile { --pad: var(--s-24); padding: var(--pad); background: var(--grey); border-radius: var(--r-24); overflow: hidden; }
@container trustart (min-width: 800px) {
  .trust-auto-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-48); }
  .trust-auto-top.is-flip > .trust-auto-media { order: -1; }
  .trust-auto-top.is-tile { --pad: var(--s-48); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-32); }
}
.trust-shot-sm { position: relative; margin: 0; border-radius: var(--r-14); overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--black); }
.trust-shot-sm :is(picture, img) { display: block; width: 100%; height: auto; }
.trust-auto-top.is-tile .trust-shot-sm { align-self: end; margin: 0 calc(-1 * var(--pad)) calc(-1 * var(--pad)) 0; border-radius: var(--r-14) 0 0 0; box-shadow: none; }
@media (max-width: 799px) { .trust-auto-top.is-tile .trust-shot-sm { margin: 0 calc(-1 * var(--pad)) calc(-1 * var(--pad)); border-radius: 0; } }
.trust-rule { margin-top: var(--s-32); color: var(--ink-2); font: 500 15px/20px var(--font-text); }
.trust-sec > .trust-rule + h3.h4 { margin-top: var(--s-4); }
.trust-glance { display: grid; margin-top: var(--s-8); padding: 0; list-style: none; }
.trust-glance li { border-top: 1px solid var(--line); }
.trust-glance li:first-child { border-top: 0; }
.trust-glance a { display: flex; align-items: baseline; gap: var(--s-16); padding: var(--s-12) 0; font: 500 17px/24px var(--font-text); transition: color var(--d-hover) var(--ease); }
.trust-glance a:hover { text-decoration: underline; text-underline-offset: 3px; }
.trust-glance .num { flex: none; width: 16px; color: var(--ink-2); }
.trust-glance .pill { margin-left: auto; flex: none; align-self: center; }
.trust-more-card { margin-top: var(--s-24); }
.trust-more-card > * + * { margin-top: var(--s-8); }
.trust-more-card .link-arrow { margin-top: var(--s-12); }
.trust-label { color: var(--ink-2); font: 500 13px/16px var(--font-text); margin-bottom: var(--s-4); }
.trust-sec .trust-label + p { margin-top: 0; }
.trust-note { padding: 0 0 0 var(--s-16); border-left: 2px solid var(--line-strong); }

/* Rule 4 table: a form to fill in */
.trust-fill th { white-space: nowrap; }
.trust-fill td:not(:first-child) { min-width: 96px; }
.trust-fill td:not(:first-child)::after { content: ""; display: block; height: 20px; border-bottom: 1px solid var(--ink-2); }   /* the write-in lines are firm enough to see */
@media (max-width: 767px) {
  .table-wrap > .table.trust-fill { min-width: 0; }
  .trust-fill thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .trust-fill :is(tbody, tr, td) { display: block; }
  .trust-fill tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8) var(--s-16); padding: var(--s-16) 0; border-bottom: 1px solid var(--line); }
  .trust-fill tbody tr:last-child { border-bottom: 0; }
  .trust-fill td { padding: 0; border: 0; }
  .trust-fill td:first-child { grid-column: 1 / -1; }
  .trust-fill td[data-label]::before { content: attr(data-label); display: block; color: var(--ink-2); font: 500 13px/16px var(--font-text); }
}
.trust-health { display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); }

/* What not to automate: a table, cards on phones */
@media (max-width: 767px) {
  .trust-leave.table-wrap > .table { min-width: 0; }
  .trust-leave thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .trust-leave :is(tbody, tr, td) { display: block; }
  .trust-leave tr { margin-bottom: var(--s-16); padding: var(--s-16); border: 1px solid var(--line); border-radius: 14px; }
  .trust-leave td { padding: 0; border: 0; }
  .trust-leave td + td { margin-top: var(--s-16); }
  .trust-leave td:first-child { padding: 0; }
  .trust-leave td[data-label]::before { content: attr(data-label); display: block; color: var(--ink-2); font: 500 13px/16px var(--font-text); margin-bottom: var(--s-8); }
}

/* Checklist */
.trust-check { display: grid; gap: var(--s-12); padding: 0; list-style: none; }
.trust-check li { display: flex; align-items: flex-start; gap: var(--s-12); margin-top: 0; }
.trust-check li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: var(--r-14); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Screens are cropped by script (tools/trust-scenes.py), never by CSS maths, so a re-rendered screen is picked up by re-running the script (DEC-014). */
.trust-fig > .frame-window { border-radius: 14px; }
.trust-fig > .frame-window :is(picture, img) { display: block; width: 100%; height: auto; }      /* a script-made screen picture fills its frame at its own ratio */

/* The ready-made card at the end of the guide */
.trust-offer { display: grid; gap: var(--s-32); align-items: center; padding: var(--s-48) var(--s-32) 0; overflow: hidden; background: var(--grey); border-radius: 24px; }
.trust-offer-shot { margin-top: var(--s-16); }
.trust-offer-shot > .frame-window { border-bottom: 0; border-radius: 14px 14px 0 0; }
.trust-offer-shot > .frame-window :is(picture, img) { display: block; width: 100%; height: auto; }   /* script-made crop (tools/trust-scenes.py), at its own ratio */
.trust-offer > div > * + * { margin-top: var(--s-16); }
.trust-offer-side > * + * { margin-top: var(--s-8); }
.trust-offer-actions { display: grid; justify-items: start; gap: var(--s-16); margin-top: var(--s-24); }
@media (min-width: 900px) {
  .trust-offer { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-48) var(--s-64); padding: var(--s-64) 0 0 var(--s-64); }
  .trust-offer > :nth-child(2) { margin-right: var(--s-64); }
  .trust-offer-shot { grid-column: 1 / -1; margin-top: var(--s-16); }
  .trust-offer-shot > .frame-window { border-right: 0; border-radius: 14px 0 0 0; }                  /* runs off the right edge of the tile, as the bento screens do */
}


/* ============================================================ 8. Contact: phone mockup and form */
/* The hero's phone: a script-made scene (tools/trust-scenes.py, light-titanium stage-phone plate with the sample chat composited in) */
.trust-scene { position: relative; justify-self: center; width: 100%; max-width: 480px; margin: 0; border-radius: var(--r-24); overflow: hidden; background: var(--black); }
.trust-scene :is(picture, img) { display: block; width: 100%; height: auto; }

.trust-form-grid { display: grid; gap: var(--s-48); align-items: start; }
@media (min-width: 900px) { .trust-form-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-64); } .trust-form-intro { position: sticky; top: calc(var(--nav-h) + var(--s-32)); } }
.trust-form-intro > * + * { margin-top: var(--s-16); }
.trust-form-intro > .eyebrow + * { margin-top: var(--s-12); }
.trust-form-intro > .small { margin-top: var(--s-24); }
.trust-form-intro a:not([class]) { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.trust-form { display: grid; gap: var(--s-24); padding: var(--s-32); background: var(--paper); border: 1px solid var(--line); border-radius: 24px; }
.trust-field { display: grid; gap: var(--s-8); }
.trust-field label { font: 500 15px/20px var(--font-text); }
.trust-field .opt { color: var(--ink-2); font-weight: 400; }
.trust-field :is(input, select, textarea) {
  width: 100%; height: 48px; padding: 0 var(--s-16); background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-field); border-radius: var(--r-14); font: 400 17px/24px var(--font-text);
  transition: border-color var(--d-hover) var(--ease);
}
.trust-field textarea { height: auto; min-height: 112px; padding: var(--s-12) var(--s-16); resize: vertical; }
.trust-field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 16px no-repeat;
}
.trust-field :is(input, select, textarea):hover { border-color: var(--ink); }
.trust-field :is(input, select, textarea):focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-color: var(--ink); }
.trust-field .hint { color: var(--ink-2); font: 400 13px/16px var(--font-text); }
/* the error state: a red border and words with an icon, never colour alone (set by trust.js on a submit with an empty required field) */
.trust-field :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.trust-err { display: flex; align-items: flex-start; gap: var(--s-8); color: var(--red); font: 500 15px/20px var(--font-text); }     /* the small line (15/20), under its field */
.trust-err svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }                                                          /* centred on the first 20px line */
/* "not wired yet": a band under the button (grey with a hairline, so it reads as a band on the white card); scrolled clear of the screen's foot when it appears */
.trust-form-msg { display: flex; align-items: flex-start; gap: var(--s-12); padding: var(--s-12) var(--s-16); background: var(--grey); border-radius: var(--r-14); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-block: var(--s-96); }
.trust-form-msg:empty { display: none; }
.trust-form-msg a { text-decoration: underline; text-underline-offset: 3px; color: var(--link); }
.trust-form-msg .ic { margin-top: 0; color: var(--ink-2); }
.trust-form-todo { color: var(--ink-2); }

/* Build request form: the site's black card, numbered field rows and indigo action treatment. */
.trust-form-shell {
  position: relative; overflow: hidden; padding: var(--s-16); gap: 0;
  background: var(--ink); border-radius: var(--r-24); box-shadow: 0 28px 70px -52px rgba(0,0,0,.82);
}
.trust-form-shell::before {
  content: ""; position: absolute; inset: -34% auto auto -12%; width: 52%; aspect-ratio: 1; border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 30%, transparent); filter: blur(90px); pointer-events: none;
}
.trust-form-shell .trust-form-intro {
  position: relative; z-index: 1; padding: var(--s-48); color: var(--paper);
}
.trust-form-shell .trust-form-intro .eyebrow { color: var(--blue-dark); }
.trust-form-shell .trust-form-intro .lead, .trust-form-shell .trust-form-intro .small { color: color-mix(in srgb,var(--paper) 74%,transparent); }
.trust-form-shell .trust-form-intro a { color: var(--blue-dark); }
.trust-form-route { display: flex; align-items: center; gap: var(--s-12); margin-top: var(--s-32); color: var(--paper); font: 500 13px/16px var(--font-text); }
.trust-form-route i { flex: 1; min-width: 18px; border-top: 1px solid rgba(255,255,255,.28); }
.trust-form-shell .trust-form {
  position: relative; z-index: 1; counter-reset: form-field; gap: 0; padding: var(--s-32); border: 0;
  border-radius: var(--r-20); box-shadow: 0 18px 50px -36px rgba(0,0,0,.75);
}
.trust-form-kicker { display: flex; justify-content: space-between; gap: var(--s-16); padding-bottom: var(--s-24); border-bottom: 1px solid var(--line); font: 500 13px/16px var(--font-text); }
.trust-form-kicker span:first-child { text-transform: uppercase; letter-spacing: .1em; color: var(--ink); }
.trust-form-kicker .num { color: var(--ink-2); }
.trust-form-shell .trust-field { position: relative; counter-increment: form-field; grid-template-columns: 48px minmax(0,1fr); padding: var(--s-24) 0; border-bottom: 1px solid var(--line); }
.trust-form-shell .trust-field::before { content: "0" counter(form-field); grid-column: 1; grid-row: 1; padding-top: 2px; color: var(--ink-2); font: 500 13px/20px var(--mono); }
.trust-form-shell .trust-field > * { grid-column: 2; }
.trust-form-shell .trust-field label { font-size: 17px; line-height: 24px; }
.trust-form-shell .trust-field :is(input,select,textarea) { margin-top: var(--s-4); background: var(--grey); border-color: transparent; border-radius: var(--r-14); }
.trust-form-shell .trust-field :is(input,select,textarea):hover { border-color: var(--line-strong); }
.trust-form-shell .trust-form > div:has(.btn) { margin-top: var(--s-24); }
.trust-form-shell .trust-form .btn { min-width: 180px; }
.trust-form-shell .trust-form-msg { margin-top: var(--s-16); }
.trust-form-shell .trust-form-todo { margin-top: var(--s-16); }
@media (min-width: 900px) {
  .trust-form-grid.trust-form-shell { grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 0; }
  .trust-form-shell .trust-form-intro { position: relative; top: auto; }
}
@media (max-width: 767px) {
  .trust-form-shell { padding: var(--s-8); }
  .trust-form-shell .trust-form-intro { padding: var(--s-32) var(--s-24); }
  .trust-form-shell .trust-form { padding: var(--s-24); }
  .trust-form-shell .trust-field { grid-template-columns: 36px minmax(0,1fr); }
  .trust-form-route { align-items: flex-start; flex-direction: column; }
  .trust-form-route i { flex: none; width: 1px; height: 14px; margin-left: var(--s-4); border-top: 0; border-left: 1px solid rgba(255,255,255,.28); }
}

.trust-ways { display: grid; gap: var(--s-32) var(--s-24); }
@media (min-width: 768px) { .trust-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trust-ways.is-after { margin-top: var(--s-48); }
.trust-way { padding-top: var(--s-16); border-top: 1px solid var(--line-strong); }
.trust-way > * + * { margin-top: var(--s-8); }
.trust-way a:not([class]) { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.trust-biz { margin-top: var(--s-48); padding-top: var(--s-24); border-top: 1px solid var(--line); color: var(--ink-2); }

/* ============================================================ 9. Phones and reduced motion */
@media (max-width: 767px) {
  .trust-closing { padding: var(--s-48) var(--s-24); }
  .trust-form { padding: var(--s-24); }
  .trust-quote { flex-direction: column; }
  .trust-health { flex-direction: column; align-items: flex-start; }
  .trust-recipe dl { grid-template-columns: 1fr; gap: var(--s-4); }
  .trust-recipe dd + dt { margin-top: var(--s-8); }
  .trust-auto-head { gap: var(--s-12); }
  .trust-auto-n { font-size: 24px; line-height: 28px; }                     /* the step number takes its title's size and line (the h3 is 24/28 on a phone), not a 28 of its own */

  /* drawings: the wide one gives way to its narrow twin, so no drawn text renders under 11px */
  .trust-fig svg.trust-fig-desk { display: none; }
  .trust-fig svg.trust-fig-phone { display: block; }
  .trust-fig-box { padding: var(--s-16); }

  .trust-offer { padding: var(--s-48) var(--s-24) 0; }
  .trust-offer-shot { margin-inline: calc(-1 * var(--s-24)); }       /* the screen runs edge to edge in its card */
  .trust-offer-shot > .frame-window { border-inline: 0; border-radius: 0; }

  /* the form's one action spans the thumb's reach, and a tap answers */
  .trust-form .btn-lg { width: 100%; }
  .trust-lr:active b { text-decoration: underline; text-underline-offset: 3px; }
}
/* the narrowest phones (320): a large button with a long label gives up some side padding instead of pushing the page sideways */
@media (max-width: 359px) { .trust-head .btn-lg { padding-inline: var(--s-16); } }
/* thumbs (a phone, or any touch screen such as a tablet): a 44px target for text links outside a card, and for the Copy button */
@media (max-width: 767px), (pointer: coarse) {
  .trust-head .link-arrow, .trust-more .link-arrow, .trust-closing .link-arrow, .trust-sec .link-arrow, .trust-offer-actions .link-arrow { min-height: 44px; }
  .trust-quote .btn { height: 44px; }
  /* a link inside a sentence: 44 high to touch (padding adds the height, the equal negative margin keeps every line where it was; the look at 1440 is unchanged) */
  .trust-form-intro a:not([class]), .trust-way a:not([class]), .trust-sec :is(p, li) > a:not([class]) { display: inline-block; padding-block: var(--s-12); margin-block: calc(-1 * var(--s-12)); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-linkrows .ic, .trust-toc a, .trust-toc summary::after { transition: none; }
  .trust-pick:hover .link-arrow::after, .trust-lr:hover .ic { transform: none; }
}
