/* ==========================================================================
   JurisAgent — trust-pricing.css
   Page-specific styles for /security and /pricing.
   Loaded after site.css. Uses only site.css tokens; every class is
   prefixed .tp- so nothing collides with shared components.
   Content is never hidden by default (no opacity:0 outside .reveal-ready).
   ========================================================================== */


/* ==========================================================================
   TP-00  Page-scoped color tokens (light + dark). Component rules below use
   only var(--…); every literal on this page lives here.
   ========================================================================== */
:root {
  --tp-hatch: rgba(122,31,36,.06);          /* diagonal hatch on walled-off people */
  --tp-hatch-soft: rgba(122,31,36,.045);    /* hatch on the ethical-wall strip */
  --tp-accent-wash: #FBF3EF;                /* blush card / wall background */
  --tp-stage-agent-2: #F2F2EE;              /* agent stage card, gradient bottom */
  --tp-stage-atty-1: #FCF5F1;               /* attorney stage card gradient */
  --tp-stage-atty-2: #F8EAE4;
  --tp-strike: rgba(122,31,36,.45);         /* strike-through on "never used" list */
  --tp-knob-shadow: 0 1px 2px rgba(0,0,0,.2);
  --tp-agent-col: rgba(222,229,237,.45);    /* agent column in access matrix */
  --tp-rec-col: rgba(122,31,36,.035);       /* recommended plan column */
  --tp-gate-lock-bg: rgba(229,143,134,.08); /* locked step inside .app-dark */
  --tp-gate-lock-line: rgba(229,143,134,.45);
  --tp-on-accent-dark: #15171C;             /* ink on an --accent-on-dark fill (night bands) */
  --tp-knob-off: var(--card);              /* off-state toggle knob */
  --tp-dash: var(--rule-strong);            /* em-dash / "Never" placeholders in tables */
}
:root[data-theme="dark"] {
  --tp-hatch: rgba(229,143,134,.07);
  --tp-hatch-soft: rgba(229,143,134,.055);
  --tp-accent-wash: #1F1718;
  --tp-stage-agent-2: #172029;
  --tp-stage-atty-1: #221A1B;
  --tp-stage-atty-2: #2A1D1E;
  --tp-strike: rgba(229,143,134,.55);
  --tp-knob-shadow: 0 1px 2px rgba(0,0,0,.55);
  --tp-agent-col: rgba(26,36,49,.55);
  --tp-rec-col: rgba(229,143,134,.04);
  --tp-gate-lock-bg: rgba(229,143,134,.08);
  --tp-gate-lock-line: rgba(229,143,134,.4);
  --tp-on-accent-dark: #1F0E0F;
  --tp-dash: #7A7C83;             /* 4.1:1 on --card */
  --tp-knob-off: #8A867E;
}


/* ==========================================================================
   TP-01  Shared: hero, points, misc
   ========================================================================== */
.tp-hero .page-hero-grid { align-items: start; }
.tp-hero .h1 { max-width: 11ch; }
.tp-hero .micro .ico { color: var(--accent); }

.tp-points { border-top: 1px solid var(--rule-ink); }
.tp-points > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.tp-points h3 { font-family: var(--serif); font-size: clamp(24px, 2.1vw, 30px); line-height: 1.1; }
.tp-points p { color: var(--ink-3); margin-top: 6px; font-size: 16px; max-width: 52ch; }
.tp-points .pill { vertical-align: 2px; }

.tp-dash { color: var(--tp-dash); }
.tp-mgs { display: inline-flex; gap: 4px; }

.tp-av {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  font: 500 10px/1 var(--mono); background: var(--paper-3); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule-strong);
}
.tp-av-sm { width: 22px; height: 22px; font-size: 8.5px; }
.tp-av-atty { background: var(--accent); color: var(--on-accent); box-shadow: none; }

.tp-legal-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; font: 16px/1.45 var(--serif); color: var(--muted); max-width: 80ch; }
.tp-legal-note .ico { color: var(--accent); margin-top: 3px; }


/* ==========================================================================
   TP-02  Security — hero "matter security" panel
   ========================================================================== */
.tp-hero-fig { position: relative; padding: 8px 0 0 28px; }
.tp-guard .ph-t { font-size: 24px; max-width: 18ch; }
.tp-guard-list { border-top: 1px solid var(--rule-ink); }
.tp-guard-list li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--rule-soft); }
.tp-g-k { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tp-g-v { font-size: 13.5px; color: var(--ink-2); }
.tp-g-s { font: 500 11.5px/1 var(--mono); white-space: nowrap; }
.tp-locked { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); background: var(--accent-tint); padding: 5px 8px; border-radius: 99px; }

