/* ================================================================
   DocSanitize — demo page styles
   ----------------------------------------------------------------
   Design goals:
     - Professional, trustworthy, recruiter-credible
     - Clean editorial aesthetic, not "developer demo"
     - Dramatic contrast on the central two-panel demo
     - Mobile-friendly, responsive
   ================================================================ */

/* ---------- 1. Reset + tokens --------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Neutrals */
  --c-bg: #fbfaf8;
  --c-surface: #ffffff;
  --c-surface-2: #f3f1ed;
  --c-border: #e7e3dc;
  --c-border-strong: #d2cdc4;
  --c-ink: #0e1a2b;
  --c-ink-2: #2c3a4f;
  --c-muted: #6b7280;
  --c-muted-2: #98a0ac;

  /* Brand */
  --c-brand: #0b3d91;
  --c-brand-2: #1758c7;
  --c-brand-soft: #e6edf9;

  /* Accents — danger / clean */
  --c-danger: #b42318;
  --c-danger-2: #d92d20;
  --c-danger-soft: #fef3f2;
  --c-danger-border: #fecaca;
  --c-clean: #0f7a5b;
  --c-clean-soft: #ecfdf5;

  /* Highlight for revealed injections in AI panel */
  --c-injection-bg: #fff4c2;
  --c-injection-border: #f4c945;

  /* Type */
  --ff-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --ff-display: "Instrument Serif", "Times New Roman", Times, Georgia, serif;
  --ff-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii + shadow */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(14, 26, 43, 0.06),
    0 1px 1px rgba(14, 26, 43, 0.04);
  --shadow-md: 0 4px 14px rgba(14, 26, 43, 0.08);
  --shadow-lg: 0 18px 40px -12px rgba(14, 26, 43, 0.18);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 2. Buttons ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #1a2841;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-border-strong);
}
.btn-ghost:hover {
  background: var(--c-surface);
  border-color: var(--c-ink);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* ---------- 3. Header / lang toggle --------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 250, 248, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--c-ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand-mark.small {
  width: 24px;
  height: 24px;
  font-size: 10px;
  border-radius: 6px;
}

.brand-name {
  font-size: 17px;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--c-border-strong);
  border-radius: 999px;
  padding: 3px;
  background: var(--c-surface);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn:hover {
  color: var(--c-ink);
}

.lang-btn.active {
  background: var(--c-ink);
  color: #fff;
}

/* ---------- 4. Sections (shared) ------------------------------ */
section {
  padding: 96px 0;
}

@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--c-ink);
  font-weight: 400;
  max-width: 820px;
}

.section-lead {
  font-size: 18px;
  color: var(--c-ink-2);
  margin: 0 0 56px;
  max-width: 680px;
  line-height: 1.6;
}

/* ---------- 5. Hero ------------------------------------------ */
.hero {
  padding: 96px 0 96px;
  background:
    radial-gradient(
      1200px 600px at 80% -10%,
      rgba(23, 88, 199, 0.08),
      transparent 60%
    ),
    radial-gradient(
      1000px 500px at 0% 100%,
      rgba(180, 35, 24, 0.05),
      transparent 60%
    ),
    var(--c-bg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  background: var(--c-brand-soft);
  color: var(--c-brand);
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(46px, 8vw, 88px);
  line-height: 1;
  letter-spacing: -0.022em;
  font-weight: 400;
  margin: 0 0 24px;
  max-width: 960px;
}

.hero-title-accent {
  color: var(--c-brand);
  font-style: italic;
  display: inline-block;
  /* slight optical bump — italic serif reads a touch smaller than upright */
  letter-spacing: -0.018em;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--c-ink-2);
  max-width: 640px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 6. Problem --------------------------------------- */
.problem {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 880px) {
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.problem-copy p {
  font-size: 17px;
  color: var(--c-ink-2);
  line-height: 1.65;
  margin: 0 0 18px;
}

.problem-copy p:last-child {
  margin-bottom: 0;
}

.problem-example {
  background: var(--c-danger-soft);
  border: 1px solid var(--c-danger-border);
  border-left: 4px solid var(--c-danger-2);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  position: relative;
}

.problem-example-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-danger);
  margin-bottom: 12px;
}

.problem-example-text {
  font-family: var(--ff-mono);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink);
  font-style: italic;
}

.injection-quote-mark {
  font-family: var(--ff-sans);
  font-style: normal;
  color: var(--c-danger);
  font-weight: 700;
  font-size: 22px;
  line-height: 0;
  position: relative;
  top: 4px;
  margin: 0 2px;
}

.problem-example-footnote {
  margin-top: 14px;
  font-size: 13px;
  color: var(--c-muted);
}

/* ---------- 7. Demo (two-panel contrast) --------------------- */
.demo {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-surface-2) 100%);
}

