/* Shellfinity — Dark minimal landing page */

@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=JetBrains+Mono:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,600&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000525;
  --bg2: #060b2e;
  --bg3: #0c1237;
  --text: #e0e0e0;
  --text-dim: #9aa1b8;
  --text-muted: #9aa1b8;
  --heading: #ffffff;
  --accent: #00d4aa;
  --accent-dim: #00a886;
  --border: #121a3a;
  --mono: "JetBrains Mono", "Fira Code", "SF Mono", "Cascadia Code", monospace;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-w: 960px;
  --max-w-bleed: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  position: relative;
}

/* Subtle grain — adds atmosphere without distraction */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce) {
  body::after { opacity: 0.02; }
}

/* --- Per-page themes (strong differentiation for domain pages) --- */

/* Medical: clinical/cool accent shift, serif accent on headings */
body[data-theme="medical"] {
  --accent: #5eead4;
  --accent-dim: #2dd4bf;
}
body[data-theme="medical"] .hero h1,
body[data-theme="medical"] .proof-section h2,
body[data-theme="medical"] .problem-solution h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.5px;
}
body[data-theme="medical"] .hero::before {
  background:
    radial-gradient(ellipse 55% 45% at 90% 15%, rgba(94, 234, 212, 0.10), transparent 60%),
    radial-gradient(ellipse 40% 35% at 10% 90%, rgba(94, 234, 212, 0.06), transparent 60%);
}
body[data-theme="medical"] .section-label {
  color: var(--accent);
}

/* Legal: weighty, editorial, narrower measure */
body[data-theme="legal"] {
  --accent: #c4b78f;
  --accent-dim: #a8995e;
}
body[data-theme="legal"] h1,
body[data-theme="legal"] h2,
body[data-theme="legal"] h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.5px;
}
body[data-theme="legal"] .hero h1 {
  letter-spacing: -1px;
}
body[data-theme="legal"] .bench-description,
body[data-theme="legal"] .hero .subtitle {
  max-width: 560px;
  line-height: 1.7;
}
body[data-theme="legal"] .hero::before {
  background:
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(196, 183, 143, 0.08), transparent 60%);
}
body[data-theme="legal"] .diff-card {
  border-left: 3px solid var(--accent-dim);
}

/* Governance: industrial/terminal, mono everywhere */
body[data-theme="governance"] {
  font-family: var(--mono);
}
body[data-theme="governance"] .hero h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  letter-spacing: -1px;
}
body[data-theme="governance"] .diff-card {
  background: var(--bg3);
  border-color: var(--border);
}
body[data-theme="governance"] .diff-card h3 {
  font-family: var(--mono);
  font-size: 16px;
}
body[data-theme="governance"] .hero::before {
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(0, 212, 170, 0.04) 40px,
      rgba(0, 212, 170, 0.04) 41px
    ),
    radial-gradient(ellipse 55% 40% at 15% 20%, rgba(0, 212, 170, 0.06), transparent 60%);
}
body[data-theme="governance"] .step {
  font-family: var(--mono);
  font-size: 13px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keyboard-only skip-to-content link; visible only when focused. */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  z-index: 1000;
  padding: 8px 12px;
  background: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

/* --- Nav --- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 5, 37, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--heading);
}

/* --- Buttons --- */

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--bg);
}

/* --- Sections --- */

