/* ========================================
   TENET — Marketing Site Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-card: #f5f5f8;
  --bg-card-border: #d4d4de;
  --accent: #254bb0;
  --accent-dim: rgba(37, 75, 176, 0.1);
  --text: #1a1a2e;
  --text-muted: #4d4d63;
  --text-bright: #0d0d1a;
  --border: #e0e0e8;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.nav-logo:hover {
  opacity: 1;
}

.nav-mark rect {
  transition: fill 0.2s ease;
}

.nav-wordmark {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: rgba(10,18,40,1.0);
  letter-spacing: -0.03em;
  line-height: 1;
  user-select: none;
}

.research-preview-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  background: transparent;
  border: 1px solid #888;
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 10px;
  font-family: monospace;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  opacity: 1;
  color: var(--text-bright);
}

.nav-link-cta {
  background: var(--accent);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 5px;
  font-weight: 500;
}

.nav-link-cta:hover {
  background: #1e3f94;
  color: #ffffff;
}

/* --- Nav Dropdown --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-arrow {
  font-size: 0.6em;
  margin-left: 2px;
  opacity: 0.5;
  transition: transform 0.2s ease;
  display: inline-block;
}

.nav-dropdown:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 0;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown-item {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  opacity: 1;
  background: var(--bg-card);
  color: var(--text-bright);
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-bright);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  opacity: 1;
  background: #1e3f94;
  border-color: #1e3f94;
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  opacity: 1;
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-large {
  font-size: 15px;
  padding: 18px 40px;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.cleared {
  display: inline-block;
  color: var(--text-bright);
  transition: color 0.4s ease, background-size 0.4s ease;
  background-image: linear-gradient(#00ff88, #00ff88);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: 0 0;
  padding: 0 6px;
  margin: 0 -6px;
  border-radius: 4px;
}

.cleared.approved {
  color: #0a0a0a;
  background-size: 100% 100%;
}

.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Violation block: Typewriter redaction mechanic --- */
.violation-block {
  margin: 2rem auto 2.5rem;
  max-width: 720px;
  background: #1e1e2a;
  border: 1px solid #2a2a3a;
  border-radius: 8px;
  padding: 28px 32px;
  text-align: left;
  overflow: hidden;
  min-height: 180px;
}

.violation-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #e87070;
  transition: none;
}

.violation-label.after-tenet {
  color: #00ff88;
}

.violation-line {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #e0e0e0;
  min-height: 1.4em;
  line-height: 1.5;
  transition: opacity 400ms ease;
  word-break: break-word;
  max-width: 100%;
  overflow-wrap: break-word;
}

.violation-line .token {
  transition: none;
}

.violation-line .token.redacting {
  background: #00ff88;
  color: #000;
  border-radius: 2px;
}

.violation-line .token.redacted {
  color: #888;
}

.violation-response {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #00cc66;
  opacity: 0;
  transition: opacity 300ms ease;
  margin-top: 0.4rem;
  line-height: 1.5;
  word-break: break-word;
}

.violation-response.show {
  opacity: 1;
}

.violation-response .btn-approve,
.violation-response .btn-block {
  display: inline-block;
  border: 1px solid #555;
  color: #aaa;
  padding: 1px 8px;
  margin: 0 4px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: default;
  transition: background 80ms, color 80ms, border-color 80ms;
}

.violation-response .btn-block.triggered {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}


/* ========================================
   SECTIONS — shared
   ======================================== */
.section {
  padding: 72px 0;
}

