/* ============================================================
   MaxCV Redesign — Direction B (product-forward)
   Faithful port of "MaxCV Redesign.html" (Claude Design handoff)
   Token values mirror mxTokens.b + cool background palette.
   Loaded AFTER app.css so landing overrides win.
   ============================================================ */

:root {
  --rd-bg: oklch(0.975 0.004 240);
  --rd-surface: #ffffff;
  --rd-surface-alt: oklch(0.96 0.006 240);
  --rd-ink: oklch(0.2 0.02 240);
  --rd-ink-soft: oklch(0.45 0.015 240);
  --rd-ink-muted: oklch(0.52 0.012 240);
  --rd-line: oklch(0.91 0.008 240);
  --rd-line-soft: oklch(0.95 0.005 240);
  --rd-accent: oklch(0.52 0.12 155);
  --rd-accent-soft: oklch(0.94 0.04 155);
  --rd-accent-ink: oklch(0.32 0.09 155);
  --rd-warn: oklch(0.62 0.14 55);
  --rd-warn-soft: oklch(0.95 0.04 60);
  --rd-sans: 'Inter', system-ui, sans-serif;
  --rd-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --rd-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* Box-sizing reset for redesign pages. index.html gets this from app.css, but
   standalone pages (e.g. pricing.html) load only redesign.css — without it,
   width:100% + padding (CTAs) overflows the column. */
.rd-landing,
.rd-landing *,
.rd-landing *::before,
.rd-landing *::after { box-sizing: border-box; }

/* ── Layout reset for the redesigned landing ──────────────────
   The original app centers body content with padding; the landing
   is full-bleed. Scope the reset to the guest view so the
   workspace (post-login) keeps its centered layout + padding. */
body.rd-landing {
  padding: 0;
  align-items: stretch;
  background: var(--rd-bg);
  font-family: var(--rd-sans);
  color: var(--rd-ink);
}
body.rd-landing .workspace { padding: 0 2rem; box-sizing: border-box; max-width: 1040px; margin: 0 auto; }

.rd-landing .onboarding {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
  overflow: visible;
}

/* full-width section helper + inner container */
.rd-section { padding: 0 48px; }
.rd-wrap { max-width: 1100px; margin: 0 auto; }

/* ── Header ──────────────────────────────────────────────── */
.rd-landing .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklch, var(--rd-bg) 93%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rd-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 48px;
  margin: 0;
}
.rd-header-left { display: flex; align-items: center; gap: 36px; min-width: 0; }
.rd-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--rd-display); text-decoration: none; }
.rd-logo-mark {
  width: 28px; height: 28px; border-radius: 14px; flex-shrink: 0;
  background: var(--rd-accent);
  display: flex; align-items: center; justify-content: center;
}
.rd-logo-word { font-size: 18px; font-weight: 600; color: var(--rd-ink); letter-spacing: -0.3px; }
.rd-logo-word .rd-tld { color: var(--rd-accent); }

.rd-nav { display: flex; gap: 28px; }
.rd-nav a { font-size: 14px; color: var(--rd-ink-soft); text-decoration: none; padding: 6px 4px; }
.rd-nav a:hover { color: var(--rd-ink); }

.rd-header-right { display: flex; gap: 10px; align-items: center; }
/* Auth buttons. index.html inherits this layout from shared.css's .auth-bar,
   but standalone pages (e.g. pricing.html) load only redesign.css — without it
   the two header CTAs render touching. Keep the header identical across pages. */
.rd-landing .auth-bar { display: flex; align-items: center; gap: 10px; }

/* language switcher */
.rd-lang { display: inline-flex; border: 1px solid var(--rd-line); border-radius: 8px; overflow: hidden; background: var(--rd-surface); }
.rd-lang button {
  border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.4px;
  color: var(--rd-ink-muted); padding: 6px 9px; text-transform: uppercase;
}
.rd-lang button.is-active { background: var(--rd-ink); color: #fff; }

/* buttons */
.rd-btn {
  font-family: var(--rd-sans); font-weight: 500; cursor: pointer;
  border-radius: 8px; border: 1px solid transparent; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, box-shadow .15s, transform .05s;
  text-decoration: none; /* rd-btn is used on <a> too (e.g. /pricing CTAs) — no underline */
}
.rd-btn:active { transform: translateY(1px); }
.rd-btn-link { background: transparent; border: none; color: var(--rd-ink-soft); font-size: 13px; padding: 9px 6px; }
.rd-btn-link:hover { color: var(--rd-ink); }
.rd-btn-primary { background: var(--rd-accent); color: #fff; }
.rd-btn-primary:hover { background: oklch(0.48 0.12 155); }
.rd-btn-ghost { background: var(--rd-surface); border-color: var(--rd-line); color: var(--rd-ink); }
.rd-btn-ghost:hover { background: var(--rd-surface-alt); }
.rd-btn-sm { font-size: 13px; padding: 9px 16px; }
.rd-btn-lg { font-size: 15px; padding: 14px 24px; border-radius: 10px; }
/* Full-width CTAs (pricing cards, download panel, etc.) are used without a size
   class, so carry their own sizing — matches the design's plan button (12×16, 14/600). */
.rd-btn-block { width: 100%; padding: 12px 16px; font-size: 14px; font-weight: 600; border-radius: 10px; }
.rd-btn-primary.rd-btn-block { box-shadow: 0 4px 12px color-mix(in oklch, var(--rd-accent) 20%, transparent); }

/* ── Hero ────────────────────────────────────────────────── */
.rd-hero { padding: 64px 48px 16px; text-align: center; }
.rd-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--rd-surface); border: 1px solid var(--rd-line);
  font-size: 12px; color: var(--rd-ink-soft); font-weight: 500; margin-bottom: 28px;
}
.rd-badge .rd-dot { width: 6px; height: 6px; border-radius: 3px; background: var(--rd-accent); }
.rd-hero h1 {
  font-family: var(--rd-display);
  font-size: 72px; font-weight: 500; line-height: 1.02; letter-spacing: -2.2px;
  color: var(--rd-ink); margin: 0 auto 20px; max-width: 880px; text-wrap: balance;
  text-align: center;
}
.rd-hero-sub { font-size: 19px; line-height: 1.5; color: var(--rd-ink-soft); max-width: 620px; margin: 0 auto 36px; text-wrap: pretty; }
.rd-hero-cta { display: inline-flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; justify-content: center; }
.rd-hero .rd-btn-primary.rd-btn-lg { box-shadow: 0 4px 12px color-mix(in oklch, var(--rd-accent) 20%, transparent), 0 1px 2px rgba(20,30,50,0.06); }
.rd-hero-micro { font-size: 12px; color: var(--rd-ink-muted); }

/* ── How it works (interactive wizard) ───────────────────── */
.rd-hiw { background: var(--rd-bg); padding: 96px 48px; }
.rd-hiw-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.rd-eyebrow { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--rd-accent-ink); font-weight: 600; margin-bottom: 14px; }
.rd-hiw h2 { font-family: var(--rd-display); font-size: 40px; font-weight: 500; color: var(--rd-ink); letter-spacing: -1.2px; line-height: 1.08; margin: 0 0 40px; }

