/* ============================================================================
   TortFlow — Marketing site section styles.
   Organized top-to-bottom: header · hero · pipeline · strip · problem ·
   platform · steps · team · visibility · control · trust · faq · cta · footer.
   ============================================================================ */

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--tf-green);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--tf-r-sm);
  transition: top 0.2s var(--tf-ease);
}
.skip-link:focus { top: 12px; }

/* ============================================================================
   HEADER
   ============================================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.3s var(--tf-ease), border-color 0.3s var(--tf-ease),
    box-shadow 0.3s var(--tf-ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--tf-canvas) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--tf-hairline);
  box-shadow: var(--tf-shadow-sm);
}
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-wordmark { font-size: 1.5rem; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.header-nav a {
  padding: 0.5rem 0.85rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--tf-ink-2);
  border-radius: var(--tf-r-sm);
  transition: color 0.2s var(--tf-ease), background-color 0.2s var(--tf-ease);
}
.header-nav a:hover { color: var(--tf-ink); background: var(--tf-hover); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0.5rem;
}
.header-nav + .header-actions { margin-left: 0.5rem; }

.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--tf-hairline);
  border-radius: var(--tf-r-pill);
  background: transparent;
  color: var(--tf-ink-2);
  cursor: pointer;
  transition: var(--tf-transition);
}
.theme-toggle:hover { color: var(--tf-ink); background: var(--tf-hover); transform: translateY(-1px); }
.theme-toggle__moon { display: none; }
:root[data-theme='dark'] .theme-toggle__sun { display: none; }
:root[data-theme='dark'] .theme-toggle__moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle__sun { display: none; }
  :root:not([data-theme='light']) .theme-toggle__moon { display: block; }
}

.menu-toggle { display: none; }
.mobile-nav { display: none; }

/* ============================================================================
   HERO
   ============================================================================ */
.hero {
  position: relative;
  padding-top: clamp(8rem, 16vh, 11rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--tf-hairline-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--tf-hairline-2) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 32%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 32%, #000 0%, transparent 72%);
  opacity: 0.6;
}

.hero-inner { position: relative; text-align: center; }
.hero-copy { max-width: 60rem; margin-inline: auto; }
.hero-title { margin-top: 1.4rem; }
.br-lg { display: none; }
.hero-lead {
  max-width: 40rem;
  margin: 1.5rem auto 0;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2.1rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  justify-content: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--tf-ink-3);
}
.hero-trust__item { display: inline-flex; align-items: center; gap: 0.5em; }
.hero-trust__item .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tf-green);
  box-shadow: 0 0 0 3px var(--tf-green-wash);
}

/* ============================================================================
   HERO PIPELINE — the living case-flow visualization
   ============================================================================ */
.hero-pipeline {
  position: relative;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  max-width: 1060px;
  padding: clamp(1.1rem, 2.4vw, 1.8rem) clamp(1.1rem, 2.4vw, 2rem) clamp(1.1rem, 2vw, 1.6rem);
  background: color-mix(in srgb, var(--tf-surface) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--tf-hairline);
  border-radius: var(--tf-r-2xl);
  box-shadow: var(--tf-shadow-xl);
}
.pipe-headrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(1rem, 2.2vw, 1.6rem);
  gap: 1rem;
}
.pipe-live {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--tf-ink-3);
}
.pipe-live__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tf-green);
  box-shadow: 0 0 0 0 var(--tf-green-glow);
  animation: pulse-dot 2s var(--tf-ease) infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 var(--tf-green-glow); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.pipe-counter { font-size: 0.86rem; font-weight: 500; color: var(--tf-ink-3); letter-spacing: -0.01em; }
.pipe-counter .pipe-arrow { color: var(--tf-green); font-weight: 700; margin: 0 0.15em; }

.pipe-rail {
  position: relative;
  height: clamp(128px, 16vw, 148px);
}
.pipe-track {
  position: absolute;
  top: 46px; left: 3%; right: 3%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tf-hairline) 8%, var(--tf-hairline) 92%, transparent);
}
.pipe-flow {
  position: absolute;
  top: 45px; left: 3%; right: 3%;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.pipe-flow::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--tf-green) 45%, var(--tf-green-300) 50%, var(--tf-green) 55%, transparent);
  opacity: 0.55;
  transform: translateX(-100%);
  animation: flow-sheen 4.5s linear infinite;
}
@keyframes flow-sheen { to { transform: translateX(100%); } }