.tp-access { margin-top: 16px; padding: 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); }
.tp-access-h { display: flex; justify-content: space-between; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.tp-people { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-person { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--card); border: 1px solid var(--rule-soft); border-radius: 8px; min-width: 0; }
.tp-person > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.tp-person b { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-person i { font-style: normal; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-walled { background: repeating-linear-gradient(-45deg, transparent 0 6px, var(--tp-hatch) 6px 12px), var(--card); border-color: var(--accent-line); }
.tp-walled b { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--accent); }
.tp-walled i { color: var(--accent); }

.tp-agents-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.tp-scope { margin-left: auto; color: var(--agent); background: var(--agent-tint); border: 1px solid var(--agent-line); padding: 4px 8px; border-radius: 4px; }

.tp-seal-hero {
  position: absolute; width: 116px; height: 116px; left: -22px; top: -46px; transform: rotate(-12deg); z-index: 2;
  background: radial-gradient(circle, var(--paper) 60%, transparent 61%); border-radius: 50%;
}


/* ==========================================================================
   TP-03  Security — § 01 data path
   ========================================================================== */
.tp-path { margin-top: var(--stack); }
.tp-path-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); counter-reset: none; }
.tp-stage { position: relative; display: flex; flex-direction: column; }
.tp-stage-n { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--agent); padding-bottom: 12px; border-bottom: 1px solid var(--rule-ink); position: relative; }
.tp-stage:not(:last-child) .tp-stage-n::after {
  content: ""; position: absolute; right: calc(-1 * clamp(16px, 2vw, 28px)); bottom: -1px; width: clamp(16px, 2vw, 28px); height: 1px;
  background: repeating-linear-gradient(90deg, var(--rule-ink) 0 4px, transparent 4px 7px);
}
.tp-stage-atty .tp-stage-n { color: var(--accent); }
.tp-stage-card {
  margin-top: 18px; height: 132px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow-sm);
}
.tp-stage-agent .tp-stage-card { border-color: var(--agent-line); background: linear-gradient(180deg, var(--card), var(--tp-stage-agent-2)); }
.tp-stage-atty .tp-stage-card { border-color: var(--accent-line); background: linear-gradient(var(--tp-stage-atty-1), var(--tp-stage-atty-2)); }
.tp-file { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--paper); border: 1px solid var(--rule); border-radius: 7px; font-size: 12px; min-width: 0; }
.tp-file .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-lockline { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font: 500 11px/1 var(--mono); color: var(--ok); background: var(--ok-tint); padding: 6px 8px; border-radius: 99px; }
.tp-agentline { color: var(--agent); background: var(--agent-tint); }
.tp-attyline { color: var(--accent); background: var(--accent-tint); }
.tp-vault-h { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.tp-vault-row { display: flex; gap: 6px; }
.tp-vault-row i { flex: 1; height: 26px; border-radius: 5px; background: repeating-linear-gradient(90deg, var(--paper-3) 0 2px, var(--paper-2) 2px 6px); border: 1px solid var(--rule); }
.tp-gate-mini { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; }
.tp-gate-mini b { font-weight: 400; }
.tp-stage h3 { font-family: var(--serif); font-size: clamp(22px, 1.9vw, 27px); line-height: 1.1; margin-top: 20px; }
.tp-stage p { color: var(--ink-3); font-size: 15px; margin-top: 8px; }

.tp-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 5vw, 72px); border-top: 1px solid var(--rule-ink); }
.tp-spec { padding: 22px 22px 6px 0; }
.tp-spec + .tp-spec { padding-left: 22px; border-left: 1px solid var(--rule); }
.tp-spec h3 { font-family: var(--serif); font-size: 24px; line-height: 1.1; margin-top: 10px; }
.tp-spec p { color: var(--ink-3); font-size: 15px; margin-top: 8px; }


/* ==========================================================================
   TP-04  Security — § 02 no training
   ========================================================================== */
