/* TradeDoc — Marketing, auth & billing (B2B light theme) */
:root {
  --bg: #FAFAF9;
  --surface: #ffffff;
  --surface2: #F1F5F9;
  --surface3: #E2E8F0;
  --border: #E2E8F0;
  --border2: #CBD5E1;
  --navy: #1e3a5f;
  --navy-light: #2d4a6f;
  --gold: #b8954a;
  --gold2: #c9a84c;
  --gold-dim: rgba(30, 58, 95, 0.08);
  --text: #1e293b;
  --text2: #334155;
  --text3: #64748b;
  --green: #15803d;
  --red: #dc2626;
  --r: 10px;
  --ff: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-light); }

.icon { display: block; flex-shrink: 0; }

.logo-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.logo-mark .icon { color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo-text { font-size: 18px; color: var(--navy); font-weight: 700; letter-spacing: -0.3px; }
.site-logo-text { font-size: 18px; color: var(--navy); font-weight: 700; letter-spacing: -0.3px; }
.site-logo-icon { display: none; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--text2); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
  background: var(--navy); color: #fff !important;
  padding: 8px 18px; border-radius: 8px; font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--navy-light); color: #fff !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text2); font-family: var(--ff);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: 0.15s; text-decoration: none;
}
.btn:hover { border-color: var(--navy); color: var(--text); }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }
.btn-primary:hover { background: var(--navy-light); border-color: var(--navy-light); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface2); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* Hero */
.hero { max-width: 1100px; margin: 0 auto; padding: 72px 24px 48px; text-align: center; }
.hero h1, .hero h2 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15; color: var(--text); margin-bottom: 20px; font-weight: 700; letter-spacing: -0.5px;
}
.hero h1 em, .hero h2 em { font-style: normal; color: var(--navy); }
.hero p { font-size: 18px; color: var(--text2); max-width: 640px; margin: 0 auto 36px; }
.hero-note { font-size: 13px; color: var(--text3); max-width: 520px; margin: -20px auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.guarantee-badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  max-width: 640px; margin: 16px auto 8px; padding: 10px 18px;
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.08), rgba(30, 58, 95, 0.06));
  border: 1px solid rgba(21, 128, 61, 0.28); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--green); line-height: 1.5;
}
.guarantee-badge::before { content: '✓'; font-weight: 800; }
.guarantee-badge a { color: var(--navy); text-decoration: underline; font-weight: 600; }
.guarantee-badge--section { margin-bottom: 28px; }