/* Nodes */
.pipe-nodes { position: absolute; inset: 0; }
.pnode {
  position: absolute;
  top: 46px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 96px;
}
.pnode__disc {
  position: relative;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tf-surface);
  border: 1px solid var(--tf-hairline);
  box-shadow: var(--tf-shadow-md);
  color: var(--tf-ink-2);
  transition: transform 0.4s var(--tf-spring), box-shadow 0.4s var(--tf-ease), border-color 0.4s var(--tf-ease);
  overflow: hidden;
}
.pnode__disc svg { width: 24px; height: 24px; }
.pnode__disc img { width: 100%; height: 100%; object-fit: cover; }
.pnode__ring {
  position: absolute;
  top: 46px; left: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--tf-green);
  opacity: 0;
  pointer-events: none;
}
.pnode.is-active .pnode__disc {
  transform: scale(1.12);
  border-color: var(--tf-green);
  box-shadow: 0 10px 30px -6px var(--tf-green-glow);
}
.pnode.is-active .pnode__ring { animation: node-ring 0.9s var(--tf-ease-out); }
@keyframes node-ring {
  0% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.1); }
}
.pnode__label { text-align: center; line-height: 1.15; }
.pnode__t { display: block; font-size: 0.82rem; font-weight: 600; color: var(--tf-ink); letter-spacing: -0.01em; }
.pnode__s { display: block; font-size: 0.72rem; color: var(--tf-ink-3); margin-top: 1px; }

/* Chips (cases in flight) */
.pchip {
  position: absolute;
  top: 46px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 5px 10px 5px 7px;
  background: var(--tf-surface);
  border: 1px solid var(--tf-hairline);
  border-radius: var(--tf-r-pill);
  box-shadow: var(--tf-shadow-sm);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--tf-ink);
  white-space: nowrap;
  transform: translate(var(--tx, 0px), var(--ty, 0px));
  will-change: transform;
  z-index: 3;
}
.pchip__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tf-ink-4);
  transition: background-color 0.4s var(--tf-ease), box-shadow 0.4s var(--tf-ease);
  flex: none;
}
.pchip[data-state='intake'] .pchip__dot { background: var(--tf-ink-4); }
.pchip[data-state='connected'] .pchip__dot { background: var(--tf-teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tf-teal) 22%, transparent); }
.pchip[data-state='qualified'] .pchip__dot { background: var(--tf-green); box-shadow: 0 0 0 3px var(--tf-green-wash); }
.pchip[data-state='prepared'] .pchip__dot { background: var(--tf-indigo); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tf-indigo) 22%, transparent); }
.pchip[data-state='filed'] { border-color: color-mix(in srgb, var(--tf-green) 40%, var(--tf-hairline)); }
.pchip[data-state='filed'] .pchip__dot { background: var(--tf-green); box-shadow: 0 0 0 3px var(--tf-green-wash); }
.pchip.is-processing { animation: chip-bump 0.5s var(--tf-ease); }
@keyframes chip-bump { 30% { transform: translate(var(--tx), calc(var(--ty) - 6px)) scale(1.06); } }
.pchip.is-spawn { animation: chip-in 0.4s var(--tf-ease-out); }
@keyframes chip-in { from { opacity: 0; } to { opacity: 1; } }
.pchip.is-exit { animation: chip-out 0.55s var(--tf-ease-out) forwards; }
@keyframes chip-out {
  to { opacity: 0; transform: translate(var(--tx), calc(var(--ty) - 26px)) scale(0.7); }
}
.pchip__check { display: none; color: var(--tf-green); }
.pchip[data-state='filed'] .pchip__check { display: inline; }

.pipe-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tf-hairline-2);
  font-size: 0.76rem;
  color: var(--tf-ink-3);
}
.pipe-legend__item { display: inline-flex; align-items: center; gap: 0.5em; }
.pipe-legend__sw { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* ============================================================================
   TRUST STRIP
   ============================================================================ */
.strip { padding-block: clamp(2rem, 4vw, 3rem); border-block: 1px solid var(--tf-hairline-2); }
.strip-inner {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3rem);
  flex-wrap: wrap;
  justify-content: center;
}
.strip-lead {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tf-ink-3);
}
.strip-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.1rem, 3.5vw, 2.6rem);
  align-items: center;
}
.strip-list li { display: flex; flex-direction: column; line-height: 1.2; }
.strip-k {
  font-family: var(--tf-font-display);
  font-variation-settings: 'opsz' 60, 'wght' 600;
  font-size: 1.1rem;
  color: var(--tf-ink);
  letter-spacing: -0.01em;
}
.strip-v { font-size: 0.78rem; color: var(--tf-ink-3); }

/* ============================================================================
   Section bands + shared heads
   ============================================================================ */