.rd-steps { position: relative; }
.rd-steps-spine { position: absolute; left: 21px; top: 24px; bottom: 24px; width: 2px; background: var(--rd-line); }
.rd-steps-list { display: flex; flex-direction: column; gap: 14px; }
.rd-step {
  display: flex; gap: 20px; position: relative;
  padding: 12px 14px; border-radius: 12px; margin: 0 -14px;
  background: transparent; border: 1px solid transparent;
  cursor: default; transition: background .2s, border-color .2s, box-shadow .2s; opacity: .55;
}
.rd-step.is-clickable { cursor: pointer; opacity: 1; }
.rd-step.is-done { opacity: 1; }
.rd-step.is-active {
  background: var(--rd-surface); border-color: var(--rd-line); opacity: 1;
  box-shadow: 0 1px 2px rgba(20,30,50,0.04), 0 12px 24px -18px rgba(20,30,50,0.14);
}
.rd-step-num {
  width: 44px; height: 44px; border-radius: 22px; flex-shrink: 0;
  background: var(--rd-surface-alt); border: 2px solid var(--rd-line); color: var(--rd-ink-muted);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--rd-display); font-size: 18px; font-weight: 600; z-index: 1;
  transition: all .2s;
}
.rd-step.is-active .rd-step-num { background: var(--rd-surface); border-color: var(--rd-accent); color: var(--rd-accent-ink); }
.rd-step.is-done .rd-step-num { background: var(--rd-accent); border-color: var(--rd-accent); color: #fff; }
.rd-step-num .rd-check { display: none; }
.rd-step.is-done .rd-step-num .rd-num { display: none; }
.rd-step.is-done .rd-step-num .rd-check { display: block; }
.rd-step h3 { font-family: var(--rd-display); font-size: 19px; font-weight: 500; color: var(--rd-ink); letter-spacing: -0.3px; margin: 2px 0 6px; }
.rd-step p { font-size: 14px; color: var(--rd-ink-soft); line-height: 1.55; margin: 0; max-width: 360px; text-wrap: pretty; }

/* wizard form panel (browser chrome) */
.rd-form {
  background: var(--rd-surface); border-radius: 16px; border: 1px solid var(--rd-line);
  box-shadow: 0 1px 2px rgba(20,30,50,0.04), 0 24px 48px -24px rgba(20,30,50,0.16);
  overflow: hidden; position: sticky; top: 40px; min-height: 440px;
  display: flex; flex-direction: column;
}
.rd-form-bar { padding: 14px 18px; border-bottom: 1px solid var(--rd-line-soft); background: var(--rd-surface-alt); display: flex; align-items: center; gap: 10px; }
.rd-traffic { display: flex; gap: 6px; }
.rd-traffic span { width: 9px; height: 9px; border-radius: 5px; opacity: .85; }
.rd-form-file { font-size: 12px; color: var(--rd-ink-muted); font-family: var(--rd-mono); }
.rd-form-step { margin-left: auto; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--rd-ink-muted); font-weight: 600; }
.rd-form-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.rd-form-pane { display: none; flex: 1; flex-direction: column; }
.rd-form-pane.is-active { display: flex; }

/* step 1 — dropzone */
.rd-drop {
  flex: 1; min-height: 320px; background: var(--rd-surface-alt);
  border: 1.5px dashed var(--rd-line); border-radius: 12px; cursor: pointer; transition: all .2s;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px;
  position: relative;
}
.rd-drop.is-dragover { background: var(--rd-accent-soft); border-color: var(--rd-accent); }
.rd-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rd-drop-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--rd-surface); border: 1px solid var(--rd-line); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--rd-accent-ink); }
.rd-drop-title { font-size: 16px; font-weight: 500; color: var(--rd-ink); margin-bottom: 6px; }
.rd-drop-hint { font-size: 13px; color: var(--rd-ink-muted); }

/* step 2 — paste */
.rd-cv-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--rd-accent-soft); border-radius: 8px; margin-bottom: 18px; }
.rd-cv-chip .rd-cv-name { font-size: 13px; color: var(--rd-accent-ink); font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-cv-chip .rd-cv-flag { font-size: 12px; color: var(--rd-accent-ink); opacity: .7; }
.rd-input-row { display: flex; align-items: center; gap: 8px; height: 44px; border: 1.5px solid var(--rd-line); border-radius: 9px; padding: 0 12px; margin-bottom: 12px; background: var(--rd-surface); }
.rd-input-row input { flex: 1; border: none; outline: none; background: transparent; font-size: 13px; color: var(--rd-ink); font-family: var(--rd-mono); }
.rd-or { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.rd-or .rd-or-line { flex: 1; height: 1px; background: var(--rd-line-soft); }
.rd-or span { font-size: 11px; color: var(--rd-ink-muted); text-transform: uppercase; letter-spacing: 1px; }
.rd-form textarea { flex: 1; min-height: 120px; resize: none; border: 1.5px solid var(--rd-line); border-radius: 9px; padding: 12px; font-size: 13px; color: var(--rd-ink); font-family: var(--rd-sans); line-height: 1.5; outline: none; background: var(--rd-surface); }
.rd-tailor-btn { margin-top: 16px; padding: 14px; border-radius: 10px; border: none; background: var(--rd-accent); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--rd-display); display: flex; align-items: center; justify-content: center; gap: 9px; }
.rd-tailor-btn:disabled { background: var(--rd-line); cursor: not-allowed; }

/* step 3 — result */
.rd-result-head { padding: 24px; display: flex; align-items: center; gap: 22px; border-bottom: 1px solid var(--rd-line-soft); }
.rd-result-body { padding: 24px; flex: 1; }
.rd-result-actions { padding: 0 24px 24px; display: flex; gap: 10px; }
.rd-tailoring { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; }
.rd-tailoring .rd-spinner { width: 34px; height: 34px; animation: mx-spin .8s linear infinite; }
.rd-meta-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--rd-ink-muted); font-weight: 500; margin-bottom: 4px; }
.rd-kw-list { display: flex; flex-wrap: wrap; gap: 7px; }
.rd-kw { font-size: 12px; padding: 5px 10px; border-radius: 6px; background: var(--rd-accent-soft); color: var(--rd-accent-ink); font-family: var(--rd-mono); font-weight: 500; }

/* score ring */
.rd-ring { position: relative; width: 76px; height: 76px; flex-shrink: 0; }
.rd-ring svg { transform: rotate(-90deg); }
.rd-ring .rd-ring-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--rd-display); font-size: 22px; font-weight: 600; color: var(--rd-ink); font-variant-numeric: tabular-nums; }

@keyframes mx-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ── Feature strip ───────────────────────────────────────── */
.rd-features { padding: 40px 48px 80px; }
.rd-features-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rd-feature { background: var(--rd-surface); border-radius: 12px; padding: 22px; border: 1px solid var(--rd-line); }
.rd-feature-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--rd-accent-soft); color: var(--rd-accent-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.rd-feature h4 { font-size: 14px; font-weight: 600; color: var(--rd-ink); margin: 0 0 6px; letter-spacing: -0.2px; }
.rd-feature p { font-size: 13px; color: var(--rd-ink-soft); line-height: 1.5; margin: 0; }

/* ── Before / After ──────────────────────────────────────── */
.rd-ba-wrap { padding: 80px 48px; background: var(--rd-surface-alt); border-top: 1px solid var(--rd-line); border-bottom: 1px solid var(--rd-line); }
.rd-ba { max-width: 1100px; margin: 0 auto; }
.rd-ba h2 { font-family: var(--rd-display); font-size: 40px; font-weight: 500; letter-spacing: -1.2px; line-height: 1.1; color: var(--rd-ink); margin: 0 0 14px; text-wrap: balance; max-width: 760px; }
.rd-ba-sub { font-size: 16px; color: var(--rd-ink-soft); line-height: 1.6; max-width: 620px; margin: 0 0 36px; text-wrap: pretty; }
.rd-ba-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rd-ba-card { background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 14px; padding: 28px 30px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 1px 2px rgba(20,30,50,0.04); }
.rd-ba-card.is-after { border-color: var(--rd-accent); box-shadow: 0 0 0 3px var(--rd-accent-soft), 0 1px 2px rgba(20,30,50,0.04); }
.rd-ba-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rd-ba-card-head { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--rd-ink-muted); font-weight: 500; }
.rd-pill { font-size: 11px; padding: 4px 10px; border-radius: 999px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.rd-pill-generic { background: var(--rd-surface-alt); color: var(--rd-ink-soft); border: 1px solid var(--rd-line); }
.rd-pill-matched { background: var(--rd-accent-soft); color: var(--rd-accent-ink); }
.rd-ba-quote { font-family: var(--rd-display); font-size: 21px; font-weight: 500; color: var(--rd-ink); line-height: 1.45; letter-spacing: -0.3px; text-wrap: pretty; }
.rd-hl { display: inline-block; background: var(--rd-accent-soft); color: var(--rd-accent-ink); padding: 1px 8px; border-radius: 5px; font-weight: 500; margin: 0 1px; line-height: 1.35; }
.rd-ba-foot { border-top: 1px solid var(--rd-line-soft); padding-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--rd-ink-soft); }
.rd-ba-foot.is-after { color: var(--rd-accent-ink); font-weight: 500; }
.rd-ba-foot .rd-warn-dot { width: 6px; height: 6px; border-radius: 3px; background: var(--rd-warn); flex-shrink: 0; }
.rd-ba-note { margin-top: 22px; padding: 12px 16px; background: var(--rd-surface); border: 1px solid var(--rd-line-soft); border-radius: 8px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--rd-ink-soft); line-height: 1.5; }