section {
  padding: 96px 24px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

h1 {
  font-family: var(--mono);
  font-size: clamp(44px, 6.2vw, 72px);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.05;
  letter-spacing: -1.5px;
}

h2 {
  font-family: var(--mono);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

h3 {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

/* --- Hero --- */

.hero {
  padding-top: 160px;
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(0, 212, 170, 0.08), transparent 60%),
    radial-gradient(ellipse 40% 35% at 10% 80%, rgba(0, 212, 170, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 32px;
  opacity: 0.92;
}

.hero h1 {
  margin-bottom: 28px;
  max-width: var(--max-w-bleed);
}

.hero .subtitle {
  font-size: 19px;
  color: var(--text);
  margin-bottom: 40px;
  max-width: 620px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-actions-spaced { margin-top: 32px; }

/* Page-load choreography — thematic "verifying" feel */
@keyframes fros-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fros-fade {
  from { opacity: 0; }
  to { opacity: 0.92; }
}

.hero .section-label,
.hero-logo,
.hero h1,
.hero .subtitle,
.hero-actions,
.hero .terminal {
  opacity: 0;
  animation: fros-reveal 0.6s ease-out forwards;
}

.hero-logo         { animation-delay: 0.05s; animation-name: fros-fade; }
.hero .section-label { animation-delay: 0.20s; }
.hero h1           { animation-delay: 0.32s; }
.hero .subtitle    { animation-delay: 0.50s; }
.hero-actions      { animation-delay: 0.68s; }
.hero .terminal    { animation-delay: 0.82s; }

@media (prefers-reduced-motion: reduce) {
  .hero .section-label,
  .hero-logo,
  .hero h1,
  .hero .subtitle,
  .hero-actions,
  .hero .terminal {
    animation: none;
    opacity: 1;
  }
  .hero-logo { opacity: 0.92; }
}

/* Terminal snippet */
.terminal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  max-width: 560px;
  overflow-x: auto;
  position: relative;
}

/* Blinking caret on the live cursor line */
.terminal::after {
  content: "▊";
  display: inline-block;
  margin-left: 4px;
  color: var(--accent);
  animation: terminal-blink 1.1s steps(2, jump-none) infinite;
  vertical-align: baseline;
}

@keyframes terminal-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .terminal::after { animation: none; opacity: 0.7; }
}

.terminal .prompt {
  color: var(--accent);
}

.terminal .comment {
  color: var(--text-dim);
}

.terminal .pass {
  color: #4ade80;
}

.terminal .fail {
  color: #f87171;
}

/* --- Demo --- */

.demo {
  background: var(--bg2);
}

.demo-description {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 40px;
}

.demo-video {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 800px;
}

.demo-video video {
  width: 100%;
  display: block;
}

/* --- Benchmarks --- */

.bench-description {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 40px;
}

.bench-table {
  margin-bottom: 48px;
  overflow-x: auto;
}

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

.bench-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}

.bench-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.bench-table tr.bench-highlight td {
  color: var(--accent);
  font-weight: 700;
}

.bench-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bench-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Lead card — first card in the grid gets visual dominance */
.bench-card.bench-card-lead {
  background:
    linear-gradient(135deg, rgba(0, 212, 170, 0.07), transparent 65%),
    var(--bg2);
  border-color: rgba(0, 212, 170, 0.35);
}

.bench-card.bench-card-lead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 80%);
}

.bench-card.bench-card-lead .bench-stat {
  font-size: 56px;
}

.bench-stat {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.bench-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.bench-card p {
  font-size: 13px;
  color: var(--text-dim);
}

/* --- Problem / Solution --- */

.problem-solution {
  background: var(--bg2);
}

.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}

.ps-grid .problem {
  border-left: 3px solid #f87171;
  padding-left: 20px;
}

.ps-grid .solution {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

/* --- How it works --- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 24px;
}

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

/* --- Differentiators --- */

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.diff-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
}

.diff-card .vs {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.diff-card p {
  font-size: 14px;
  color: var(--text-dim);
}

/* --- Waitlist --- */

.waitlist {
  background: var(--bg2);
  text-align: center;
}

.waitlist h2 {
  margin-bottom: 12px;
}

.waitlist p {
  margin: 0 auto 32px;
  max-width: 480px;
  color: var(--text-dim);
}

.waitlist-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--heading);
  font-size: 14px;
  font-family: var(--sans);
  outline: none;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
}

.waitlist-form button {
  white-space: nowrap;
}

/* --- Footer --- */

footer {
  padding: 48px 24px 32px;
  color: var(--text-dim);
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--heading);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.55;
  max-width: 320px;
  margin-top: 8px;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Application cards --- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* Asymmetric layout: lead app spans 2 cols, last app spans full row */
.app-grid > a:nth-child(1) {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(0, 212, 170, 0.06), transparent 60%),
    var(--bg2);
}