.hero-mock,
.app-preview {
  max-width: 900px; margin: 48px auto 0; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: 0 24px 64px rgba(30, 58, 95, 0.12); overflow: hidden;
  text-align: left;
}
.app-preview-chrome {
  height: 36px; background: #eef2f7; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px; padding: 0 14px;
}
.app-preview-chrome.mini { height: 28px; padding: 0 10px; }
.app-preview-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border2); }
.app-preview-dot.red { background: #ef4444; }
.app-preview-dot.yellow { background: #f59e0b; }
.app-preview-dot.green { background: #22c55e; }
.app-preview-url {
  margin-left: 8px; font-size: 11px; color: var(--text3); font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: 3px 10px; flex: 1; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-preview-body { display: grid; grid-template-columns: 168px 1fr; min-height: 320px; }
.app-preview-nav {
  background: var(--navy); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px;
}
.app-preview-logo {
  display: flex; align-items: center; gap: 8px; padding: 4px 8px 12px;
  font-size: 13px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 8px;
}
.app-preview-logo-mark {
  width: 22px; height: 22px; border-radius: 6px; background: var(--gold);
}
.app-preview-nav-item {
  font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.65);
  padding: 7px 10px; border-radius: 6px;
}
.app-preview-nav-item.active { background: rgba(255,255,255,0.12); color: #fff; font-weight: 600; }
.app-preview-nav-item.muted { opacity: 0.5; }
.app-preview-main { padding: 16px 18px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.app-preview-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.app-preview-h { font-size: 13px; font-weight: 700; color: var(--text); }
.app-preview-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }
.app-preview-status {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  background: var(--gold-dim); color: var(--navy); border: 1px solid rgba(184,149,74,0.35);
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}
.app-preview-workflow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}
.wf-step, .pillar-wf span {
  font-size: 10px; font-weight: 600; padding: 4px 8px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text3);
}
.wf-step.done, .pillar-wf .done { background: rgba(21,128,61,0.08); border-color: rgba(21,128,61,0.25); color: var(--green); }
.wf-step.active, .pillar-wf .active { background: var(--navy); border-color: var(--navy); color: #fff; }
.wf-arrow { font-size: 10px; color: var(--text3); }
.app-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.app-preview-doc {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px;
}
.app-preview-doc.highlight { border-color: var(--navy); box-shadow: 0 2px 8px rgba(30,58,95,0.08); }
.app-preview-doc.pending { opacity: 0.55; }
.app-preview-doc-id { font-size: 9px; font-weight: 700; color: var(--gold); letter-spacing: 0.3px; }
.app-preview-doc-title { font-size: 11px; font-weight: 600; color: var(--text); margin-top: 2px; }
.app-preview-doc-meta { font-size: 9px; color: var(--text3); margin-top: 4px; }
.app-preview-docframe {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; box-shadow: inset 0 0 0 1px rgba(30,58,95,0.04);
}
.docframe-head {
  font-size: 10px; font-weight: 800; letter-spacing: 0.6px; color: var(--navy);
  border-bottom: 2px solid var(--gold); padding-bottom: 6px; margin-bottom: 8px;
}
.docframe-meta { display: flex; gap: 6px; margin-bottom: 8px; }
.docframe-meta span { height: 6px; flex: 1; background: var(--surface2); border-radius: 3px; }
.docframe-table { background: var(--surface2); border-radius: 6px; padding: 8px; }
.docframe-row { height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 5px; }
.docframe-row.head { background: var(--navy); opacity: 0.25; width: 100%; }
.docframe-total {
  margin-top: 8px; font-size: 10px; font-weight: 700; color: var(--navy); text-align: right;
}

/* Pillar mini previews */
.pillar-preview { margin-bottom: 16px; box-shadow: 0 8px 24px rgba(30,58,95,0.08); }
.pillar-preview-body { padding: 12px; background: var(--bg); min-height: 120px; }
.pillar-wf { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.pillar-doc-list { display: flex; gap: 6px; }
.pillar-doc {
  flex: 1; font-size: 9px; font-weight: 700; text-align: center; padding: 8px 4px;
  border-radius: 6px; background: var(--surface); border: 1px solid var(--border); color: var(--text3);
}
.pillar-doc.done { color: var(--green); border-color: rgba(21,128,61,0.3); }
.pillar-doc.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pillar-table-head, .pillar-table-row {
  display: grid; grid-template-columns: 1.2fr 1fr 0.6fr; gap: 6px; font-size: 9px; padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.pillar-table-head { font-weight: 700; color: var(--navy); background: var(--surface2); padding: 6px 8px; border-radius: 6px 6px 0 0; }
.pillar-table-row { color: var(--text2); padding: 6px 8px; }
.pillar-table-row span:last-child { font-family: ui-monospace, monospace; color: var(--text3); }
.pillar-docframe {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 10px;
}
.pillar-docframe-title { font-size: 9px; font-weight: 800; color: var(--navy); letter-spacing: 0.5px; }
.pillar-docframe-badge {
  display: inline-block; margin: 6px 0; font-size: 8px; font-weight: 700;
  background: var(--gold-dim); color: var(--navy); padding: 2px 6px; border-radius: 4px;
}
.pillar-docframe-lines span { display: block; height: 5px; background: var(--surface2); border-radius: 3px; margin-bottom: 4px; }
.pillar-docframe-lines span:nth-child(2) { width: 70%; }
.pillar-docframe-lines span:nth-child(3) { width: 50%; }
.pillar-docframe-table { height: 36px; background: var(--surface2); border-radius: 4px; margin: 8px 0; }
.pillar-docframe-total { font-size: 8px; font-weight: 600; color: var(--text3); font-style: italic; }
.pillar-security { text-align: center; padding-top: 8px; }
.pillar-shield { font-size: 28px; margin-bottom: 6px; }
.pillar-security-line { font-size: 11px; font-weight: 700; color: var(--navy); }
.pillar-security-tags { display: flex; justify-content: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.pillar-security-tags span {
  font-size: 8px; font-weight: 700; padding: 4px 8px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text3);
}

.hero-mock-bar {
  height: 36px; background: var(--surface2); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px; padding: 0 14px;
}
.hero-mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border2); }
.hero-mock-body { padding: 24px; display: grid; grid-template-columns: 180px 1fr; gap: 16px; min-height: 280px; }
.hero-mock-sidebar { background: var(--surface2); border-radius: 8px; padding: 12px; }
.hero-mock-line { height: 8px; background: var(--border); border-radius: 4px; margin-bottom: 8px; }
.hero-mock-line.short { width: 60%; }
.hero-mock-content { display: flex; flex-direction: column; gap: 12px; }
.hero-mock-card { background: var(--surface2); border-radius: 8px; padding: 16px; flex: 1; }

/* Stats & logos */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 900px; margin: 0 auto; padding: 48px 24px;
}
.stat-item { text-align: center; }
.stat-val { font-size: 32px; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-lbl { font-size: 13px; color: var(--text3); margin-top: 6px; }

.logos-row {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 40px 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.logos-row-title {
  font-size: 13px; font-weight: 600; color: var(--text3); text-transform: uppercase;
  letter-spacing: 0.6px; text-align: center;
}
.logos-row-items {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 32px;
}
.logo-client {
  font-size: 13px; font-weight: 600; color: var(--text3); letter-spacing: 0.3px;
  padding: 8px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
}

.process-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.process-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 24px; text-align: center;
}
.process-num {
  width: 36px; height: 36px; line-height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; margin: 0 auto 16px;
}
.process-step h3 { font-size: 16px; margin-bottom: 10px; color: var(--text); }
.process-step p { font-size: 14px; color: var(--text2); line-height: 1.6; }

.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.testimonial-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; margin: 0;
}
.testimonial-card p {
  font-size: 14px; color: var(--text2); line-height: 1.7; font-style: italic; margin-bottom: 16px;
}
.testimonial-card footer { font-size: 12px; color: var(--text3); line-height: 1.5; }
.testimonial-metric {
  display: inline-block; margin-top: 6px; font-style: normal; font-weight: 700;
  color: var(--green); font-size: 12px;
}

/* Problem vs Solution */
.compare-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 960px; margin: 0 auto;
}
.compare-card {
  border-radius: var(--r); padding: 28px; text-align: left;
}
.compare-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.compare-card ul { list-style: none; }
.compare-card li {
  font-size: 14px; color: var(--text2); line-height: 1.6; padding: 10px 0;
  border-bottom: 1px solid var(--border); padding-left: 24px; position: relative;
}
.compare-card li:last-child { border-bottom: none; }
.compare-old { background: var(--bg); border: 1px solid var(--border); }
.compare-old h3 { color: var(--text3); }
.compare-old li::before { content: '✕'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.compare-new { background: var(--surface); border: 2px solid var(--navy); box-shadow: 0 8px 32px rgba(30, 58, 95, 0.08); }
.compare-new h3 { color: var(--navy); }
.compare-new li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Pillars */
.pillars-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.pillar-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 24px; text-align: left; transition: 0.18s;
}
.pillar-card:hover { border-color: var(--navy); box-shadow: 0 4px 20px rgba(30, 58, 95, 0.06); }
.pillar-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: var(--navy); }
.pillar-card p { font-size: 14px; color: var(--text2); line-height: 1.65; }
.pillar-mock {
  border-radius: 8px; border: 1px solid var(--border); overflow: hidden;
  margin-bottom: 16px; background: var(--surface2);
}
.pillar-mock-bar { height: 24px; background: var(--border); opacity: 0.5; }
.pillar-mock-body { padding: 16px; }