.tp-nt { margin-top: var(--stack); align-items: stretch; }
.tp-uses { display: grid; gap: 16px; align-content: start; }
.tp-use { padding: 22px 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--rule); }
.tp-use-h { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.tp-use-yes .tp-use-h { color: var(--ok); }
.tp-use-no { border-color: var(--accent-line); background: linear-gradient(180deg, var(--tp-accent-wash), var(--card)); }
.tp-use-no .tp-use-h { color: var(--accent); }
.tp-x { font: 400 18px/1 var(--sans); }
.tp-use ul { margin-top: 12px; }
.tp-use li { padding: 9px 0; border-top: 1px solid var(--rule-soft); font-size: 15.5px; color: var(--ink-2); }
.tp-use-no li { text-decoration: line-through; text-decoration-color: var(--tp-strike); text-decoration-thickness: 1px; }

.tp-toggles li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 2px; border-top: 1px solid var(--rule-soft); }
.tp-toggles li:first-child { border-top: 1px solid var(--rule-ink); background: linear-gradient(90deg, var(--accent-tint), transparent 80%); margin: 0 -8px; padding: 14px 10px; border-radius: 0 0 8px 8px; }
.tp-toggles li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tp-toggles b { font-weight: 600; font-size: 14px; }
.tp-toggles .muted { font-size: 12.5px; }
.tp-tg { width: 40px; height: 22px; border-radius: 99px; background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--rule-strong); position: relative; flex: none; }
.tp-tg i { position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--tp-knob-off); box-shadow: var(--tp-knob-shadow); }
.tp-tg-on { background: var(--ok); box-shadow: none; }
.tp-tg-on i { left: 21px; background: var(--card); }
.tp-tg-lock { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--accent-line); }
.tp-tg-lock i { background: var(--accent); }
.tp-tg-lock i::after { content: ""; position: absolute; inset: 5px 5px; border-radius: 1px; background: var(--on-accent); }
.tp-callout-agent { background: var(--agent-tint); border: 1px solid var(--agent-line); color: var(--ink-2); }
.tp-callout-agent > .ico { color: var(--agent); }


/* ==========================================================================
   TP-05  Security — § 03 access matrix
   ========================================================================== */
.tp-ac { margin-top: var(--stack); }
.tp-matrix td:nth-child(n+2), .tp-matrix th:nth-child(n+2) { text-align: center; }
.tp-matrix td .ico { margin: 0 auto; display: block; }
.tp-matrix td:first-child { font-weight: 500; white-space: nowrap; }
.tp-need { font: 500 10px/1 var(--mono); color: var(--warn-ink); background: var(--warn-tint); padding: 4px 6px; border-radius: 4px; white-space: nowrap; }
.tp-scope-dot { font: 500 10px/1 var(--mono); color: var(--agent); background: var(--agent-tint); padding: 4px 6px; border-radius: 4px; white-space: nowrap; }
.tp-matrix .tp-row-atty td { background: var(--accent-tint); background-image: none; border-top: 1px solid var(--accent-line); border-bottom-color: var(--accent-line); }
.tp-row-atty td:first-child { color: var(--accent); }
.tp-atty-ico { color: var(--accent); }
.tp-matrix th:last-child, .tp-matrix td:last-child { background-image: linear-gradient(var(--agent-tint), var(--agent-tint)); background-size: 100% 100%; background-color: transparent; }
.tp-matrix td:last-child { background-image: linear-gradient(var(--tp-agent-col), var(--tp-agent-col)); }
.tp-matrix th:last-child { color: var(--agent); }

.tp-wall { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--accent-line); background: repeating-linear-gradient(-45deg, transparent 0 7px, var(--tp-hatch-soft) 7px 14px), var(--tp-accent-wash); }
.tp-wall-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.tp-wall > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tp-wall b { font-weight: 600; font-size: 14px; }


/* ==========================================================================
   TP-06  Security — § 04 approval gate (dark)
   ========================================================================== */
.tp-gate-flow { margin-top: 4px; position: relative; }
.tp-gate-ph { padding-left: 64px; }
.tp-gate-flow li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 12px; border-top: 1px solid var(--night-line-soft); position: relative; }
.tp-gate-flow li > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tp-gate-flow b { font-weight: 500; }
.tp-gate-flow li:not(:last-child)::after { content: ""; position: absolute; left: 26px; top: 46px; bottom: -14px; width: 1px; background: repeating-linear-gradient(var(--agent-on-dark) 0 3px, transparent 3px 6px); opacity: .6; }
.tp-gate-lock { margin-top: 10px; border-radius: var(--r); border-top-color: transparent !important; background: var(--tp-gate-lock-bg); box-shadow: inset 0 0 0 1px var(--tp-gate-lock-line); }
.tp-gate-lock .mono { color: var(--accent-on-dark); }
.app-dark .tp-gate-lock .mg-gate { background: var(--accent-on-dark); color: var(--tp-on-accent-dark); }
.tp-gate-btns { display: flex; gap: 6px; }
.app-dark .btn-ui-approve { background: var(--accent-on-dark); color: var(--tp-on-accent-dark); }
.tp-gate-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--night-warn-tint); color: var(--night-warn); }