.app-grid > a:nth-child(1) h3 {
  font-size: 22px;
}

.app-grid > a:nth-child(6) {
  grid-column: span 3;
}

@media (max-width: 768px) {
  .app-grid > a:nth-child(1),
  .app-grid > a:nth-child(6) {
    grid-column: span 1;
  }
  .app-grid > a:nth-child(1) h3 {
    font-size: 18px;
  }
}

.app-link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: block;
  position: relative;
}

.app-link:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 212, 170, 0.1);
}

.app-link .app-cta::after {
  content: " \2192";
}

.app-coming-soon {
  opacity: 0.7;
}

.app-coming-soon:hover {
  opacity: 1;
}

.coming-soon-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--bg);
  background: var(--accent-dim);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.app-cta {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: letter-spacing 0.15s;
}

.app-link:hover .app-cta {
  letter-spacing: 2px;
}

/* --- Video overlay --- */

.demo-video {
  position: relative;
}

.demo-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 5, 37, 0.7);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.demo-video-overlay:hover {
  background: rgba(0, 5, 37, 0.5);
}

.demo-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.demo-play-btn::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--bg);
  margin-left: 4px;
}

.demo-video-label {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--heading);
  letter-spacing: 1px;
}

.demo-video-sublabel {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  section {
    padding: 64px 20px;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-logo {
    max-width: 320px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .ps-grid,
  .steps,
  .diff-grid,
  .bench-details,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .nav-links .nav-text {
    display: none;
  }
}

/* --- Pull quote spread (full-bleed editorial moment) --- */

.pull-quote-section {
  background: var(--bg);
  padding: 96px 24px;
  position: relative;
  overflow: hidden;
}

.pull-quote-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(0, 212, 170, 0.05), transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(0, 212, 170, 0.03), transparent 70%);
  pointer-events: none;
}

.pull-quote {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.pull-quote blockquote {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: var(--heading);
  letter-spacing: -0.5px;
  margin: 0 0 24px;
}

.pull-quote blockquote em {
  color: var(--accent);
  font-style: italic;
}

.pull-quote cite {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  font-style: normal;
}

.pull-quote cite::before {
  content: "— ";
  margin-right: 4px;
}

@media (max-width: 768px) {
  .pull-quote-section { padding: 72px 24px; }
}

/* --- Footer wordmark --- */

.footer-wordmark {
  max-width: 100%;
  overflow: hidden;
  margin: 0 0 24px;
  padding: 0 24px;
  text-align: center;
  user-select: none;
}

.footer-wordmark span {
  display: inline-block;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400;
  font-size: clamp(56px, 14vw, 180px);
  letter-spacing: -4px;
  line-height: 1;
  background: linear-gradient(180deg,
    rgba(0, 212, 170, 0.12),
    rgba(0, 212, 170, 0.02) 70%,
    transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 480px) {
  .footer-wordmark span {
    letter-spacing: -2px;
  }
}

/* --- Proof artifact (DDx facsimile) --- */

.proof-section {
  background: var(--bg);
  padding-top: 64px;
  padding-bottom: 96px;
}

.proof-card {
  position: relative;
  max-width: 720px;
  margin: 32px auto 0;
  background:
    linear-gradient(180deg, rgba(0, 212, 170, 0.02), transparent 30%),
    var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.proof-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}

.proof-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 8px;
}

.proof-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proof-head .cert-id {
  color: var(--accent);
}

.proof-head .cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  border-radius: 999px;
  font-size: 10px;
}

.proof-head .cert-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.proof-body {
  padding: 28px 24px 4px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
}

.proof-body .proof-vignette {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-dim);
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px dashed var(--border);
  font-style: italic;
}

.proof-block {
  margin-bottom: 24px;
}

.proof-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.proof-ruled-in {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 20px;
  color: var(--heading);
  font-weight: 600;
  letter-spacing: -0.3px;
}

.proof-ruled-in .verdict-mark {
  color: var(--accent);
  font-size: 22px;
}

.proof-reasons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.proof-reasons li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 13px;
}

.proof-reasons li::before {
  content: "·";
  position: absolute;
  left: 6px;
  color: var(--accent);
}

