/* ========== RESET & TOKENS ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg: #fafbfc;
  --bg-dark: #0c1220;
  --bg-card: #ffffff;
  --text: #0f1729;
  --text-secondary: #5a6578;
  --text-muted: #8b95a5;
  --accent: #0066ff;
  --accent-hover: #0052cc;
  --accent-glow: rgba(0, 102, 255, 0.12);
  --accent-subtle: #eef4ff;
  --cyan: #67e8f9;
  --cyan-dark: #06b6d4;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --border: #e4e8ee;
  --border-light: #f0f2f5;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px -2px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px -8px rgba(0,0,0,0.10);
  --shadow-glow: 0 0 0 1px var(--accent), 0 0 20px var(--accent-glow);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ========== LANDING PAGE ========== */
.landing { min-height: 100vh; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,251,252,0.85);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.05rem; color: var(--text);
  text-decoration: none;
}
.nav-logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-dark); color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.1rem;
}
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-link {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--text); }
.nav-cta {
  background: var(--bg-dark); color: white;
  padding: 0.5rem 1.25rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  transition: all var(--transition);
}
.nav-cta:hover { background: #1a2540; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Hero */
.hero {
  padding: 10rem 2rem 4rem;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.85rem; border-radius: 99px;
  background: var(--accent-subtle); color: var(--accent);
  font-size: 0.78rem; font-weight: 600; margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 3.4rem; line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bg-dark);
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--cyan-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.125rem; color: var(--text-secondary);
  line-height: 1.7; max-width: 480px; margin-bottom: 2rem;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: white;
  position: relative;
}
.upload-zone:hover, .upload-zone.active {
  border-color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.upload-zone.loading {
  pointer-events: none;
  border-color: var(--accent);
  background: var(--accent-subtle);
}
.upload-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--accent-subtle); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.upload-text { font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; }
.upload-subtext { color: var(--text-muted); font-size: 0.85rem; }
.upload-subtext a { color: var(--accent); text-decoration: underline; cursor: pointer; }
.upload-formats {
  display: flex; gap: 0.4rem; justify-content: center;
  margin-top: 0.75rem;
}
.upload-tag {
  background: var(--bg); padding: 0.2rem 0.55rem;
  border-radius: 4px; font-size: 0.7rem; font-weight: 600;
  color: var(--text-secondary); font-family: var(--font-mono);
}
.upload-error {
  margin-top: 0.75rem; padding: 0.75rem 1rem;
  background: #fef2f2; border: 1px solid #fecaca;
  border-radius: var(--radius); color: #b91c1c;
  font-size: 0.85rem; line-height: 1.5;
}
.trust-row {
  display: flex; gap: 1.5rem; margin-top: 1.5rem;
}
.trust-item {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--text-secondary);
}
.trust-check { color: var(--green); }