.band { background: var(--tf-band); }

/* ============================================================================
   PROBLEM
   ============================================================================ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.problem-card {
  padding: clamp(1.5rem, 2.4vw, 2rem);
  background: var(--tf-surface);
  border: 1px solid var(--tf-hairline);
  border-radius: var(--tf-r-xl);
  box-shadow: var(--tf-shadow-xs);
  transition: transform 0.35s var(--tf-ease-out), box-shadow 0.35s var(--tf-ease);
}
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--tf-shadow-md); }
.problem-card__ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--tf-r-md);
  background: var(--tf-green-wash);
  color: var(--tf-green);
  margin-bottom: 1.1rem;
}
.problem-card__ic svg { width: 24px; height: 24px; }
.problem-card .h3 { margin-bottom: 0.6rem; }

/* ============================================================================
   PLATFORM PILLARS
   ============================================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.pillar {
  position: relative;
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  background: var(--tf-surface);
  border: 1px solid var(--tf-hairline);
  border-radius: var(--tf-r-xl);
  box-shadow: var(--tf-shadow-xs);
  transition: transform 0.35s var(--tf-ease-out), box-shadow 0.35s var(--tf-ease), border-color 0.35s var(--tf-ease);
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--tf-green), var(--tf-teal));
  opacity: 0; transition: opacity 0.35s var(--tf-ease);
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--tf-shadow-lg); border-color: color-mix(in srgb, var(--tf-green) 30%, var(--tf-hairline)); }
.pillar:hover::before { opacity: 1; }
.pillar--feature {
  background: linear-gradient(180deg, color-mix(in srgb, var(--tf-green) 6%, var(--tf-surface)), var(--tf-surface));
  border-color: color-mix(in srgb, var(--tf-green) 22%, var(--tf-hairline));
}
.pillar--feature::before { opacity: 1; }
.pillar__badge {
  font-family: var(--tf-font-display);
  font-variation-settings: 'opsz' 40, 'wght' 600;
  font-size: 0.95rem;
  color: var(--tf-green-ink);
  margin-bottom: 0.9rem;
}
.pillar .h3 { margin-bottom: 0.65rem; }
.pillar .body { margin-bottom: 1.2rem; }

.ticks { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.ticks li {
  position: relative;
  padding-left: 1.7rem;
  font-size: var(--tf-fs-small);
  color: var(--tf-ink-2);
  line-height: 1.45;
}
.ticks li::before {
  content: '';
  position: absolute; left: 0; top: 0.18em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--tf-green-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks strong { color: var(--tf-ink); font-weight: 600; }
.ticks--lg li { font-size: 1.02rem; padding-left: 1.9rem; margin-bottom: 0.2rem; }
.ticks--lg li::before { width: 22px; height: 22px; background-size: 14px; top: 0.1em; }
/* Dark theme: brighten the check glyph so it doesn't go muddy on the dark wash. */
:root[data-theme='dark'] .ticks li::before,
:root[data-theme='dark'] .hire-safety li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .ticks li::before,
  :root:not([data-theme='light']) .hire-safety li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  }
}

/* ============================================================================
   HOW IT WORKS — steps
   ============================================================================ */
.steps {
  position: relative;
  list-style: none;
  padding: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  max-width: 820px;
  display: grid;
  gap: 0;
}
/* The pipeline rail: one vertical line threading every numbered node — the
   literal "same reliable pipeline," echoing the hero's flow. */
.steps::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 3.2rem;
  bottom: 3.2rem;
  width: 2px;
  background: linear-gradient(180deg,
    transparent,
    var(--tf-green) 10%,
    color-mix(in srgb, var(--tf-green) 42%, var(--tf-hairline)) 90%,
    transparent);
  opacity: 0.55;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
  padding: clamp(1.4rem, 3vw, 2rem) 0;
}
.step__rail { position: relative; display: flex; justify-content: center; }
.step__node {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tf-surface);
  border: 1px solid var(--tf-hairline);
  box-shadow: var(--tf-shadow-sm);
  font-family: var(--tf-font-display);
  font-variation-settings: 'opsz' 40, 'wght' 500;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--tf-ink-3);
  letter-spacing: -0.02em;
  transition: transform 0.4s var(--tf-spring), border-color 0.3s var(--tf-ease),
    color 0.3s var(--tf-ease), box-shadow 0.3s var(--tf-ease);
}
.step:hover .step__node {
  transform: scale(1.08);
  border-color: var(--tf-green);
  color: var(--tf-green);
  box-shadow: 0 10px 26px -8px var(--tf-green-glow);
}
.step__body { max-width: 44rem; padding-top: 0.4rem; }
.step__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tf-ink-3);
  background: var(--tf-hover);
  padding: 3px 10px;
  border-radius: var(--tf-r-pill);
  margin-bottom: 0.7rem;
  margin-right: 0.4rem;
}
.step__tag--agent {
  color: var(--tf-green);
  background: var(--tf-green-wash);
  text-transform: none;
  letter-spacing: -0.01em;
  padding-left: 3px;
}
.step__tag--agent img {
  width: 20px; height: 20px; border-radius: 50%; object-fit: cover;
}
.step .h3 { margin-bottom: 0.5rem; }