.section-header {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

/* ========================================
   PROBLEM — Cards
   ======================================== */
.section-subtext {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -2.5rem;
  margin-bottom: 1.5rem;
}

.section-problem {
  border-top: 1px solid var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 6px;
  padding: 32px 28px;
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: #b0b0c0;
}

.card-icon {
  margin-bottom: 20px;
  color: var(--accent);
}

.card-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.card-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   FIVE CONTROLS
   ======================================== */
.section-checklist {
  border-top: 1px solid var(--border);
}

.checklist-header {
  font-size: 1.5rem;
}

.controls-list {
  border-top: 1px solid #e5e5e5;
}

.control-row {
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e5;
}

.control-number {
  display: inline-block;
  width: 36px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline;
  margin-right: 16px;
}

.control-name {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
  display: inline;
}

.control-desc {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  padding-left: 36px;
  margin-top: 4px;
}

/* ========================================
   HOW IT WORKS — Steps
   ======================================== */
.section-how {
  border-top: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
  align-items: start;
}

.step {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.step-img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  margin: 0 auto 1.5rem;
  display: block;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.step-img--fill {
  object-fit: cover;
  object-position: left top;
}

.step-img-placeholder {
  width: 100%;
  max-width: 400px;
  height: 260px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.step-img-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #bbb;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  display: block;
  margin-bottom: 20px;
}

.step-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.step-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ========================================
   DOWNLOAD
   ======================================== */
.section-download {
  border-top: 1px solid var(--border);
  text-align: center;
}

.section-download .section-header {
  margin-bottom: 24px;
}

.download-body {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.download-cta {
  margin-bottom: 24px;
}

.download-waitlist {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.waitlist-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.waitlist-link:hover {
  color: var(--accent);
}

.download-contact {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.download-contact a {
  color: var(--accent);
}

/* ========================================
   FAQ
   ======================================== */
.section-faq {
  border-top: 1px solid var(--border);
}

.section-faq .section-header {
  margin-bottom: 32px;
  text-align: center;
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  text-align: left;
  cursor: pointer;
  line-height: 1.5;
}

.faq-toggle:last-of-type {
  border-bottom: none;
}

.faq-toggle:hover {
  color: var(--accent);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease;
}

.faq-content.open {
  max-height: 600px;
}

.faq-content-inner {
  padding: 0 0 24px;
}

.faq-content-inner p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-enterprise {
  border-top: 1px solid var(--border);
}

.enterprise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.enterprise-heading {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.enterprise-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.enterprise-list {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.enterprise-list li {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}

.enterprise-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.enterprise-footnote {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-sep {
  color: var(--border);
}

/* ========================================
   RISKS PAGE
   ======================================== */
.risks-page {
  padding-top: 140px;
}

.risks-container {
  max-width: 720px;
}

.risks-title {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.risks-title-secondary {
  margin-top: 0;
}

.risks-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.risks-body h2 {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.risks-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.risks-body code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: #f0f0f5;
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--text-bright);
}

.risks-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.risks-legal {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.6;
}

/* --- HIPAA Compliance Collapsible --- */
.hipaa-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid #e5e5e5;
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
}

.hipaa-toggle:hover {
  color: var(--accent);
}

.toggle-icon {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 16px;
}

.hipaa-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease;
}

.hipaa-content.open {
  max-height: 2000px;
}

.hipaa-content-inner {
  padding-bottom: 40px;
}

.hipaa-content-inner h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.hipaa-content-inner p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.hipaa-content-inner ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 1rem;
}

.hipaa-content-inner ul li {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 4px;
}

.hipaa-content-inner code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: #f0f0f5;
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text-bright);
}

.hipaa-checklist {
  list-style: none !important;
  padding-left: 0 !important;
}

.hipaa-checklist li {
  margin-bottom: 8px !important;
}

.hipaa-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.hipaa-checklist input[type="checkbox"] {
  margin-top: 5px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

/* ========================================
   BENCHMARKS PAGE
   ======================================== */
.bench-hero {
  padding-top: 140px;
  padding-bottom: 60px;
}

.bench-headline {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.bench-subhead {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 3rem;
}

.bench-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 1.5rem;
}

.bench-stat {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 24px;
}

.bench-stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.bench-stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: block;
}

.bench-stats-headline {
  gap: 32px;
  margin-bottom: 24px;
}

.bench-stats-context {
  gap: 16px;
  margin-bottom: 1.5rem;
}

.bench-stat-sm {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 6px;
  padding: 16px 20px;
}

.bench-stat-sm-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: #666;
  display: block;
  margin-bottom: 4px;
}

.bench-stat-sm-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #999;
  line-height: 1.5;
  display: block;
}

.bench-caveat {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #888;
  line-height: 1.5;
  margin-top: 1rem;
}

.bench-section-header {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.bench-section-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.bench-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.bench-table thead tr {
  background: #1a1a1a;
  color: #ffffff;
}

.bench-table th {
  text-align: left;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bench-table td {
  padding: 10px 16px;
  color: var(--text);
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

.bench-table tbody tr:nth-child(odd) {
  background: #f9f9f9;
}

.bench-table tbody tr:nth-child(even) {
  background: #ffffff;
}

.bench-table .row-dim td {
  color: #999;
}

/* AUC bar column */
.col-bar {
  width: 120px;
  min-width: 120px;
  padding-right: 16px;
}

.auc-bar {
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.auc-bar-dim {
  background: #ddd;
}

.bench-callout {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1.5rem;
}

.bench-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #888;
  line-height: 1.5;
}

/* ROC grid */
.roc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.roc-slot {
  position: relative;
}

.roc-slot img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  display: block;
}

.roc-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 260px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.roc-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #bbb;
  text-align: center;
  padding: 0 16px;
}

.roc-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-top: 8px;
}

.roc-auc {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

/* Quality floors */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 2rem;
}

.quality-card {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 20px;
}

.quality-name {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.quality-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}

.bench-footer-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #888;
  text-align: center;
  line-height: 1.5;
  max-width: 860px;
  margin: 0 auto;
  white-space: normal;
}