/* Hero preview card */
.hero-preview {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-preview:hover { transform: perspective(1200px) rotateY(-1deg) rotateX(0.5deg); }
.hero-preview-bar {
  height: 44px; background: var(--bg-dark);
  display: flex; align-items: center; padding: 0 1rem; gap: 0.5rem;
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; background: #2a3650; }
.preview-dot:first-child { background: #ef4444; }
.preview-dot:nth-child(2) { background: #f59e0b; }
.preview-dot:nth-child(3) { background: #10b981; }
.hero-preview-body { padding: 1.5rem; }
.hp-header {
  background: linear-gradient(135deg, #0c1220, #1a2b4a);
  border-radius: var(--radius); padding: 1.25rem;
  margin-bottom: 1.25rem; color: white;
}
.hp-title { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.3rem; }
.hp-meta { font-size: 0.7rem; opacity: 0.6; }
.hp-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.hp-stat {
  background: var(--bg); padding: 0.75rem;
  border-radius: var(--radius); text-align: center;
}
.hp-stat-val { font-size: 1.3rem; font-weight: 700; color: var(--accent); display: block; }
.hp-stat-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.hp-section {
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem; margin-bottom: 1rem;
}
.hp-section-title { font-weight: 600; font-size: 0.75rem; margin-bottom: 0.4rem; }
.hp-line {
  height: 6px; border-radius: 3px;
  background: var(--border-light); margin-bottom: 0.3rem;
}
.hp-code {
  background: #1e1e2e; border-radius: 6px;
  padding: 0.5rem 0.65rem; margin-top: 0.35rem;
}
.hp-code-line {
  height: 5px; border-radius: 2px;
  background: rgba(205, 214, 244, 0.15); margin-bottom: 0.2rem;
}

/* How It Works */
.how-section {
  padding: 6rem 2rem;
  max-width: 1000px; margin: 0 auto;
}
.section-tag {
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.72rem; font-weight: 700; color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: 2.4rem; color: var(--bg-dark);
  margin-bottom: 3rem;
}
.steps-track {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  position: relative;
}
.steps-track::before {
  content: '';
  position: absolute; top: 28px; left: 10%; right: 10%;
  height: 2px; background: var(--border);
}
.step-card { text-align: center; position: relative; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: white; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; color: var(--text);
  margin: 0 auto 1.25rem;
  position: relative; z-index: 1;
  transition: all 0.3s;
}
.step-card:hover .step-num {
  border-color: var(--accent); color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* Example PDFs */
.examples-section {
  padding: 5rem 2rem 6rem;
  background: var(--bg-dark); color: white;
}
.examples-inner { max-width: 1200px; margin: 0 auto; }
.examples-section .section-tag { color: var(--cyan); }
.examples-section .section-title { color: white; margin-bottom: 1rem; }
.examples-sub { color: rgba(255,255,255,0.55); margin-bottom: 3rem; font-size: 1rem; }
.examples-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.example-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem; transition: all 0.3s;
}
.example-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}
.example-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem; border-radius: 4px;
  font-size: 0.7rem; font-weight: 600;
  margin-bottom: 0.75rem;
}
.example-tag.sales { background: rgba(103,232,249,0.15); color: var(--cyan); }
.example-tag.finance { background: rgba(16,185,129,0.15); color: #34d399; }
.example-tag.hr { background: rgba(245,158,11,0.15); color: #fbbf24; }
.example-title { font-weight: 600; font-size: 1.05rem; margin-bottom: 0.4rem; }
.example-desc { font-size: 0.825rem; color: rgba(255,255,255,0.5); line-height: 1.5; margin-bottom: 1rem; }
.example-stats {
  display: flex; gap: 1.25rem;
  padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.06);
}
.example-stat-val { font-weight: 700; font-size: 0.95rem; display: block; color: white; }
.example-stat-label { font-size: 0.65rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.04em; }

/* Pricing */
.pricing-section {
  padding: 5rem 2rem 6rem;
  max-width: 800px; margin: 0 auto; text-align: center;
}
.pricing-card {
  background: white; border: 2px solid var(--border);
  border-radius: var(--radius-xl); padding: 3rem;
  position: relative; overflow: hidden;
}
.pricing-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: linear-gradient(90deg, var(--accent), var(--cyan-dark));
}
.pricing-amount {
  font-family: var(--font-display); font-size: 3.5rem;
  color: var(--bg-dark); margin: 1rem 0 0.25rem;
}
.pricing-per { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.pricing-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 2rem;
  text-align: left; margin-bottom: 2rem;
}
.pricing-feat {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.875rem; color: var(--text-secondary);
}
.pricing-feat svg { flex-shrink: 0; color: var(--green); margin-top: 2px; }
.pricing-free {
  padding: 0.75rem; background: var(--accent-subtle);
  border-radius: var(--radius); font-size: 0.85rem;
  color: var(--accent); font-weight: 500;
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center; color: var(--text-muted);
  font-size: 0.8rem; border-top: 1px solid var(--border-light);
}


/* ========== WIZARD (post-upload) ========== */
.wizard { min-height: 100vh; display: flex; flex-direction: column; }

/* Wizard nav */
.wiz-nav {
  background: white; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.wiz-nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 2rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.wiz-nav-left { display: flex; align-items: center; gap: 1.5rem; }
.wiz-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.95rem;
  cursor: pointer;
}
.wiz-brand .nav-logo { width: 28px; height: 28px; font-size: 0.9rem; border-radius: 7px; }
.wiz-file {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--bg); padding: 0.35rem 0.75rem;
  border-radius: 6px; font-size: 0.8rem; color: var(--text-secondary);
}
.wiz-file-icon { color: var(--accent); }
.wiz-change {
  color: var(--accent); font-size: 0.75rem;
  cursor: pointer; margin-left: 0.25rem;
  text-decoration: underline; text-underline-offset: 2px;
}

/* Stepper */
.stepper { display: flex; align-items: center; gap: 0; }
.step-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.step-item:hover { color: var(--text-secondary); }
.step-item.active {
  color: var(--accent); background: var(--accent-subtle);
  font-weight: 600;
}
.step-item.done { color: var(--green); }
.step-dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
  flex-shrink: 0;
}
.step-item.active .step-dot {
  background: var(--accent); color: white; border-color: var(--accent);
}
.step-item.done .step-dot {
  background: var(--green); color: white; border-color: var(--green);
}
.step-connector {
  width: 32px; height: 2px; background: var(--border);
  margin: 0 0.25rem;
}
.step-connector.done { background: var(--green); }

/* Wizard content */
.wiz-body {
  flex: 1; max-width: 1100px; margin: 0 auto;
  padding: 2rem; width: 100%;
}

/* Bottom actions bar */
.wiz-actions {
  position: sticky; bottom: 0;
  background: white; border-top: 1px solid var(--border);
  padding: 1rem 2rem;
}
.wiz-actions-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.25rem; border-radius: 8px;
  font-family: var(--font); font-size: 0.875rem; font-weight: 600;
  border: none; cursor: pointer; transition: all var(--transition);
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: white; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: #c8cfd8; background: var(--bg); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text); background: var(--bg); }
.btn-large { padding: 0.85rem 2rem; font-size: 0.95rem; border-radius: 10px; }
.btn-pay-cta {
  background: var(--bg-dark); color: white;
  padding: 1rem 2rem; border-radius: 12px;
  font-size: 1rem; font-weight: 700;
  border: none; cursor: pointer; width: 100%;
  transition: all 0.3s;
}
.btn-pay-cta:hover { background: #1a2540; transform: translateY(-1px); box-shadow: var(--shadow-lg); }


/* ========== STEP 1: OVERVIEW ========== */
.overview-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-bottom: 2rem;
}
.ov-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  text-align: center;
}
.ov-card-value {
  font-size: 2rem; font-weight: 700; color: var(--bg-dark);
  font-family: var(--font-display); display: block;
}
.ov-card-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.ov-score-section {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  display: flex; align-items: center; gap: 2rem;
  margin-bottom: 2rem;
}
.ov-ring-wrap { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.score-ring-bg { fill: none; stroke: var(--border-light); stroke-width: 8; }
.score-ring-fill { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.ov-ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.ov-ring-pct { font-size: 1.5rem; font-weight: 700; color: var(--bg-dark); line-height: 1; }
.ov-ring-label { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }
.ov-score-info { flex: 1; }
.ov-score-title { font-weight: 600; font-size: 1.05rem; margin-bottom: 0.3rem; }
.ov-score-desc { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1rem; }
.ov-progress-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.ov-progress-label { font-size: 0.8rem; color: var(--text-secondary); width: 80px; }
.ov-progress-track { flex: 1; height: 6px; background: var(--border-light); border-radius: 3px; overflow: hidden; }
.ov-progress-fill { height: 100%; border-radius: 3px; background: var(--accent); transition: width 0.6s ease; }
.ov-progress-count { font-size: 0.78rem; font-weight: 600; color: var(--text); min-width: 44px; text-align: right; }

.ov-issues {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.ov-issues-header {
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.9rem;
}
.ov-issues-badge {
  background: var(--amber); color: white;
  padding: 0.1rem 0.5rem; border-radius: 99px;
  font-size: 0.7rem; font-weight: 700;
}
.ov-issue {
  padding: 1rem 1.5rem;
  display: flex; align-items: flex-start; gap: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}
.ov-issue:last-child { border-bottom: none; }
.ov-issue-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.ov-issue-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.ov-issue-text strong { color: var(--text); }


/* ========== STEP 2: ENRICH ========== */
.enrich-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem;
}
.enrich-header h2 { font-size: 1.3rem; font-family: var(--font-display); }
.enrich-tools { display: flex; gap: 0.6rem; align-items: center; }
.enrich-search {
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.85rem; font-family: var(--font);
  width: 220px; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238b95a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cline x1='10.5' y1='10.5' x2='14' y2='14'/%3E%3C/svg%3E") 0.7rem center no-repeat;
  transition: border-color var(--transition);
}
.enrich-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.enrich-progress-strip {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.enrich-progress-strip .ov-progress-track { flex: 1; }
.enrich-progress-strip span { font-size: 0.82rem; color: var(--text-secondary); white-space: nowrap; }
.enrich-progress-strip strong { color: var(--text); }

.enrich-table-block {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 1rem;
  overflow: hidden;
}
.enrich-table-head {
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.enrich-table-head:hover { background: var(--bg); }
.enrich-table-name { font-weight: 600; font-size: 0.95rem; }
.enrich-table-meta { display: flex; align-items: center; gap: 1rem; }
.enrich-table-badge {
  background: var(--bg); padding: 0.2rem 0.6rem;
  border-radius: 4px; font-size: 0.72rem; font-weight: 600;
  color: var(--text-secondary);
}
.enrich-chevron { color: var(--text-muted); transition: transform 0.2s; font-size: 0.8rem; }

.enrich-table-body { padding: 0.5rem 1.25rem 1.25rem; }
.enrich-table-desc-row {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border-light);
}
.enrich-table-desc-row:last-child { border-bottom: none; }
.enrich-label {
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  min-width: 140px; padding-top: 0.5rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.enrich-label.is-table {
  color: var(--accent); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.enrich-input {
  flex: 1; padding: 0.5rem 0.75rem;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.85rem; font-family: var(--font);
  resize: vertical; min-height: 36px;
  transition: border-color var(--transition);
}
.enrich-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.enrich-input.has-value { border-color: var(--green); background: #f0fdf4; }

.enrich-auto-btn {
  padding: 0.35rem 0.65rem; border-radius: 6px;
  border: 1px solid var(--border); background: white;
  font-size: 0.72rem; font-weight: 600; cursor: pointer;
  color: var(--text-secondary); transition: all var(--transition);
  flex-shrink: 0; margin-top: 0.35rem;
}
.enrich-auto-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); }


/* ========== STEP 3: CONFIGURE ========== */
.configure-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  align-items: flex-start;
}
.config-panel {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.config-section {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.config-section:last-child { border-bottom: none; }
.config-section-title { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.75rem; }

.config-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.4rem 0;
}
.config-toggle-label { font-size: 0.85rem; color: var(--text-secondary); }
.toggle-switch {
  position: relative; width: 40px; height: 22px;
  background: var(--border); border-radius: 11px;
  cursor: pointer; transition: background 0.2s;
}
.toggle-switch.active { background: var(--accent); }
.toggle-knob {
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
.toggle-switch.active .toggle-knob { transform: translateX(18px); }

.config-colors { display: flex; gap: 0.5rem; }
.config-color-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid transparent; cursor: pointer;
  transition: all 0.2s;
}
.config-color-btn.active { border-color: var(--bg-dark); box-shadow: 0 0 0 2px white, 0 0 0 4px var(--bg-dark); }
.config-color-btn:hover { transform: scale(1.1); }

.config-fonts { display: flex; gap: 0.5rem; }
.config-font-btn {
  flex: 1; padding: 0.6rem; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; text-align: center;
  font-size: 0.8rem; font-weight: 500; background: white;
  transition: all 0.2s;
}
.config-font-btn.active { border-color: var(--accent); background: var(--accent-subtle); color: var(--accent); }
.config-font-btn:hover { border-color: var(--accent); }

.config-input-group { margin-bottom: 0.75rem; }
.config-input-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.3rem; display: block; }
.config-input {
  width: 100%; padding: 0.5rem 0.75rem;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.85rem; font-family: var(--font);
}
.config-input:focus { outline: none; border-color: var(--accent); }

/* Preview panel */
.preview-panel { position: sticky; top: 80px; }
.preview-panel-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
}
.preview-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); animation: pulse-dot 2s infinite;
}
.preview-body { padding: 1rem; background: var(--bg); min-height: 400px; }

/* Mini PDF preview */
.pdf-mini {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden;
  font-size: 0.65rem;
}
.pdf-mini-header {
  padding: 1rem; color: white;
  background: linear-gradient(135deg, #0c1220, #1a2b4a);
}
.pdf-mini-title { font-family: var(--font-display); font-size: 0.85rem; }
.pdf-mini-meta { opacity: 0.5; font-size: 0.55rem; margin-top: 0.2rem; }
.pdf-mini-body { padding: 0.75rem; }
.pdf-mini-stats { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; }
.pdf-mini-stat {
  flex: 1; background: var(--bg); padding: 0.4rem;
  border-radius: 4px; text-align: center;
}
.pdf-mini-stat strong { display: block; font-size: 0.85rem; color: var(--accent); }
.pdf-mini-stat span { font-size: 0.5rem; color: var(--text-muted); }
.pdf-mini-section {
  border-left: 2px solid var(--accent);
  padding-left: 0.5rem; margin-bottom: 0.5rem;
}
.pdf-mini-section-title { font-weight: 600; font-size: 0.6rem; margin-bottom: 0.2rem; }
.pdf-mini-line {
  height: 4px; background: var(--border-light);
  border-radius: 2px; margin-bottom: 0.15rem;
}
.pdf-mini-pages {
  text-align: center; padding: 0.5rem;
  font-size: 0.6rem; color: var(--text-muted);
  border-top: 1px solid var(--border-light);
}


/* ========== PAYMENT MODAL ========== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12,18,32,0.5);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  animation: fade-in 0.2s;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: white; border-radius: var(--radius-xl);
  width: 440px; max-width: 90vw;
  box-shadow: var(--shadow-lg);
  animation: slide-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
@keyframes slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-box-header {
  padding: 1.5rem 1.5rem 0; display: flex; justify-content: space-between; align-items: flex-start;
}
.modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.3rem; color: var(--text-muted); padding: 0.25rem;
  line-height: 1; transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }
.modal-box-body { padding: 1rem 1.5rem 2rem; text-align: center; }
.modal-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--accent-subtle); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0.5rem auto 1.25rem;
}
.modal-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.3rem; }
.modal-subtitle { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.5rem; }
.modal-price-tag {
  display: inline-flex; align-items: baseline; gap: 0.3rem;
  margin-bottom: 1.5rem;
}
.modal-price-tag .amount { font-family: var(--font-display); font-size: 2.5rem; }
.modal-price-tag .label { font-size: 0.9rem; color: var(--text-muted); }
.modal-features {
  text-align: left; margin: 0 auto 1.5rem;
  max-width: 280px;
}
.modal-feat {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-secondary);
  padding: 0.3rem 0;
}
.modal-feat svg { color: var(--green); flex-shrink: 0; }
.modal-note {
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ========== RESUME BANNER ========== */
.resume-banner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem; padding-top: 5.5rem;
}
.resume-banner-inner {
  background: var(--accent-subtle);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  animation: slide-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.resume-banner-text {
  font-size: 0.9rem; color: var(--text);
}
.resume-banner-text em {
  color: var(--accent); font-style: normal; font-weight: 600;
}
.resume-banner-actions {
  display: flex; gap: 0.5rem; flex-shrink: 0;
}

/* ========== REAL PDF PREVIEW ========== */
.pdf-real {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
  max-height: 600px;
  overflow-y: auto;
}
.pdf-real::-webkit-scrollbar { width: 5px; }
.pdf-real::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.pdf-real-cover {
  padding: 2rem 1.5rem 1.5rem;
  color: white;
  position: relative;
}
.pdf-real-cover-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}
.pdf-real-cover-sub {
  font-size: 0.65rem;
  opacity: 0.7;
}
.pdf-real-body {
  padding: 1rem 1.5rem 1.5rem;
  font-size: 0.7rem;
  color: var(--text);
  line-height: 1.6;
}
.pdf-real-stats {
  display: flex; gap: 0.5rem; margin-bottom: 1rem;
}
.pdf-real-stat {
  flex: 1; background: var(--bg); padding: 0.5rem;
  border-radius: 6px; text-align: center;
}
.pdf-real-stat strong {
  display: block; font-size: 1rem; line-height: 1;
}
.pdf-real-stat span {
  font-size: 0.55rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.pdf-real-section {
  margin-bottom: 0.85rem;
}
.pdf-real-section-title {
  font-weight: 700; font-size: 0.75rem; margin-bottom: 0.35rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid currentColor;
  display: inline-block;
}
.pdf-real-table-name {
  font-weight: 600; font-size: 0.68rem;
  padding: 0.3rem 0.5rem;
  color: white;
  border-radius: 3px;
  margin-bottom: 0.3rem;
  display: inline-block;
}
.pdf-real-desc {
  font-size: 0.62rem; color: var(--text-secondary);
  margin-bottom: 0.35rem; font-style: italic;
}
.pdf-real-cols {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.6rem;
  font-size: 0.58rem;
}
.pdf-real-cols th {
  background: var(--bg);
  text-align: left;
  padding: 0.2rem 0.4rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.5rem;
  letter-spacing: 0.03em;
}
.pdf-real-cols td {
  padding: 0.2rem 0.4rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.pdf-real-measure {
  margin-bottom: 0.5rem;
}
.pdf-real-measure-name {
  font-weight: 600; font-size: 0.65rem; color: var(--text);
}
.pdf-real-measure-desc {
  font-size: 0.58rem; color: var(--text-secondary); margin: 0.1rem 0;
}
.pdf-real-dax {
  background: #1e1e2e;
  color: #cdd6f4;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.5;
  margin-top: 0.15rem;
}
.pdf-real-rel {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.6rem; padding: 0.2rem 0;
  border-bottom: 1px solid var(--border-light);
}
.pdf-real-rel-arrow {
  font-weight: 700; font-size: 0.7rem;
}
.pdf-real-page-break {
  border-top: 1px dashed var(--border);
  margin: 0.75rem 0;
  position: relative;
}
.pdf-real-page-break::after {
  content: 'page break';
  position: absolute; top: -0.4rem; left: 50%;
  transform: translateX(-50%);
  background: white; padding: 0 0.4rem;
  font-size: 0.45rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.pdf-real-footer {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.5rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 7rem; }
  .hero-preview { display: none; }
  .steps-track { grid-template-columns: 1fr; }
  .steps-track::before { display: none; }
  .examples-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .configure-grid { grid-template-columns: 1fr; }
  .pricing-features { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .nav-links { gap: 0.75rem; }
  .nav-link { display: none; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .stepper .step-label { display: none; }
}