/* Personas */
.personas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.persona-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r);
  padding: 28px 24px; text-align: left;
}
.persona-icon { font-size: 28px; margin-bottom: 12px; }
.persona-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: var(--navy); }
.persona-card p { font-size: 14px; color: var(--text2); line-height: 1.65; }

/* Pricing extras */
.guarantee-note {
  text-align: center; max-width: 640px; margin: 28px auto 0;
  font-size: 13px; color: var(--text3); line-height: 1.6;
}
.price-tag { color: var(--text3); font-size: 13px; margin: 8px 0 16px; }
.pricing-compare-link { text-align: center; margin-top: 24px; }
.section-cta { text-align: center; padding-bottom: 80px; }
.cta-contact { margin-top: 20px; font-size: 14px; color: var(--text3); }
.cta-contact a { text-decoration: underline; }
.testimonial-metric {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--green);
  background: rgba(21, 128, 61, 0.08); border: 1px solid rgba(21, 128, 61, 0.2);
  padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; font-style: normal;
}

/* Problem vs Solution */
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.compare-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px;
}
.compare-old { border-color: rgba(220, 38, 38, 0.15); background: rgba(220, 38, 38, 0.02); }
.compare-new { border-color: rgba(21, 128, 61, 0.2); background: rgba(21, 128, 61, 0.03); }
.compare-card h3 { font-size: 16px; margin-bottom: 16px; font-weight: 700; }
.compare-old h3 { color: var(--red); }
.compare-new h3 { color: var(--green); }
.compare-card ul { list-style: none; }
.compare-card li {
  font-size: 14px; color: var(--text2); line-height: 1.6; padding: 8px 0 8px 24px;
  position: relative; border-bottom: 1px solid var(--border);
}
.compare-card li:last-child { border-bottom: none; }
.compare-old li::before { content: '✕'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.compare-new li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Pillars with UI frames */
.pillar-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  margin-bottom: 56px;
}
.pillar-block:last-child { margin-bottom: 0; }
.pillar-reverse .pillar-copy { order: 2; }
.pillar-reverse .ui-frame { order: 1; }
.pillar-num { font-size: 14px; font-weight: 800; color: var(--gold); margin-bottom: 8px; }
.pillar-copy h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.pillar-copy p { font-size: 15px; color: var(--text2); line-height: 1.7; margin-bottom: 12px; }
.pillar-roi { font-size: 14px; font-weight: 600; color: var(--navy); }
.ui-frame {
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  box-shadow: 0 16px 48px rgba(30, 58, 95, 0.08); overflow: hidden;
}
.ui-frame-bar {
  height: 32px; background: var(--surface2); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px; padding: 0 12px;
}
.ui-frame-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--border2); }
.ui-frame-body { padding: 20px; min-height: 180px; }
.ui-frame-sidebar { width: 40%; height: 140px; background: var(--surface2); border-radius: 8px; }
.ui-frame-main { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ui-frame-chip {
  font-size: 11px; font-weight: 600; padding: 6px 12px; border-radius: 6px;
  background: var(--surface2); color: var(--text3); border: 1px solid var(--border);
}
.ui-frame-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.ui-frame-table .ui-frame-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 8px;
}
.ui-frame-table .ui-frame-row span {
  height: 10px; background: var(--border); border-radius: 4px;
}
.ui-frame-doc-header { height: 24px; width: 50%; background: var(--navy); border-radius: 4px; margin-bottom: 16px; opacity: 0.3; }
.ui-frame-doc-line { height: 8px; background: var(--border); border-radius: 4px; margin-bottom: 8px; }
.ui-frame-doc-line.short { width: 60%; }
.ui-frame-doc-table { height: 60px; background: var(--surface2); border-radius: 6px; margin-top: 12px; }
.ui-frame-shield { text-align: center; padding-top: 32px; }
.ui-shield-icon { font-size: 32px; margin-bottom: 16px; }
.ui-frame-line { height: 8px; background: var(--border); border-radius: 4px; margin: 0 auto 8px; max-width: 200px; }
.ui-frame-line.short { width: 120px; }