/* ============================================================================
   TEAM
   ============================================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.agent-card {
  padding: clamp(1.5rem, 2.4vw, 1.9rem);
  background: var(--tf-surface);
  border: 1px solid var(--tf-hairline);
  border-radius: var(--tf-r-xl);
  box-shadow: var(--tf-shadow-xs);
  transition: transform 0.35s var(--tf-ease-out), box-shadow 0.35s var(--tf-ease);
}
.agent-card:hover { transform: translateY(-4px); box-shadow: var(--tf-shadow-md); }
.agent-card__head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.agent-card__avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tf-surface);
  box-shadow: 0 0 0 1px var(--tf-hairline), var(--tf-shadow-sm);
}
.agent-card__name {
  font-family: var(--tf-font-display);
  font-variation-settings: 'opsz' 90, 'wght' 560;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--tf-ink);
}
.agent-card__role { font-size: 0.82rem; font-weight: 600; color: var(--tf-green-ink); }
.agent-card--more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tf-indigo) 8%, var(--tf-surface)), var(--tf-surface));
  border-color: color-mix(in srgb, var(--tf-indigo) 20%, var(--tf-hairline));
}
.agent-card--more .h3 { margin-bottom: 0.7rem; }
.agent-card--more .body { margin-bottom: 1.2rem; }
.agent-card--more em { font-style: italic; color: var(--tf-ink); }

/* ============================================================================
   ONE TEAM — the unified roster (firm + AI specialists + TortFlow humans)
   ============================================================================ */
.one-team { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--tf-hairline-2); }
.ot-bg { position: absolute; inset: 0; z-index: -1; }

.roster {
  margin: clamp(2.5rem, 5vw, 3.75rem) auto 0;
  max-width: 1000px;
  background: color-mix(in srgb, var(--tf-surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--tf-hairline);
  border-radius: var(--tf-r-2xl);
  box-shadow: var(--tf-shadow-xl);
  overflow: hidden;
}
.roster__bar {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.95rem 1.35rem;
  border-bottom: 1px solid var(--tf-hairline-2);
  background: var(--tf-surface-2);
  font-size: 0.84rem;
}
.roster__live { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; color: var(--tf-ink-2); }
.roster__live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--tf-green);
  box-shadow: 0 0 0 0 var(--tf-green-glow); animation: pulse-dot 2s var(--tf-ease) infinite;
}
.roster__case { color: var(--tf-ink-3); font-weight: 500; }
.roster__finish { margin-left: auto; color: var(--tf-ink-3); font-weight: 500; white-space: nowrap; }
.roster__finish strong { color: var(--tf-green); font-weight: 700; }
.roster__arrow { color: var(--tf-green); font-weight: 700; margin: 0 0.1em; }

.roster__groups { display: grid; grid-template-columns: repeat(3, 1fr); }
.rgroup {
  padding: 1.35rem 1.35rem 1.6rem;
  border-right: 1px solid var(--tf-hairline-2);
}
.rgroup:last-child { border-right: 0; }
.rgroup--firm { --ring: var(--tf-green); }
.rgroup--ai { --ring: var(--tf-indigo); }
.rgroup--tf { --ring: var(--tf-human); }
.rgroup__label {
  position: relative;
  display: inline-block;
  padding-left: 0.95rem;
  margin-bottom: 1.15rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ring);
}
.rgroup__label::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--ring);
}
.rgroup__people { list-style: none; padding: 0; display: grid; gap: 1rem; }
.rperson { display: flex; align-items: center; gap: 0.7rem; }
.rav {
  width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover;
  box-shadow: 0 0 0 2px var(--tf-surface), 0 0 0 3.5px var(--ring);
}
.rav--mono {
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ring) 15%, var(--tf-surface));
  color: var(--ring);
  font-family: var(--tf-font-display); font-variation-settings: 'opsz' 40, 'wght' 600;
  font-size: 0.9rem; letter-spacing: -0.01em;
}
.rperson__id { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.rperson__name { font-size: 0.92rem; font-weight: 600; color: var(--tf-ink); letter-spacing: -0.01em; }
.rperson__role { font-size: 0.75rem; color: var(--tf-ink-3); }
.rstatus {
  margin-left: auto; flex: none;
  font-size: 0.68rem; font-weight: 600;
  padding: 3px 9px; border-radius: var(--tf-r-pill);
  white-space: nowrap;
}
.rstatus--green { color: var(--tf-green-ink); background: var(--tf-green-wash); }
.rstatus--indigo { color: var(--tf-indigo-ink); background: color-mix(in srgb, var(--tf-indigo) 12%, transparent); }
.rstatus--amber { color: var(--tf-human-ink); background: color-mix(in srgb, var(--tf-human) 15%, transparent); }
.rstatus--filing { color: var(--tf-green-ink); background: var(--tf-green-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tf-green) 32%, transparent); }

