/* ═══════════════════════════════════════════
   Veil — main.css
   Minimalist. Warm. Human.
   ═══════════════════════════════════════════ */

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

/* ─────────────────────────────────
   DESIGN TOKENS
───────────────────────────────── */
:root {
  /* Palette */
  --bg:          #F3EDE3;
  --bg-alt:      #EDE7DC;
  --surface:     #FAF7F1;
  --surface-2:   #F3EEE5;
  --white:       #FFFFFF;
  --border:      #DEDAD0;
  --border-2:    #C8C2B4;

  /* Text */
  --ink:         #1C1812;
  --ink-2:       #3A3327;
  --muted:       #6E665A;
  --faint:       #A39C92;

  /* Accents */
  --warm:        #7A5235;
  --warm-bg:     #F5EEE6;
  --green:       #1E6B3C;
  --green-bg:    #EAF4EE;
  --amber:       #8B6A1E;
  --amber-bg:    #F7F0DA;

  /* Semantic */
  --btn-bg:      #1C1812;
  --btn-fg:      #F3EDE3;
  --link:        #4A3B2A;

  /* Type */
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', 'Courier New', monospace;

  /* Space */
  --container: 840px;
  --gap-xs: 6px;
  --gap-sm: 12px;
  --gap-md: 24px;
  --gap-lg: 48px;
  --gap-xl: 80px;
  --gap-2xl: 120px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

/* ─────────────────────────────────
   BASE
───────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 19px;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 64px;
}

a {
  color: var(--link);
  text-decoration: none;
}

img { display: block; max-width: 100%; }

/* ─────────────────────────────────
   LAYOUT HELPERS
───────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}

.section {
  padding: var(--gap-xl) 0;
}

.section--alt {
  background: var(--surface);
}

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 14px;
}

.section-lead {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 44px;
}

hr.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ─────────────────────────────────
   NAVIGATION
───────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 64px;
  background: rgba(243, 237, 227, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--gap-lg);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  transition: max-width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.nav-logo:hover .nav-logo-icon {
  transform: rotate(-4deg) scale(1.06);
}

.nav-logo-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
  list-style: none;
}

.nav-links a {
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.nav-cta:hover { opacity: 0.85; }

.nav-cta svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

/* ── Scrolled state: spread logo ↔ links ↔ CTA full width ── */
.site-nav {
  transition: padding 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.55s ease;
}

.site-nav.nav-scrolled {
  padding: 0 var(--gap-xl);
  box-shadow: 0 1px 24px rgba(28,24,18,0.08);
}

.site-nav.nav-scrolled .nav-inner {
  max-width: 100%;
}

.site-nav.nav-scrolled .nav-links a {
  font-size: 0.92rem;
  color: var(--ink-2);
}

.nav-links {
  transition: gap 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a {
  transition: color 0.2s ease, font-size 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav.nav-scrolled .nav-links {
  gap: calc(var(--gap-lg) * 1.4);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
}

.nav-toggle svg { width: 20px; height: 20px; display: block; }

/* ─────────────────────────────────
   HERO
───────────────────────────────── */
.hero {
  padding: 100px var(--gap-lg) 72px;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--green-bg);
  border: 1px solid rgba(30, 107, 60, 0.18);
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--green);
  margin-bottom: 36px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 28px;
}

.hero-title em {
  font-style: italic;
  color: var(--muted);
}

.hero-sub {
  font-size: 1.18rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 44px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary svg { width: 14px; height: 14px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 400;
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

/* ─────────────────────────────────
   ANIMATED CHAT DEMO
───────────────────────────────── */
.chat-demo-section {
  padding: 0 var(--gap-lg) var(--gap-xl);
}

.chat-demo-outer {
  max-width: var(--container);
  margin: 0 auto;
}

.chat-demo {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(28, 24, 18, 0.06);
}

/* Title bar */
.chat-demo-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.chat-demo-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  flex-shrink: 0;
}

.chat-demo-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.chat-demo-dot:nth-child(1) { background: #F5A09A; }
.chat-demo-dot:nth-child(2) { background: #F5D09A; }
.chat-demo-dot:nth-child(3) { background: #9ACFA0; }

/* Platform tabs */
.platform-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  flex: 1;
}

.platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px 11px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--faint);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  position: relative;
}

.platform-tab:hover { color: var(--muted); }

.platform-tab.active {
  background: var(--white);
  border-color: var(--border);
  color: var(--ink);
  font-weight: 500;
  bottom: -1px;
  z-index: 1;
}

.platform-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.platform-tab[data-platform="chatgpt"] .platform-tab-dot { background: #10A37F; }
.platform-tab[data-platform="gemini"]  .platform-tab-dot { background: #4285F4; }
.platform-tab[data-platform="claude"]  .platform-tab-dot { background: #D97757; }

/* Chat body */
.chat-body {
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

/* Previous messages */
.chat-history {
  padding: 24px 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  transition: background 0.3s ease;
}

/* Platform-specific avatar colours */
.chat-demo[data-platform="chatgpt"] .chat-avatar.ai { background: #10A37F; }
.chat-demo[data-platform="gemini"]  .chat-avatar.ai { background: #4285F4; }
.chat-demo[data-platform="claude"]  .chat-avatar.ai { background: #D97757; }

.chat-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px 12px 12px 12px;
  padding: 11px 16px;
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 480px;
  transition: opacity 0.25s ease;
}

/* Input / compose area */
.chat-compose {
  padding: 16px 20px 20px;
}

/* Veil status bar */
.veil-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--green-bg);
  border: 1px solid rgba(30, 107, 60, 0.18);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  font-size: 0.77rem;
  color: var(--green);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.veil-status-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.veil-status-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.veil-status-count {
  flex: 1;
  font-weight: 500;
}

.veil-redact-btn {
  padding: 3px 10px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.veil-redact-btn:hover { opacity: 0.85; }

/* Input field simulation */
.chat-input-field {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 0 0 var(--r-md) var(--r-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
}

.veil-status-bar + .chat-input-field {
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
}

.chat-input-text {
  flex: 1;
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.65;
  min-height: 1.2em;
  transition: opacity 0.3s ease;
}

.chat-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--ink);
  vertical-align: text-bottom;
  margin-left: 1px;
  border-radius: 1px;
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.chat-send-btn {
  width: 32px;
  height: 32px;
  background: var(--btn-bg);
  border: none;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.chat-send-btn:hover { opacity: 0.85; }
.chat-send-btn svg   { width: 14px; height: 14px; color: var(--btn-fg); }

/* PII span states */
.chat-pii-span {
  transition: background 0.2s ease, border-color 0.2s ease;
}

.chat-pii-span.detected {
  background: rgba(200, 80, 40, 0.09);
  border-bottom: 2px solid rgba(200, 80, 40, 0.38);
  border-radius: 2px;
  padding: 1px 0;
}

.chat-pii-span.redacting {
  opacity: 0.4;
  transform: scale(0.96);
  transition: opacity 0.1s, transform 0.1s;
}

.chat-pii-span.redacted {
  border: none;
  padding: 0;
  background: none;
}

.pii-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.03em;
}

.pii-tag.person  { background: rgba(70, 110, 200, 0.1);  color: #3A5AA0; }
.pii-tag.email   { background: rgba(200,  80,  40, 0.1);  color: #8A3A1E; }
.pii-tag.phone   { background: rgba( 40, 160,  90, 0.1);  color: #1E6840; }
.pii-tag.ssn     { background: rgba(150,  70, 200, 0.1);  color: #6A2A90; }
.pii-tag.address { background: rgba(200, 140,  30, 0.1);  color: #7A5010; }
.pii-tag.dob     { background: rgba(200, 140,  30, 0.1);  color: #7A5010; }
.pii-tag.org     { background: rgba( 40, 120, 180, 0.1);  color: #1A5A80; }

/* ─────────────────────────────────
   PIPELINE
───────────────────────────────── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.pipeline-step {
  background: var(--surface);
  padding: 28px 26px;
}

.pipeline-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 16px;
}

.pipeline-icon {
  width: 34px;
  height: 34px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.pipeline-icon svg {
  width: 15px;
  height: 15px;
  color: var(--warm);
}

.pipeline-step h3 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 7px;
}

.pipeline-step p {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─────────────────────────────────
   FEATURES GRID
───────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.feature {
  background: var(--surface);
  padding: 26px 24px;
}

.feature-icon {
  width: 30px;
  height: 30px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-icon svg {
  width: 13px;
  height: 13px;
  color: var(--warm);
}

.feature h3 {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.feature p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ─────────────────────────────────
   PII TYPES
───────────────────────────────── */
.pii-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pii-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.83rem;
  color: var(--ink-2);
}

.pii-pill code {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
}

.pii-pill code.src-model { background: rgba(70, 110, 200, 0.1); color: #3A5AA0; }
.pii-pill code.src-regex { background: rgba(40, 160, 90, 0.1);  color: #1E6840; }

/* ─────────────────────────────────
   PRIVACY CARD
───────────────────────────────── */
.privacy-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.privacy-item-title {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 9px;
}

.privacy-item p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.65;
}

.privacy-item code {
  font-family: var(--mono);
  font-size: 0.78em;
  background: var(--bg-alt);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ─────────────────────────────────
   CTA SECTION
───────────────────────────────── */
.cta-section {
  padding: var(--gap-xl) var(--gap-lg);
}

.cta-inner {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-text .section-eyebrow { color: rgba(243, 237, 227, 0.4); }
.cta-text .section-title { color: var(--bg); }
.cta-text .section-lead  { color: rgba(243, 237, 227, 0.65); margin-bottom: 0; }

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.btn-primary-inv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.btn-primary-inv:hover { opacity: 0.9; }

.btn-ghost-inv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 20px;
  background: transparent;
  color: rgba(243, 237, 227, 0.7);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 400;
  border: 1px solid rgba(243, 237, 227, 0.2);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-ghost-inv:hover {
  color: var(--bg);
  border-color: rgba(243, 237, 227, 0.5);
}

/* ─────────────────────────────────
   FOOTER
───────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px var(--gap-lg);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
}

.footer-logo img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  opacity: 0.5;
}

.footer-logo-name {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.footer-links a {
  font-size: 0.79rem;
  color: var(--faint);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--ink); }

.footer-meta {
  font-size: 0.76rem;
  color: var(--faint);
  white-space: nowrap;
}

/* ─────────────────────────────────
   PAGE LAYOUT (inner pages)
───────────────────────────────── */
.page-wrap {}

.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 52px var(--gap-lg) 44px;
}

.page-header-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.78rem;
  color: var(--faint);
}

.breadcrumb a {
  color: var(--faint);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--border-2); }

.page-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-lead {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

.prose-wrap {
  padding: 56px var(--gap-lg) 80px;
}

/* ─────────────────────────────────
   PROSE (markdown content)
───────────────────────────────── */
.prose {
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.prose > * + * { margin-top: 1.5em; }

.prose h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 2.5em;
  margin-bottom: 0.6em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--border);
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.prose h4 {
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

.prose p { color: var(--muted); }

.prose strong { color: var(--ink-2); font-weight: 500; }

.prose em { font-style: italic; }

.prose a {
  color: var(--warm);
  text-decoration: underline;
  text-decoration-color: rgba(122, 82, 53, 0.35);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s;
}

.prose a:hover {
  text-decoration-color: var(--warm);
}

.prose ul,
.prose ol {
  padding-left: 1.5em;
}

.prose li { margin-bottom: 0.35em; color: var(--muted); }

.prose li + li { margin-top: 0.25em; }

.prose blockquote {
  border-left: 3px solid var(--border-2);
  padding: 14px 0 14px 20px;
  margin: 1.75em 0;
  font-style: italic;
  color: var(--muted);
}

.prose blockquote p { color: var(--muted); }

/* Inline code */
.prose code {
  font-family: var(--mono);
  font-size: 0.83em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink-2);
}

/* Code blocks */
.prose pre {
  background: var(--ink);
  border-radius: var(--r-md);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 1.75em 0;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.82rem;
  color: #d4cfca;
  line-height: 1.7;
}

/* Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1.75em 0;
}

.prose thead {
  border-bottom: 2px solid var(--border);
}

.prose th {
  text-align: left;
  padding: 10px 16px 10px 0;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}

.prose th:last-child,
.prose td:last-child { padding-right: 0; }

.prose td {
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}

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

.prose td code {
  font-size: 0.78em;
}

/* Architecture diagram pre block */
.prose pre.arch {
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.prose pre.arch code {
  color: var(--muted);
  font-size: 0.78rem;
}

/* ─────────────────────────────────
   RESPONSIVE
───────────────────────────────── */
@media (max-width: 800px) {
  :root {
    --gap-lg: 24px;
    --gap-xl: 56px;
  }

  .nav-links { display: none; }
  .nav-toggle { display: block; }

  /* Mobile nav open */
  .nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 4px;
    z-index: 99;
  }

  .nav-open .nav-links li { width: 100%; }
  .nav-open .nav-links a {
    display: block;
    padding: 10px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
  }

  .hero { padding-top: 64px; }

  .demo-split {
    grid-template-columns: 1fr;
  }

  .demo-divider { height: 1px; width: 100%; }

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

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

  .privacy-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 24px;
  }

  .cta-inner {
    flex-direction: column;
    padding: 40px 32px;
    text-align: center;
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-inner { flex-direction: column; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 540px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.4rem; }

  .prose-wrap { padding-left: 20px; padding-right: 20px; }
  .page-header { padding-left: 20px; padding-right: 20px; }
}

/* ═══════════════════════════════════════════
   BROWSER WINDOW DEMO
   Full Safari-style browser with platform UIs
   ═══════════════════════════════════════════ */

/* ── Outer wrapper ── */
.bw-section {
  padding: 0 var(--gap-md) var(--gap-xl);
}

.bw-outer {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── The browser window card ── */
.bw {
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(28,24,18,0.04),
    0 4px 24px rgba(28,24,18,0.10),
    0 1px 4px rgba(28,24,18,0.06);
  background: #fff;
  position: relative;
}

/* ── macOS title bar ── */
.bw-titlebar {
  height: 36px;
  background: #EBEBEB;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 12px;
  border-bottom: 1px solid #D0D0D0;
  user-select: none;
}

.bw-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-right: 14px;
}

.bw-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.bw-dot-r { background: #FF5F57; border: 0.5px solid rgba(0,0,0,0.12); }
.bw-dot-y { background: #FEBC2E; border: 0.5px solid rgba(0,0,0,0.12); }
.bw-dot-g { background: #28C840; border: 0.5px solid rgba(0,0,0,0.12); }

.bw-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border-radius: 8px 8px 0 0;
  padding: 6px 14px 7px;
  border: 1px solid #D0D0D0;
  border-bottom-color: #fff;
  position: relative;
  bottom: -1px;
  font-size: 0.75rem;
  color: #333;
  max-width: 220px;
}

.bw-tab-fav {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.bw-tab-fav svg,
.bw-tab-fav img {
  width: 14px;
  height: 14px;
  display: block;
}

.bw-tab-title {
  font-size: 0.74rem;
  color: #1a1a1a;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: -apple-system, "SF Pro Display", sans-serif;
}

.bw-titlebar-spacer { flex: 1; }

/* ── URL bar row ── */
.bw-urlbar-row {
  height: 44px;
  background: #F5F5F5;
  border-bottom: 1px solid #D8D8D8;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  user-select: none;
}

.bw-nav {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.bw-nav-btn {
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  color: #888;
  font-size: 1rem;
  line-height: 1;
}

.bw-urlbar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #C8C8C8;
  border-radius: 7px;
  padding: 0 10px;
  height: 28px;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
}

.bw-lock {
  font-size: 10px;
  line-height: 1;
  color: #666;
  flex-shrink: 0;
  user-select: none;
}

.bw-url {
  font-family: -apple-system, "SF Pro Text", sans-serif;
  font-size: 0.73rem;
  color: #333;
  flex: 1;
  text-align: center;
  transition: opacity 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bw-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 8px;
}

/* Veil extension icon in browser toolbar */
.bw-ext-veil {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: rgba(28,24,18,0.05);
  transition: background 0.15s;
}

.bw-ext-veil img {
  width: 16px;
  height: 16px;
  display: block;
  border-radius: 3px;
}

/* Badge on Veil extension icon when active */
.bw-ext-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1E6B3C;
  border: 1.5px solid #F5F5F5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bw-ext-badge.active { opacity: 1; }

/* ── Browser viewport ── */
.bw-viewport {
  height: 620px;
  display: flex;
  position: relative;
  overflow: hidden;
  background: #fff;
}

/* ── Platform views ── */
.bw-platform {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.bw-platform.active {
  display: flex;
  opacity: 1;
}

.bw-platform.entering {
  display: flex;
  opacity: 0;
}

/* ── Shared sidebar ── */
.plat-sidebar {
  width: 196px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  gap: 2px;
  overflow: hidden;
  border-right: 1px solid #E8E8E8;
}

.sidebar-brand {
  padding: 6px 8px 10px;
}

.sidebar-brand-name {
  font-size: 0.9rem;
  font-weight: 700;
  font-family: -apple-system, "SF Pro Display", sans-serif;
  letter-spacing: -0.01em;
}

.gemini-name  { color: #1a73e8; }
.claude-name  { color: #D97757; }

.sidebar-new-btn {
  display: block;
  width: 100%;
  padding: 7px 10px;
  background: none;
  border: none;
  border-radius: 7px;
  font-size: 0.77rem;
  font-family: -apple-system, "SF Pro Text", sans-serif;
  cursor: default;
  text-align: left;
  transition: background 0.12s;
}

.sidebar-history { margin-top: 8px; flex: 1; }

.sidebar-hist-label {
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0 10px 4px;
  font-family: -apple-system, "SF Pro Text", sans-serif;
}

.sidebar-hist-item {
  padding: 6px 10px;
  font-size: 0.76rem;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  font-family: -apple-system, "SF Pro Text", sans-serif;
  transition: background 0.1s;
}

/* ── Shared main area ── */
.plat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.plat-messages {
  flex: 1;
  padding: 18px 28px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.plat-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: -apple-system, "SF Pro Display", sans-serif;
  letter-spacing: 0.01em;
  color: #fff;
  overflow: hidden;
  background: #555;
}

.chatgpt-av { background: #1a1a1a; }
.gemini-av  { background: #1a73e8; }
.claude-av  { background: #D97757; }

.plat-bubble {
  background: #F7F7F8;
  border-radius: 4px 12px 12px 12px;
  padding: 10px 14px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #1a1a1a;
  max-width: 420px;
  font-family: -apple-system, "SF Pro Text", sans-serif;
  transition: opacity 0.25s ease;
}

/* ── Compose area ── */
.plat-compose {
  padding: 8px 20px 16px;
  position: relative;
  flex-shrink: 0;
}

.plat-input {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  position: relative;
}

.plat-typing {
  flex: 1;
  font-size: 0.87rem;
  line-height: 1.6;
  color: #1a1a1a;
  min-height: 1.2em;
  word-break: break-word;
  font-family: -apple-system, "SF Pro Text", sans-serif;
  transition: opacity 0.3s ease;
}

.plat-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: #1a1a1a;
  vertical-align: text-bottom;
  margin-left: 1px;
  border-radius: 1px;
  animation: bwCursorBlink 1.1s step-end infinite;
  flex-shrink: 0;
}

@keyframes bwCursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Shared send button */
.plat-send-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  flex-shrink: 0;
  font-size: 0.8rem;
  line-height: 1;
}

.chatgpt-send-btn { background: #1a1a1a; color: #fff; }
.gemini-send-btn  { background: #1a73e8; color: #fff; }
.claude-send-btn  { background: #D97757; color: #fff; }

/* Tab colour dot */
.bw-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #10A37F;
  transition: background 0.3s;
}

/* ── ChatGPT specific ── */
.chatgpt-sidebar {
  background: #FAFAFA;
  color: #1a1a1a;
}

.chatgpt-sidebar .sidebar-brand { color: #1a1a1a; }
.chatgpt-sidebar .sidebar-new-btn { color: #333; }
.chatgpt-sidebar .sidebar-new-btn:hover { background: #ECECEC; }
.chatgpt-sidebar .sidebar-hist-label { color: #888; }
.chatgpt-sidebar .sidebar-hist-item { color: #555; }
.chatgpt-sidebar .sidebar-hist-item:hover { background: #ECECEC; }
.chatgpt-sidebar .sidebar-hist-item--active { background: #E8E8E8; color: #1a1a1a; font-weight: 500; }

.chatgpt-main { background: #fff; }

.chatgpt-model-row {
  padding: 10px 20px 0;
  flex-shrink: 0;
}

.chatgpt-model-picker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a1a;
  font-family: -apple-system, "SF Pro Display", sans-serif;
  cursor: pointer;
}

.chatgpt-model-picker svg { width: 10px; height: 10px; opacity: 0.5; }

.chatgpt-input {
  background: #fff;
  border: 1px solid #D4D4D4;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

/* ── Gemini specific ── */
.gemini-sidebar {
  background: #1B1B1B;
  border-right-color: #333;
}

.gemini-sidebar .sidebar-new-btn { color: rgba(255,255,255,0.75); }
.gemini-sidebar .sidebar-hist-label { color: rgba(255,255,255,0.35); }
.gemini-sidebar .sidebar-hist-item { color: rgba(255,255,255,0.6); }
.gemini-sidebar .sidebar-hist-item--active { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); font-weight: 500; }

.gemini-main { background: #fff; }

.gemini-model-row {
  padding: 12px 20px 0;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.gemini-model-picker {
  font-size: 0.82rem;
  font-weight: 500;
  color: #1a1a1a;
  font-family: -apple-system, "SF Pro Text", sans-serif;
}

.gemini-input {
  background: #F0F4F9;
  border: 1px solid #D8E1ED;
  border-radius: 24px;
}

/* ── Claude specific ── */
.claude-sidebar {
  background: #F3EDE3;
  border-right-color: #DDD5C4;
}

.claude-sidebar .sidebar-new-btn { background: #E8E0D2; color: #3a2f24; text-align: center; border-radius: 8px; }
.claude-sidebar .sidebar-hist-label { color: #9A8F83; }
.claude-sidebar .sidebar-hist-item { color: #6B6050; }
.claude-sidebar .sidebar-hist-item--active { background: #DDD5C4; color: #2f261c; font-weight: 500; }

.claude-main { background: #FAF9F7; }

.claude-conv-title {
  padding: 14px 28px 4px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1a1a1a;
  font-family: -apple-system, "SF Pro Display", sans-serif;
  flex-shrink: 0;
}

.claude-bubble {
  background: #fff;
  border: 1px solid #EBE5DB;
}

.claude-input {
  background: #fff;
  border: 1px solid #D8D1C7;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* ── PII span in the input ── */
.pii-span-live {
  --pii-c: transparent;
  display: inline;
  text-decoration: underline wavy var(--pii-c);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color 0.3s ease;
  cursor: pointer;
}

.pii-span-live.detected {
  text-decoration-color: var(--pii-c);
}

.pii-span-live.redacting {
  opacity: 0.35;
  transition: opacity 0.1s ease;
}

.pii-span-live.redacted {
  display: inline-block;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.78em;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--pii-c) 11%, transparent);
  color: var(--pii-c);
  outline: 1px solid color-mix(in srgb, var(--pii-c) 32%, transparent);
  letter-spacing: 0.02em;
  filter: saturate(0.85);
  transition: all 0.2s ease;
}

/* ── Veil scanning pill ── */
.veil-scanning-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: #2D251C;
  color: rgba(255,255,255,0.88);
  border-radius: 20px;
  font-size: 0.73rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.01em;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.22);
}

.veil-scanning-pill.visible {
  opacity: 1;
  transform: translateY(0);
}

.scan-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #28C840;
  animation: scanPulse 1.2s ease-in-out infinite;
}

.scan-dot:nth-child(2) { animation-delay: 0.2s; }
.scan-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes scanPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50%       { opacity: 1;   transform: scale(1.1); }
}

.scan-label { color: rgba(255,255,255,0.75); }

/* ── Veil action bar ── */
.veil-action-bar {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  background: linear-gradient(180deg, #fffefb 0%, #fffbf4 100%);
  border: 1px solid #E7DECE;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.74rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 11;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  min-width: 260px;
}

.veil-action-bar.visible {
  opacity: 1;
  transform: translateY(0);
}

.vab-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.vab-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.vab-count {
  font-weight: 600;
  color: #2f281f;
  font-size: 0.75rem;
}

.vab-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vab-timer {
  color: #6f6659;
  font-size: 0.72rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .bw-section { padding-left: 16px; padding-right: 16px; }
  .bw-viewport { height: 520px; }
  .plat-sidebar { width: 160px; }
  .plat-bubble { font-size: 0.8rem; }
  .plat-typing { font-size: 0.82rem; }
  .sidebar-hist-item { font-size: 0.72rem; padding: 5px 8px; }
}

@media (max-width: 600px) {
  .plat-sidebar { display: none; }
  .bw-viewport  { height: 440px; }
}
