/* Base design tokens and layout classes for TrustLine (paired Light & Dark themes) */
:root {
  --bg: #ffffff;
  --soft: #f6f8fb;
  --card: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.94);
  --ink: #0f172a;
  --mut: #475569;
  --line: rgba(15, 23, 42, 0.1);
  --line2: rgba(15, 23, 42, 0.18);
  --acc: #1d4ed8;
  --acci: #1e40af;
  --acc-tint: rgba(29, 78, 216, 0.08);
  --ok: #15803d;
  --okbg: rgba(21, 128, 61, 0.09);
  --warn: #92400e;
  --warnbg: #fef3c7;
  --warn-border: rgba(146, 64, 14, 0.2);
  --bad: #b91c1c;
  --badbg: rgba(185, 28, 28, 0.08);
  --bar-neutral: #cbd5e1;
  --grid-stroke: rgba(15, 23, 42, 0.16);
  --shadow-tab: 0 1px 2px rgba(15, 23, 42, 0.08);
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

:root[data-theme="dark"] {
  --bg: #0b1120;
  --soft: #111827;
  --card: #162032;
  --header-bg: rgba(11, 17, 32, 0.92);
  --ink: #f1f5f9;
  --mut: #94a3b8;
  --line: rgba(148, 163, 184, 0.14);
  --line2: rgba(148, 163, 184, 0.26);
  --acc: #3b82f6;
  --acci: #60a5fa;
  --acc-tint: rgba(59, 130, 246, 0.16);
  --ok: #4ade80;
  --okbg: rgba(74, 222, 128, 0.12);
  --warn: #fbbf24;
  --warnbg: rgba(251, 191, 36, 0.12);
  --warn-border: rgba(251, 191, 36, 0.28);
  --bad: #f87171;
  --badbg: rgba(248, 113, 113, 0.12);
  --bar-neutral: #334155;
  --grid-stroke: rgba(148, 163, 184, 0.24);
  --shadow-tab: 0 1px 3px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.pc a { color: var(--acci); text-decoration: none; }
.pc a:hover { text-decoration: underline; }
:where(.pc) h1, :where(.pc) h2, :where(.pc) h3, :where(.pc) p, :where(.pc) ol { margin: 0; }
.pc h1, .pc h2, .pc h3 { font-family: var(--font-display); text-wrap: balance; }
.pc section[id] { scroll-margin-top: 72px; }
.pc :focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

.pc-wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}
.pc-c { text-align: center; }

/* Sticky 3-zone top bar */
.pc-pcsub {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.pc-pcsubin {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.pc-pcprod {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.pc-pcprod:hover { text-decoration: none; }
.pc-pclinks {
  display: flex;
  align-items: center;
  gap: 22px;
}
.pc-pclinks a {
  color: var(--mut);
  font-size: 14.5px;
  font-weight: 500;
  padding: 4px 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 150ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pc-pclinks a[aria-current="page"],
.pc-pclinks a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.pc-pcactions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.pc-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line2);
  background: var(--bg);
  color: var(--mut);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 140ms, background-color 140ms, border-color 140ms;
}
.pc-theme-btn:hover { color: var(--ink); background: var(--soft); }
.pc-theme-btn svg { width: 17px; height: 17px; }
.pc-pclang {
  font-size: 14px;
  font-weight: 600;
  color: var(--mut);
  white-space: nowrap;
  flex-shrink: 0;
}
.pc-pclang:hover { color: var(--ink); }

/* 2-Column Hero Split */
.pc-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 5.5vw, 72px) 0 clamp(36px, 5vw, 60px);
}
.pc-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(880px 420px at 78% 15%, var(--acc-tint), transparent 68%);
}
.pc-hero > .pc-wrap,
.pc-cta-band > * {
  position: relative;
  z-index: 1;
}
.pc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.pc-kicker {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--acci);
  margin-bottom: 12px;
}
.pc-hero h1 {
  font-size: clamp(2.15rem, 3.8vw, 3.2rem);
  line-height: 1.09;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.pc-lead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--mut);
  max-width: 54ch;
  margin-top: 16px;
}

/* Hero Preview Panel */
.pc-hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: grid;
  gap: 14px;
}
.pc-hero-panel-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.pc-hero-panel-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mut);
}
.pc-hero-panel-val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--acci);
}
.pc-hero-panel-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--ok);
}
.pc-hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.pc-hero-kpis b {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 700;
}
.pc-hero-kpis span {
  font-size: 12px;
  color: var(--mut);
}

/* Buttons */
.pc-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.pc-c .pc-btns { justify-content: center; }
.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line2);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: background-color 150ms cubic-bezier(0.16, 1, 0.3, 1), border-color 150ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pc-btn:hover { text-decoration: none; background: var(--soft); border-color: var(--line2); }
.pc-btn.pc-p {
  background: var(--acc);
  color: #ffffff;
  border-color: var(--acc);
}
.pc-btn.pc-p:hover { background: var(--acci); border-color: var(--acci); }
.pc-btn.pc-sm { min-height: 36px; padding: 7px 14px; font-size: 13.5px; }

/* Quiet unboxed metadata strip (Zero-Pill discipline) */
.pc-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--mut);
}
.pc-meta-sep { color: var(--line2); user-select: none; }

/* Bands & headings */
.pc-band { padding: clamp(44px, 5.5vw, 72px) 0; }
.pc-band.pc-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pc-head { margin-bottom: 26px; }
.pc-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

/* Steps */
.pc-steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  counter-reset: tlstep;
}
.pc-steps li {
  counter-increment: tlstep;
  background: var(--card);
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  align-content: start;
}
.pc-steps li::before {
  content: "0" counter(tlstep) ".";
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
  color: var(--acci);
}
.pc-steps b { font-family: var(--font-display); font-size: 17px; }
.pc-steps span { font-size: 15px; color: var(--mut); }

/* Cards, grids, callouts, tables */
.pc-card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--line);
}
.pc-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.pc-card p { color: var(--mut); font-size: 15px; }
.pc-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--acc-tint);
  color: var(--acci);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.pc-ico svg { width: 19px; height: 19px; }

.pc-grid.pc-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.pc-tbl {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow-x: auto;
}

.pc-callout {
  background: var(--warnbg);
  color: var(--warn);
  border: 1px solid var(--warn-border);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  line-height: 1.5;
}

.pc-cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--soft);
  border-radius: 20px;
  padding: clamp(32px, 5vw, 56px) clamp(18px, 4vw, 36px);
  border: 1px solid var(--line);
}
.pc-cta-band h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.pc-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
  font-size: 14px;
  color: var(--mut);
  text-align: center;
}
.pc-footer a { color: var(--acci); }

@media (max-width: 960px) {
  .pc-hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .pc-pclinks { display: none; }
}