.roster__legend {
  display: flex; flex-wrap: wrap; gap: 0.55rem 1.4rem;
  padding: 0.9rem 1.35rem;
  border-top: 1px solid var(--tf-hairline-2);
  background: var(--tf-surface-2);
  font-size: 0.76rem; color: var(--tf-ink-3);
}
.roster__leg { display: inline-flex; align-items: center; gap: 0.5em; }
.rdot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.rdot--firm { background: var(--tf-green); }
.rdot--ai { background: var(--tf-indigo); }
.rdot--tf { background: var(--tf-human); }

.ot-chips {
  list-style: none; padding: 0;
  margin: clamp(1.6rem, 3vw, 2.3rem) auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
  max-width: 52rem;
}
.ot-chips li {
  font-size: 0.86rem; font-weight: 500; color: var(--tf-ink-2);
  padding: 0.45rem 1.05rem;
  border: 1px solid var(--tf-hairline);
  border-radius: var(--tf-r-pill);
  background: color-mix(in srgb, var(--tf-surface) 72%, transparent);
}

/* ============================================================================
   MARKETPLACE — "Hire your team"
   ============================================================================ */
.market-lede .h2 { margin-top: 0.9rem; margin-bottom: 0.4rem; }
.market-lede .lead { margin-bottom: 2rem; }
.market-tagline {
  font-family: var(--tf-font-display);
  font-style: italic;
  font-variation-settings: 'opsz' 72, 'wght' 500;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: var(--tf-green);
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
}
.hire-note { font-size: 0.8rem; color: var(--tf-ink-3); line-height: 1.5; text-align: center; }
.market-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.market-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 1rem; align-items: start; }
.market-steps__n {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--tf-indigo) 12%, transparent);
  color: var(--tf-indigo); font-weight: 700; font-size: 0.9rem; font-variant-numeric: tabular-nums;
}
.market-steps h3 { font-size: 1.1rem; font-weight: 600; color: var(--tf-ink); letter-spacing: -0.01em; margin-bottom: 0.2rem; }
.market-steps p { font-size: var(--tf-fs-small); color: var(--tf-ink-2); line-height: 1.55; }
.market-aside { display: flex; flex-direction: column; gap: 1.1rem; }
/* Mirror the split on desktop so the example card leads visually (asymmetry vs Visibility). */
@media (min-width: 921px) {
  .split--reverse .market-aside { order: -1; }
}
.hire-card {
  background: var(--tf-surface);
  border: 1px solid var(--tf-hairline);
  border-radius: var(--tf-r-xl);
  box-shadow: var(--tf-shadow-xl);
  overflow: hidden;
}
.hire-card__top { display: flex; align-items: center; gap: 0.8rem; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--tf-hairline-2); }
.hire-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--tf-indigo), color-mix(in srgb, var(--tf-indigo) 55%, #000));
  color: #fff;
  font-family: var(--tf-font-display);
  font-variation-settings: 'opsz' 90, 'wght' 600;
  font-size: 1.4rem;
}
.hire-id { display: flex; flex-direction: column; min-width: 0; }
.hire-name { font-family: var(--tf-font-display); font-variation-settings: 'opsz' 90, 'wght' 560; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--tf-ink); line-height: 1.1; }
.hire-role { font-size: 0.78rem; color: var(--tf-ink-3); }
.hire-badge {
  margin-left: auto; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--tf-indigo); background: color-mix(in srgb, var(--tf-indigo) 12%, transparent);
  padding: 4px 9px; border-radius: var(--tf-r-pill); white-space: nowrap; flex: none;
}
.hire-action { padding: 1rem 1.2rem; }
.hire-action__label { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.72rem; font-weight: 600; color: var(--tf-human-ink); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.hire-flag { width: 8px; height: 8px; border-radius: 50%; background: var(--tf-human); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tf-human) 22%, transparent); }
.hire-action p { font-size: 0.9rem; line-height: 1.55; color: var(--tf-ink-2); font-style: italic; }
.hire-safety { list-style: none; padding: 0.9rem 1.2rem; margin: 0; display: flex; flex-wrap: wrap; gap: 0.45rem 0.9rem; border-top: 1px solid var(--tf-hairline-2); background: var(--tf-surface-2); }
.hire-safety li { position: relative; font-size: 0.74rem; font-weight: 500; color: var(--tf-ink-2); padding-left: 1.15rem; }
.hire-safety li::before {
  content: ''; position: absolute; left: 0; top: 0.15em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--tf-green-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.market-foot { font-size: 0.82rem; color: var(--tf-ink-3); text-align: center; }
.market-foot strong { color: var(--tf-indigo); font-weight: 650; }

/* ============================================================================
   VISIBILITY — split + activity card
   ============================================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split__copy .h2 { margin-top: 0.9rem; margin-bottom: 1.1rem; }
.split__copy .lead { margin-bottom: 1.8rem; }

.activity-card {
  background: var(--tf-surface);
  border: 1px solid var(--tf-hairline);
  border-radius: var(--tf-r-xl);
  box-shadow: var(--tf-shadow-xl);
  overflow: hidden;
}
.activity-card__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--tf-hairline-2);
  background: var(--tf-surface-2);
}
.activity-card__chip {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: 0.82rem; font-weight: 600; color: var(--tf-ink);
  background: var(--tf-green-wash);
  padding: 3px 10px 3px 3px;
  border-radius: var(--tf-r-pill);
}
.activity-card__chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.activity-card__case { font-size: 0.84rem; color: var(--tf-ink-2); font-weight: 500; }
.activity-card__status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: 0.78rem; color: var(--tf-ink-3);
}
.thinking { display: inline-flex; gap: 3px; }
.thinking i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--tf-green);
  animation: think 1.4s var(--tf-ease) infinite;
}
.thinking i:nth-child(2) { animation-delay: 0.2s; }
.thinking i:nth-child(3) { animation-delay: 0.4s; }
@keyframes think { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

.activity-feed { list-style: none; padding: 1rem 1.1rem 0.4rem; display: grid; gap: 0.7rem; }
.activity-feed li {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.86rem; color: var(--tf-ink-2);
}
.af-ic { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; flex: none; }
.af-ic.done { background: var(--tf-green-wash); color: var(--tf-green); font-weight: 700; }
.af-ic.run {
  border: 2px solid var(--tf-green);
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.activity-review { margin: 0.6rem 0.8rem 0.8rem; padding: 1rem; border: 1px solid var(--tf-hairline); border-radius: var(--tf-r-lg); background: var(--tf-surface-2); }
.ar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.ar-title { font-size: 0.9rem; font-weight: 600; color: var(--tf-ink); }
.ar-conf { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.82rem; font-weight: 700; color: var(--tf-green); }
.ar-conf__bar { width: 54px; height: 6px; border-radius: 3px; background: var(--tf-hover); overflow: hidden; }
.ar-conf__bar i { display: block; height: 100%; background: var(--tf-green); border-radius: 3px; }
.ar-quote { font-size: 0.88rem; line-height: 1.55; color: var(--tf-ink-2); font-style: italic; margin-bottom: 0.9rem; }
.ar-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ar-btn { font-size: 0.78rem; font-weight: 600; padding: 6px 12px; border-radius: var(--tf-r-pill); border: 1px solid var(--tf-hairline); color: var(--tf-ink-2); }
.ar-btn--y { color: var(--tf-green); background: var(--tf-green-wash); border-color: transparent; }
.ar-btn--n { color: var(--tf-ink-3); }
.ar-btn--e { margin-left: auto; color: var(--tf-ink-3); }

/* ============================================================================
   CONTROL — gates
   ============================================================================ */
.gates {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.2rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  counter-reset: gate;
}
.gate {
  padding: 1.4rem 1.2rem;
  background: var(--tf-surface);
  border: 1px solid var(--tf-hairline);
  border-radius: var(--tf-r-lg);
  box-shadow: var(--tf-shadow-xs);
}
.gate__n {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--tf-green-wash);
  color: var(--tf-green);
  font-weight: 700; font-size: 0.85rem;
  margin-bottom: 0.9rem;
}
.gate p { font-size: 0.9rem; color: var(--tf-ink-2); line-height: 1.45; }
.gate strong { color: var(--tf-ink); font-weight: 600; display: block; margin-bottom: 0.15rem; }