/* ==========================================================================
   TP-07  Security — § 05 audit trail
   ========================================================================== */
.tp-audit-fig { margin-top: var(--stack); display: flex; flex-direction: column-reverse; gap: 14px; }
.tp-append { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--agent); border: 1px solid var(--agent-line); background: var(--agent-tint); padding: 4px 7px; border-radius: 4px; vertical-align: 5px; margin-left: 8px; }
.tp-ph-r { display: flex; align-items: center; gap: 8px; }
.tp-ph-r .chip { margin: 0; }
.tp-log { border-top: 1px solid var(--rule-ink); }
.tp-log li { display: grid; grid-template-columns: 72px 26px minmax(0, 1.1fr) minmax(0, 1fr) 52px; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--rule-soft); font-size: 13.5px; }
.tp-log time { font-size: 11.5px; color: var(--muted); }
.tp-log b { font-weight: 600; }
.tp-log u { text-decoration-color: var(--agent); text-underline-offset: 3px; }
.tp-log-o { color: var(--ink-3); }
.tp-log-flag { color: var(--warn-ink); display: inline-flex; gap: 6px; align-items: center; }
.tp-log-flag .ico { color: var(--warn); }
.tp-log-h { font-size: 10.5px; color: var(--muted); text-align: right; }
.tp-log-atty { background: linear-gradient(90deg, var(--accent-tint), transparent 85%); border-radius: 8px; border-bottom-color: transparent !important; }
.tp-log-atty .tp-log-a b, .tp-log-atty .tp-log-o { color: var(--accent); }

.tp-audit-notes { margin-top: 32px; }
.tp-audit-notes li { border-top: 1px solid var(--rule-ink); padding-top: 14px; }
.tp-audit-notes p { margin-top: 8px; color: var(--ink-3); font-size: 15.5px; }


/* ==========================================================================
   TP-08  Security — § 06 duties ledger
   ========================================================================== */
.tp-duties .ledger-head, .tp-duties .ledger-row { grid-template-columns: 84px minmax(0, 2.6fr) minmax(0, 4.4fr) minmax(0, 4.6fr); }
.tp-duties .ledger-n { font-family: var(--mono); color: var(--accent); font-size: 12px; }
.tp-duties .ledger-out { font-family: var(--sans); font-size: 15px; color: var(--ink-2); border-left-color: var(--accent); }


/* ==========================================================================
   TP-09  Security — § 07 ownership
   ========================================================================== */
.tp-own { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: var(--stack); }
.tp-own-card { display: flex; flex-direction: column; padding: 28px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.tp-own-card h3 { font-family: var(--serif); font-size: clamp(26px, 2.2vw, 32px); line-height: 1.08; margin-top: 18px; }
.tp-own-card p { color: var(--ink-3); font-size: 15.5px; margin-top: 8px; flex: 1; }
.tp-mini { margin-top: 22px; padding: 14px; border-radius: var(--r); background: var(--paper); border: 1px dashed var(--rule-strong); display: flex; flex-direction: column; gap: 8px; }
.tp-mini-bar { height: 4px; border-radius: 4px; background: var(--paper-3); overflow: hidden; }
.tp-mini-bar i { display: block; height: 100%; width: 100%; background: var(--ok); }
.tp-ret { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.tp-ret b { margin-left: auto; font-weight: 500; font-size: 11.5px; }
.tp-del { color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }


/* ==========================================================================
   TP-10  Security — § 08 compliance roadmap
   ========================================================================== */
.tp-road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: var(--stack); position: relative; }
.tp-road::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 10px); }
.tp-road li { position: relative; padding-top: 34px; display: flex; flex-direction: column; align-items: flex-start; }
.tp-road-dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--paper-2); border: 1.5px dashed var(--accent); }
.tp-road-now .tp-road-dot { background: var(--agent); border: 0; box-shadow: 0 0 0 4px var(--agent-tint); }
.tp-road-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tp-road-now .tp-road-k { color: var(--agent); }
.tp-road h3 { font-family: var(--serif); font-size: clamp(24px, 2vw, 29px); line-height: 1.1; margin-top: 10px; }
.tp-road p { color: var(--ink-3); font-size: 15px; margin: 8px 0 14px; flex: 1; }