@media (max-width: 768px) {
  .bench-stats {
    flex-direction: column;
    gap: 24px;
  }

  .roc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quality-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .roc-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   HOW IT WORKS PAGE
   ======================================== */
.hiw-hero {
  padding-top: 140px;
  padding-bottom: 40px;
}

.hiw-headline {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.hiw-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 1rem;
}

/* --- Layer Sections --- */
.hiw-layer-section {
  border-top: 1px solid var(--border);
}

.hiw-layer-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.hiw-layer-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  flex-shrink: 0;
}

.hiw-layer-title {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.hiw-layer-tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}

.hiw-layer-technical {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #888;
  line-height: 1.6;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.hiw-layer-technical strong {
  color: #666;
}

/* --- Before / After Comparison --- */
.hiw-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.hiw-before,
.hiw-after {
  background: #1e1e2a;
  border: 1px solid #2a2a3a;
  border-radius: 8px;
  padding: 24px;
}

.hiw-compare-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hiw-compare-label-before {
  color: #e87070;
}

.hiw-compare-label-after {
  color: #00ff88;
}

.hiw-compare-text {
  font-size: 0.85rem;
  color: #c8c8d0;
  line-height: 1.65;
  margin-bottom: 10px;
}

.hiw-compare-text:last-child {
  margin-bottom: 0;
}

.hiw-compare-dim {
  color: #777;
  font-style: italic;
}

.hiw-compare-highlight {
  color: #00cc66;
  font-weight: 500;
}

/* Code blocks inside comparisons */
.hiw-compare-code {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.hiw-compare-code-small {
  gap: 1px;
}

.hiw-code-line {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #c8c8d0;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.hiw-code-comment {
  color: #555;
}

.hiw-code-dim {
  color: #666;
}

.hiw-code-line-green {
  color: #00cc66;
}

.hiw-code-spacer {
  height: 4px;
}

/* Token highlighting */
.hiw-token-danger {
  color: #e87070;
  text-decoration: underline;
  text-decoration-color: rgba(232, 112, 112, 0.4);
  text-underline-offset: 3px;
}

.hiw-token-safe {
  color: #00ff88;
}

.hiw-token-dim {
  color: #666;
}

/* Redacted block tokens */
.hiw-token-redacted {
  color: #555;
  letter-spacing: 1px;
}

/* Detection log lines (below redacted text) */
.hiw-detection-log {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 12px 0;
  padding-top: 12px;
  border-top: 1px solid #333;
}

.hiw-log-line {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #aaa;
  line-height: 1.6;
}

.hiw-log-tag {
  color: #00ff88;
  font-weight: 600;
  margin-right: 6px;
}

.hiw-log-method {
  color: #666;
}

/* Mock buttons in HITL comparison */
.hiw-btn-mock {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 3px;
  cursor: default;
}

.hiw-btn-mock-approve {
  border: 1px solid #555;
  color: #aaa;
}

.hiw-btn-mock-block {
  background: #ef4444;
  color: #fff;
  border: 1px solid #ef4444;
}

/* --- Detail Blocks (dark code-like areas) --- */
.hiw-detail-block {
  background: #1e1e2a;
  border: 1px solid #2a2a3a;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
  overflow-x: auto;
}

/* --- Tables inside detail blocks --- */
.hiw-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.hiw-detail-block .hiw-table th {
  text-align: left;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  border-bottom: 1px solid #333;
  white-space: nowrap;
}

.hiw-detail-block .hiw-table td {
  padding: 8px 12px;
  color: #e0e0e0;
  border-bottom: 1px solid #2a2a3a;
}

.hiw-detail-block .hiw-table td strong {
  color: #ffffff;
}

/* --- Detection Speed Stats --- */
.hiw-detection-speed {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.hiw-speed-stat {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.hiw-speed-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 6px;
}

.hiw-speed-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Detection Cards (3-col grid) --- */
.hiw-detection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.hiw-detection-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 6px;
  padding: 20px;
}

.hiw-detection-card-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.hiw-detection-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hiw-detection-card-desc code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: #e8e8f0;
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text-bright);
}

/* --- Mode Cards (2-col) --- */
.hiw-modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 4px;
}