/* ── Outcome split ───────────────────────────────────────── */
.rd-outcome { padding: 96px 48px; }
.rd-outcome-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.rd-outcome h2 { font-family: var(--rd-display); font-size: 40px; font-weight: 500; letter-spacing: -1.2px; line-height: 1.1; margin: 0 0 20px; color: var(--rd-ink); text-wrap: balance; }
.rd-outcome p { font-size: 16px; color: var(--rd-ink-soft); line-height: 1.6; margin: 0 0 24px; max-width: 420px; }
.rd-outcome-rows { display: flex; flex-direction: column; gap: 14px; }
.rd-outcome-row { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.rd-tick { width: 20px; height: 20px; border-radius: 10px; background: var(--rd-accent-soft); color: var(--rd-accent-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rd-outcome-row .rd-k { color: var(--rd-ink); font-weight: 500; }
.rd-outcome-row .rd-v { color: var(--rd-ink-muted); }
.rd-stats-card { background: var(--rd-surface); border-radius: 12px; border: 1px solid var(--rd-line); padding: 28px; box-shadow: 0 1px 2px rgba(20,30,50,0.04), 0 8px 24px -8px rgba(20,30,50,0.08); }
.rd-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rd-stat { padding: 16px; background: var(--rd-surface-alt); border-radius: 8px; }
.rd-stat .rd-stat-n { font-family: var(--rd-display); font-size: 36px; font-weight: 500; color: var(--rd-ink); letter-spacing: -1.2px; line-height: 1; margin-bottom: 6px; }
.rd-stat .rd-stat-l { font-size: 12px; color: var(--rd-ink-soft); }

/* ── CTA dark ────────────────────────────────────────────── */
.rd-cta { padding: 80px 48px; background: var(--rd-ink); color: var(--rd-bg); text-align: center; }
.rd-cta h2 { font-family: var(--rd-display); font-size: 48px; font-weight: 500; letter-spacing: -1.4px; line-height: 1.1; margin: 0 auto 18px; max-width: 720px; text-wrap: balance; }
.rd-cta p { font-size: 16px; color: oklch(0.78 0.01 240); margin: 0 auto 28px; max-width: 520px; }
.rd-cta .rd-btn-primary { box-shadow: 0 4px 16px color-mix(in oklch, var(--rd-accent) 33%, transparent); }

/* ── Sister products ─────────────────────────────────────── */
.rd-sister { padding: 72px 48px; background: var(--rd-surface-alt); border-top: 1px solid var(--rd-line); }
.rd-sister-eyebrow { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--rd-ink-muted); font-weight: 500; margin-bottom: 12px; }
.rd-sister h3 { font-family: var(--rd-display); font-size: 28px; font-weight: 500; color: var(--rd-ink); letter-spacing: -0.8px; margin: 0 0 28px; max-width: 640px; line-height: 1.2; text-wrap: balance; }
.rd-sister-grid { display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; gap: 1px; background: var(--rd-line); border: 1px solid var(--rd-line); border-radius: 12px; }
.rd-sister-grid::-webkit-scrollbar { height: 6px; }
.rd-sister-grid::-webkit-scrollbar-thumb { background: var(--rd-line); border-radius: 6px; }
.rd-sister-card { display: flex; flex-direction: column; gap: 8px; padding: 20px 18px 22px; background: var(--rd-surface); text-decoration: none; color: var(--rd-ink); transition: background .15s; flex: 1 0 0; min-width: 180px; }
.rd-sister-card:hover { background: var(--rd-surface-alt); }
.rd-sister-card .rd-sister-name { font-family: var(--rd-mono); font-size: 13px; font-weight: 600; color: var(--rd-ink); letter-spacing: -0.3px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.rd-sister-card .rd-sister-tag { font-size: 12px; color: var(--rd-ink-soft); line-height: 1.45; }

/* ── Footer ──────────────────────────────────────────────── */
.rd-landing footer.rd-footer { padding: 40px 48px 32px; background: var(--rd-surface); border-top: 1px solid var(--rd-line); color: var(--rd-ink-soft); display: block; text-align: left; }
.rd-footer-top { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid var(--rd-line-soft); }
.rd-footer-agents { max-width: 1100px; margin: 0 auto; padding: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 11.5px; }
.rd-footer-agents > span { color: var(--rd-ink-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.rd-footer-agents a { color: var(--rd-ink-muted); text-decoration: none; font-family: 'JetBrains Mono', monospace; }
.rd-footer-agents a:hover { color: var(--rd-accent-ink); }
.rd-footer-brand-tag { font-size: 13px; color: var(--rd-ink-soft); margin-top: 14px; max-width: 320px; line-height: 1.55; }
.rd-footer-col h5 { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--rd-ink-muted); font-weight: 500; margin: 0 0 14px; }
.rd-footer-col a { display: block; font-size: 13px; color: var(--rd-ink-soft); text-decoration: none; margin-bottom: 10px; }
.rd-footer-col a:hover { color: var(--rd-ink); }
.rd-footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; color: var(--rd-ink-muted); flex-wrap: wrap; }
.rd-footer-bottom .rd-social { display: flex; gap: 16px; align-items: center; }
.rd-footer-bottom .rd-social a { color: var(--rd-ink-muted); text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .rd-landing .site-header { padding: 12px 20px; gap: 12px; }
  .rd-nav { display: none; }
  .rd-hero { padding: 48px 20px 8px; }
  .rd-hero h1 { font-size: 44px; letter-spacing: -1.4px; }
  .rd-hero-sub { font-size: 16px; }
  .rd-hiw, .rd-features, .rd-ba-wrap, .rd-outcome, .rd-cta, .rd-sister { padding-left: 20px; padding-right: 20px; }
  .rd-hiw-grid, .rd-features-grid, .rd-ba-cards, .rd-outcome-grid, .rd-stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .rd-sister-grid { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
  .rd-sister-card { flex: initial; min-width: 0; }
  .rd-footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .rd-cta h2 { font-size: 32px; }
  .rd-ba h2, .rd-outcome h2 { font-size: 30px; }
  .rd-form { position: static; }
}
@media (max-width: 520px) {
  .rd-sister-grid, .rd-footer-top { display: grid; grid-template-columns: 1fr; }
  .rd-hero h1 { font-size: 36px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .rd-spinner { animation: none !important; }
  .rd-step, .rd-btn, .rd-sister-card, .rd-drop { transition: none !important; }
}

/* Keep redesign readable even if the app's dark-mode vars kick in:
   the landing defines its own light palette and does not invert. */

/* ============================================================
   Logged-in app: shared bits + CV-Manage.
   The Pulpit C components (dark band, card grid, inline detail)
   live in the dedicated section at the end of this file.
   ============================================================ */

.rd-hidden { display: none !important; }

/* app-nav (logged-in) — hidden for guests, guest nav hidden for users */
.rd-appnav { display: none; gap: 28px; }
.is-user .rd-appnav { display: flex; }
.is-user .rd-nav { display: none; }
.rd-appnav a { font-size: 14px; color: var(--rd-ink-soft); text-decoration: none; padding: 6px 4px; cursor: pointer; position: relative; }
.rd-appnav a:hover { color: var(--rd-ink); }
.rd-appnav a.is-active { color: var(--rd-ink); font-weight: 500; }
.rd-appnav a.is-active::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: -18px; height: 2px; background: var(--rd-ink); border-radius: 1px; }

/* The logged-in views live in the same full-bleed body as the landing. */
.rd-landing .workspace { max-width: none; margin: 0; padding: 0; align-items: stretch; background: var(--rd-bg); }
.rd-view { width: 100%; background: var(--rd-bg); color: var(--rd-ink); font-family: var(--rd-sans); }

.rd-mini-spinner { width: 16px; height: 16px; border: 2px solid var(--rd-line); border-top-color: var(--rd-accent); border-radius: 50%; display: inline-block; animation: mx-spin .8s linear infinite; }

/* ── Shared page scaffold (used by CV-Manage) ── */
.rd-sum { padding: 32px 48px 80px; }
.rd-sum-wrap { max-width: 1080px; margin: 0 auto; }
.rd-sum-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--rd-ink-soft); background: transparent; border: none; cursor: pointer; font-family: inherit; margin-bottom: 20px; padding: 0; }
.rd-sum-back:hover { color: var(--rd-ink); }

.rd-card { background: var(--rd-surface); border-radius: 12px; border: 1px solid var(--rd-line); padding: 20px; }
.rd-muted { font-size: 13px; color: var(--rd-ink-muted); }

/* keyword / skill chips (detail tile + manage skills) */
.rd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.rd-chip { font-size: 11.5px; padding: 5px 10px; border-radius: 4px; font-family: var(--rd-mono); }
.rd-chip-add { background: var(--rd-accent); color: #fff; }
.rd-chip-kept { background: var(--rd-surface-alt); color: var(--rd-ink); border: 1px solid var(--rd-line); }
.rd-chip-gap { background: var(--rd-warn-soft); color: var(--rd-warn); }
.rd-chip-skill { background: var(--rd-surface-alt); color: var(--rd-ink); border: 1px solid var(--rd-line); }
.rd-skillgroups { display: flex; flex-direction: column; gap: 18px; }
.rd-skillgroup-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--rd-ink-muted); font-weight: 500; margin-bottom: 8px; }

/* manage header meta line */
.rd-manage-metaline { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--rd-ink-soft); margin-top: 6px; }
.rd-dot-sep { width: 3px; height: 3px; border-radius: 2px; background: var(--rd-ink-muted); display: inline-block; }