.tp-review { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto; gap: clamp(24px, 3vw, 48px); align-items: center; margin-top: clamp(48px, 5vw, 72px); padding: clamp(24px, 3vw, 36px); background: var(--card); border: 1px solid var(--rule-strong); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
.tp-review-copy .h4 { margin-top: 10px; }
.tp-review-copy p { color: var(--ink-3); margin-top: 8px; font-size: 15.5px; }
.tp-review-list li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px; }
.tp-review-list .ico { color: var(--accent); transform: translateY(2px); }


/* ==========================================================================
   TP-11  Security — § 09 responsible AI vignettes
   ========================================================================== */
.tp-rai-vis { display: flex; align-items: center; justify-content: center; padding: 18px; }
.tp-rai-doc { font: 18px/1.6 var(--serif); padding-top: 34px; }
.tp-rai-doc .srcpop { left: 50%; transform: translateX(-50%); }
.tp-rai-doc .srcpop::after { left: calc(50% - 6px); }
.tp-flagcard { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 280px; padding: 14px; border-radius: 10px; background: var(--warn-tint); border: 1px solid var(--warn-line); }
.tp-flagcard-f { border-top: 1px solid var(--warn-line); padding-top: 8px; }
.tp-cites { width: 100%; max-width: 290px; display: flex; flex-direction: column; gap: 6px; }
.tp-cites li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; background: var(--paper); border: 1px solid var(--rule); border-radius: 7px; }
.tp-cites .tp-cite-warn { background: var(--warn-tint); border-color: var(--warn-line); color: var(--warn-ink); }


/* ==========================================================================
   TP-12  Pricing — hero term sheet
   ========================================================================== */
.tp-terms { position: relative; background: var(--card); border: 1px solid var(--rule-strong); border-radius: 4px; padding: 30px 30px 26px; box-shadow: var(--shadow); margin-top: clamp(0px, 3vw, 40px); }
.tp-terms::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--rule); border-radius: 2px; pointer-events: none; }
.tp-terms-t { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 36px); line-height: 1.05; margin-top: 20px; max-width: 13ch; }
.tp-terms-list { margin-top: 18px; }
.tp-terms-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; padding: 13px 0; border-top: 1px solid var(--rule); }
.tp-terms-n { font: 22px/1 var(--serif); color: var(--accent); }
.tp-terms-list div { display: flex; flex-direction: column; gap: 3px; }
.tp-terms-list b { font-weight: 600; font-size: 15.5px; }
.tp-terms-list span:not(.tp-terms-n) { font-size: 14.5px; color: var(--ink-3); line-height: 1.5; }
.tp-terms .memo-note { margin-top: 4px; }
.tp-seal-terms { position: absolute; width: 104px; height: 104px; right: 22px; top: 62px; transform: rotate(12deg); opacity: .92; }


/* ==========================================================================
   TP-13  Pricing — tiers, included, crew rail
   ========================================================================== */
.tp-tiers .tier-t { min-height: 2.16em; }
.tp-tier-for { font-size: 14.5px; color: var(--ink-3); margin-top: 14px; line-height: 1.5; min-height: 4.5em; }

.tp-crew { margin-top: var(--stack); }
.tp-crew-list { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid var(--rule-ink); border-bottom: 1px solid var(--rule-ink); position: relative; }
.tp-crew-list li { display: flex; flex-direction: column; gap: 6px; padding: 22px 16px 22px 0; position: relative; }
.tp-crew-list li + li { padding-left: 16px; border-left: 1px solid var(--rule); }
.tp-crew-list .mg { width: 36px; height: 36px; font-size: 11px; margin-bottom: 8px; }
.tp-crew-list b { font: 400 24px/1.1 var(--serif); }
.tp-crew-list span:not(.mg) { font-size: 13.5px; color: var(--ink-3); line-height: 1.4; }
.tp-crew-atty { background: linear-gradient(180deg, var(--accent-tint), transparent); border-left-color: var(--accent-line) !important; }
.tp-crew-atty b { color: var(--accent); }
.tp-crew-list li:not(.tp-crew-atty):not(:nth-child(7))::after {
  content: ""; position: absolute; right: -4px; top: 39px; width: 7px; height: 7px; border-top: 1px solid var(--agent); border-right: 1px solid var(--agent); transform: rotate(45deg); background: var(--paper); z-index: 1;
}
.tp-crew-list li:nth-child(7)::after { content: ""; position: absolute; right: -4px; top: 39px; width: 7px; height: 7px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); transform: rotate(45deg); background: var(--paper); z-index: 1; }