/* ============================================================================
   TRUST
   ============================================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.trust-card {
  padding: clamp(1.4rem, 2.2vw, 1.8rem);
  background: var(--tf-surface);
  border: 1px solid var(--tf-hairline);
  border-radius: var(--tf-r-xl);
  box-shadow: var(--tf-shadow-xs);
  transition: transform 0.35s var(--tf-ease-out), box-shadow 0.35s var(--tf-ease);
}
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--tf-shadow-md); }
.trust-card__ic {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--tf-r-md);
  background: var(--tf-green-wash);
  color: var(--tf-green);
  margin-bottom: 1rem;
}
.trust-card__ic svg { width: 22px; height: 22px; }
.trust-card .h3 { margin-bottom: 0.55rem; font-size: 1.2rem; }
.trust-note {
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
  font-size: 0.86rem;
  color: var(--tf-ink-3);
  max-width: 52rem;
}

/* ============================================================================
   FAQ
   ============================================================================ */
.faq-wrap { max-width: 800px; }
.faq { margin-top: clamp(2rem, 4vw, 3rem); }
.faq-item {
  border-bottom: 1px solid var(--tf-hairline);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  font-weight: 550;
  color: var(--tf-ink);
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-x { position: relative; width: 16px; height: 16px; flex: none; }
.faq-x::before, .faq-x::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 2px; border-radius: 2px;
  background: var(--tf-ink-3);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--tf-ease), background-color 0.3s var(--tf-ease);
}
.faq-x::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-x::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item[open] .faq-x::before, .faq-item[open] .faq-x::after { background: var(--tf-green); }
.faq-a { overflow: hidden; }
.faq-a p { padding-bottom: 1.3rem; color: var(--tf-ink-2); font-size: var(--tf-fs-body); line-height: 1.6; max-width: 62ch; }
.faq-a em { color: var(--tf-ink); font-style: italic; }
/* Animate open/close via grid-rows for smoothness where supported */
.faq-item:not([open]) .faq-a { display: none; }