.demo-note {
  margin: -40px 0 48px;
  max-width: 680px;
  font-size: 13.5px;
  line-height: 1.5;
  font-style: italic;
  color: var(--c-muted);
}

/* ---------- 6b. Live upload (real backend) ------------------- */
.btn-sm {
  padding: 9px 16px;
  font-size: 13.5px;
}

.live {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: 22px;
  margin-bottom: 28px;
}

.live-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.live-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

.live-subtitle {
  font-size: 13.5px;
  color: var(--c-muted);
  margin-top: 2px;
}

.live-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 34px 20px;
  border: 1.5px dashed var(--c-border-strong);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease,
    transform 0.12s ease;
}

.live-drop:hover,
.live-drop:focus-visible,
.live-drop.dragover {
  border-color: var(--c-brand-2);
  background: var(--c-brand-soft);
  outline: none;
}

.live-drop.dragover {
  transform: translateY(-1px);
}

.live-drop-icon {
  color: var(--c-brand);
  margin-bottom: 4px;
}

.live-drop-main {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
}

.live-drop-sub {
  font-size: 13px;
  color: var(--c-muted);
}

.live-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-status.is-loading {
  background: var(--c-brand-soft);
  color: var(--c-brand);
}

.live-status.is-error {
  background: var(--c-danger-soft);
  color: var(--c-danger);
  border: 1px solid var(--c-danger-border);
}

.live-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: live-spin 0.7s linear infinite;
  flex: none;
}

@keyframes live-spin {
  to {
    transform: rotate(360deg);
  }
}

.live-result {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--c-clean-soft);
  border: 1px solid #bfe6d6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.live-result-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.live-result-file {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
  word-break: break-all;
}

.live-result-stat {
  font-size: 13px;
  color: var(--c-ink-2);
}

.live-result-actions {
  display: flex;
  gap: 10px;
  flex: none;
}

.cv-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.cv-tab {
  border: 1px solid var(--c-border-strong);
  background: var(--c-surface);
  color: var(--c-ink-2);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.cv-tab:hover {
  border-color: var(--c-ink);
  color: var(--c-ink);
}

.cv-tab.active {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.panel {
  background: var(--c-surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}

.panel-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}

.panel-eye {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.panel-eye-human {
  background: var(--c-clean-soft);
  color: var(--c-clean);
}

.panel-eye-ai {
  background: var(--c-danger-soft);
  color: var(--c-danger);
}

.panel-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.005em;
}

.panel-subtitle {
  font-size: 13px;
  color: var(--c-muted);
}

.panel-warning {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-danger);
  background: var(--c-danger-soft);
  border: 1px solid var(--c-danger-border);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.panel-warning-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-danger-2);
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.15);
  animation: dot-pulse 1.4s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(217, 45, 32, 0.18);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(217, 45, 32, 0);
  }
}

.panel-warning.hidden {
  display: none;
}

.panel-body {
  flex: 1;
  padding: 28px 28px 32px;
  overflow-y: auto;
}

/* ---- CV document styles (inside panel body) ------------------ */
.cv-doc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--c-ink);
}

.cv-head {
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.cv-head h3 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.cv-role {
  font-size: 14px;
  color: var(--c-brand);
  font-weight: 600;
  margin-bottom: 6px;
}

.cv-contact {
  font-size: 13px;
  color: var(--c-muted);
}

.cv-section {
  margin-bottom: 18px;
}

.cv-section h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0 0 10px;
}

.cv-section p {
  margin: 0 0 8px;
}

.cv-job {
  margin-bottom: 14px;
}

.cv-job-head {
  font-size: 14px;
  margin-bottom: 6px;
}

.cv-section ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.cv-section li {
  margin-bottom: 4px;
}

/* ---- Injection block (only rendered in AI panel) ------------- */
.injection {
  border: 1.5px dashed var(--c-injection-border);
  background: var(--c-injection-bg);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin: 18px 0;
  position: relative;
  box-shadow: 0 0 0 4px rgba(244, 201, 69, 0.12);
}

.injection-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-danger);
  background: #fff;
  border: 1px solid var(--c-danger-border);
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.injection-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-danger-2);
}

.injection-position {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: 10px;
}

.injection-text {
  font-family: var(--ff-mono);
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-ink);
  font-style: italic;
  border-left: 3px solid var(--c-danger-2);
  padding-left: 12px;
}

/* ---------- 7b. Credibility (press + industry) --------------- */
.credibility {
  background:
    radial-gradient(
      900px 400px at 100% 0%,
      rgba(23, 88, 199, 0.05),
      transparent 60%
    ),
    var(--c-bg);
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

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

/* ---- Card (generic) ----- */
.cred-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.cred-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border-strong);
}

.cred-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cred-source {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-brand);
}

.cred-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-muted);
  background: var(--c-surface-2);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---- Stat block (the big number) ----- */