.proof-excluded {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.proof-excluded li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  background: rgba(248, 113, 113, 0.04);
  border-left: 2px solid rgba(248, 113, 113, 0.5);
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  color: var(--text);
}

.proof-excluded .excl-mark {
  font-family: var(--mono);
  color: #f87171;
  font-weight: 700;
}

.proof-excluded .excl-dx {
  font-weight: 600;
  color: var(--heading);
}

.proof-excluded .excl-reason {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 2px;
  display: block;
}

.proof-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.proof-foot .foot-check {
  color: var(--accent);
}

.proof-caption {
  max-width: 720px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
}

@media (max-width: 640px) {
  .proof-ruled-in { font-size: 17px; }
  .proof-body { padding: 24px 18px 4px; }
  .proof-head, .proof-foot { padding-left: 18px; padding-right: 18px; }
}

/* --- WSD demo terminal --- */
.wsd-demo {
  background: var(--bg);
}

.terminal.wsd-terminal {
  max-width: 720px;
  margin-top: 32px;
  font-size: 13.5px;
  line-height: 1.9;
  padding: 28px 28px 30px;
  background:
    linear-gradient(180deg, rgba(0, 212, 170, 0.03), transparent 25%),
    var(--bg2);
  position: relative;
}

.terminal.wsd-terminal::before {
  content: "● ● ●";
  position: absolute;
  top: 8px;
  left: 14px;
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--text-dim);
  opacity: 0.5;
}

.terminal .term {
  color: var(--accent);
  font-weight: 600;
}

.terminal .sense {
  color: var(--heading);
  font-weight: 600;
}

.terminal .evidence {
  color: var(--text);
  border-bottom: 1px dotted var(--accent-dim);
}

.wsd-terminal .fail {
  color: #fbbf24;
}

/* --- Slim CTA bar for subpages (waitlist dedup) --- */
.cta-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.cta-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-bar p {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin: 0;
}

@media (max-width: 640px) {
  .cta-bar .container {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- Stat card engine-output chrome --- */
.bench-card.engine-output {
  position: relative;
  text-align: left;
  padding-top: 36px;
}

.bench-card.engine-output::before {
  content: attr(data-cert);
  position: absolute;
  top: 10px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.bench-card.engine-output::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.bench-card.engine-output .bench-stat,
.bench-card.engine-output .bench-label {
  text-align: left;
}

/* --- Glossary tooltip --- */
.glossary {
  border-bottom: 1px dotted var(--accent);
  cursor: help;
  position: relative;
  outline: none;
}
.glossary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
#gloss-tip {
  position: absolute;
  z-index: 200;
  max-width: 320px;
  padding: 12px 14px;
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  pointer-events: none;
}
#gloss-tip.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 768px) {
  #gloss-tip {
    max-width: calc(100vw - 32px);
  }
}

/* --- Methodology series (Process section) --- */

.post-meta {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 17px;
  line-height: 1.7;
}

.article-body h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--heading);
}
.article-body h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.3px;
  margin: 40px 0 14px;
  color: var(--heading);
}
.article-body p { margin: 0 0 18px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--heading); }

.bug-class-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 22px;
}

.bug-class-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-bottom: 1px solid var(--border);
}
.bug-class-list li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.bug-class-list li:last-child { border-bottom: none; }

.series-nav {
  max-width: 680px;
  margin: 56px auto 0;
  padding: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}
.series-nav a {
  color: var(--accent);
  text-decoration: none;
}
.series-nav a:hover { text-decoration: underline; }

.process-card {
  display: block;
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg2);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.process-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.process-card[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}
.process-card .card-meta {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.process-card .card-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--heading);
}
.process-card .card-summary {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}


/* Cross-entity disclosure (Shellfinity LLC parent → SonomaWebWorks DBA) */
.footer-also {
  text-align: center;
  font-size: 0.75rem;
  padding: 0.75rem 1rem;
  opacity: 0.55;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-also a {
  color: inherit;
  text-decoration: underline;
}
.footer-also a:hover {
  opacity: 1;
}