/* ============================================================================
   CTA
   ============================================================================ */
.cta-section {
  position: relative;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  /* Blend out of the FAQ band above: start in the band tone, melt to canvas
     before the footer — no hard step, and the aurora emerges softly. */
  background: linear-gradient(180deg, var(--tf-band) 0%, var(--tf-canvas) 34%);
}
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-inner {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.cta-title { margin: 1.2rem 0; font-size: clamp(2.4rem, 6vw, 4.2rem); }
.cta-lead { margin-inline: auto; max-width: 36rem; }
.cta-cta { margin-top: 2.2rem; }

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer {
  border-top: 1px solid var(--tf-hairline);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--tf-canvas);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--tf-hairline-2);
}
.footer-wordmark { font-size: 1.6rem; }
.footer-tag { margin-top: 0.8rem; font-size: 0.95rem; color: var(--tf-ink-3); max-width: 24rem; }
.footer-nav { display: flex; gap: clamp(2rem, 6vw, 4rem); justify-content: flex-end; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col__h { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tf-ink-3); margin-bottom: 0.3rem; }
.footer-col a { font-size: 0.92rem; color: var(--tf-ink-2); transition: color 0.2s var(--tf-ease); }
.footer-col a:hover { color: var(--tf-green); }
.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.footer-disclaimer { font-size: 0.8rem; color: var(--tf-ink-2); line-height: 1.55; max-width: 60rem; }
.footer-legal { display: flex; align-items: center; gap: 0.7rem; font-size: 0.85rem; color: var(--tf-ink-3); flex-wrap: wrap; }
.footer-legal a { color: var(--tf-ink-3); transition: color 0.2s var(--tf-ease); }
.footer-legal a:hover { color: var(--tf-green); }
.footer-dot { color: var(--tf-ink-4); }

/* ============================================================================
   BUILT FOR — firm-fit band
   ============================================================================ */
.tort-chips {
  list-style: none; padding: 0;
  margin: clamp(2rem, 4vw, 3rem) auto clamp(2.5rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center;
  max-width: 60rem;
}
.tort-chips li {
  font-family: var(--tf-font-display);
  font-variation-settings: 'opsz' 40, 'wght' 500;
  font-size: 1.05rem; letter-spacing: -0.01em;
  color: var(--tf-ink-2);
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--tf-hairline);
  border-radius: var(--tf-r-pill);
  background: var(--tf-surface);
  transition: transform 0.3s var(--tf-ease-out), color 0.2s var(--tf-ease), border-color 0.2s var(--tf-ease);
}
.tort-chips li:hover { border-color: var(--tf-green); color: var(--tf-green); transform: translateY(-2px); }
.tort-chips__more { color: var(--tf-green) !important; border-style: dashed !important; }