.cred-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0 4px;
  border-top: 1px dashed var(--c-border);
  border-bottom: 1px dashed var(--c-border);
}

.cred-stat-num {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  line-height: 1;
}

.cred-stat-text .cred-stat-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 32px);
  letter-spacing: -0.005em;
  color: var(--c-brand);
}

.cred-stat-label {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.4;
}

.cred-fact {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-ink-2);
}

.cred-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-brand);
  align-self: flex-start;
}

.cred-link:hover {
  color: var(--c-brand-2);
}

.cred-arrow {
  transition: transform 0.15s ease;
  display: inline-block;
}

.cred-link:hover .cred-arrow {
  transform: translate(2px, -2px);
}

/* ---- OWASP : full-width consensus strip ----- */
.cred-card-owasp {
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 28px 32px;
  background: linear-gradient(
    180deg,
    var(--c-surface) 0%,
    var(--c-surface-2) 100%
  );
  border-color: var(--c-border-strong);
  margin-bottom: 20px;
}

.cred-shield {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--c-ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cred-owasp-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cred-owasp-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  flex-shrink: 0;
  padding-left: 28px;
  border-left: 1px solid var(--c-border);
}

.cred-stat-num-lg {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--c-ink);
}

.cred-owasp-stat .cred-stat-label {
  max-width: 200px;
}

.cred-owasp-stat .cred-link {
  margin-top: 8px;
}

@media (max-width: 760px) {
  .cred-card-owasp {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .cred-owasp-stat {
    padding-left: 0;
    padding-top: 16px;
    border-left: none;
    border-top: 1px solid var(--c-border);
    align-items: flex-start;
    text-align: left;
  }
  .cred-owasp-stat .cred-stat-label {
    max-width: none;
  }
}

/* ---- Balance note (the honest framing) ----- */
.cred-balance {
  margin-top: 12px;
  padding: 22px 26px;
  background: var(--c-brand-soft);
  border: 1px solid rgba(23, 88, 199, 0.18);
  border-left: 4px solid var(--c-brand);
  border-radius: var(--r-md);
}

.cred-balance-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cred-balance-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-brand);
}

.cred-balance-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-brand);
}

.cred-balance-body {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--c-ink-2);
}

/* ---------- 8. Solution -------------------------------------- */
.solution {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

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

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

.step {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--c-ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
}

.step-title {
  font-size: 19px;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
  font-weight: 700;
}

.step-body {
  margin: 0;
  color: var(--c-ink-2);
  line-height: 1.6;
}

/* ---------- 9. CTA ------------------------------------------ */
.cta {
  background:
    radial-gradient(
      900px 400px at 50% 100%,
      rgba(23, 88, 199, 0.18),
      transparent 65%
    ),
    var(--c-ink);
  color: #fff;
  text-align: center;
}

.cta-title {
  font-family: var(--ff-display);
  font-size: clamp(34px, 4.5vw, 52px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 14px;
  font-weight: 400;
}

.cta-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.74);
  margin: 0 auto 32px;
  max-width: 540px;
  line-height: 1.55;
}

.cta .btn-primary {
  background: #fff;
  color: var(--c-ink);
}

.cta .btn-primary:hover {
  background: #e6edf9;
  color: var(--c-ink);
}

.cta-foot {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 10. Footer -------------------------------------- */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--c-ink-2);
  font-size: 14px;
}

.footer-copy {
  font-size: 13px;
  color: var(--c-muted);
}

/* ---------- 11. Utility ------------------------------------- */
.fade-in {
  animation: fade-in 0.35s ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================== */
/* 12. Mobile polish (phones ≤ 640px, tiny ≤ 380px)               */
/* -------------------------------------------------------------- */
/* The layout already collapses to single-column via the          */
/* breakpoints above; this pass tunes spacing + tap targets so it */
/* reads well on a phone when showing the demo live.              */
/* ============================================================== */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  section { padding: 56px 0; }

  /* Hero */
  .hero { padding: 60px 0 52px; }
  .hero-title { font-size: clamp(34px, 11vw, 56px); }
  .hero-subtitle { margin-bottom: 26px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; }      /* full-width, easy to tap */

  /* Demo panels — don't force tall empty boxes on a phone */
  .panel { min-height: 0; }
  .panel-body { padding: 20px 20px 24px; }
  .cv-doc,
  .injection-text,
  .injection-position { overflow-wrap: anywhere; } /* no horizontal scroll */

  /* Live upload */
  .live { padding: 18px; }
  .live-head { gap: 10px; }
  .live-drop { padding: 26px 14px; }
  .live-result-actions { width: 100%; }
  .live-result-actions .btn { flex: 1 1 0; }

  /* CTA */
  .cta .btn-lg { width: 100%; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .brand-name { font-size: 15px; }
  .lang-btn { padding: 6px 10px; }
}