/* Personas */
.personas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.persona-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 24px; text-align: center;
}
.persona-icon { font-size: 28px; margin-bottom: 12px; }
.persona-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.persona-card p { font-size: 14px; color: var(--text2); line-height: 1.65; }

/* Guarantee */
.guarantee-line {
  text-align: center; font-size: 14px; font-weight: 600; color: var(--navy);
  margin-top: 32px; max-width: 560px; margin-left: auto; margin-right: auto;
}
.guarantee-note {
  text-align: center; font-size: 12px; color: var(--text3); margin-top: 8px;
}
.price-tag { color: var(--text3); font-size: 13px; margin: 8px 0 16px; }
.section-cta-final { text-align: center; padding-bottom: 80px; }
.cta-app-link { margin-top: 16px; font-size: 13px; color: var(--text3); }

/* Sections */
.section { max-width: 1100px; margin: 0 auto; padding: 60px 24px; }
.section-alt { background: var(--surface); max-width: none; padding-left: 0; padding-right: 0; }
.section-alt .section-inner { max-width: 1100px; margin: 0 auto; padding: 60px 24px; }
.section-title { font-size: 28px; text-align: center; margin-bottom: 12px; font-weight: 700; color: var(--text); }
.section-sub { text-align: center; color: var(--text2); margin-bottom: 40px; font-size: 15px; }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 24px; transition: 0.18s;
}
.feature-card:hover { border-color: var(--navy); box-shadow: 0 4px 16px rgba(30, 58, 95, 0.06); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 8px; background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature-icon .icon { color: var(--navy); }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; font-weight: 600; }
.feature-card p { font-size: 13px; color: var(--text2); line-height: 1.6; }

