
/* Trusted-details public-site rework. Keep the visual language in the existing system. */
:is(#panel-home, #panel-client-portal, #panel-api-docs) .panel-stack {
  width: min(100%, 1320px);
  margin-inline: auto;
}

#panel-client-portal .company-hero--frameless,
#panel-home .consumer-hero--frameless {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(24px, 4.5vw, 72px);
  min-height: 540px;
  align-items: center;
}

#panel-client-portal .company-copy--frameless,
#panel-home .consumer-copy--frameless {
  width: 100%;
  max-width: 640px;
  min-height: 0;
  padding: clamp(24px, 3vw, 44px) 0;
  padding-inline-start: 0;
}

#panel-client-portal .company-copy--frameless h1,
#panel-home .consumer-copy--frameless h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 4.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--ink);
}

#panel-client-portal .company-copy--frameless .lead,
#panel-home .consumer-copy--frameless .lead {
  max-width: 50ch;
  font-size: clamp(1.08rem, 1.3vw, 1.25rem);
  line-height: 1.55;
}

#panel-client-portal .company-copy--frameless .hero-supporting-line {
  max-width: 52ch;
  font-size: 1rem;
  font-weight: 650;
}

.hero-tertiary-link {
  width: fit-content;
  color: var(--ink);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#panel-client-portal .company-visual--frameless {
  width: 100%;
  max-width: 570px;
  min-height: 0;
}

#panel-client-portal .company-visual-duo {
  width: 100%;
  max-width: 550px;
  gap: clamp(12px, 2vw, 24px);
  margin-inline: auto;
}

#panel-client-portal .company-visual-duo > img {
  flex: 1 1 0;
  width: calc(50% - 12px);
  max-width: 250px;
  height: auto;
  aspect-ratio: 400 / 834;
  object-fit: contain;
}

#panel-client-portal .company-visual-duo > img:last-child {
  transform: translateY(16px);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(24px, 3.5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.story-video {
  min-width: 0;
}

.story-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 14px;
  background: #121b30;
}

.story-copy h2 {
  max-width: 18ch;
  margin: 0 0 18px;
  font-size: clamp(1.75rem, 2.5vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.story-copy > p:not(.eyebrow) {
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.story-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: story-step;
}

.story-steps li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 14px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  counter-increment: story-step;
}

.story-steps li strong {
  color: var(--ink);
}

.story-steps li span {
  color: var(--ink-soft);
}

.story-transcript,
.evidence-more,
.comparison-more {
  margin-top: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.story-transcript summary,
.evidence-more summary,
.comparison-more summary {
  width: fit-content;
  min-height: 44px;
  padding: 10px 0;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.story-transcript p,
.evidence-more p {
  max-width: 70ch;
  margin: 8px 0 0;
}

#panel-client-portal .company-outcomes,
#panel-client-portal .company-comparison,
#panel-client-portal .company-positioning,
#panel-client-portal .company-workspace,
#panel-home .people-benefits,
#panel-home .consumer-steps,
#panel-home .use-cases,
#panel-home .people-trust {
  box-shadow: none;
  background: var(--panel);
}

#panel-client-portal .company-outcomes .section-head {
  max-width: 680px;
}

#panel-client-portal .company-outcomes .evidence-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 840px;
  gap: 16px;
}

#panel-client-portal .company-outcomes .evidence-card {
  min-height: 0;
  padding: 18px 22px;
  box-shadow: none;
  background: color-mix(in srgb, var(--panel) 90%, var(--bg-1));
}

#panel-client-portal .company-outcomes .evidence-card strong {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.benefit-reveals {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.benefit-reveal {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  transition: border-color 180ms ease, transform 180ms ease;
}

.benefit-reveal:hover,
.benefit-reveal[open] {
  border-color: color-mix(in srgb, var(--section-accent) 55%, var(--line));
}

.benefit-reveal[open] {
  transform: translateY(-3px);
}

.benefit-reveal summary {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 120px;
  padding: 17px;
  cursor: pointer;
  list-style-position: inside;
}

.benefit-reveal summary span {
  display: block;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.2;
}

.benefit-reveal summary small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.4;
}

.benefit-reveal p {
  margin: 0;
  padding: 0 17px 18px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.comparison-more {
  margin-top: 22px;
}

.comparison-more .comparison-table {
  margin-top: 12px;
}

#panel-client-portal .company-workspace-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-link-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 20px 24px;
  border-block: 1px solid var(--line);
  color: var(--ink-soft);
}

.trust-link-strip span {
  flex: 1 1 370px;
  font-weight: 650;
}

.trust-link-strip a,
.people-trust a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 4px;
}

#panel-home .consumer-copy--frameless {
  display: block;
}