/* ============================================================
   Pricing page (/pricing)
   ============================================================ */
.rd-nav a.is-active { color: var(--rd-ink); font-weight: 500; }
.rd-price-hero { padding: 72px 48px 8px; }
.rd-price-hero h1 { font-size: 48px; letter-spacing: -1.6px; }

.rd-price-grid { max-width: 1100px; margin: 28px auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.rd-price-card { position: relative; background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 16px; padding: 30px 28px 32px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(20,30,50,0.04); }
.rd-price-card.is-featured { border-color: var(--rd-accent); box-shadow: 0 0 0 3px var(--rd-accent-soft), 0 12px 32px -12px rgba(20,30,50,0.18); margin-top: -8px; }
.rd-price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; background: var(--rd-accent); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.3px; padding: 5px 12px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 12px color-mix(in oklch, var(--rd-accent) 27%, transparent); }
.rd-price-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.rd-price-name { font-family: var(--rd-display); font-size: 20px; font-weight: 600; color: var(--rd-ink); letter-spacing: -0.4px; }
.rd-price-tag { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--rd-surface-alt); color: var(--rd-ink-soft); border: 1px solid var(--rd-line); font-weight: 500; white-space: nowrap; }
.rd-price-row { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; }
.rd-price-amount { font-family: var(--rd-display); font-size: 44px; font-weight: 600; color: var(--rd-ink); letter-spacing: -1.6px; line-height: 1; }
.rd-price-unit { font-size: 13px; color: var(--rd-ink-muted); }
.rd-price-validity { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--rd-accent-ink); background: var(--rd-accent-soft); padding: 4px 10px; border-radius: 999px; margin: 8px 0 4px; }
.rd-price-vspacer { height: 14px; }
.rd-price-note { font-size: 13px; color: var(--rd-ink-soft); line-height: 1.5; margin: 8px 0 22px; min-height: 38px; }
.rd-price-card a.rd-btn-block { margin-bottom: 24px; }
.rd-price-list { list-style: none; margin: 0; padding: 20px 0 0; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--rd-line-soft); }
.rd-price-list li { position: relative; padding-left: 28px; font-size: 13.5px; color: var(--rd-ink); line-height: 1.4; }
.rd-price-list li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 9px; background: var(--rd-accent-soft); color: var(--rd-accent-ink); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rd-price-foot { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: var(--rd-ink-soft); text-align: center; }
.rd-price-foot svg { color: var(--rd-ink-muted); flex-shrink: 0; }