.doc-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }
.doc-pill {
  background: var(--surface); border: 1px solid var(--border); padding: 6px 14px;
  border-radius: 20px; font-size: 12px; color: var(--text2); font-weight: 500;
}

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start;
}
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 28px; position: relative;
}
.price-card.featured { border-color: var(--navy); box-shadow: 0 0 0 1px rgba(30, 58, 95, 0.1); }
.price-card .popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 4px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
}
.price-card h3 { font-size: 18px; margin-bottom: 8px; font-weight: 600; }
.price-amount { font-size: 42px; font-weight: 700; color: var(--navy); line-height: 1; }
.price-amount span { font-size: 16px; color: var(--text3); font-weight: 400; }
.price-billed { font-size: 13px; color: var(--text3); margin-top: 6px; }
.billing-toggle-wrap { display: flex; justify-content: center; margin: 0 0 32px; }
.billing-toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px; position: relative;
}
.billing-toggle-btn {
  border: none; background: transparent; padding: 8px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text2); cursor: pointer; font-family: var(--ff);
}
.billing-toggle-btn.is-active { background: var(--navy); color: #fff; }
.billing-discount-badge {
  position: absolute; top: -10px; right: -8px; background: var(--green); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
}
.promo-code-form { display: flex; gap: 10px; flex-wrap: wrap; }
.promo-code-input {
  flex: 1 1 180px; min-width: 0; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-family: var(--ff); font-size: 14px; text-transform: uppercase;
}
.promo-message { margin-top: 12px; font-size: 13px; padding: 10px 12px; border-radius: 8px; }
.promo-message--success { background: rgba(22, 163, 74, 0.08); color: var(--green); border: 1px solid rgba(22, 163, 74, 0.2); }
.promo-message--error { background: rgba(220, 38, 38, 0.06); color: var(--red); border: 1px solid rgba(220, 38, 38, 0.2); }
.promo-message--info { background: rgba(30, 58, 95, 0.06); color: var(--navy); border: 1px solid rgba(30, 58, 95, 0.12); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.price-features { list-style: none; margin: 24px 0; }
.price-features li { padding: 8px 0; font-size: 13px; color: var(--text2); border-bottom: 1px solid var(--border); }
.price-features li::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--green); border-radius: 50%; margin-right: 10px; vertical-align: middle; }

/* Auth */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 36px; width: 100%; max-width: 420px; box-shadow: 0 8px 32px rgba(30, 58, 95, 0.06);
}
.auth-card h2 { font-size: 24px; margin-bottom: 6px; font-weight: 700; }
.auth-card .auth-sub { color: var(--text3); font-size: 13px; margin-bottom: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12px; color: var(--text2); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; color: var(--text); font-family: var(--ff); font-size: 14px; transition: 0.12s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: var(--surface2); border-radius: 8px; padding: 4px; }
.auth-tab {
  flex: 1; padding: 8px; text-align: center; border-radius: 6px; font-size: 13px;
  font-weight: 600; cursor: pointer; color: var(--text3); border: none; background: none; font-family: var(--ff);
}
.auth-tab.active { background: var(--surface); color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text3); }
.auth-divider { text-align: center; margin: 20px 0; font-size: 12px; color: var(--text3); position: relative; }
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.demo-buttons { display: flex; flex-direction: column; gap: 8px; }