#panel-home .hero-primary {
  display: grid;
  gap: 14px;
}

:is(#panel-home, #panel-client-portal) .hero-field-example {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.4;
}

:is(#panel-home, #panel-client-portal) .hero-field-label {
  flex: none;
  font-weight: 700;
}

:is(#panel-home, #panel-client-portal) .hero-field-rotator {
  position: relative;
  inset: auto;
  flex: 1;
  min-width: 0;
  height: 28px;
  font-weight: 750;
}

:is(#panel-home, #panel-client-portal) .hero-field-value {
  display: flex;
  align-items: center;
  white-space: normal;
}

.company-field-examples {
  margin-block: 18px;
}

.company-field-examples .hero-supporting-line {
  margin: 4px 0 0;
  color: var(--ink);
}

#panel-home .hero-reuse-note {
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.55;
}

#panel-home .hero-footer {
  margin-top: 20px;
}

.people-trust {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.people-trust-rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-block: 20px;
}

.people-trust-rows p {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 20px;
  border-inline-start: 1px solid var(--line);
}

.people-trust-rows p:first-child {
  padding-inline-start: 0;
  border: 0;
}

.people-trust-rows span {
  color: var(--ink-soft);
  line-height: 1.55;
}

#panel-api-docs .dev-docs-layout {
  gap: clamp(18px, 2vw, 30px);
}

#panel-api-docs .panel-head {
  padding: 16px 0 28px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#panel-api-docs .dev-docs-nav {
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  box-shadow: none;
}

html #panel-api-docs .dev-docs-layout .dev-docs-nav a {
  background: transparent;
  border-color: transparent;
  font-size: 0.84rem;
}

html #panel-api-docs .dev-docs-layout .dev-docs-nav a[aria-current="location"] {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 25%, var(--line));
  background: color-mix(in srgb, var(--ink) 10%, var(--panel));
  box-shadow: inset 3px 0 var(--ink);
}

#panel-api-docs .dev-integration-contract {
  padding: clamp(18px, 2vw, 28px);
  box-shadow: none;
}

#panel-api-docs .dev-flow-panel {
  margin-top: 0;
  border: 0;
  background: transparent;
}

#panel-api-docs .dev-flow-panel > summary {
  padding-inline: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

#panel-api-docs .dev-contract-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

#panel-api-docs .dev-contract-grid .signal-card {
  box-shadow: none;
  background: color-mix(in srgb, var(--bg-1) 50%, var(--panel));
}

#panel-api-docs .dev-contract-grid h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

#panel-api-docs .dev-contract-grid p {
  margin: 4px 0 0;
  font-size: 0.9rem;
}

.dev-optional-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 16px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.dev-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 18px 0 24px;
  font-size: 0.9rem;
  font-weight: 650;
}

.dev-downloads a,
.dev-optional-status a {
  color: var(--ink);
  text-underline-offset: 4px;
}

#panel-api-docs .panel-head h1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 4vw, 3.65rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

#panel-api-docs .panel-head > p:not(.eyebrow) {
  max-width: 68ch;
}

#panel-api-docs .eyebrow {
  color: var(--ink-soft);
}

#panel-api-docs .cta.ghost,
#panel-api-docs .audience-handoff a {
  color: var(--ink);
}

.dev-value-strip {
  padding: 24px;
  border-block: 1px solid var(--line);
}

.dev-value-strip h2 {
  margin: 0 0 18px;
  font-size: 1.25rem;
}