.tp-inc { margin-top: clamp(40px, 4vw, 56px); }
.tp-inc-i { border-top: 1px solid var(--rule-ink); padding-top: 18px; }
.tp-inc-i h3 { font-family: var(--serif); font-size: 24px; line-height: 1.1; margin-top: 14px; }
.tp-inc-i p { color: var(--ink-3); font-size: 15px; margin-top: 6px; }
.tp-inc-i a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }


/* ==========================================================================
   TP-14  Pricing — comparison table
   ========================================================================== */
.tp-cmp-wrap { margin-top: var(--stack); overflow-x: auto; background: var(--card); border: 1px solid var(--rule-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.tp-cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.tp-cmp-feat { width: 40%; }
.tp-cmp-rec { background: var(--tp-rec-col); }
.tp-cmp thead th { text-align: left; padding: 22px 20px 18px; font: 400 clamp(24px, 2.2vw, 30px)/1.05 var(--serif); border-bottom: 1px solid var(--rule-ink); vertical-align: bottom; }
.tp-cmp thead th span { display: block; margin-top: 6px; font: 500 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tp-cmp thead th:nth-child(3) { color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.tp-cmp tbody th, .tp-cmp tbody td, .tp-cmp tfoot th, .tp-cmp tfoot td { padding: 13px 20px; border-bottom: 1px solid var(--rule-soft); text-align: left; vertical-align: middle; }
.tp-cmp tbody th { font-weight: 500; color: var(--ink-2); }
.tp-cmp tbody td { color: var(--ink-3); font-size: 14px; }
.tp-cmp td .ico { color: var(--accent); width: 16px; height: 16px; }
.tp-cmp-group th { padding-top: 26px !important; font: 500 11px/1.2 var(--mono) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--ink) !important; border-bottom: 1px solid var(--rule-ink) !important; background: var(--paper); }
.tp-cmp-group .sec-n { font-size: 20px; margin-right: 8px; vertical-align: -3px; }
.tp-cmp tfoot th { font: 500 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--rule-ink); }
.tp-cmp tfoot td { font: 20px/1.2 var(--serif); color: var(--ink); border-top: 1px solid var(--rule-ink); }
.tp-cmp-cta td { border-bottom: 0 !important; border-top: 0 !important; padding-bottom: 22px !important; }
.tp-scroll-hint { display: none; margin-top: 10px; color: var(--muted); text-align: right; }


/* ==========================================================================
   TP-15  Pricing — how pricing works, account mock
   ========================================================================== */
.tp-hpw { margin-top: var(--stack); }
.tp-invoice { display: flex; flex-direction: column-reverse; gap: 14px; }
.tp-invoice .ph-t .badge { vertical-align: 5px; margin-left: 6px; }
.tp-seats td:first-child { font-weight: 500; }
.tp-tbd { font-size: 10.5px; color: var(--muted); border: 1px dashed var(--rule-strong); padding: 4px 7px; border-radius: 4px; white-space: nowrap; }
.tp-seats .ok-txt { font-size: 11px; }
.tp-usage { margin-top: 16px; padding: 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); }
.tp-usage-h { display: flex; justify-content: space-between; gap: 12px; text-transform: uppercase; letter-spacing: .08em; }
.tp-usage-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.tp-usage-rows span { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--card); border: 1px solid var(--rule-soft); border-radius: 7px; font-size: 13px; }
.tp-usage-rows b { margin-left: auto; font-weight: 500; }
.tp-usage .countdown { max-width: none; margin-top: 14px; }


/* ==========================================================================
   TP-16  Pricing — dark band, pilot step
   ========================================================================== */
.tp-rule-band { position: relative; margin-top: var(--stack); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.tp-rule-band .body-lg { margin-top: 0; }
.tp-rule-chips { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.tp-rule-chips li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); font: 400 clamp(24px, 2.4vw, 34px)/1.1 var(--serif); color: var(--night-text-strong); }
.tp-rule-chips .mg-gate { background: var(--accent-on-dark); color: var(--tp-on-accent-dark); width: 36px; height: 36px; }
.tp-rule-left .footnote { margin-top: 28px; }
.tp-seal-band { width: 120px; height: 120px; margin-top: 40px; color: var(--accent-on-dark); transform: rotate(-12deg); opacity: .9; }

.tp-pilot { display: flex; flex-direction: column; gap: 8px; }
.tp-pilot-r { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--rule); border-radius: 7px; background: var(--paper); }
.tp-locked-k { color: var(--accent); letter-spacing: .1em; text-transform: uppercase; text-align: center; }