/* Billing */
.billing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.billing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; }
.billing-card h3 { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; font-weight: 600; }
.status-badge { display: inline-flex; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.status-trial { background: var(--gold-dim); color: var(--navy); }
.status-active { background: rgba(21, 128, 61, 0.1); color: var(--green); }
.status-expired { background: rgba(220, 38, 38, 0.1); color: var(--red); }
.status-none { background: rgba(100, 116, 139, 0.12); color: var(--text3); }
.status-demo { background: rgba(30, 58, 95, 0.12); color: var(--navy); }

.checkout-success {
  min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 40px 24px;
  text-align: center; color: var(--text3); font-size: 13px; margin-top: 60px;
  background: var(--surface);
}
.site-footer a { color: var(--text2); margin: 0 12px; }

/* Legal pages */
.legal-page { padding: 48px 24px 80px; background: var(--bg); }
.legal-inner { max-width: 760px; margin: 0 auto; text-align: left; }
.legal-inner h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.legal-meta { font-size: 13px; color: var(--text3); margin-bottom: 32px; }
.legal-inner section { margin-bottom: 28px; }
.legal-inner h2 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--navy); }
.legal-inner p, .legal-inner li { font-size: 14px; line-height: 1.7; color: var(--text2); margin-bottom: 10px; }
.legal-inner ul { padding-left: 20px; margin-bottom: 12px; }
.legal-inner a { color: var(--navy); text-decoration: underline; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 12px 0; }
.legal-table th, .legal-table td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--surface); font-weight: 600; color: var(--navy); }

/* Utilities */
.alert-error {
  background: rgba(220, 38, 38, 0.08); border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--red); padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px;
}
.hidden { display: none !important; }

.env-badge {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 9999;
  background: #fef3c7; color: #92400e; border: 1px solid #fcd34d;
  padding: 6px 16px; border-radius: 20px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.3px; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Toasts & loading */
.toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; max-width: 360px;
}
.toast {
  padding: 12px 16px; border-radius: 8px; font-size: 13px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); animation: tdFadeIn 0.25s ease;
}
.toast-success { background: rgba(21, 128, 61, 0.1); border: 1px solid rgba(21, 128, 61, 0.3); color: var(--green); }
.toast-error { background: rgba(220, 38, 38, 0.1); border: 1px solid rgba(220, 38, 38, 0.3); color: var(--red); }
.toast-info { background: rgba(30, 58, 95, 0.08); border: 1px solid rgba(30, 58, 95, 0.2); color: var(--navy); }
.toast-warning { background: rgba(184, 149, 74, 0.12); border: 1px solid rgba(184, 149, 74, 0.3); color: #92400e; }
.loading-overlay {
  position: fixed; inset: 0; background: rgba(250, 250, 249, 0.85); z-index: 9998;
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 16px;
  backdrop-filter: blur(4px);
}
.loading-overlay.visible { display: flex; }
.spinner {
  width: 40px; height: 40px; border: 3px solid rgba(30, 58, 95, 0.15);
  border-top-color: var(--navy); border-radius: 50%; animation: tdSpin 0.8s linear infinite;
}
@keyframes tdSpin { to { transform: rotate(360deg); } }
@keyframes tdFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@keyframes tdFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Use case & process */
.use-case-flow {
  display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.use-case-step {
  flex: 1; min-width: 220px; max-width: 320px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 24px; text-align: left;
}
.use-case-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 12px;
}
.use-case-step h3 { font-size: 15px; margin-bottom: 8px; font-weight: 600; }
.use-case-step p { font-size: 13px; color: var(--text2); line-height: 1.6; }
.use-case-arrow { display: flex; align-items: center; color: var(--text3); font-size: 20px; font-weight: 300; }

.process-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.process-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 28px; text-align: left;
}
.process-num { font-size: 32px; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 12px; }
.process-card h3 { font-size: 16px; margin-bottom: 8px; font-weight: 600; }
.process-card p { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px; font-weight: 600; font-size: 14px; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 18px; color: var(--text3); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 20px 16px; font-size: 13px; color: var(--text2); line-height: 1.7;
  border-top: 1px solid var(--border); padding-top: 12px; margin: 0 20px 16px;
}

