/* ============================================================
   Recruiter 6-Second Screen Simulator
   Palette: red-orange accent for the "screen pressure" feel,
   green for PASS, red for REJECT.
   ============================================================ */

:root {
  /* Page chrome matches the ATS Checker (blue). Heatmap + reject pill stay warm/red,
     since red is semantically tied to "heat" and "rejection" in the visualization. */
  --rs-accent: #2563eb;
  --rs-accent-700: #1d4ed8;
  --rs-accent-50: #eff6ff;
  --rs-accent-100: #dbeafe;
  --rs-accent-200: #bfdbfe;

  --rs-amber: #ea580c;
  --rs-amber-50: #fff7ed;

  --rs-pass: #059669;
  --rs-pass-bg: #ecfdf5;
  --rs-pass-bd: #a7f3d0;

  --rs-reject: #dc2626;
  --rs-reject-bg: #fef2f2;
  --rs-reject-bd: #fecaca;

  --rs-ink: #0f172a;
  --rs-ink-soft: #334155;
  --rs-mute: #64748b;
  --rs-mute-soft: #94a3b8;

  --rs-surface: #ffffff;
  --rs-surface-2: #f8fafc;
  --rs-surface-3: #f1f5f9;
  --rs-border: #e2e8f0;
  --rs-border-soft: #f1f5f9;

  --rs-radius: 10px;
  --rs-radius-lg: 14px;
  --rs-radius-xl: 20px;

  --rs-elev-1: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 6px rgba(15, 23, 42, .06);
  --rs-elev-2: 0 2px 4px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .08);
  --rs-elev-3: 0 4px 8px rgba(15, 23, 42, .04), 0 18px 40px rgba(15, 23, 42, .10);
}

/* The HTML hidden attribute must beat explicit display rules below
   (rs-loading, rs-stage, rs-verdict all set display: flex). */
body.rs-tool [hidden] { display: none !important; }