/* ==========================================================================
   TP-17  Motion (progressive enhancement only)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .tp-seal-hero { animation: stamp .7s cubic-bezier(.3,1.6,.5,1) .9s both; }
  .js .tp-guard-list li { animation: rise .6s var(--ease) both; }
  .js .tp-guard-list li:nth-child(2) { animation-delay: .1s; }
  .js .tp-guard-list li:nth-child(3) { animation-delay: .2s; }
  .js .tp-guard-list li:nth-child(4) { animation-delay: .3s; }
  .js .tp-seal-terms { animation: stamp .7s cubic-bezier(.3,1.6,.5,1) .7s both; }
}


/* ==========================================================================
   TP-18  Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .tp-path-list, .tp-specs, .tp-road { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .tp-stage:nth-child(2) .tp-stage-n::after { display: none; }
  .tp-spec:nth-child(3) { padding-left: 0; border-left: 0; }
  .tp-road::before { display: none; }
  .tp-road li { border-top: 1px dashed var(--accent-line); }
  .tp-road-dot { top: -8px; }
  .tp-review { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tp-review .btn { grid-column: 1 / -1; justify-self: start; }
  .tp-crew-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tp-crew-list li:nth-child(5) { border-left: 0; padding-left: 0; }
  .tp-crew-list li:nth-child(n+5) { border-top: 1px solid var(--rule); }
  .tp-crew-list li:nth-child(4)::after { display: none; }
  .tp-log li { grid-template-columns: 66px 24px minmax(0, 1fr) minmax(0, 1fr); }
  .tp-log-h { display: none; }
}

@media (max-width: 980px) {
  .tp-hero-fig { padding: 24px 0 0 0; max-width: 680px; }
  .tp-seal-hero { left: auto; right: 10px; bottom: auto; top: -36px; }
  .tp-terms { max-width: 620px; }
  .tp-own { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .tp-duties .ledger-row { grid-template-columns: 76px minmax(0, 1fr); }
  .tp-duties .ledger-desc, .tp-duties .ledger-out { grid-column: 2; }
  .tp-rule-band { grid-template-columns: minmax(0, 1fr); }
  .tp-seal-band { width: 96px; height: 96px; margin-top: 28px; }
  .tp-review { grid-template-columns: minmax(0, 1fr); }
  .tp-tier-for, .tp-tiers .tier-t { min-height: 0; }
  .tp-nt, .tp-ac, .tp-hpw { gap: 40px; }
}

@media (max-width: 720px) {
  .tp-hero .h1 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .tp-guard .ph { flex-direction: column-reverse; align-items: flex-start; }
  .tp-guard .ph-t { font-size: 21px; }
  .tp-guard-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .tp-g-k { grid-column: 1; }
  .tp-g-v { grid-column: 1; grid-row: 2; font-size: 13px; }
  .tp-g-s { grid-column: 2; grid-row: 1 / span 2; }
  .tp-people { grid-template-columns: minmax(0, 1fr); }
  .tp-scope { margin-left: 0; }
  .tp-seal-hero { width: 84px; height: 84px; top: -18px; right: 4px; }

  .tp-path-list, .tp-specs, .tp-road { grid-template-columns: minmax(0, 1fr); }
  .tp-stage-n::after { display: none; }
  .tp-stage-card { height: auto; min-height: 0; }
  .tp-gate-ph { padding-left: 0; padding-top: 36px; }
  .tp-spec, .tp-spec + .tp-spec { padding: 20px 0 6px; border-left: 0; border-top: 1px solid var(--rule); }
  .tp-spec:first-child { border-top: 0; }
  .tp-road { row-gap: 32px; }

  .tp-use { padding: 18px; }
  .tp-toggles li { gap: 12px; }

  .tp-matrix { font-size: 11.5px; }
  .tp-matrix th, .tp-matrix td { padding: 9px 5px; }
  .tp-matrix td:first-child { white-space: normal; }
  .tp-matrix th:nth-child(4), .tp-matrix td:nth-child(4) { display: none; }
  .tp-wall { grid-template-columns: 30px minmax(0, 1fr); }
  .tp-wall-ico { width: 30px; height: 30px; }
  .tp-wall .pill { grid-column: 2; justify-self: start; }

  .tp-gate-flow li { grid-template-columns: 26px minmax(0, 1fr); padding: 12px 8px; }
  .tp-gate-flow .mg { width: 26px; height: 26px; font-size: 9px; }
  .tp-gate-flow li > .pill, .tp-gate-btns { grid-column: 2; justify-self: start; }
  .tp-gate-flow li:not(:last-child)::after { left: 20px; }

  .tp-ph-r { display: none; }
  .tp-log li { grid-template-columns: 22px minmax(0, 1fr); gap: 4px 10px; padding: 12px 4px; align-items: start; }
  .tp-log time { grid-column: 2; grid-row: 1; }
  .tp-log .mg, .tp-log .tp-av { grid-row: 1 / span 3; margin-top: 2px; }
  .tp-log-a, .tp-log-o { grid-column: 2; }
  .tp-log-o { font-size: 12.5px; }

  .tp-duties .ledger-row { grid-template-columns: minmax(0, 1fr); }
  .tp-duties .ledger-n, .tp-duties .ledger-name, .tp-duties .ledger-desc, .tp-duties .ledger-out { grid-column: 1; }

  .tp-own-card { padding: 22px; }
  .tp-rai-doc { font-size: 16.5px; padding-top: 44px; }

  .tp-terms { padding: 24px 20px 22px; }
  .tp-seal-terms { width: 76px; height: 76px; right: 12px; top: 46px; }
  .tp-terms-t { max-width: 11ch; }

  .tp-crew-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-crew-list li { padding: 18px 12px 18px 0; }
  .tp-crew-list li + li { padding-left: 12px; }
  .tp-crew-list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .tp-crew-list li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .tp-crew-list li::after { display: none !important; }
  .tp-crew-list b { font-size: 22px; }

  /* Comparison table → stacked rows: feature on top, three plan cells below */
  .tp-cmp-wrap { overflow: visible; }
  .tp-cmp { min-width: 0; font-size: 14px; }
  .tp-cmp colgroup, .tp-cmp thead { display: none; }
  .tp-cmp, .tp-cmp tbody, .tp-cmp tfoot { display: block; }
  .tp-cmp tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 14px; border-bottom: 1px solid var(--rule-soft); }
  .tp-cmp tbody th, .tp-cmp tbody td, .tp-cmp tfoot th, .tp-cmp tfoot td { padding: 0; border: 0 !important; }
  .tp-cmp tbody th[scope="row"], .tp-cmp tfoot th { grid-column: 1 / -1; margin-bottom: 8px; }
  .tp-cmp td { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 13px; }
  .tp-cmp td::before { content: attr(data-plan); font: 500 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .tp-cmp td[data-plan="Firm"]::before { color: var(--accent); }
  .tp-cmp td .ico { width: 15px; height: 15px; }
  .tp-cmp tr.tp-cmp-group { display: block; padding: 18px 14px 10px; background: var(--paper); border-bottom: 1px solid var(--rule-ink); }
  .tp-cmp-group th { display: block; padding: 0 !important; border: 0 !important; }
  .tp-cmp tfoot tr:first-child { border-top: 1px solid var(--rule-ink); }
  .tp-cmp tfoot td { font-size: 16px; }
  .tp-cmp-cta { gap: 6px; }
  .tp-cmp-cta td::before, .tp-cmp-empty { display: none !important; }
  .tp-cmp-cta .btn { width: 100%; padding: 0 8px; font-size: 13px; }

  .tp-usage-rows { grid-template-columns: minmax(0, 1fr); }
  .tp-seats th:nth-child(3), .tp-seats td:nth-child(3) { white-space: nowrap; }
  .tp-rule-chips li { font-size: 23px; gap: 12px; }
}

/* TP-19  Late additions */
.tp-reading { display: flex; align-items: center; gap: 10px; color: var(--agent); }
@media (max-width: 980px) {
  .tp-rai-vis { height: auto; min-height: 170px; }
}
@media (max-width: 720px) {
  .tp-seal-hero { display: none; }
  .tp-need { white-space: normal; display: inline-block; line-height: 1.25; }
  .tp-matrix td:first-child { min-width: 92px; }
  .tp-rai-doc .srcpop::after { right: auto; }
}
@media (max-width: 980px) {
  .tp-rule-left { display: contents; }
  .tp-rule-band .body-lg { order: 1; }
  .tp-rule-chips { order: 2; }
  .tp-rule-left .footnote { order: 3; margin-top: 0; }
  .tp-seal-band { display: none; }
}
@media (max-width: 720px) {
  .tp-seal-terms { top: 84px; }
  .tp-cmp-cta { display: none !important; }
}
@media (max-width: 980px) and (min-width: 721px) {
  .tp-seal-hero { left: -18px; right: auto; top: -24px; width: 96px; height: 96px; }
}