/* Language selector */
.lang-selector { position: relative; display: inline-flex; margin-left: 8px; }
.lang-selector-auth { position: absolute; top: 0; right: 0; margin: 0; }
.auth-card { position: relative; }
.lang-selector-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text2); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: var(--ff); transition: 0.15s;
}
.lang-selector-btn:hover { border-color: var(--navy); color: var(--text); }
.lang-selector-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 72px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.12); padding: 4px; z-index: 200;
}
.lang-selector-option {
  display: block; width: 100%; text-align: left; padding: 8px 12px;
  border: none; background: transparent; color: var(--text2); font-size: 13px;
  font-weight: 500; border-radius: 6px; cursor: pointer; font-family: var(--ff);
}
.lang-selector-option:hover { background: var(--surface2); color: var(--text); }
.lang-selector-option.active { background: var(--gold-dim); color: var(--navy); font-weight: 600; }
.site-footer .lang-selector { margin-left: 16px; vertical-align: middle; }
.legal-fr-note {
  background: rgba(30, 58, 95, 0.06); border: 1px solid rgba(30, 58, 95, 0.15);
  border-radius: 8px; padding: 12px 16px; margin-bottom: 24px; font-size: 13px; color: var(--navy);
}

/* 30-day guarantee badge */
.guarantee-badge {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px;
  margin: 16px auto 28px; padding: 10px 18px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(184, 149, 74, 0.18), rgba(30, 58, 95, 0.08));
  border: 1px solid rgba(184, 149, 74, 0.45); color: var(--navy);
  font-size: 13px; font-weight: 600; max-width: 560px; line-height: 1.5;
  box-shadow: 0 4px 16px rgba(30, 58, 95, 0.06);
}
.guarantee-badge::before { content: '✓'; display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; align-items: center; justify-content: center; margin-right: 6px; flex-shrink: 0; }
.guarantee-badge a { color: var(--navy); text-decoration: underline; font-weight: 600; }
.guarantee-badge--section { margin-top: 0; margin-bottom: 28px; }