.rd-teams { max-width: 1100px; margin: 0 auto; background: var(--rd-surface-alt); border: 1px solid var(--rd-line); border-radius: 16px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
#teams.rd-section { padding-bottom: 56px; }
.rd-teams h2 { font-family: var(--rd-display); font-size: 22px; font-weight: 500; color: var(--rd-ink); letter-spacing: -0.5px; margin: 0 0 6px; }
.rd-teams p { font-size: 14px; color: var(--rd-ink-soft); margin: 0; max-width: 560px; line-height: 1.5; }

.rd-faq-section { padding-bottom: 88px; padding-top: 8px; }
.rd-faq-title { font-family: var(--rd-display); font-size: 30px; font-weight: 500; color: var(--rd-ink); letter-spacing: -1px; text-align: center; margin: 0 0 28px; }
.rd-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.rd-faq-item { background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 12px; padding: 2px 18px; }
.rd-faq-item summary { list-style: none; cursor: pointer; padding: 15px 0; font-size: 14.5px; font-weight: 500; color: var(--rd-ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rd-faq-item summary::-webkit-details-marker { display: none; }
.rd-faq-item summary::after { content: '+'; font-size: 18px; color: var(--rd-ink-muted); font-weight: 400; flex-shrink: 0; }
.rd-faq-item[open] summary::after { content: '−'; }
.rd-faq-a { font-size: 13.5px; color: var(--rd-ink-soft); line-height: 1.6; padding: 0 0 16px; max-width: 660px; }

@media (max-width: 900px) {
  .rd-price-hero { padding: 48px 20px 8px; }
  .rd-price-hero h1 { font-size: 34px; }
  .rd-price-grid { grid-template-columns: 1fr; }
  .rd-price-card.is-featured { margin-top: 0; }
  .rd-teams { flex-direction: column; align-items: flex-start; }
}

/* ── CV-Manage ── */
.rd-manage-head { display: flex; gap: 24px; align-items: center; margin-bottom: 28px; padding: 28px; box-shadow: 0 1px 2px rgba(20,30,50,0.04), 0 14px 30px -22px rgba(20,30,50,0.10); }
.rd-manage-thumb { width: 64px; height: 80px; border-radius: 6px; background: var(--rd-surface-alt); border: 1px solid var(--rd-line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rd-manage-meta { flex: 1; min-width: 0; }
.rd-manage-name { font-family: var(--rd-display); font-size: 26px; font-weight: 500; color: var(--rd-ink); letter-spacing: -0.6px; margin-top: 4px; }
.rd-manage-actions { display: flex; gap: 8px; flex-shrink: 0; }
.rd-manage-grid { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.rd-manage-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 88px; align-self: flex-start; }
.rd-mnav { padding: 8px 12px; border-radius: 7px; background: transparent; border: 1px solid transparent; cursor: pointer; font-family: inherit; text-align: left; font-size: 13.5px; color: var(--rd-ink-soft); }
.rd-mnav.is-active { background: var(--rd-surface); border-color: var(--rd-line); color: var(--rd-ink); font-weight: 500; }
.rd-seccard { padding: 24px 26px; box-shadow: 0 1px 2px rgba(20,30,50,0.04), 0 14px 30px -22px rgba(20,30,50,0.10); }
.rd-sec-title { font-family: var(--rd-display); font-size: 20px; font-weight: 500; color: var(--rd-ink); letter-spacing: -0.4px; margin: 0; }
.rd-sec-sub { font-size: 13px; color: var(--rd-ink-soft); margin: 4px 0 18px; }
.rd-field { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rd-line-soft); }
.rd-field-label { font-size: 12.5px; color: var(--rd-ink-soft); }
.rd-field-val { font-size: 13.5px; color: var(--rd-ink); }
.rd-mono { font-family: var(--rd-mono); }
.rd-field-block { padding: 14px 0; }
.rd-summary { font-size: 13.5px; color: var(--rd-ink); line-height: 1.6; margin: 8px 0 0; }
.rd-note { margin-top: 16px; padding: 14px 16px; background: var(--rd-surface-alt); border-radius: 8px; font-size: 12.5px; color: var(--rd-ink-soft); line-height: 1.55; }
.rd-exp-list, .rd-edu-list { display: flex; flex-direction: column; gap: 10px; }
.rd-exp-row { padding: 14px 16px; background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 8px; display: flex; align-items: center; gap: 14px; }
.rd-edu-row { padding: 16px 18px; background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 8px; }
.rd-exp-logo { width: 32px; height: 32px; border-radius: 7px; background: var(--rd-surface-alt); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--rd-ink-soft); flex-shrink: 0; }
.rd-exp-main { flex: 1; min-width: 0; }
.rd-exp-title { font-size: 14px; font-weight: 500; color: var(--rd-ink); letter-spacing: -0.2px; }
.rd-exp-sub { font-size: 12.5px; color: var(--rd-ink-soft); margin-top: 2px; }

@media (max-width: 900px) {
  .rd-sum { padding: 24px 20px 64px; }
  .rd-manage-grid { grid-template-columns: 1fr; }
  .rd-manage-nav { flex-direction: row; flex-wrap: wrap; position: static; }
}

/* Auth buttons carry .rd-btn (display:inline-flex), which would override
   app.css's `.u-login{display:none}`. Re-assert guest/user visibility with
   higher specificity so the Sign-in / Start-free buttons only show to guests. */
.is-user .u-login { display: none !important; }
.is-guest .u-login { display: inline-flex !important; }
/* Show the logged-in dashboard immediately (no opacity fade that can read as faded). */
.rd-landing .workspace { transition: none; }
.rd-landing .workspace.active { opacity: 1; transform: none; }

/* ── Competitor comparison (pricing / compare page) ─────────────────── */
.rd-cmp-section { padding-top: 8px; padding-bottom: 88px; }
.rd-cmp { max-width: 1040px; margin: 0 auto; }
.rd-cmp-head { text-align: center; margin-bottom: 40px; }
.rd-cmp-head .rd-eyebrow { margin-bottom: 14px; }
.rd-cmp-head h2 { font-family: var(--rd-display); font-size: 42px; font-weight: 500; letter-spacing: -1.4px; line-height: 1.08; color: var(--rd-ink); margin: 0 auto 16px; max-width: 680px; text-wrap: balance; }
.rd-cmp-head p { font-size: 16px; color: var(--rd-ink-soft); line-height: 1.5; margin: 0 auto; max-width: 540px; text-wrap: pretty; }
.rd-cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rd-cmp-table { position: relative; background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 16px; box-shadow: 0 1px 2px rgba(20,30,50,0.04), 0 12px 32px -16px rgba(20,30,50,0.1); padding: 8px 24px 24px; }
.rd-cmp-row { display: grid; grid-template-columns: 1.5fr 1.15fr 0.95fr 0.95fr 0.95fr; }
.rd-cmp-2col .rd-cmp-row { grid-template-columns: 1.4fr 1.1fr 1.1fr; }
/* Comparison/landing prose + CTA band (vs-*, best-resume-tools, for-ai-agents) */
.rd-prose { max-width: 760px; }
.rd-prose h2 { font-size: 26px; margin: 0 0 12px; color: var(--rd-ink); }
.rd-prose h3 { font-size: 18px; margin: 26px 0 8px; color: var(--rd-ink); }
.rd-prose p { font-size: 16px; line-height: 1.65; color: var(--rd-ink-soft); margin: 0 0 14px; }
.rd-cta-band { max-width: 760px; margin: 0 auto; text-align: center; background: var(--rd-accent-soft); border: 1px solid var(--rd-accent); border-radius: 16px; padding: 36px 28px; }
.rd-cta-band h2 { font-size: 24px; margin: 0 0 8px; color: var(--rd-accent-ink); }
.rd-cta-band p { font-size: 14px; color: var(--rd-ink-soft); margin: 0 0 18px; }
/* Agent-facing page (for-ai-agents) */
.rd-prose .rd-agent-list { margin: 0 0 14px; padding-left: 20px; }
.rd-prose .rd-agent-list li { font-size: 15px; line-height: 1.6; color: var(--rd-ink-soft); margin-bottom: 8px; }
.rd-prose code { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 5px; padding: 1px 5px; }
.rd-agent-table-wrap { overflow-x: auto; margin: 8px 0 6px; }
.rd-agent-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; }
.rd-agent-table th, .rd-agent-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rd-line-soft); vertical-align: top; }
.rd-agent-table th { color: var(--rd-ink-muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.rd-agent-table tbody tr:first-child { background: var(--rd-accent-soft); }
.rd-cmp-row.is-head { align-items: end; border-bottom: 1px solid var(--rd-line); }
.rd-cmp-row.is-body { align-items: center; border-bottom: 1px solid var(--rd-line-soft); }
.rd-cmp-row.is-body:last-child { border-bottom: none; }
/* MaxCV highlighted column band */
.rd-cmp-mx-head { background: var(--rd-accent-soft); border-radius: 12px 12px 0 0; border-left: 1.5px solid var(--rd-accent); border-right: 1.5px solid var(--rd-accent); border-top: 1.5px solid var(--rd-accent); padding: 18px 12px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; margin-top: 18px; }
.rd-cmp-mx-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.3px; padding: 4px 11px; border-radius: 999px; background: var(--rd-accent); color: #fff; white-space: nowrap; box-shadow: 0 4px 12px color-mix(in oklch, var(--rd-accent) 27%, transparent); }
.rd-cmp-mx-name { font-family: var(--rd-display); font-size: 19px; font-weight: 700; color: var(--rd-ink); letter-spacing: -0.4px; }
.rd-cmp-mx-name span { color: var(--rd-accent); }
.rd-cmp-comp-head { padding: 18px 8px 16px; text-align: center; font-family: var(--rd-display); font-size: 16px; font-weight: 600; color: var(--rd-ink-soft); letter-spacing: -0.3px; }
.rd-cmp-label { padding: 22px 18px 22px 4px; }
.rd-cmp-label-t { font-size: 15px; font-weight: 600; color: var(--rd-ink); letter-spacing: -0.2px; line-height: 1.25; }
.rd-cmp-label-s { font-size: 12.5px; color: var(--rd-ink-soft); margin-top: 2px; }
.rd-cmp-mx { background: var(--rd-accent-soft); border-left: 1.5px solid var(--rd-accent); border-right: 1.5px solid var(--rd-accent); padding: 22px 14px; display: flex; align-items: center; justify-content: center; align-self: stretch; }
.rd-cmp-row.is-body:last-child .rd-cmp-mx { border-bottom: 1.5px solid var(--rd-accent); border-radius: 0 0 12px 12px; }
.rd-cmp-cell { padding: 22px 10px; display: flex; align-items: center; justify-content: center; align-self: stretch; }
/* Price cells */
.rd-cmp-price { text-align: center; line-height: 1.4; }
.rd-cmp-price .l1 { font-size: 13px; font-weight: 700; color: var(--rd-accent-ink); margin-bottom: 4px; }
.rd-cmp-price .l2 { font-size: 12.5px; color: var(--rd-ink); font-weight: 500; }
.rd-cmp-price .l3 { font-size: 12.5px; color: var(--rd-ink); font-weight: 500; }
.rd-cmp-price .l4 { font-size: 11px; color: var(--rd-ink-soft); margin-top: 4px; }
.rd-cmp-price .l5 { font-size: 11px; color: var(--rd-ink-soft); margin-top: 4px; }
.rd-cmp-price .promo { color: var(--rd-accent-ink); font-weight: 700; }
.rd-cmp-price .c1 { font-size: 13px; font-weight: 600; color: var(--rd-ink); }
.rd-cmp-price .c2 { font-size: 12px; color: var(--rd-ink-soft); }
.rd-cmp-price .c3 { font-size: 10.5px; color: var(--rd-ink-muted); margin-top: 2px; }
/* Yes / No markers */
.rd-cmp-mark { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rd-cmp-mark .yes-i { width: 26px; height: 26px; border-radius: 13px; background: var(--rd-accent); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rd-cmp-mark .no-i { width: 26px; height: 26px; border-radius: 13px; background: var(--rd-surface-alt); color: var(--rd-ink-muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--rd-line); }
.rd-cmp-mark .yes-l { font-size: 11.5px; font-weight: 600; color: var(--rd-accent-ink); }
.rd-cmp-mark .no-l { font-size: 11.5px; color: var(--rd-ink-muted); line-height: 1.3; text-align: center; }
.rd-cmp-validity { margin-top: 18px; text-align: center; font-size: 11.5px; color: var(--rd-ink-muted); text-wrap: pretty; }
.rd-cmp-foot { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 11.5px; color: var(--rd-ink-muted); text-align: center; text-wrap: pretty; }
@media (max-width: 760px) {
  .rd-cmp-section { padding-bottom: 56px; }
  .rd-cmp-head h2 { font-size: 32px; }
  .rd-cmp-table { min-width: 620px; }
}

/* ============================================================
   CV-example / tailor-to-offer SEO pages (body.rd-cvx)
   Rendered by packages/api/src/render/cvExampleTemplate.ts.
   Scoped to .rd-cvx so it can't affect the app or other pages.
   ============================================================ */
.rd-cvx main { padding-bottom: 64px; }
.rd-cvx .rd-section { padding-top: 40px; padding-bottom: 8px; }
.rd-cvx .rd-hero { padding: 48px 48px 8px; }

/* Breadcrumb */
.rd-cvx .rd-breadcrumb {
  font-size: 13px; color: var(--rd-ink-muted);
  padding-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.rd-cvx .rd-breadcrumb a { color: var(--rd-ink-soft); text-decoration: none; }
.rd-cvx .rd-breadcrumb a:hover { color: var(--rd-accent-ink); text-decoration: underline; }
.rd-cvx .rd-breadcrumb span { color: var(--rd-ink); }

/* Language alternate link in header */
.rd-cvx .rd-lang-alt {
  font-size: 13px; font-weight: 600; color: var(--rd-ink-soft);
  text-decoration: none; padding: 6px 10px; border: 1px solid var(--rd-line);
  border-radius: 8px; margin-right: 10px; white-space: nowrap;
}
.rd-cvx .rd-lang-alt:hover { color: var(--rd-accent-ink); border-color: var(--rd-accent); }

/* Lists inside prose section bodies */
.rd-cvx .rd-prose ul { margin: 0 0 16px; padding-left: 22px; }
.rd-cvx .rd-prose li { font-size: 16px; line-height: 1.6; color: var(--rd-ink-soft); margin-bottom: 8px; }
.rd-cvx .rd-prose li strong { color: var(--rd-ink); }

/* Tailored-CV variant cards grid */
.rd-cvx .rd-card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin-top: 20px;
}
.rd-cvx .rd-card-grid .rd-card { display: flex; flex-direction: column; gap: 8px; }
.rd-cvx .rd-card-grid .rd-card h3 { font-size: 16px; margin: 0; color: var(--rd-ink); }
.rd-cvx .rd-card-grid .rd-card p { font-size: 14px; line-height: 1.5; color: var(--rd-ink-soft); margin: 0 0 8px; flex: 1; }
.rd-cvx .rd-card-grid .rd-card .rd-btn { align-self: flex-start; }

/* Related-role rail */
.rd-cvx .rd-related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.rd-cvx .rd-related a {
  font-size: 14px; font-weight: 500; color: var(--rd-ink); text-decoration: none;
  background: var(--rd-surface); border: 1px solid var(--rd-line);
  border-radius: 999px; padding: 8px 16px;
}
.rd-cvx .rd-related a:hover { border-color: var(--rd-accent); color: var(--rd-accent-ink); background: var(--rd-accent-soft); }

/* Section headings on the example/related blocks (not in .rd-prose) */
.rd-cvx .rd-section > h2 { font-size: 24px; margin: 0 0 4px; color: var(--rd-ink); font-family: var(--rd-display); }

/* Hub list */
.rd-related-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rd-related-list a { color: var(--rd-accent-ink); text-decoration: none; }
.rd-related-list a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .rd-cvx .rd-section { padding-left: 22px; padding-right: 22px; }
  .rd-cvx .rd-hero { padding-left: 22px; padding-right: 22px; }
}

/* ============================================================
   Pulpit C — logged-in "command center" (design_handoff_pulpit_c)
   Dark command band + composer, card grid with inline detail,
   rows view for many matches.
   ============================================================ */

:root {
  --rd-dark: oklch(0.22 0.02 240);
  --rd-dark-2: oklch(0.27 0.02 240);
  --rd-dark-line: oklch(0.32 0.02 240);
  --rd-dark-line-2: oklch(0.36 0.02 240);
  --rd-dark-text: oklch(0.75 0.02 240);
  --rd-dark-muted: oklch(0.6 0.02 240);
  --rd-dark-muted-2: oklch(0.65 0.02 240);
  --rd-accent-on-dark: oklch(0.78 0.12 155);
  --rd-dot-on-dark: oklch(0.72 0.14 155);
}

/* In-app mode: the dark band carries its own header (logo / credits / avatar),
   so the shared site-header is hidden while the logged-in app is on screen. */
body.in-app .site-header { display: none !important; }

/* ── Dark command band ───────────────────────────────────── */
.rd-band { background: var(--rd-dark); color: #fff; font-family: var(--rd-sans); width: 100%; }
.rd-band a { cursor: pointer; }
.rd-band-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; border-bottom: 1px solid var(--rd-dark-line); }
.rd-band-brand { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.rd-band-brand .rd-logo-mark { width: 24px; height: 24px; border-radius: 12px; }
.rd-band-word { font-family: var(--rd-display); font-weight: 600; font-size: 16px; letter-spacing: -0.3px; color: #fff; }
.rd-band-word .rd-tld { color: var(--rd-accent-on-dark); }
.rd-band-right { display: flex; align-items: center; gap: 14px; }
.rd-band-credits { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--rd-dark-text); }
.rd-band-credits .rd-spill-dot { background: var(--rd-dot-on-dark); }
.rd-band-credits.is-out { color: oklch(0.78 0.12 55); }
.rd-band-credits.is-out .rd-spill-dot { background: var(--rd-warn); }

/* avatar + dropdown menu (carries the old header file-menu functions) */
.rd-avatar-wrap { position: relative; }
.rd-avatar { width: 28px; height: 28px; border-radius: 14px; background: var(--rd-dark-2); border: 1px solid var(--rd-dark-line-2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; font-family: var(--rd-display); cursor: pointer; flex-shrink: 0; padding: 0; }
.rd-avatar:hover { border-color: var(--rd-dark-muted); }
.rd-avatar-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: var(--rd-surface); color: var(--rd-ink); border: 1px solid var(--rd-line); border-radius: 12px; box-shadow: 0 1px 2px rgba(20,30,50,0.06), 0 18px 40px -16px rgba(20,30,50,0.25); padding: 6px; display: none; z-index: 60; }
.rd-avatar-wrap.is-open .rd-avatar-menu { display: block; }
.rd-amenu-info { padding: 7px 10px; font-size: 12px; color: var(--rd-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-amenu-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--rd-ink); background: none; border: none; cursor: pointer; font-family: inherit; text-decoration: none; box-sizing: border-box; }
.rd-amenu-item:hover { background: var(--rd-surface-alt); }
.rd-amenu-item.is-danger { color: oklch(0.5 0.16 25); }
.rd-amenu-div { height: 1px; background: var(--rd-line-soft); margin: 5px 4px; }
.rd-amenu-lang { display: flex; gap: 4px; padding: 4px 10px 6px; }
.rd-amenu-lang button { flex: 1; border: 1px solid var(--rd-line); background: var(--rd-surface); border-radius: 7px; font-size: 11px; font-weight: 600; letter-spacing: 0.4px; color: var(--rd-ink-muted); padding: 5px 0; cursor: pointer; text-transform: uppercase; font-family: inherit; }
.rd-amenu-lang button.is-active { background: var(--rd-ink); border-color: var(--rd-ink); color: #fff; }

/* band content: full (greeting + composer) vs slim (composer only) */
.rd-band-inner { max-width: 816px; margin: 0 auto; padding: 34px 28px; text-align: center; box-sizing: border-box; }
.rd-band.is-slim .rd-band-inner { max-width: 936px; padding: 20px 28px 24px; }
.rd-band-greet { font-family: var(--rd-display); font-size: 26px; font-weight: 500; letter-spacing: -0.6px; margin: 0 0 18px; color: #fff; line-height: 1.25; }
.rd-band-greet .rd-band-q { color: var(--rd-dark-muted-2); }

.rd-composer { display: flex; gap: 0; background: var(--rd-dark-2); border: 1px solid var(--rd-dark-line-2); border-radius: 13px; padding: 6px; box-shadow: 0 12px 32px -12px rgba(0,0,0,0.5); }
.rd-band.is-slim .rd-composer { border-radius: 12px; padding: 5px; }
.rd-composer-field { flex: 1; display: flex; align-items: center; gap: 11px; padding: 0 14px; min-width: 0; }
.rd-band.is-slim .rd-composer-field { padding: 0 13px; }
.rd-composer-icon { color: var(--rd-dark-muted); display: flex; flex-shrink: 0; }
.rd-composer input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; font-family: var(--rd-mono); font-size: 13.5px; color: #fff; padding: 0; }
.rd-band.is-slim .rd-composer input { font-size: 13px; }
.rd-composer input::placeholder { color: var(--rd-dark-muted); }
.rd-composer-btn { background: var(--rd-accent); color: #fff; border: none; cursor: pointer; font-family: var(--rd-sans); font-weight: 600; font-size: 14px; padding: 12px 22px; border-radius: 9px; white-space: nowrap; }
.rd-band.is-slim .rd-composer-btn { font-size: 13.5px; padding: 10px 19px; border-radius: 8px; }
.rd-composer-btn:hover:not(:disabled) { background: oklch(0.48 0.12 155); }
.rd-composer-btn:disabled { background: var(--rd-dark-line-2); color: var(--rd-dark-muted); cursor: not-allowed; }

.rd-band-sub { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 13px; font-size: 12px; color: var(--rd-dark-muted); flex-wrap: wrap; }
.rd-band.is-slim .rd-band-sub { gap: 14px; margin-top: 10px; font-size: 11.5px; white-space: nowrap; }
.rd-band-sub a { color: var(--rd-dark-text); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.rd-band-sub .rd-band-cv { display: inline-flex; align-items: center; gap: 6px; }
.rd-band-sub .rd-band-cv svg { flex-shrink: 0; }

/* out of credits bar (under the composer) */
.rd-nocredits { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 14px; border-radius: 10px; background: oklch(0.3 0.04 55 / 0.4); border: 1px solid oklch(0.45 0.08 55); flex-wrap: wrap; justify-content: center; }
.rd-nocredits-msg { font-size: 12.5px; color: oklch(0.85 0.06 55); font-weight: 500; }
.rd-nocredits .rd-btn { font-size: 12px; padding: 6px 11px; border-radius: 7px; font-weight: 600; }
.rd-nocredits .rd-btn-white { background: #fff; color: var(--rd-ink); border: none; }
.rd-nocredits .rd-btn-white:hover { background: oklch(0.93 0.005 240); }
.rd-nocredits .rd-btn-outline { background: transparent; color: oklch(0.85 0.06 55); border: 1px solid oklch(0.45 0.08 55); }

/* ── Light body / section ────────────────────────────────── */
.rd-cmain { max-width: 1076px; width: 100%; margin: 0 auto; padding: 26px 28px 40px; box-sizing: border-box; }
.rd-csec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rd-csec-title { font-family: var(--rd-display); font-size: 17px; font-weight: 600; letter-spacing: -0.3px; color: var(--rd-ink); white-space: nowrap; }
.rd-csec-meta { font-size: 12.5px; color: var(--rd-ink-muted); white-space: nowrap; }

/* ── Card grid ───────────────────────────────────────────── */
.rd-cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* company logo placeholder (2 letters) */
.rd-clogo { width: 36px; height: 36px; border-radius: 9px; background: var(--rd-surface-alt); border: 1px solid var(--rd-line); display: flex; align-items: center; justify-content: center; font-family: var(--rd-display); font-weight: 600; font-size: 12px; color: var(--rd-ink-soft); flex-shrink: 0; }
.rd-clogo.is-lg { width: 42px; height: 42px; border-radius: 10px; font-size: 13.5px; }
.rd-clogo.is-sm { width: 32px; height: 32px; border-radius: 8px; font-size: 11px; }

/* score pair: before (struck) → after */
.rd-scorepair { display: inline-flex; align-items: center; gap: 7px; font-family: var(--rd-display); font-weight: 600; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.rd-sp-before { color: var(--rd-ink-muted); text-decoration: line-through; text-decoration-color: oklch(0.8 0.01 240); font-weight: 500; }
.rd-sp-arrow { color: var(--rd-ink-muted); display: inline-flex; }
.rd-sp-after { color: var(--rd-accent-ink); }

/* status pill */
.rd-spill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.rd-spill-dot { width: 6px; height: 6px; border-radius: 3px; flex-shrink: 0; }
.rd-spill.is-new { background: var(--rd-accent-soft); color: var(--rd-accent-ink); }
.rd-spill.is-new .rd-spill-dot { background: var(--rd-accent); }
.rd-spill.is-dl { background: var(--rd-surface-alt); color: var(--rd-ink-muted); }
.rd-spill.is-review { background: var(--rd-warn-soft); color: var(--rd-warn); }
.rd-spill.is-tailoring { background: var(--rd-surface-alt); color: var(--rd-ink-muted); }
.rd-spill.is-error { background: oklch(0.96 0.04 25); color: oklch(0.55 0.16 25); }

/* match card (overrides legacy .match-card look) */
.match-card.rd-ccard { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; gap: 13px; padding: 18px; background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 12px; box-shadow: none; animation: none; cursor: pointer; margin: 0; }
.match-card.rd-ccard:hover { border-color: oklch(0.86 0.01 240); }
.rd-ccard-top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.rd-ccard-main { flex: 1; min-width: 0; }
.rd-ccard-title { font-size: 14px; font-weight: 600; color: var(--rd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-ccard-co { font-size: 12px; color: var(--rd-ink-muted); margin-top: 1px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.rd-extlink { display: inline-flex; align-items: center; gap: 3px; color: var(--rd-ink-soft); cursor: pointer; text-decoration: none; flex-shrink: 0; }
.rd-extlink:hover { color: var(--rd-ink); }
.rd-ccard-ats { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.rd-ccard-ats-label { font-size: 11.5px; color: var(--rd-ink-muted); font-weight: 500; }
.rd-deltabar { position: relative; height: 6px; border-radius: 3px; background: var(--rd-line-soft); overflow: hidden; }
.rd-deltabar-after { position: absolute; left: 0; top: 0; bottom: 0; background: var(--rd-accent-soft); border-radius: 3px; }
.rd-deltabar-before { position: absolute; left: 0; top: 0; bottom: 0; background: var(--rd-accent); border-radius: 3px; }
.rd-ccard-btns { display: flex; gap: 8px; margin-top: 2px; }
.rd-cbtn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--rd-sans); font-size: 12px; font-weight: 600; padding: 7px 11px; border-radius: 7px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.rd-cbtn-primary { background: var(--rd-accent); color: #fff; }
.rd-cbtn-primary:hover:not(:disabled) { background: oklch(0.48 0.12 155); }
.rd-cbtn-ghost { background: var(--rd-surface); border-color: var(--rd-line); color: var(--rd-ink); font-weight: 500; }
.rd-cbtn-ghost:hover:not(:disabled) { background: var(--rd-surface-alt); }
.rd-cbtn:disabled { background: var(--rd-surface-alt); color: var(--rd-ink-muted); cursor: not-allowed; border-color: transparent; }

/* in-flight tailoring state inside a card */
.rd-ccard-progressrow { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--rd-ink-muted); min-width: 0; }
.rd-ccard-progressrow .rd-mono-label { font-family: var(--rd-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.rd-cprog { flex: 1; height: 6px; border-radius: 3px; background: var(--rd-line-soft); overflow: hidden; }
.rd-cprog-fill { width: 5%; height: 100%; background: var(--rd-accent); transition: width .3s; }
.match-card.rd-ccard.loading-card { cursor: default; pointer-events: auto; }

/* ── Rows view (many matches) ────────────────────────────── */
.rd-crows { display: flex; flex-direction: column; gap: 10px; }
.rd-crowcard { background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 12px; overflow: hidden; }
.match-card.rd-crow { display: flex; align-items: center; flex-wrap: nowrap; justify-content: flex-start; gap: 13px; padding: 12px 18px; background: var(--rd-surface); border: none; border-bottom: 1px solid var(--rd-line-soft); border-radius: 0; box-shadow: none; animation: none; cursor: pointer; margin: 0; }
.match-card.rd-crow:last-child { border-bottom: none; }
.match-card.rd-crow:hover { background: var(--rd-surface-alt); }
.rd-crow-main { flex: 1; min-width: 0; }
.rd-crow-title { font-size: 13.5px; font-weight: 600; color: var(--rd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-crow-co { font-size: 12px; color: var(--rd-ink-muted); margin-top: 1px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.rd-crow-pillcol { width: 158px; display: flex; justify-content: flex-start; flex-shrink: 0; }
.rd-crow-acts { display: flex; gap: 5px; flex-shrink: 0; }
.rd-crow-act { width: 30px; height: 30px; padding: 0; border-radius: 7px; border: 1px solid var(--rd-line); background: var(--rd-surface); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--rd-ink-muted); }
.rd-crow-act:hover:not(:disabled) { background: var(--rd-surface-alt); }
.rd-crow-act.is-accent { color: var(--rd-accent-ink); }
.rd-crow-act:disabled { color: var(--rd-line); cursor: not-allowed; }
.rd-crow-prog { width: 110px; height: 4px; border-radius: 2px; background: var(--rd-line-soft); overflow: hidden; flex-shrink: 0; }
.rd-crow-prog .rd-cprog-fill { height: 100%; }

/* ── Expanded detail tile ────────────────────────────────── */
.rd-cexp { grid-column: 1 / -1; background: var(--rd-surface); border: 1px solid oklch(0.85 0.03 155); border-radius: 12px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(20,30,50,0.04), 0 18px 40px -24px rgba(20,30,50,0.14); display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; gap: 0; margin: 0; animation: rd-expand .2s ease; }
@keyframes rd-expand { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.rd-cexp-head { display: flex; align-items: center; gap: 13px; min-width: 0; }
.rd-cexp-main { flex: 1; min-width: 0; }
.rd-cexp-titlerow { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rd-cexp-title { font-family: var(--rd-display); font-size: 16.5px; font-weight: 600; letter-spacing: -0.2px; color: var(--rd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-cexp-co { font-size: 12.5px; color: var(--rd-ink-muted); margin-top: 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rd-cexp-posting { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--rd-ink-soft); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.rd-cexp-collapse { width: 32px; height: 32px; padding: 0; border-radius: 8px; border: 1px solid var(--rd-line); background: var(--rd-surface); color: var(--rd-ink-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.rd-cexp-collapse:hover { background: var(--rd-surface-alt); }
.rd-cexp-collapse svg { transform: rotate(-90deg); }

/* review body */
.rd-cexp-body { margin-top: 16px; }
.rd-cexp-revhead { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.rd-cexp-eyebrow { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600; white-space: nowrap; color: var(--rd-ink-muted); }
.rd-cexp-eyebrow.is-accent { color: var(--rd-accent-ink); }
.rd-cexp-prog { flex: 1; height: 4px; border-radius: 2px; background: var(--rd-line-soft); overflow: hidden; }
.rd-cexp-prog-fill { height: 100%; background: var(--rd-accent); border-radius: 2px; transition: width .25s ease-out; }
.rd-cexp-count { font-size: 12px; font-weight: 600; color: var(--rd-ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }

.rd-prop { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rd-line-soft); }
.rd-prop-main { flex: 1; min-width: 0; }
.rd-prop-text { font-size: 13px; line-height: 1.5; color: var(--rd-ink); }
.rd-prop.is-decided .rd-prop-text { color: var(--rd-ink-soft); }
.rd-prop.is-rejected .rd-prop-text { text-decoration: line-through; text-decoration-color: oklch(0.45 0.13 25 / 0.45); }
.rd-prop-plus { font-family: var(--rd-mono); color: var(--rd-accent-ink); font-weight: 600; margin-right: 6px; }
.rd-prop-basis { font-size: 11.5px; color: var(--rd-ink-muted); margin-top: 3px; }
.rd-prop-acts { display: flex; gap: 6px; flex-shrink: 0; }
.rd-prop-btn { width: 32px; height: 32px; padding: 0; border-radius: 8px; border: 1px solid transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rd-prop-btn.is-yes { background: var(--rd-accent); color: #fff; }
.rd-prop-btn.is-yes:hover { background: oklch(0.48 0.12 155); }
.rd-prop-btn.is-no { background: var(--rd-surface); border-color: var(--rd-line); color: var(--rd-ink-soft); }
.rd-prop-btn.is-no:hover { background: var(--rd-surface-alt); }
.rd-prop-decided { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.rd-prop-mark { font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.rd-prop-mark.is-kept { color: var(--rd-accent-ink); }
.rd-prop-mark.is-dropped { color: var(--rd-ink-muted); }
.rd-prop-undo { background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 7px; font-size: 12px; padding: 5px 10px; color: var(--rd-ink-muted); cursor: pointer; font-family: inherit; }
.rd-prop-undo:hover { background: var(--rd-surface-alt); color: var(--rd-ink); }

/* post-review body */
.rd-cexp-changes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rd-cexp-changes li { display: flex; gap: 9px; font-size: 13px; line-height: 1.5; color: var(--rd-ink-soft); }
.rd-cexp-changes li .rd-li-check { color: var(--rd-accent-ink); display: flex; margin-top: 3px; flex-shrink: 0; }
.rd-cexp .rd-chips { margin-top: 13px; }
.rd-cexp .rd-chip { border-radius: 6px; padding: 4px 9px; font-weight: 500; font-size: 11.5px; }
.rd-cexp .rd-chip-add { background: var(--rd-accent-soft); color: var(--rd-accent-ink); }
.rd-cexp .rd-chip-kept { background: var(--rd-surface-alt); color: var(--rd-ink-soft); border: none; }
.rd-cexp .rd-chip-gap { background: var(--rd-warn-soft); color: var(--rd-warn); }
.rd-cexp-gapline { font-size: 12px; color: var(--rd-ink-soft); line-height: 1.55; margin-top: 10px; }

/* foot */
.rd-cexp-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rd-line-soft); flex-wrap: wrap; }
.rd-cexp-foot .rd-cbtn { flex: 0 0 auto; font-size: 13px; padding: 9px 18px; border-radius: 9px; }
.rd-cexp-hint { font-size: 11.5px; color: var(--rd-ink-muted); margin-left: auto; text-align: right; }

/* ── Empty state: first match in 3 steps ─────────────────── */
.rd-howhead { text-align: center; margin: 10px 0 18px; font-family: var(--rd-display); font-size: 17px; font-weight: 600; letter-spacing: -0.3px; color: var(--rd-ink); }
.rd-howsteps { display: flex; gap: 14px; }
.rd-howstep { flex: 1; background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 12px; padding: 18px; }
.rd-howstep-num { width: 28px; height: 28px; border-radius: 14px; background: var(--rd-accent-soft); color: var(--rd-accent-ink); display: flex; align-items: center; justify-content: center; font-family: var(--rd-display); font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.rd-howstep-title { font-size: 13.5px; font-weight: 600; color: var(--rd-ink); margin-bottom: 4px; }
.rd-howstep-sub { font-size: 12.5px; color: var(--rd-ink-soft); line-height: 1.5; }

/* error / mismatch cards rendered by app.js inside the grid */
.rd-cgrid .match-card:not(.rd-ccard):not(.rd-crow), .rd-crows .match-card:not(.rd-ccard):not(.rd-crow) { grid-column: 1 / -1; background: var(--rd-surface); border: 1px solid var(--rd-line); border-radius: 12px; box-shadow: none; animation: none; margin: 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .rd-band-header { padding: 12px 18px; }
  .rd-band-inner { padding: 26px 18px; }
  .rd-band.is-slim .rd-band-inner { padding: 16px 18px 20px; }
  .rd-cmain { padding: 20px 18px 36px; }
  .rd-cgrid { grid-template-columns: 1fr; }
  .rd-howsteps { flex-direction: column; }
  .rd-crow-pillcol { width: auto; }
  .rd-composer { flex-direction: column; gap: 6px; }
  .rd-composer-field { padding: 10px 12px 4px; }
  .rd-composer-btn { width: 100%; }
  .rd-cexp-head { flex-wrap: wrap; }
  .rd-cexp-foot { flex-direction: column; align-items: stretch; }
  .rd-cexp-hint { margin-left: 0; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-cexp { animation: none; }
  .rd-cexp-prog-fill, .rd-cprog-fill { transition: none; }
}
