/* trustfinance.css: section 06, TrustFinance (SPEC.md, Peter's overrides of 20 Nov 2026).
   Dark ground, no paper plate. The hero object is the demo search; fx/ink lights the shapes in .tf-ink.
   Every selector is scoped under .tf (the section). Tokens come from css/site.css, with fallbacks. */

.tf { position: relative; z-index: 1; background: var(--bg, #0B0D12); color: var(--ink, #F2F4F7); padding: clamp(96px, 14vh, 160px) var(--gutter, clamp(16px, 5vw, 72px)); }
.tf *, .tf *::before, .tf *::after { box-sizing: border-box; }
.tf p { margin: 0; }
.tf a { color: inherit; }
.tf :where(a, button, input):focus-visible { outline: 2px solid var(--accent, #c9c2b8); outline-offset: 3px; }

/* ---------------------------------------------------------------- plate */
.tf .tf-plate {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 640px;
  border-radius: var(--r-lg, 12px); background: radial-gradient(120% 90% at 78% 40%, rgba(255, 214, 160, .035), transparent 60%), var(--bg, #0B0D12);
  box-shadow: inset 0 0 0 1px var(--line, rgba(242, 244, 247, .14)); overflow: hidden;
}
.tf .tf-ink { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tf .tf-copy { position: relative; z-index: 2; min-width: 0; padding: clamp(32px, 4vw, 56px) clamp(24px, 3.6vw, 56px) 76px; display: flex; flex-direction: column; }
.tf .tf-stage { position: relative; min-width: 0; }
.tf .tf-title { margin: 18px 0 0; font-size: clamp(34px, 3.8vw, 54px); font-weight: 600; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; max-width: 13ch; }
.tf .tf-lead { margin-top: 18px; font-size: 16px; line-height: 1.55; color: var(--ink-dim, rgba(242, 244, 247, .64)); max-width: 40ch; }

/* ---------------------------------------------------------------- the search, the hero object */
.tf .tf-search { position: relative; margin-top: 28px; max-width: 460px; }
.tf .tf-field {
  position: relative; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 14px 0 18px;
  border-radius: var(--r-lg, 12px); background: var(--bg-2, #11141B);
  box-shadow: inset 0 0 0 1px var(--line, rgba(242, 244, 247, .14)), 0 18px 40px -18px rgba(0, 107, 241, .35);
  transition: box-shadow var(--t-ui, 320ms) var(--ease-soft, ease);
}
.tf .tf-field:focus-within { box-shadow: inset 0 0 0 1px var(--tf-light, #69adff), 0 0 0 4px rgba(0, 107, 241, .22), 0 18px 40px -18px rgba(0, 107, 241, .45); }
.tf .tf-field-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink-dim, rgba(242, 244, 247, .64)); stroke-width: 1.8; stroke-linecap: round; }
.tf .tf-input {
  flex: 1 1 auto; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; outline: none;
  font: 500 17px/1 Poppins, ui-sans-serif, system-ui, sans-serif; color: var(--ink, #F2F4F7); caret-color: var(--tf-light, #69adff);
}
.tf .tf-input::placeholder { color: var(--ink-faint, rgba(242, 244, 247, .38)); font-weight: 400; }
.tf .tf-input:focus-visible { outline: none; }
.tf .tf-demo {
  display: inline-block; flex: none; padding: 3px 6px 2px; border-radius: 4px; font-style: normal;
  font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
  color: var(--ink-faint, rgba(242, 244, 247, .38)); box-shadow: inset 0 0 0 1px rgba(242, 244, 247, .2);
}
.tf .tf-list {
  position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  border-radius: var(--r-lg, 12px); background: #151923; box-shadow: inset 0 0 0 1px var(--line, rgba(242, 244, 247, .14)), 0 24px 48px -16px rgba(0, 0, 0, .7);
}
.tf .tf-list[hidden] { display: none; }
.tf .tf-opt {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 10px; border-radius: var(--r, 8px); cursor: pointer;
  font-size: 15px; color: var(--ink, #F2F4F7);
}
.tf .tf-opt small { font-size: 12px; color: var(--ink-faint, rgba(242, 244, 247, .38)); }
.tf .tf-opt i { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tf-light, #69adff); }
.tf .tf-opt[aria-selected="true"], .tf .tf-opt:hover { background: rgba(105, 173, 255, .1); }
.tf .tf-none { padding: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-dim, rgba(242, 244, 247, .64)); }
.tf .tf-none a { color: var(--tf-light, #69adff); }

/* ---------------------------------------------------------------- the result */
.tf .tf-result {
  position: relative; margin-top: 14px; max-width: 460px; padding: 16px 18px 16px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head score" "rate score" "lic lic" "reg reg"; column-gap: 14px; row-gap: 6px;
  border-radius: var(--r-lg, 12px); background: linear-gradient(180deg, rgba(242, 244, 247, .045), rgba(242, 244, 247, .015));
  box-shadow: inset 0 0 0 1px var(--line, rgba(242, 244, 247, .14));
  transition: opacity 420ms var(--ease-soft, ease), transform 620ms var(--ease-out, ease);
}
.tf .tf-r-head { grid-area: head; min-width: 0; }
.tf .tf-r-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.tf .tf-r-kind { margin-top: 2px; font-size: 13px; color: var(--ink-faint, rgba(242, 244, 247, .38)); }
.tf .tf-r-rate { grid-area: rate; display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 14px; white-space: nowrap; }
.tf .tf-r-rate b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tf .tf-r-rev { color: var(--ink-dim, rgba(242, 244, 247, .64)); font-variant-numeric: tabular-nums; }
.tf .tf-stars { width: 70px; height: 13px; flex: none; display: block; }
.tf .tf-stars-base { fill: rgba(242, 244, 247, .14); }
.tf .tf-stars-on { fill: #f4c56c; }
.tf .tf-r-lic { grid-area: lic; display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line, rgba(242, 244, 247, .14)); font-size: 14px; }
.tf .tf-r-lic svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--tf-light, #69adff); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tf .tf-r-reg { grid-area: reg; padding-left: 24px; font-size: 13px; color: var(--ink-dim, rgba(242, 244, 247, .64)); }
.tf .tf-r-ln { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tf .tf-r-score { grid-area: score; position: relative; display: grid; justify-items: center; align-content: start; width: 64px; }
.tf .tf-r-score svg { width: 52px; height: 52px; display: block; transform: rotate(-90deg); fill: none; stroke-width: 3.2; }
.tf .tf-ring-bg { stroke: rgba(242, 244, 247, .12); }
.tf .tf-ring-on { stroke: var(--tf-blue, #006bf1); stroke-linecap: round; stroke-dasharray: 106.81; stroke-dashoffset: calc(var(--off, 0) * 1px); transition: stroke-dashoffset 900ms var(--ease-out, ease); }
.tf .tf-r-score b { position: absolute; top: 0; left: 0; right: 0; height: 52px; display: grid; place-items: center; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tf .tf-r-score span { margin-top: 4px; font-size: 9px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint, rgba(242, 244, 247, .38)); }
.tf .tf-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* the first view: the query is typed in, then the profile resolves (JS sets these classes, never under reduced motion) */
.tf.is-typing .tf-result { opacity: 0; transform: translateY(8px); }
.tf.is-typing .tf-ring-on { stroke-dashoffset: 106.81px; transition: none; }
.tf.is-typing .tf-input { caret-color: transparent; }

/* ---------------------------------------------------------------- the fallback stage (fx off, or until fx/ink is ready) */
.tf .tf-still { position: absolute; inset: 0; }
.tf .tf-still[hidden] { display: none; }
.tf .tf-mini {
  position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: var(--r-lg, 12px); background: var(--bg-2, #11141B); box-shadow: inset 0 0 0 1px var(--line, rgba(242, 244, 247, .14));
  font-size: 14px; white-space: nowrap;
}
.tf .tf-mini b { font-weight: 600; }
.tf .tf-mini i { font-style: normal; font-weight: 600; color: var(--tf-light, #69adff); font-variant-numeric: tabular-nums; }

/* the ink module's count line and style tag sit inside the plate's own padding */
.tf .tf-ink .fx-ink__foot { padding: 0 clamp(16px, 2.4vw, 28px) 14px; }
.tf .tf-ink.is-compact .fx-ink__foot { padding: 0 14px 2px; }

/* ---------------------------------------------------------------- public counters */
.tf .tf-stats { margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.tf .tf-stats > div { min-width: 0; padding-top: 14px; border-top: 1px solid var(--line, rgba(242, 244, 247, .14)); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.tf .tf-stats dd { margin: 0; font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tf .tf-stats dt { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1.3; color: var(--ink-dim, rgba(242, 244, 247, .64)); }
.tf .tf-asof { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--ink-faint, rgba(242, 244, 247, .38)); }
.tf .tf-asof a { text-underline-offset: 3px; text-decoration-color: rgba(242, 244, 247, .3); }
.tf .tf-asof a:hover { color: var(--ink, #F2F4F7); }

/* ---------------------------------------------------------------- also built: the small TrustBlacklist card */
.tf .tf-also {
  margin-top: clamp(56px, 8vh, 88px); max-width: 760px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: center;
  padding: 16px; border-radius: var(--r-lg, 12px); background: var(--bg-2, #11141B); box-shadow: inset 0 0 0 1px var(--line, rgba(242, 244, 247, .14));
  scroll-margin-top: calc(var(--header-h, 56px) + 24px);
}
.tf .tf-also-shot { margin: 0; border-radius: var(--r, 8px); overflow: hidden; background: #fff; color: #1c1c2e; font: 400 10px/1.3 Poppins, ui-sans-serif, system-ui, sans-serif; box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .6); }
.tf .tf-also-bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; background: #eef0f3; border-bottom: 1px solid #e2e5ea; }
.tf .tf-also-bar i { width: 7px; height: 7px; border-radius: 50%; background: #cfd3da; }
.tf .tf-also-bar span { margin-left: 8px; font-size: 9px; color: #64748b; }
.tf .tf-also-mock { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; padding: 22px 16px 24px; }
.tf .tf-also-mock img { display: block; width: 116px; height: auto; }
.tf .tf-also-search { min-width: 0; display: flex; align-items: center; gap: 6px; width: 100%; padding: 4px 4px 4px 8px; border: 1.5px solid #e2e8f0; border-radius: 7px; color: #64748b; }
.tf .tf-also-search svg { width: 10px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tf .tf-also-ph { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf .tf-also-go { flex: none; padding: 5px 9px; border-radius: 5px; background: #111827; color: #fff; font-weight: 600; }
.tf .tf-also-copy { min-width: 0; display: grid; gap: 10px; justify-items: start; }
.tf .tf-also-body { font-size: 16px; line-height: 1.5; color: var(--ink, #F2F4F7); max-width: 34ch; }
.tf .tf-also-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; margin-top: 2px; border-radius: var(--r-pill, 999px);
  border: 1px solid var(--line, rgba(242, 244, 247, .14)); text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-dim, rgba(242, 244, 247, .64));
  transition: color var(--t-micro, 180ms) var(--ease-soft, ease), border-color var(--t-micro, 180ms) var(--ease-soft, ease);
}
.tf .tf-also-link svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-ui, 320ms) var(--ease-out, ease); }
.tf .tf-also-link:hover { color: var(--ink, #F2F4F7); border-color: var(--accent, #c9c2b8); }
.tf .tf-also-link:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- the closing line */
.tf .tf-join { margin-top: clamp(72px, 10vh, 112px); }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1100px) {
  .tf .tf-plate { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tf .tf-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .tf .tf-plate { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tf .tf-copy { padding: 28px 20px 8px; }
  .tf .tf-stage { min-height: 500px; }
  .tf .tf-title { font-size: clamp(32px, 9vw, 44px); }
  .tf .tf-search, .tf .tf-result { max-width: none; }
  .tf .tf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-top: 28px; }
  .tf .tf-stats > div:last-child { grid-column: 1 / -1; }
  .tf .tf-also { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 14px; }
  .tf .tf-also-copy { padding: 0 4px 4px; }
  .tf .tf-mini { left: calc(var(--x) * .6); }
}
@media (pointer: coarse) {
  .tf .tf-also-link { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .tf .tf-result, .tf .tf-ring-on, .tf .tf-field, .tf .tf-also-link, .tf .tf-also-link svg { transition: none; }
}