.hiw-mode-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 6px;
  padding: 16px 20px;
}

.hiw-mode-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.hiw-mode-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hiw-mode-desc code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: #e8e8f0;
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--text-bright);
}

/* --- Spec Grid (key-value pairs) --- */
.hiw-specs-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 4px;
}

.hiw-spec {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 12px 20px;
  border-bottom: 1px solid var(--bg-card-border);
}

.hiw-spec:last-child {
  border-bottom: none;
}

.hiw-spec-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-bright);
}

.hiw-spec-value {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Compliance Callout Bar --- */
.hiw-compliance-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(37, 75, 176, 0.06);
  border: 1px solid rgba(37, 75, 176, 0.15);
  border-radius: 6px;
  padding: 14px 18px;
  margin-top: 16px;
  margin-bottom: 4px;
}

.hiw-compliance-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(37, 75, 176, 0.1);
  border: 1px solid rgba(37, 75, 176, 0.25);
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}

.hiw-compliance-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Enterprise callout (Policy Bundles section) --- */
.hiw-enterprise-callout {
  border: 1px solid #2a2a2a;
  padding: 16px 20px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.hiw-enterprise-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.hiw-enterprise-body {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 8px;
}

.hiw-enterprise-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

/* --- Clinical NER + Multilingual callouts --- */
.hiw-callout-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.hiw-clinical-callout {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #666;
  text-align: left;
  margin: 0;
  line-height: 1.8;
}

.hiw-clinical-plus {
  color: var(--accent);
  font-weight: 700;
}

/* --- Dataset footnote --- */
.hiw-dataset-footnote {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #888;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 24px;
}

.hiw-dataset-footnote a {
  color: var(--accent);
}

/* --- Stats CTA --- */
.hiw-stats-section {
  border-top: 1px solid var(--border);
  text-align: center;
}

.hiw-stats-section .section-header {
  margin-bottom: 32px;
}

.hiw-stats-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ========================================
   TECHNICAL ARCHITECTURE PAGE
   ======================================== */

/* Audience framing block */
.ta-audience {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 24px 28px;
  margin-top: 24px;
}

.ta-audience-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.ta-audience-list {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.ta-audience-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

.ta-audience-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.ta-audience-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
  margin: 0;
}

/* Sticky TOC */
.ta-toc {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.ta-toc .container {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ta-toc-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.ta-toc-links {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ta-toc-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.ta-toc-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.ta-toc-sep {
  color: var(--border);
  font-size: 0.7rem;
}

/* Subsection titles (Implementation / Compliance Mapping) */
.ta-subsection-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  margin-top: 8px;
}

/* Light-themed tables for limitations and compliance mapping */
.ta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  border: 1px solid var(--bg-card-border);
  border-radius: 6px;
}

.ta-table thead tr {
  background: var(--bg-card);
}

.ta-table th {
  text-align: left;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-bright);
  border-bottom: 1px solid var(--bg-card-border);
  white-space: nowrap;
}

.ta-table td {
  padding: 10px 16px;
  color: var(--text);
  border-bottom: 1px solid #eee;
  line-height: 1.5;
  vertical-align: top;
}

.ta-table tbody tr:last-child td {
  border-bottom: none;
}

.ta-table a {
  color: var(--accent);
  font-weight: 500;
}

/* Framing text above limitation table */
.ta-framing {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Vendor CTA */
.ta-vendor-cta-section {
  border-top: 1px solid var(--border);
}

.ta-vendor-cta {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.ta-vendor-cta-heading {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.ta-vendor-cta-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* --- HOW IT WORKS RESPONSIVE --- */
@media (max-width: 768px) {
  .hiw-layer-header {
    flex-direction: column;
    gap: 8px;
  }

  .hiw-layer-number {
    font-size: 36px;
  }

  .hiw-comparison {
    grid-template-columns: 1fr;
  }

  .hiw-detection-speed {
    flex-direction: column;
    gap: 12px;
  }

  .hiw-detection-grid {
    grid-template-columns: 1fr;
  }

  .hiw-modes-grid {
    grid-template-columns: 1fr;
  }

  .hiw-spec {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .hiw-stats-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hiw-stats-cta .btn {
    text-align: center;
  }

  .hiw-before,
  .hiw-after {
    padding: 20px 16px;
  }

  .hiw-code-line {
    font-size: 0.72rem;
  }

  .ta-toc-label {
    display: none;
  }

  .ta-audience {
    padding: 20px;
  }

  .ta-table td,
  .ta-table th {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-meta {
  font-size: 13px;
  color: #999;
}

.footer-meta a {
  color: #999;
}

.footer-meta a:hover {
  color: var(--text-muted);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link-cta {
    margin-top: 8px;
    text-align: center;
    padding: 12px 18px;
  }

  .nav-dropdown-menu {
    display: none;
    position: static;
    transform: none;
    min-width: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
    box-shadow: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown.open:hover .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-item {
    padding: 8px 0 8px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
  }

  .nav-dropdown-item:hover {
    background: transparent;
  }

  .hero {
    min-height: auto;
    padding: 120px 24px 80px;
  }

  .section {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .control-desc {
    padding-left: 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step-img-placeholder {
    max-width: 100%;
    height: 200px;
  }

  .enterprise-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .btn-large {
    display: block;
    width: 100%;
    text-align: center;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    text-align: center;
  }

  .violation-block {
    padding: 20px 16px;
    max-width: 100%;
    min-height: 160px;
  }

  .violation-line {
    font-size: 0.8rem;
  }

  .violation-response {
    font-size: 0.72rem;
  }

  .not-anymore {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .card {
    padding: 24px 20px;
  }

  .checklist-item {
    font-size: 14px;
  }
}

/* ========================================
   CLINICIANS PAGE
   ======================================== */

/* Risk callout text inside scenario cards */
.clin-risk-text {
  font-size: 0.8rem;
  color: #b35c5c;
  font-style: italic;
  line-height: 1.6;
  margin-top: 12px;
  margin-bottom: 0;
}

/* Payoff line below before/after comparison */
.clin-result-line {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  margin-top: 20px;
}

/* Safe Harbor styled list */
.clin-safeharbor-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.clin-safeharbor-list li {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.8;
  padding-left: 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.clin-sh-icon {
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.clin-sh-arrow {
  color: var(--accent);
}

.clin-sh-check {
  color: #00aa55;
}

/* 2-column comparison rows (Section 04) */
.clin-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.clin-compare-col {
  background: #1e1e2a;
  border: 1px solid #2a2a3a;
  border-radius: 8px;
  padding: 24px;
}

.clin-compare-item {
  padding: 10px 0;
  border-bottom: 1px solid #2a2a3a;
}

.clin-compare-item:last-child {
  border-bottom: none;
}

.clin-compare-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 4px;
}

.clin-compare-value {
  display: block;
  font-size: 0.8rem;
  color: #c8c8d0;
  line-height: 1.5;
}

/* 3-column mode cards override */
.clin-modes-3col {
  grid-template-columns: repeat(3, 1fr);
}

/* Workflow vignette cards */
.clin-workflow-card {
  border-left: 3px solid var(--accent);
}

/* --- Tabbed Scenarios (Section 01) --- */
.clin-tabs {
  margin-top: 8px;
}

.clin-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.clin-tab {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 20px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.clin-tab:hover {
  color: var(--text-bright);
}

.clin-tab.active {
  color: var(--text-bright);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.clin-tab-panel {
  display: none;
}

.clin-tab-panel.active {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 32px;
  align-items: start;
}

.clin-tab-left {
  padding-top: 4px;
}

.clin-tab-left .card-body {
  margin-bottom: 0;
}

.clin-tab-left .clin-risk-text {
  margin-top: 16px;
  margin-bottom: 16px;
}

.clin-file-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 4px;
  padding: 4px 10px;
}

.clin-screenshot-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--bg-card-border);
}

.clin-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

.clin-task-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.clin-screenshot-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #888;
  line-height: 1.5;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .clin-compare-row {
    grid-template-columns: 1fr;
  }

  .clin-modes-3col {
    grid-template-columns: 1fr;
  }

  .clin-tab-panel.active {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .clin-tab-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .clin-tab {
    padding: 10px 14px;
    font-size: 0.75rem;
  }
}

/* --- Technical Details Toggle (How It Works) --- */
.tech-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid #e5e5e5;
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
}

.tech-toggle:hover {
  color: var(--accent);
}

.tech-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease;
}

.tech-content.open {
  max-height: 2000px;
}

.tech-content-inner {
  padding-bottom: 24px;
}
}

/* ========================================
   LEGAL PAGES (Privacy Policy, etc.)
   ======================================== */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
}

.legal-container {
  max-width: 760px;
}

.legal-header {
  margin-bottom: 48px;
}

.legal-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.legal-container h2 {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.legal-container h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-container p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-container ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-container li {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 6px;
}

.legal-container code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-card);
  padding: 1px 5px;
  border-radius: 3px;
}

.legal-container a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.legal-table th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text-bright);
}

.legal-table td {
  color: var(--text);
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0 24px;
}

.legal-footer-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}