/* App UI mockups (marketing) */
.app-preview {
  max-width: 920px; margin: 48px auto 0; border-radius: 14px;
  border: 1px solid var(--border2); background: #0f1729;
  box-shadow: 0 32px 80px rgba(15, 23, 41, 0.22), 0 0 0 1px rgba(255,255,255,0.04) inset;
  overflow: hidden; text-align: left;
}
.app-preview-chrome {
  height: 36px; background: #1a2540; border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 6px; padding: 0 14px;
}
.app-preview-chrome.mini { height: 28px; padding: 0 10px; }
.app-preview-dot { width: 9px; height: 9px; border-radius: 50%; }
.app-preview-dot.red { background: #ff5f57; }
.app-preview-dot.yellow { background: #febc2e; }
.app-preview-dot.green { background: #28c840; }
.app-preview-url { margin-left: 10px; font-size: 11px; color: rgba(255,255,255,0.45); font-family: var(--ff-mono, ui-monospace, monospace); }
.app-preview-body { display: grid; grid-template-columns: 200px 1fr; min-height: 340px; }
.app-preview-nav {
  background: #1e3a5f; padding: 16px 12px; border-right: 1px solid rgba(255,255,255,0.06);
}
.app-preview-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 0 6px; color: #fff; font-size: 13px; font-weight: 700; }
.app-preview-logo-mark { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,0.15); border: 1px solid rgba(201,168,76,0.4); }
.app-preview-nav-item {
  padding: 8px 10px; border-radius: 8px; font-size: 12px; color: rgba(255,255,255,0.55); margin-bottom: 4px;
}
.app-preview-nav-item.active { background: rgba(255,255,255,0.12); color: #fff; font-weight: 600; }
.app-preview-nav-item.muted { opacity: 0.5; margin-top: 8px; }
.app-preview-main { background: #f8f9fb; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.app-preview-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.app-preview-h { font-size: 14px; font-weight: 700; color: var(--text); }
.app-preview-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }
.app-preview-status { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; padding: 4px 10px; border-radius: 20px; background: var(--gold-dim); color: var(--navy); border: 1px solid rgba(184,149,74,0.3); white-space: nowrap; }
.app-preview-workflow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wf-step { font-size: 10px; font-weight: 600; padding: 5px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); color: var(--text3); }
.wf-step.done { background: rgba(21,128,61,0.08); border-color: rgba(21,128,61,0.25); color: var(--green); }
.wf-step.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.wf-arrow { font-size: 10px; color: var(--text3); }
.app-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.app-preview-doc {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px;
  box-shadow: 0 2px 8px rgba(30,58,95,0.04);
}
.app-preview-doc.highlight { border-color: var(--navy); box-shadow: 0 4px 16px rgba(30,58,95,0.1); }
.app-preview-doc.pending { opacity: 0.65; border-style: dashed; }
.app-preview-doc-id { font-size: 9px; font-weight: 700; color: var(--gold); letter-spacing: 0.3px; }
.app-preview-doc-title { font-size: 12px; font-weight: 600; color: var(--navy); margin: 4px 0; }
.app-preview-doc-meta { font-size: 10px; color: var(--text3); }
.app-preview-docframe {
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 14px;
  box-shadow: 0 8px 24px rgba(30,58,95,0.06);
}
.docframe-head { font-size: 11px; font-weight: 800; color: var(--navy); letter-spacing: 0.6px; margin-bottom: 10px; }
.docframe-meta { display: flex; gap: 8px; margin-bottom: 12px; }
.docframe-meta span { height: 6px; flex: 1; background: var(--border); border-radius: 3px; }
.docframe-table { background: var(--surface2); border-radius: 6px; padding: 8px; margin-bottom: 10px; }
.docframe-row { height: 8px; background: var(--border); border-radius: 3px; margin-bottom: 6px; }
.docframe-row.head { background: var(--navy); opacity: 0.25; height: 10px; }
.docframe-total { font-size: 11px; font-weight: 700; color: var(--navy); text-align: right; }

/* Pillar mini mockups */
.pillar-preview { margin-bottom: 0; border-radius: 10px; }
.pillar-preview .app-preview-chrome { background: #1a2540; }
.pillar-preview-body { padding: 14px; background: #f8f9fb; min-height: 120px; }
.pillar-wf { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pillar-wf span { font-size: 10px; font-weight: 600; padding: 4px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); color: var(--text3); }
.pillar-wf span.done { color: var(--green); border-color: rgba(21,128,61,0.3); background: rgba(21,128,61,0.06); }
.pillar-wf span.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pillar-doc-list { display: flex; gap: 8px; }
.pillar-doc { flex: 1; font-size: 10px; font-weight: 700; text-align: center; padding: 10px 6px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--text3); }
.pillar-doc.done { color: var(--green); }
.pillar-doc.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pillar-table-head, .pillar-table-row { display: grid; grid-template-columns: 1.2fr 1fr 0.6fr; gap: 6px; font-size: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.pillar-table-head { font-weight: 700; color: var(--navy); }
.pillar-table-row { color: var(--text2); }
.pillar-docframe { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.pillar-docframe-title { font-size: 10px; font-weight: 800; color: var(--navy); letter-spacing: 0.5px; }
.pillar-docframe-badge { display: inline-block; margin: 6px 0 10px; font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 4px; background: var(--gold-dim); color: var(--navy); }
.pillar-docframe-lines span { display: block; height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 6px; }
.pillar-docframe-lines span:nth-child(2) { width: 70%; }
.pillar-docframe-table { height: 36px; background: var(--surface2); border-radius: 6px; margin: 8px 0; }
.pillar-docframe-total { font-size: 9px; color: var(--text3); font-style: italic; }
.pillar-security { text-align: center; padding-top: 8px; }
.pillar-shield { font-size: 28px; margin-bottom: 8px; }
.pillar-security-line { font-size: 11px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.pillar-security-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pillar-security-tags span { font-size: 9px; font-weight: 600; padding: 4px 8px; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); color: var(--text2); }

@media (max-width: 768px) {
  .billing-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .hero-mock-body { grid-template-columns: 1fr; }
  .app-preview-body { grid-template-columns: 1fr; }
  .app-preview-nav { display: none; }
  .app-preview-grid { grid-template-columns: 1fr; }
  .app-preview-body { grid-template-columns: 1fr; }
  .app-preview-nav { flex-direction: row; flex-wrap: wrap; padding: 10px; gap: 4px; }
  .app-preview-logo { border-bottom: none; margin-bottom: 0; padding-bottom: 0; width: 100%; }
  .app-preview-nav-item { padding: 5px 8px; }
  .app-preview-grid { grid-template-columns: 1fr; }
  .process-grid, .testimonials-grid, .personas-grid, .compare-grid, .pillars-grid { grid-template-columns: 1fr; }
}