.fit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem); }
.fit-card { padding: 0.15rem 0 0.15rem 1.3rem; border-left: 2px solid var(--tf-green); }
.fit-card .h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }

/* ============================================================================
   OVERSIGHT — spacing for the merged section
   ============================================================================ */
.oversight-split { margin-top: clamp(2.5rem, 5vw, 3.5rem); align-items: center; }
.gates-block { margin-top: clamp(2.5rem, 5vw, 3.75rem); }
.gates-lead { font-size: var(--tf-fs-small); color: var(--tf-ink-3); margin: 0 auto 1.3rem; text-align: center; max-width: 44rem; }
.gates-block .gates { margin-top: 0; }

/* ============================================================================
   GETTING STARTED — onboarding steps
   ============================================================================ */
.start-steps {
  list-style: none; padding: 0;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 3vw, 2.2rem);
}
.start-steps__n {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--tf-green-wash); color: var(--tf-green);
  font-family: var(--tf-font-display); font-variation-settings: 'opsz' 40, 'wght' 600;
  font-size: 1.15rem; margin-bottom: 1rem;
}
.start-steps h3 { font-size: 1.12rem; font-weight: 600; color: var(--tf-ink); letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.start-steps p { font-size: var(--tf-fs-small); color: var(--tf-ink-2); line-height: 1.55; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1080px) {
  .br-lg { display: none; }
}

@media (max-width: 920px) {
  .header-nav { display: none; }
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    padding: 0 10px;
    border: 1px solid var(--tf-hairline);
    border-radius: var(--tf-r-pill);
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: var(--tf-ink); border-radius: 2px; transition: transform 0.3s var(--tf-ease), opacity 0.2s var(--tf-ease); }
  .menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-nav + .header-actions { margin-left: auto; }
  .header-actions { margin-left: auto; }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.5rem var(--tf-gutter) 1.5rem;
    background: color-mix(in srgb, var(--tf-canvas) 92%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--tf-hairline);
    box-shadow: var(--tf-shadow-md);
  }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { padding: 0.85rem 0.5rem; font-size: 1.05rem; font-weight: 500; color: var(--tf-ink); border-bottom: 1px solid var(--tf-hairline-2); }
  .mobile-nav a:last-child { border-bottom: 0; margin-top: 0.7rem; justify-content: center; }

  .problem-grid, .pillars, .team-grid, .trust-grid { grid-template-columns: 1fr 1fr; }
  .start-steps { grid-template-columns: 1fr 1fr; }
  .fit-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .agent-card--more { grid-column: 1 / -1; }
  .market-steps { grid-template-columns: 1fr; }
  .roster__groups { grid-template-columns: 1fr; }
  .rgroup { border-right: 0; border-bottom: 1px solid var(--tf-hairline-2); }
  .rgroup:last-child { border-bottom: 0; }
  .split { grid-template-columns: 1fr; }
  .split__visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .gates { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .problem-grid, .pillars, .team-grid, .trust-grid, .gates { grid-template-columns: 1fr; }
  .start-steps { grid-template-columns: 1fr; }
  .hero { padding-top: 6.5rem; }
  /* Keep the header to wordmark + toggle + hamburger; CTA lives in the menu + hero. */
  .header-actions .btn-primary { display: none; }
  .hero-title { text-wrap: pretty; }
  .step { grid-template-columns: 46px 1fr; gap: 1rem; }
  .step__node { width: 44px; height: 44px; font-size: 1.15rem; }
  .steps::before { left: 22px; }
  .strip-inner { flex-direction: column; text-align: center; gap: 1rem; }
  .strip-list { justify-content: center; gap: 0.9rem 1.4rem; }
  .strip-lead br { display: none; }
  .pipe-headrow { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .pipe-counter { font-size: 0.82rem; }
  .roster__bar { flex-wrap: wrap; }
  .roster__case { display: none; }
  .roster__finish { margin-left: 0; }
  /* Pipeline: allow horizontal scroll so all 5 nodes stay legible */
  .pipe-rail { min-width: 560px; }
  .hero-pipeline { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  .pnode { width: 84px; }
  .pnode__t { font-size: 0.74rem; }
  .pnode__s { font-size: 0.66rem; }
}

/* Wide screens: allow the balanced line breaks */
@media (min-width: 720px) {
  .br-lg { display: inline; }
}
