/* =================================================================== TRUST CENTER (client, 2026-12-02, round 2)
   One idea runs through the page: the AI drafts, a person decides. Open layouts only — hairlines, orange
   squares, big type, no boxes, no numbering, normal-case labels. Tokens only, so every scene works.
   [data-tc-in] gets .is-in on screen; [data-tc-where] lights the area being read (trust-center.js). */

/* ---- WHERE AI: a sticky index of the four areas; each area reads "the AI does" → handed to → "a person does" */
.tc-where { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--sp60); margin-top: var(--sp45); }
.tc-where__nav {
    position: sticky; top: 128px; align-self: start;
    display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--white-20);
    & li {
        display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--white-10);
        font-size: var(--f18); font-weight: 600; color: var(--light-grey); transition: color .35s ease;
        &::before { width: 8px; height: 8px; background: var(--white-20); content: ""; transition: background .35s ease, transform .35s ease; }
    }
    & li.is-on { color: var(--white); &::before { background: var(--orange); transform: scale(1.25); } }
}
.tc-where__list { border-top: 1px solid var(--white-20); }
.tc-area { padding: var(--sp40) 0; border-bottom: 1px solid var(--white-10); }
.tc-area__t { margin: 0 0 var(--sp25); font-size: var(--f45); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; color: var(--white-40, var(--light-grey)); transition: color .45s ease; }
.tc-area.is-on .tc-area__t { color: var(--white); }
.tc-area__flow { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); gap: var(--sp25); align-items: start; }
.tc-area__who { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-family: var(--font-mono); font-size: var(--f12); letter-spacing: 0; color: var(--light-grey); }
.tc-area__ai, .tc-area__p { margin: 0; line-height: 1.5; text-wrap: pretty; }
.tc-area__ai { font-size: var(--f18); color: var(--light-grey); }
.tc-area__p { font-size: var(--f20); font-weight: 600; color: var(--white);
    & .tc-area__who { color: var(--orange); &::before { width: 8px; height: 8px; background: var(--orange); content: ""; } } }
.tc-area__hand { padding-top: 2.1em;
    & svg { display: block; width: 100%; height: 16px; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
    & path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s cubic-bezier(.65, 0, .35, 1); }
    & path + path { transition-delay: .55s; transition-duration: .25s; }
}
.tc-area.is-seen .tc-area__hand path { stroke-dashoffset: 0; }

/* ---- PERSON CHECKS (client, 2026-12-02): three gates in order on one rail — each gate's tick draws as the
   rail reaches it; then the written rule set large in Inter, and the company's answer beside an orange rule */
.tc-gates { position: relative; margin-top: var(--sp20); padding-top: 26px; }
.tc-gates__rail { position: absolute; left: 0; right: 0; top: 13px; height: 1px; background: var(--white-20);
    & i { position: absolute; inset: -0.5px 0; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s cubic-bezier(.65, 0, .35, 1); } }
.tc-gates__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.tc-gate { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px var(--sp40) 0 0;
    opacity: .35; transition: opacity .5s ease; }
.tc-gate__mark { position: absolute; left: 0; top: -26px; display: grid; place-items: center; width: 26px; height: 26px;
    background: var(--background); border: 1.5px solid var(--white-20); transition: background .35s ease, border-color .35s ease;
    & svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: square; }
    & path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .4s ease; } }
.tc-gate__who { font-family: var(--font-mono); font-size: var(--f12); letter-spacing: 0; color: var(--orange); }
.tc-gate__t { margin: 0; max-width: 22ch; font-size: var(--f30); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; color: var(--white); }
.tc-gates.is-in {
    & .tc-gates__rail i { transform: scaleX(1); }
    & .tc-gate { opacity: 1; }
    & .tc-gate__mark { background: var(--orange); border-color: var(--orange); }
    & .tc-gate__mark path { stroke-dashoffset: 0; }
    & .tc-gate:nth-child(1), & .tc-gate:nth-child(1) .tc-gate__mark, & .tc-gate:nth-child(1) path { transition-delay: .1s; }
    & .tc-gate:nth-child(2), & .tc-gate:nth-child(2) .tc-gate__mark, & .tc-gate:nth-child(2) path { transition-delay: .8s; }
    & .tc-gate:nth-child(3), & .tc-gate:nth-child(3) .tc-gate__mark, & .tc-gate:nth-child(3) path { transition-delay: 1.5s; }
}
.tc-rulebox { margin-top: var(--sp75); padding-top: var(--sp40); border-top: 1px solid var(--white-10); }
.tc-rulebox__lead { margin: 0; max-width: 46ch; font-size: var(--f18); line-height: 1.5; color: var(--light-grey); }
.tc-rulebox__q { margin: 14px 0 0;
    & p { margin: 0; font-family: var(--font-body, inherit); font-size: var(--f70); font-weight: 700; line-height: 1; letter-spacing: -.045em; color: var(--white); }
    & span { color: var(--orange); }
}
.tc-rulebox__never { display: flex; align-items: center; gap: 12px; margin: var(--sp30) 0 0; font-size: var(--f20); font-weight: 600; color: var(--white);
    &::before { width: 10px; height: 10px; background: var(--orange); content: ""; } }
.tc-rulebox > * { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .8s cubic-bezier(.16, 1, .3, 1); }
.tc-rulebox.is-in > * { opacity: 1; transform: none; }
.tc-rulebox.is-in > :nth-child(2) { transition-delay: .15s; } .tc-rulebox.is-in > :nth-child(3) { transition-delay: .5s; }
.tc-answer { margin-top: var(--sp60); max-width: 62ch; padding-left: var(--sp20); border-left: 2px solid var(--orange);
    & p { margin: 0; font-size: var(--f20); line-height: 1.5; color: var(--white); } }