/* Body shell — matches ATS Checker palette */
body.rs-tool {
  background:
    radial-gradient(1100px 600px at 50% 0%, rgba(37, 99, 235, .14), transparent 70%),
    radial-gradient(900px 500px at 100% 30%, rgba(16, 185, 129, .07), transparent 65%),
    linear-gradient(180deg, #f0f5ff 0%, #f4f7fc 360px, #f8fafc 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
body.rs-tool .tcv-free-review-split {
  border-radius: var(--rs-radius-xl);
  overflow: hidden;
}


/* ==========================================================
   §1 BREADCRUMB
   ========================================================== */
.rs-breadcrumb { position: relative; background: transparent; padding: 16px 1.25rem 0; }
.rs-breadcrumb__inner {
  max-width: 1180px; margin: 0 auto;
  font-size: 13px; color: var(--rs-mute);
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.rs-breadcrumb a { color: var(--rs-accent-700); font-weight: 600; }
.rs-breadcrumb a:hover { text-decoration: underline; }
.rs-crumb-current { color: var(--rs-ink-soft); font-weight: 600; }


/* ==========================================================
   §2 HERO
   ========================================================== */
.rs-hero {
  position: relative;
  overflow: hidden;
  padding: 16px 1.25rem 20px;
  isolation: isolate;
  background:
    radial-gradient(900px 380px at 70% -10%, rgba(37, 99, 235, .12), transparent 60%),
    radial-gradient(700px 320px at 0% 110%, rgba(16, 185, 129, .06), transparent 65%),
    linear-gradient(180deg, #f4f7ff 0%, #eef2ff 100%);
}
.rs-hero__decor { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.rs-hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.rs-hero__blob--a {
  width: 460px; height: 460px;
  top: -180px; right: -120px;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  opacity: .18;
}
.rs-hero__blob--b {
  width: 320px; height: 320px;
  bottom: -140px; left: -100px;
  background: linear-gradient(135deg, #23ce6b, #00a6fb);
  opacity: .12;
}
.rs-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(37, 99, 235, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  opacity: .8;
}
.rs-hero__inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.rs-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--rs-accent-700);
  margin: 0 0 10px;
}
.rs-hero__title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--rs-ink);
  margin: 0 0 10px;
}
.rs-hero__title-grad {
  background: linear-gradient(90deg, #3B82F6 0%, #2563EB 50%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rs-hero__sub {
  max-width: 660px;
  margin: 0 auto 14px;
  color: var(--rs-ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

.rs-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rs-jump a {
  font-size: 12.5px; font-weight: 600;
  color: var(--rs-mute);
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 999px;
  padding: 6px 12px;
  transition: all .15s ease;
}
.rs-jump a:hover {
  color: var(--rs-accent-700);
  border-color: var(--rs-accent-200);
  background: #fff;
}


/* ==========================================================
   §3 MAIN
   ========================================================== */
.rs-main { max-width: 1280px; margin: 0 auto; padding: 12px 1.25rem 40px; }


/* ==========================================================
   §4 SCREEN — upload card + stage
   ========================================================== */
.rs-screen-section {
  display: flex; flex-direction: column; gap: 16px;
  margin: 20px auto 48px;
}

.rs-checker-card {
  align-self: center;
  width: 100%;
  max-width: 680px;
  background: #fff;
  border-radius: var(--rs-radius-xl);
  padding: 28px;
  box-shadow: var(--rs-elev-2);
}

.rs-upload__head { text-align: center; margin-bottom: 22px; }
.rs-upload__head h2 {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--rs-ink); margin: 0 0 8px; line-height: 1.2;
}
.rs-upload__head p {
  color: var(--rs-ink-soft); font-size: 0.95rem; line-height: 1.55;
  margin: 0 auto; max-width: 580px;
}

.rs-dropzone {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px;
  padding: 28px 24px;
  background: #fbfcfe;
  border: 1.5px dashed #d8dfee;
  border-radius: 16px;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  margin-bottom: 18px;
}
.rs-dropzone:hover, .rs-dropzone.is-hover {
  background: #f4f8ff;
  border-color: var(--rs-accent);
  transform: translateY(-1px);
}
.rs-dropzone.is-filled {
  background: linear-gradient(180deg, #fbfcfe 0%, #f4f8ff 100%);
  border-style: solid;
  border-color: var(--rs-accent-200);
  box-shadow: 0 8px 24px rgba(37, 99, 235, .08);
}
.rs-dropzone__icon {
  display: inline-flex; flex: 0 0 auto;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  color: var(--rs-accent);
}
.rs-dropzone__icon svg { width: 28px; height: 28px; }
.rs-dropzone__title {
  font-size: 0.92rem; font-weight: 600; color: var(--rs-ink);
  margin: 0; line-height: 1.4; letter-spacing: -0.005em;
}
.rs-dropzone__title strong { color: var(--rs-accent-700); font-weight: 700; }
.rs-dropzone__hint { font-size: 12px; color: var(--rs-mute); margin: 0; }

.rs-upload__actions {
  display: flex; gap: 10px; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.rs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  border-radius: 12px; border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s, color .12s, opacity .12s;
}
.rs-btn--primary {
  color: #fff;
  background: linear-gradient(90deg, #3B82F6 0%, #2563EB 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, .26);
}
.rs-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, .35);
  color: #fff;
}
.rs-btn--primary:disabled { opacity: .55; cursor: not-allowed; }
.rs-btn--ghost {
  color: var(--rs-ink-soft);
  background: var(--rs-surface-2);
}
.rs-btn--ghost:hover { background: var(--rs-accent-50); color: var(--rs-accent-700); }

.rs-btn__spinner {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rs-spin .7s linear infinite;
}

/* Discreet "From memory" link — only visible when a parsed resume is cached locally.
   Replays the screen without re-uploading or paying for another AI call. */
.rs-from-memory {
  margin-left: auto;
  display: inline-flex; align-items: center;
  padding: 6px 10px;
  font-size: 11.5px; font-weight: 600; font-family: inherit;
  color: var(--rs-mute);
  background: transparent;
  border: 1px dashed var(--rs-border);
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.rs-from-memory:hover {
  color: var(--rs-accent-700);
  border-color: var(--rs-accent-200);
  background: var(--rs-accent-50);
}
.rs-btn.is-loading .rs-btn__label { opacity: .6; }
.rs-btn.is-loading .rs-btn__spinner { display: inline-block; }
@keyframes rs-spin { to { transform: rotate(360deg); } }


/* Loading state — slim bar instead of step list */
.rs-loading {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px 22px;
  background: linear-gradient(180deg, #fafbfd 0%, #f6f8fc 100%);
  border: 1px solid var(--rs-border-soft);
  border-radius: var(--rs-radius-lg);
  margin-top: 4px;
  text-align: center;
}
.rs-loading__title {
  font-size: 0.98rem; font-weight: 700; color: var(--rs-ink);
  margin: 0; letter-spacing: -0.005em;
}
.rs-loading__sub {
  font-size: 12px; color: var(--rs-mute); margin: 0;
}
.rs-loading__bar {
  height: 4px; width: 100%;
  background: var(--rs-surface-3);
  border-radius: 999px; overflow: hidden;
  margin-top: 4px;
}
.rs-loading__bar-fill {
  display: block; height: 100%; width: 30%;
  background: linear-gradient(90deg, #3B82F6, #2563EB);
  border-radius: 999px;
  animation: rs-loading-slide 1.4s ease-in-out infinite;
}
@keyframes rs-loading-slide {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(220%); }
  100% { transform: translateX(220%); }
}

.rs-error {
  background: var(--rs-reject-bg);
  border: 1px solid var(--rs-reject-bd);
  border-radius: var(--rs-radius);
  padding: 12px 16px;
  font-size: 13.5px; color: var(--rs-reject);
  margin-top: 8px;
}

.rs-upload__privacy {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--rs-mute);
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rs-border-soft);
  justify-content: space-between;
}
.rs-upload__privacy-text { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.rs-upload__privacy svg { width: 14px; height: 14px; color: var(--rs-mute-soft); flex: 0 0 auto; }
.rs-upload__terms-pill {
  display: inline-flex; align-items: center;
  flex: 0 0 auto;
  padding: 2px 9px;
  background: var(--rs-surface-3);
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  color: var(--rs-mute);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.rs-upload__terms-pill:hover { background: var(--rs-accent-50); color: var(--rs-accent-700); }


/* ==========================================================
   §5 STAGE — paper + heatmap + side panel
   ========================================================== */
.rs-stage {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
/* Layout target: paper + panel share the same height, sit close together, and the overall
   group reads as roughly square so it screenshots tightly for social media. */
.rs-stage__layout {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
  height: min(720px, 80vh);
}
.rs-stage__paper-side {
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  justify-content: center;
  perspective: 1400px;
  position: relative; /* anchor for the .rs-paper-rerun overlay */
}

/* Replay pill — overlaid on the bottom of the paper once the screen finishes.
   Hidden during the running phase so the layout stays exactly the same height
   either way and the user has a visible call-to-replay without leaving the paper area. */
.rs-paper-rerun {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  color: var(--rs-ink);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--rs-border);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .14);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity .25s ease, transform .25s ease, box-shadow .15s ease, background .15s ease;
}
.rs-paper-rerun svg { width: 13px; height: 13px; color: var(--rs-accent-700); }
.rs-paper-rerun:hover {
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .18);
}
/* Visible only when the timeline has finished. Clicking restarts runScreen, which adds
   is-running back, hiding this overlay automatically. */
.rs-stage.is-done .rs-paper-rerun {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.rs-paper-wrap {
  position: relative;
  height: 100%;
  width: auto;
  aspect-ratio: 1 / 1.414;
  margin: 0;
  transform: rotateX(0.5deg) rotateY(-0.5deg);
}
.rs-paper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .05),
    0 14px 36px rgba(15, 23, 42, .14),
    0 32px 64px rgba(15, 23, 42, .08);
}
.rs-paper__page {
  position: absolute; inset: 0;
  box-sizing: border-box;
  padding: 36px 42px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 9.5px;
  line-height: 1.45;
  color: #1f2937;
  overflow: hidden;
  z-index: 1;
}

/* Heatmap canvas — sits between paper text and gaze cursor */
.rs-heatmap {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity .4s ease;
}
.rs-stage.is-running .rs-heatmap,
.rs-stage.is-done .rs-heatmap { opacity: .85; }

/* Gaze indicator — animated eye/cursor */
.rs-gaze {
  position: absolute;
  width: 56px; height: 56px;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.6);
  transition: opacity .25s ease, transform .25s ease;
  /* Movement is driven by JS via top/left changes with their own transition */
}
.rs-stage.is-running .rs-gaze { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.rs-gaze__ring {
  position: absolute; inset: 0;
  border: 2px solid rgba(220, 38, 38, .9);
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .8),
    0 0 24px rgba(220, 38, 38, .35);
  animation: rs-gaze-pulse 1.2s ease-in-out infinite;
}
.rs-gaze__pupil {
  position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px;
  background: #dc2626;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(220, 38, 38, .7);
}
@keyframes rs-gaze-pulse {
  0%   { transform: scale(1);   opacity: 1; }
  50%  { transform: scale(1.15); opacity: .75; }
  100% { transform: scale(1);   opacity: 1; }
}

/* Resume template inside paper — same shape as ATS checker's */
.resume-header { text-align: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1.5px solid #1f2937; }
.resume-name { font-size: 18px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #0f172a; margin: 0 0 4px; line-height: 1.1; }
.resume-contact { font-size: 9px; color: #4b5563; margin: 0; line-height: 1.4; }
.resume-section-heading { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #0f172a; border-bottom: 1px solid #d1d5db; padding-bottom: 2px; margin: 10px 0 6px; }
.resume-block { margin-bottom: 8px; }
.resume-block-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.resume-block-title { font-size: 10px; font-weight: 700; color: #111827; margin: 0; }
.resume-block-meta { font-size: 9px; color: #6b7280; margin: 0; white-space: nowrap; }
.resume-bullets { list-style: disc; padding-left: 14px; margin: 2px 0 4px; }
.resume-bullets li { font-size: 9px; line-height: 1.45; color: #1f2937; margin-bottom: 2px; }
.resume-bullets__header { list-style: none; margin-left: -14px; font-weight: 700; }
.resume-summary { font-size: 9px; line-height: 1.5; color: #1f2937; margin: 2px 0 4px; }
.resume-skill-row { font-size: 9px; line-height: 1.45; color: #1f2937; margin: 0 0 2px; }
.resume-cert { font-size: 9px; color: #1f2937; margin: 0 0 2px; }
.resume-empty { font-size: 11px; color: #6b7280; text-align: center; padding: 60px 20px; }


/* Signal highlights — text wrapped by `wrapMatches` for a given signal id.
   Off by default, transitions into the green/bold "found" state with a sparkle
   when the timeline reaches the matching fixation. */
.rs-highlight {
  position: relative;
  border-radius: 2px;
  transition: color .35s ease, background .35s ease, font-weight .35s ease;
}
.rs-highlight.is-found {
  color: #047857;
  font-weight: 700;
  background: rgba(5, 150, 105, .14);
}
.rs-highlight.is-found::before,
.rs-highlight.is-found::after {
  content: '';
  position: absolute;
  width: 9px; height: 9px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 0L9.6 6.4 16 8 9.6 9.6 8 16 6.4 9.6 0 8 6.4 6.4z' fill='%2310b981'/></svg>") no-repeat center / contain;
  pointer-events: none;
  opacity: 0;
  animation: rs-sparkle-pop 1s ease-out forwards;
}
.rs-highlight.is-found::before { top: -7px; left: -3px; animation-delay: 0s; }
.rs-highlight.is-found::after  { bottom: -7px; right: -3px; animation-delay: .18s; }
@keyframes rs-sparkle-pop {
  0%   { opacity: 0; transform: scale(0) rotate(0deg); }
  40%  { opacity: 1; transform: scale(1.4) rotate(180deg); }
  70%  { opacity: 1; transform: scale(1) rotate(270deg); }
  100% { opacity: 0; transform: scale(0.4) rotate(360deg); }
}


/* ============================================================
   §6 SIDE PANEL — timer, current focus, findings, verdict
   ============================================================ */
.rs-stage__panel {
  flex: 0 0 320px;
  height: 100%;
  background: #fff;
  border-radius: var(--rs-radius-xl);
  padding: 18px;
  box-shadow: var(--rs-elev-2);
  display: flex; flex-direction: column;
  gap: 12px;
}

.rs-timer {
  position: relative;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
}
.rs-timer__ring {
  position: relative; width: 64px; height: 64px;
}
.rs-timer__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rs-timer__ring-bg {
  fill: none; stroke: var(--rs-surface-3); stroke-width: 4;
}
.rs-timer__ring-fill {
  fill: none; stroke: var(--rs-accent); stroke-width: 4;
  stroke-linecap: round;
  /* circumference of r=26 = 163.36 — start with full ring, JS animates dashoffset */
  stroke-dasharray: 163.36;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .1s linear;
}
.rs-timer__label {
  display: flex; align-items: baseline; gap: 2px;
  font-variant-numeric: tabular-nums;
}
.rs-timer__value {
  font-size: 1.75rem; font-weight: 800;
  color: var(--rs-ink); line-height: 1;
  letter-spacing: -0.04em;
}
.rs-timer__suffix { font-size: 0.9rem; font-weight: 700; color: var(--rs-mute); }

.rs-current {
  background: var(--rs-surface-2);
  border-radius: var(--rs-radius);
  padding: 10px 12px;
  text-align: center;
  border: 1px solid var(--rs-border-soft);
}
.rs-current__label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--rs-mute);
  margin: 0 0 2px;
}
.rs-current__target {
  font-size: 13px; font-weight: 700; color: var(--rs-ink);
  margin: 0; min-height: 1.3em;
}

.rs-findings-block { display: flex; flex-direction: column; gap: 6px; }
.rs-findings-block__label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--rs-mute);
  margin: 0 0 2px;
}
.rs-findings { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 3px; }
.rs-finding {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  background: var(--rs-surface-2);
  color: var(--rs-mute);
  transition: background .25s ease, color .25s ease;
  opacity: .55;
  line-height: 1.35;
}
.rs-finding.is-active {
  background: rgba(37, 99, 235, .07);
  color: var(--rs-ink);
  font-weight: 600;
  opacity: 1;
}
.rs-finding.is-found {
  background: rgba(5, 150, 105, .08);
  color: var(--rs-ink-soft);
  opacity: 1;
}
.rs-finding.is-missing {
  background: rgba(220, 38, 38, .08);
  color: var(--rs-ink-soft);
  opacity: 1;
}
.rs-finding__icon {
  display: inline-flex; flex: 0 0 auto;
  width: 18px; height: 18px;
  align-items: center; justify-content: center;
  color: var(--rs-mute-soft);
  margin-top: 1px;
  font-size: 14px; font-weight: 800;
  line-height: 1;
}
.rs-finding.is-active .rs-finding__icon {
  color: var(--rs-accent);
  animation: rs-pulse-mini 1s ease-in-out infinite;
}
.rs-finding.is-found .rs-finding__icon { color: var(--rs-pass); }
.rs-finding.is-missing .rs-finding__icon { color: var(--rs-reject); }
.rs-finding__name { line-height: 1.4; }
@keyframes rs-pulse-mini { 50% { opacity: .55; } }


/* Verdict block (revealed at end) */
.rs-verdict {
  display: flex; flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--rs-border-soft);
  text-align: center;
  margin-top: auto; /* anchor the verdict to the bottom of the panel for tight layout */
}
.rs-verdict__pill {
  align-self: center;
  padding: 6px 18px;
  font-size: 1.25rem; font-weight: 900;
  letter-spacing: 0.08em;
  border-radius: 999px;
  text-transform: uppercase;
}
.rs-verdict__pill.is-pass {
  color: #fff;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 8px 22px rgba(5, 150, 105, .28);
}
.rs-verdict__pill.is-reject {
  color: #fff;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 8px 22px rgba(220, 38, 38, .28);
}
.rs-verdict__title {
  font-size: 0.95rem; font-weight: 800; color: var(--rs-ink);
  margin: 0; letter-spacing: -0.01em;
}
.rs-verdict__text {
  font-size: 12px; line-height: 1.45; color: var(--rs-ink-soft);
  margin: 0;
}
.rs-verdict__underline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: currentColor;
}
.rs-verdict__actions {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 4px;
}
.rs-verdict__actions .rs-btn { width: 100%; padding: 10px 16px; font-size: 13.5px; }
.rs-verdict__tagline {
  font-size: 11px;
  color: var(--rs-mute);
  margin: -2px 0 4px;
  line-height: 1.4;
}


/* ==========================================================
   §7 CONTENT SECTIONS
   ========================================================== */
.rs-content { padding: 56px 0 16px; scroll-margin-top: 96px; }
.rs-content--alt { background: none; padding: 56px 0 16px; }
.rs-content__head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.rs-content__eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--rs-accent-700);
  margin: 0 0 10px;
}
.rs-content__head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.15;
  color: var(--rs-ink); margin: 0 0 12px;
}
.rs-content__head p {
  color: var(--rs-ink-soft);
  font-size: 1rem; line-height: 1.6;
  margin: 0 auto; max-width: 720px;
}

.rs-content__grid {
  display: grid; gap: 16px;
  max-width: 1080px; margin: 0 auto;
}
.rs-content__grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.rs-content__card {
  background: #fff;
  border-radius: var(--rs-radius-xl);
  padding: 26px;
  box-shadow: var(--rs-elev-1);
  transition: transform .15s ease, box-shadow .15s ease;
}
.rs-content__card:hover { transform: translateY(-3px); box-shadow: var(--rs-elev-3); }
.rs-content__card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 14px; font-weight: 800; color: #fff;
  margin-bottom: 12px;
}
.rs-content__card-num[data-tone="red"]   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.rs-content__card-num[data-tone="amber"] { background: linear-gradient(135deg, #f97316, #ea580c); }
.rs-content__card-num[data-tone="blue"]  { background: linear-gradient(135deg, #10b981, #059669); }
.rs-content__card h3 {
  font-size: 1.05rem; font-weight: 800; color: var(--rs-ink);
  margin: 0 0 8px; letter-spacing: -0.01em; line-height: 1.3;
}
.rs-content__card p {
  font-size: 14px; line-height: 1.6; color: var(--rs-ink-soft); margin: 0;
}

.rs-content__note {
  max-width: 1080px; margin: 18px auto 0;
  padding: 16px 20px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--rs-border-soft);
  border-radius: var(--rs-radius);
  font-size: 13px; line-height: 1.6; color: var(--rs-ink-soft);
}
.rs-content__note strong { color: var(--rs-ink); }
.rs-content__note a { color: var(--rs-accent-700); font-weight: 700; }
.rs-content__note a:hover { text-decoration: underline; }


/* Path section — numbered steps */
.rs-path {
  max-width: 820px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
}
.rs-path__step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  background: #fff;
  border-radius: var(--rs-radius-xl);
  padding: 22px 24px;
  box-shadow: var(--rs-elev-1);
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.rs-path__step:hover { transform: translateY(-2px); box-shadow: var(--rs-elev-2); }
.rs-path__step { align-items: center; }
.rs-path__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  font-size: 1.25rem; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  box-shadow: 0 6px 14px rgba(37, 99, 235, .25);
}
.rs-path__body { text-align: left; }
.rs-path__body h3 {
  font-size: 1.05rem; font-weight: 800; color: var(--rs-ink);
  margin: 0 0 6px; letter-spacing: -0.01em; line-height: 1.3;
  text-align: left;
}
.rs-path__body p {
  font-size: 14px; line-height: 1.6; color: var(--rs-ink-soft); margin: 0;
  text-align: left;
}
.rs-path__sub {
  list-style: none; padding: 0; margin: 10px 0 0;
  display: flex; flex-direction: column; gap: 6px;
}
.rs-path__sub li {
  font-size: 13.5px; line-height: 1.55; color: var(--rs-ink-soft);
  padding: 8px 12px;
  background: var(--rs-surface-2);
  border: 1px solid var(--rs-border-soft);
  border-radius: 8px;
}
.rs-path__sub strong { color: var(--rs-ink); font-weight: 700; }

.rs-content__head-link { margin-top: 14px; }
.rs-content__head-link a {
  color: var(--rs-accent-700); font-weight: 700;
  font-size: 14px; text-decoration: none;
}
.rs-content__head-link a:hover { text-decoration: underline; }

/* Weight badges (Fatal / Important / Nice to have) */
.rs-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}
.rs-badge--fatal     { background: rgba(220, 38, 38, .12); color: #b91c1c; }
.rs-badge--important { background: rgba(234, 88, 12, .12); color: #c2410c; }
.rs-badge--nice      { background: var(--rs-surface-3);    color: var(--rs-mute); }


/* ==========================================================
   §8 FAQ
   ========================================================== */
.rs-faq {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 8px;
}
.rs-faq__item {
  width: 100%;
  background: #fff;
  border-radius: var(--rs-radius-lg);
  overflow: hidden;
  box-shadow: var(--rs-elev-1);
}
.rs-faq__item summary {
  list-style: none; cursor: pointer;
  padding: 16px 20px;
  font-size: 15px; font-weight: 700; color: var(--rs-ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: color .15s ease;
}
.rs-faq__item summary::-webkit-details-marker { display: none; }
.rs-faq__item summary::after {
  content: "+"; font-size: 22px; font-weight: 400;
  color: var(--rs-accent);
  flex: 0 0 auto;
}
.rs-faq__item[open] summary::after { content: "−"; }
.rs-faq__item summary:hover { color: var(--rs-accent-700); }
.rs-faq__body { padding: 0 20px 18px; }
.rs-faq__body p { font-size: 14px; line-height: 1.6; color: var(--rs-ink-soft); margin: 0; }
.rs-faq__body a {
  color: var(--rs-accent-700); font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--rs-accent-200);
}


/* ==========================================================
   §9 RELATED + DISCLAIMER
   ========================================================== */
.rs-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1080px; margin: 0 auto;
}
.rs-related__card {
  background: #fff;
  border-radius: var(--rs-radius-xl);
  padding: 24px;
  box-shadow: var(--rs-elev-1);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none;
  color: inherit;
}
.rs-related__card:hover { transform: translateY(-3px); box-shadow: var(--rs-elev-3); color: inherit; }
.rs-related__card h3 {
  font-size: 1.05rem; font-weight: 800; color: var(--rs-ink);
  margin: 0; letter-spacing: -0.01em; line-height: 1.3;
}
.rs-related__card p {
  font-size: 13.5px; line-height: 1.55; color: var(--rs-ink-soft); margin: 0;
}
.rs-related__cta {
  font-size: 13px; font-weight: 700; color: var(--rs-accent-700);
  margin-top: auto;
}

.rs-disclaimer {
  max-width: 880px; margin: 36px auto 0;
  padding: 16px 20px;
  font-size: 12px; color: var(--rs-mute); line-height: 1.6;
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--rs-border-soft);
  border-radius: var(--rs-radius);
}
.rs-disclaimer strong { color: var(--rs-ink-soft); }


/* ==========================================================
   §10 RESPONSIVE
   ========================================================== */
@media (max-width: 1080px) {
  /* Stack vertically below the desktop breakpoint. Drop the fixed row height so the layout
     can grow with content. */
  .rs-stage__layout {
    flex-direction: column;
    align-items: center;
    gap: 22px;
    height: auto;
  }
  .rs-stage__paper-side { width: 100%; height: auto; }
  .rs-paper-wrap { width: min(540px, 92vw); height: auto; }
  .rs-stage__panel { width: 100%; max-width: 540px; flex: 0 0 auto; height: auto; }
}

@media (max-width: 720px) {
  .rs-hero { padding: 12px 1rem 22px; }
  .rs-hero__title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .rs-hero__sub { font-size: 0.95rem; }
  .rs-jump a { font-size: 12px; padding: 5px 10px; }

  .rs-main { padding: 8px 1rem 32px; }
  .rs-screen-section { margin-top: 24px; }
  .rs-checker-card { padding: 20px; max-width: 100%; }
  .rs-upload__head h2 { font-size: 1.3rem; }
  .rs-upload__head p { font-size: 0.9rem; }
  .rs-dropzone { padding: 22px 16px; }

  .rs-stage__panel { padding: 18px; gap: 14px; }
  .rs-timer__ring { width: 64px; height: 64px; }
  .rs-timer__value { font-size: 1.85rem; }
  .rs-verdict__pill { font-size: 1.25rem; padding: 7px 18px; }

  .rs-content { padding: 44px 0 12px; }
  .rs-content--alt { padding: 36px 0 12px; }
  .rs-content__head h2 { font-size: 1.5rem; }
  .rs-content__grid--3 { grid-template-columns: 1fr; gap: 14px; }
  .rs-related { grid-template-columns: 1fr; gap: 14px; }

  .rs-path__step { grid-template-columns: 48px minmax(0, 1fr); padding: 18px 18px; gap: 14px; }
  .rs-path__num { width: 40px; height: 40px; font-size: 1.1rem; }

  .rs-faq__item summary { padding: 14px 16px; font-size: 14px; }
  .rs-faq__body { padding: 0 16px 16px; }
}

@media (max-width: 480px) {
  .rs-hero__title { font-size: 1.65rem; }
  .rs-checker-card { padding: 16px; border-radius: var(--rs-radius-lg); }
  .rs-stage__panel { padding: 16px; }
  .rs-paper-wrap { max-width: 92vw; }
  .rs-paper__page { padding: 24px 26px; font-size: 8.5px; }
  .resume-name { font-size: 14px; }

  .rs-content__card { padding: 20px; }
  .rs-related__card { padding: 20px; }
  .rs-disclaimer { padding: 14px 16px; font-size: 11.5px; }
}