.dev-value-strip ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dev-value-strip li {
  display: grid;
  gap: 5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.dev-value-strip strong {
  color: var(--ink);
}

@media (max-width: 1100px) {
  .benefit-reveals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #panel-client-portal .company-hero--frameless,
  #panel-home .consumer-hero--frameless { min-height: 0; }
}

@media (max-width: 760px) {
  :is(#panel-home, #panel-client-portal) .hero-field-example,
  :is(#panel-home, #panel-client-portal) .hero-field-rotator { height: 3em; }
  #panel-api-docs .dev-contract-grid { grid-template-columns: 1fr; }
  #panel-client-portal .company-hero--frameless,
  #panel-home .consumer-hero--frameless,
  .story-section { grid-template-columns: 1fr; gap: 16px; }
  #panel-client-portal .company-copy--frameless,
  #panel-home .consumer-copy--frameless { padding: 18px 4px 8px; }
  #panel-client-portal .company-copy--frameless h1,
  #panel-home .consumer-copy--frameless h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  #panel-client-portal .company-visual--frameless { min-height: 0; max-width: 440px; }
  #panel-client-portal .company-visual-duo > img { max-width: 190px; }
  .story-section { padding: 18px; }
  .story-section--people .story-copy { order: 1; }
  .story-section--people .story-video { order: 2; }
  .benefit-reveals { grid-template-columns: 1fr; }
  .benefit-reveal summary { min-height: 74px; }
  #panel-client-portal .company-outcomes .evidence-grid,
  #panel-client-portal .company-workspace-grid,
  .people-trust-rows,
  .dev-value-strip ul { grid-template-columns: 1fr; }
  .people-trust-rows p,
  .people-trust-rows p:first-child { padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); }
  .trust-link-strip { padding-inline: 4px; }
  #panel-home .consumer-visual--frameless { min-height: 0; max-height: 470px; }
  #panel-home .consumer-app-shot { max-height: 470px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .benefit-reveal[open] { transform: none; }
}

/* Legal pages use an editorial reading layout without changing legal text. */
.legal-page {
  width: min(100%, 1160px);
  max-width: 1160px;
  padding: clamp(20px, 3vw, 48px) clamp(18px, 3vw, 32px) 80px;
}

.legal-header {
  max-width: 74ch;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.legal-header h1 {
  max-width: 20ch;
  margin: 10px 0 16px;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.legal-header .lead {
  max-width: 65ch;
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  line-height: 1.65;
}

.legal-back-link,
.legal-document a,
.legal-toc a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 238px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.legal-layout:not(:has(.legal-toc)) {
  display: block;
}

.legal-toc {
  position: sticky;
  top: 28px;
  max-height: calc(100vh - 50px);
  overflow-y: auto;
  padding-block: 8px;
  border-top: 2px solid var(--line);
  color: var(--ink-soft);
}

.legal-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-toc ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-toc a {
  color: inherit;
  font-size: 0.91rem;
  line-height: 1.4;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--ink);
}

.legal-toc-mobile {
  display: none;
}

.legal-document {
  min-width: 0;
  max-width: 72ch;
}

.legal-card-grid {
  gap: 12px;
  margin-bottom: 24px;
}

.legal-card {
  box-shadow: none;
  background: var(--panel);
}

.legal-article {
  margin: 0;
  padding: clamp(22px, 3vw, 34px) 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scroll-margin-top: 24px;
}

.legal-article h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.35rem, 1.6vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.legal-article p,
.legal-article li {
  color: var(--ink-soft);
  font-size: clamp(1rem, 0.2vw + 0.96rem, 1.075rem);
  line-height: 1.72;
}

.legal-article p {
  margin: 0 0 17px;
}

.legal-article li + li {
  margin-top: 8px;
}

@media (max-width: 760px) {
  .legal-layout { display: block; }
  .legal-toc { display: none; }
  .legal-toc-mobile {
    display: block;
    margin-bottom: 24px;
    padding: 16px 0;
    border-top: 2px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .legal-toc-mobile summary {
    cursor: pointer;
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .legal-toc-mobile ol {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
  }
  .legal-toc-mobile a {
    color: var(--ink-soft);
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .legal-card-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-bg,
  .legal-toolbar .theme-toggle,
  .legal-toc,
  .legal-toc-mobile,
  .consent-banner,
  .site-footer { display: none !important; }
  html, body { background: #fff !important; color: #111 !important; }
  .legal-page { width: 100%; max-width: none; padding: 0; }
  .legal-layout { display: block; }
  .legal-document { max-width: none; }
  .legal-article { break-inside: avoid; }
  .legal-article p,
  .legal-article li { color: #222 !important; }
}

/* Keep one strong explanatory image per audience without returning to a render-heavy page. */
.people-hand-visual,
.company-data-visual {
  width: min(100%, 1040px);
  margin: clamp(8px, 2.5vw, 28px) auto;
  min-height: 0;
}

.people-hand-visual picture,
.company-data-visual picture {
  width: 100%;
}

.not-found-page {
  min-height: 100vh;
}

.not-found-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  max-width: 880px;
  padding-block: 48px;
}

.not-found-content .legal-back-link { align-self: flex-start; margin-bottom: clamp(50px, 10vh, 110px); }
.not-found-content h1 { max-width: 13ch; margin: 20px 0; font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1.05; }
.not-found-content .lead { max-width: 54ch; margin-bottom: 30px; }
.not-found-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.not-found-contact { margin-left: 12px; color: var(--ink); font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 640px) {
  .people-hand-visual,
  .company-data-visual { width: 100%; margin-block: 10px; }
  .not-found-content { justify-content: flex-start; }
  .not-found-content .legal-back-link { margin-bottom: 80px; }
  .not-found-actions { align-items: stretch; flex-direction: column; }
  .not-found-contact { margin: 10px 0 0; }
}