@media (max-width: 767.98px) {
    .tc-gates { padding: 0 0 0 40px; }
    .tc-gates__rail { left: 13px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; & i { transform: scaleY(0); transform-origin: 50% 0; } }
    .tc-gates.is-in .tc-gates__rail i { transform: scaleY(1); }
    .tc-gates__list { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
    .tc-gate { padding: 0; }
    .tc-gate__mark { left: -40px; top: 0; }
}
@media (prefers-reduced-motion: reduce) { .tc-rulebox > *, .tc-gate { opacity: 1 !important; transform: none !important; } }

/* ---- AI ACTS: each tool on its own line, closed by a lock — the AI cannot act there on its own */
.tc-tools { margin: var(--sp45) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--white-20);
    & li {
        display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr) 40px; gap: var(--sp30); align-items: center;
        padding: var(--sp25) 0; border-bottom: 1px solid var(--white-10);
        opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
    }
}
.tc-tools__name { font-size: var(--f30); font-weight: 700; letter-spacing: -.03em; color: var(--white); }
.tc-tools__t { margin: 0; font-size: var(--f18); line-height: 1.5; color: var(--light-grey); text-wrap: pretty; }
.tc-tools__lock { justify-self: end;
    & svg { width: 28px; height: 28px; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linejoin: miter; overflow: visible; }
    & .tc-lock__shackle { transform: translateY(-4px); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
}
.tc-tools.is-in li { opacity: 1; transform: none; }
.tc-tools.is-in li:nth-child(2) { transition-delay: .1s; } .tc-tools.is-in li:nth-child(3) { transition-delay: .2s; } .tc-tools.is-in li:nth-child(4) { transition-delay: .3s; }
.tc-tools.is-in .tc-lock__shackle { transform: none; }
.tc-tools.is-in li:nth-child(1) .tc-lock__shackle { transition-delay: .6s; } .tc-tools.is-in li:nth-child(2) .tc-lock__shackle { transition-delay: .75s; }
.tc-tools.is-in li:nth-child(3) .tc-lock__shackle { transition-delay: .9s; } .tc-tools.is-in li:nth-child(4) .tc-lock__shackle { transition-delay: 1.05s; }
.tc-except { padding-left: var(--sp20); border-left: 2px solid var(--orange); }

/* ---- WHO SEES: three facts as open columns, each with a drawn line icon; where we work is set large */
.tc-facts {
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    margin: var(--sp45) 0 0; border-top: 1px solid var(--white-20);
    & > div { display: flex; flex-direction: column; gap: var(--sp20); padding: var(--sp30) var(--sp30) 0; border-left: 1px solid var(--white-10);
        opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
    & > div:first-child { padding-left: 0; border-left: 0; }
    & dt { margin: 0; }
    & dt svg { width: 30px; height: 30px; fill: none; stroke: var(--orange); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
    & dd { margin: 0; font-size: var(--f18); line-height: 1.55; color: var(--white); text-wrap: pretty; }
    & > div:first-child dd { font-size: var(--f25); font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
    & dd a { color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .18em; }
}
.tc-facts.is-in > div { opacity: 1; transform: none; }
.tc-facts.is-in > div:nth-child(2) { transition-delay: .12s; } .tc-facts.is-in > div:nth-child(3) { transition-delay: .24s; }

/* ---- TRAINING: the questions stay beside a sticky heading; each question, then what to have written down */
@media (min-width: 992px) {
    #training .pg-split { align-items: start; }
    #training .pg-split__aside { position: sticky; top: 128px; align-self: start; }
}
.tc-ask__cap { margin: 0 0 var(--sp15); font-family: var(--font-mono); font-size: var(--f12); letter-spacing: 0; color: var(--light-grey); }
.tc-ask { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--white-20); }
.tc-ask__row {
    display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: var(--sp20); row-gap: 10px;
    padding: var(--sp25) 0; border-bottom: 1px solid var(--white-10); background: var(--background);
}
.tc-ask__box { grid-row: 1 / 3; width: 20px; height: 20px; margin-top: .25em;
    & svg { display: block; width: 100%; height: 100%; fill: none; stroke: var(--orange); stroke-width: 2.2; stroke-linecap: square; } }
.tc-ask__q { margin: 0; font-size: var(--f25); font-weight: 700; line-height: 1.25; letter-spacing: -.015em; color: var(--white); }
.tc-ask__a { margin: 0; font-size: var(--f16); line-height: 1.5; color: var(--light-grey); }
.tc-ask__who { display: none; }

@media (max-width: 991.98px) {
    .tc-where { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .tc-where__nav { display: none; }
    .tc-area__t { color: var(--white); }
    .tc-tools li { grid-template-columns: minmax(0, 1fr) 32px; }
    .tc-tools__t { grid-column: 1 / -1; grid-row: 2; }
    .tc-facts { grid-template-columns: minmax(0, 1fr); }
    .tc-facts > div, .tc-facts > div:first-child { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--white-10); }
}
@media (max-width: 767.98px) {
    .tc-area__flow { grid-template-columns: minmax(0, 1fr); }
    .tc-area__hand { padding-top: 0; width: 64px; transform: rotate(90deg); transform-origin: 0 50%; margin: 4px 0 18px 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .tc-tools li, .tc-facts > div { opacity: 1 !important; transform: none !important; }
    .tc-area__hand path { stroke-dashoffset: 0 !important; }
}
