/* ===========================================================
   CUP Resume Rater — Editorial minimalism
   =========================================================== */

:root {
  /* Color */
  --bg: #FAFAF7;
  --bg-quiet: #F4F2EC;
  --ink: #0E0E0C;
  --ink-soft: #2A2A26;
  --muted: #6B675F;
  --rule: #E6E2D8;
  --accent: #1E3A5F;
  --accent-ink: #FAFAF7;
  --dark: #14161A;
  --dark-soft: #1C1F24;

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --rad: 14px;
  --rad-sm: 8px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ----------- Layout helpers ----------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: 820px; }
.center { text-align: center; }

.section {
  padding: clamp(72px, 10vw, 128px) 0;
  position: relative;
}
.section--quiet { background: var(--bg-quiet); }
.section--dark { background: var(--dark); color: #E9E7E2; }
.section--cta {
  padding: clamp(96px, 14vw, 160px) 0;
  background: var(--bg-quiet);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section__head {
  max-width: 760px;
  margin: 0 0 clamp(40px, 6vw, 72px);
}

/* ----------- Typography ----------- */
.display {
  font-family: var(--display);
  font-weight: 360;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(40px, 7vw, 84px);
  margin: 0 0 24px;
}
.display em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 50; }
.display--cta { font-size: clamp(36px, 6vw, 64px); margin: 12px 0 32px; }

.h2 {
  font-family: var(--display);
  font-weight: 380;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.018em;
  line-height: 1.08;
  font-size: clamp(28px, 4.2vw, 48px);
  margin: 0 0 20px;
}
.h2--light { color: #F1EFEA; }

.h3 {
  font-family: var(--display);
  font-weight: 420;
  letter-spacing: -0.012em;
  line-height: 1.15;
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0 0 12px;
}

.h4 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
  color: var(--ink);
}

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 32px;
}
.lead--light { color: #BDBAB2; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.eyebrow--light { color: #8E8B82; }

/* ----------- Buttons ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--invert { background: var(--bg); color: var(--ink); }
.btn--invert:hover { background: var(--accent); color: var(--bg); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--lg { padding: 18px 30px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

/* ----------- NAV ----------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,247,0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--rule); }
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo__mark { width: 26px; height: 26px; color: currentColor; }
.logo__word {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.06em;
}
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ----------- HERO ----------- */
.hero {
  padding: clamp(72px, 12vw, 140px) 0 clamp(60px, 10vw, 120px);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 18px; }
.hero__note { color: var(--muted); font-size: 14px; margin: 0; }

/* Score card visual */
.card {
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  background: #fff;
  padding: 28px;
  box-shadow: 0 1px 0 rgba(14,14,12,0.02), 0 24px 48px -28px rgba(14,14,12,0.18);
}
.card--score { max-width: 380px; margin-left: auto; }
@media (max-width: 880px) { .card--score { margin: 0 auto; } }
.card__head {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 22px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.score { display: flex; align-items: baseline; gap: 6px; }
.score__num {
  font-family: var(--display);
  font-weight: 360;
  font-variation-settings: "opsz" 144;
  font-size: 88px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.score__den { color: var(--muted); font-size: 18px; }
.bar {
  margin-top: 18px;
  height: 4px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: var(--accent);
  border-radius: 999px;
  transform-origin: left;
}
.bar--light { background: rgba(255,255,255,0.12); }
.bar--light span { background: #EDEAE3; }

.score__lines {
  margin-top: 22px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.score__lines li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.score__lines li:first-child { border-top: 0; padding-top: 0; }
.score__lines b { font-weight: 600; color: var(--ink); }

/* ----------- PROBLEM ----------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(32px, 5vw, 56px);
}
@media (max-width: 720px) { .problem-grid { grid-template-columns: 1fr; } }
.stat {
  font-family: var(--display);
  font-weight: 360;
  font-variation-settings: "opsz" 144;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

/* ----------- STEPS ----------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  counter-reset: step;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { padding-top: 24px; border-top: 1px solid var(--rule); }
.step__num {
  font-family: var(--display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 18px;
}

/* ----------- SPLIT (Civilian / Federal) ----------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: clamp(32px, 5vw, 56px);
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split__col {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: clamp(28px, 4vw, 44px);
}
.split__col--accent {
  background: var(--ink);
  color: #E9E7E2;
  border-color: var(--ink);
}
.split__col--accent .h3 { color: #F1EFEA; }
.split__col--accent .muted { color: #A19D94; }
.ticks { display: grid; gap: 10px; margin-top: 18px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 1px;
  background: var(--accent);
}
.split__col--accent .ticks li { color: #D7D4CD; }
.split__col--accent .ticks li::before { background: #E9E7E2; }
.ticks--light li { color: #D7D4CD; }
.ticks--light li::before { background: #E9E7E2; }

/* ----------- TIERS ----------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.tier {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: clamp(28px, 3.5vw, 40px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tier:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -34px rgba(14,14,12,0.22); }
.tier__tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.tier__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 18px;
}
.tier__price {
  display: flex; align-items: baseline; gap: 8px;
  margin: 0 0 8px;
}
.price__num {
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.price__tbd {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.price__currency {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  align-self: flex-start;
  margin-top: 6px;
}
.price__unit {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 4px;
}
.tier--featured .price__currency,
.tier--featured .price__unit { color: #A19D94; }
.tier__desc { margin: 4px 0 18px; font-size: 15px; }
.tier .ticks { flex: 1; margin-top: 6px; margin-bottom: 24px; }

.tier--featured {
  background: var(--ink);
  color: #E9E7E2;
  border-color: var(--ink);
  position: relative;
}
.tier--featured .tier__tag { color: #A8C0DC; }
.tier--featured .tier__name { color: #F1EFEA; }
.tier--featured .price__tbd { color: #A19D94; }
.tier--featured .tier__desc { color: #BFBCB4; }

/* ----------- WHO IT'S FOR ----------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid-4 { grid-template-columns: 1fr; } }
.who {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.who:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ----------- TWO COL (report / optimizer) ----------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.two-col--align { align-items: center; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.feature-list {
  display: grid;
  gap: 0;
}
.feature-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  font-size: 16px;
  color: var(--ink-soft);
}
.feature-list li:last-child { border-bottom: 1px solid var(--rule); }
.feature-list li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  display: inline-block;
  flex: 0 0 6px;
  transform: translateY(-2px);
}

/* ----------- OPTIMIZER BEFORE/AFTER ----------- */
.ba {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}
.ba__card {
  background: var(--dark-soft);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--rad);
  padding: 28px;
  color: #E9E7E2;
}
.ba__card--accent { background: var(--accent); border-color: var(--accent); }
.ba__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #A19D94;
  margin: 0 0 10px;
}
.ba__card--accent .ba__label { color: rgba(255,255,255,0.7); }
.ba__score {
  font-family: var(--display);
  font-weight: 360;
  font-variation-settings: "opsz" 144;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
}
.ba__score--muted { color: #8E8B82; }
.ba__arrow { width: 60px; height: 20px; color: #6B675F; }
@media (max-width: 540px) {
  .ba { grid-template-columns: 1fr; }
  .ba__arrow { transform: rotate(90deg); justify-self: center; }
}

/* ----------- FAQ ----------- */
.faq { margin-top: clamp(24px, 4vw, 40px); border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 36px 24px 0;
  font-family: var(--display);
  font-weight: 420;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.01em;
  position: relative;
  transition: color .25s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 14px; height: 14px;
  border-right: 1.4px solid var(--ink);
  border-bottom: 1.4px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item summary:hover { color: var(--accent); }
.faq__item p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  max-width: 68ch;
  line-height: 1.6;
}

/* ----------- FOOTER ----------- */
.footer {
  padding: 56px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px 32px;
}
.footer__tag {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; justify-self: end; }
.footer__links a { font-size: 14px; color: var(--ink-soft); }
.footer__links a:hover { color: var(--ink); }
.footer__fine {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; text-align: left; }
  .footer__links { justify-self: start; }
}

/* ----------- Reveal animation ----------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===========================================================
   FLOW (prototype) — screens 1–9 + modals
   =========================================================== */

/* When flow is active, hide the landing page chrome */
body.flow-active > .nav,
body.flow-active > main,
body.flow-active > .footer { display: none !important; }

#flow-root[hidden] { display: none; }
.flow { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }

/* ---- flow nav / breadcrumb ---- */
.flow-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250,250,247,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.flow-nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.breadcrumb { margin-left: auto; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb li {
  position: relative;
  padding: 0 14px;
  transition: color .25s var(--ease);
}
.breadcrumb li + li::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-50%) rotate(-45deg);
}
.breadcrumb li.is-current { color: var(--accent); font-weight: 600; }
.breadcrumb-mobile {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: none;
}
@media (max-width: 820px) {
  .breadcrumb { display: none; }
  .breadcrumb-mobile { display: block; }
}

/* ---- screen base ---- */
.flow-main { flex: 1; }
.screen {
  padding: clamp(56px, 8vw, 96px) 0 clamp(80px, 10vw, 128px);
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.screen.is-active {
  display: block;
  animation: screenIn .42s var(--ease) forwards;
}
@keyframes screenIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.flow-h1 {
  font-family: var(--display);
  font-weight: 360;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.018em;
  line-height: 1.04;
  font-size: clamp(34px, 5vw, 56px);
  margin: 12px 0 20px;
}

.flow-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 14px 24px;
  margin-bottom: 32px;
}
.flow-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.flow-head .flow-h1 { margin: 0; }
.flow-head .track-chip { justify-self: end; }
@media (max-width: 640px) {
  .flow-head { grid-template-columns: 1fr; }
  .flow-head .track-chip { justify-self: start; }
}

/* ---- SCREEN 1 · track ---- */
.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: clamp(40px, 5vw, 64px);
}
@media (max-width: 820px) { .track-grid { grid-template-columns: 1fr; } }

.track-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.track-card:hover,
.track-card:focus-visible {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -34px rgba(14,14,12,0.18);
  outline: none;
}
.track-icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 4px; }
.track-card__title {
  font-family: var(--display);
  font-weight: 380;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 0;
}
.track-card__sub { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
.track-card__list {
  display: grid;
  gap: 8px;
  margin: 8px 0 24px;
  font-size: 14.5px;
  color: var(--muted);
}
.track-card__list li {
  position: relative;
  padding-left: 22px;
}
.track-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}
.track-card__btn { margin-top: auto; }

/* ---- SCREEN 2 · upload ---- */
.track-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 16px;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
}
.track-chip > span:first-child {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.track-chip b { color: var(--ink); font-weight: 600; }
.track-chip__edit {
  font-size: 12px;
  color: var(--accent);
  border-left: 1px solid var(--rule);
  padding-left: 10px;
  margin-left: 4px;
}
.track-chip__edit:hover { text-decoration: underline; }

.dropzone {
  margin-top: 8px;
  border: 1.5px dashed var(--accent);
  background: #fff;
  border-radius: var(--rad);
  padding: clamp(56px, 8vw, 88px) 24px;
  text-align: center;
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.dropzone:hover,
.dropzone:focus-visible,
.dropzone.is-drag {
  background: var(--bg-quiet);
  outline: none;
}
.dropzone__icon { width: 56px; height: 56px; color: var(--accent); margin: 0 auto 18px; }
.dropzone__head {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.dropzone__sub {
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0;
}
.privacy-line {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

.file-card {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: 22px 22px 24px;
}
.file-card__row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.file-card__icon { width: 28px; height: 28px; color: var(--accent); flex: 0 0 28px; }
.file-card__name { margin: 0; font-weight: 600; font-size: 15px; }
.file-card__meta { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.file-card__remove {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 8px;
}
.file-card__remove:hover { color: var(--ink); }

/* ---- SCREEN 3 · analyze (also reused by optimizer) ---- */
.analyze-card {
  max-width: 560px;
  margin: 40px auto 0;
  padding: clamp(40px, 6vw, 64px) clamp(28px, 4vw, 48px);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  text-align: center;
}
.analyze-h1 { margin: 12px 0 28px; }
.analyze-status {
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 24px;
  min-height: 1.5em;
  transition: opacity .25s var(--ease);
}
.analyze-status.is-fading { opacity: 0; }
.progress {
  height: 2px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
}
.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width .4s linear;
}
.analyze-foot { margin: 0; }

/* ---- SCREEN 4 · score ---- */
.score-hero { margin-bottom: clamp(40px, 5vw, 64px); }
.score-big {
  font-family: var(--display);
  font-weight: 340;
  font-variation-settings: "opsz" 144, "SOFT" 20;
  font-size: clamp(96px, 16vw, 168px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 8px 0 12px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 12px;
}
.score-big__den {
  font-size: clamp(20px, 2vw, 28px);
  color: var(--muted);
  letter-spacing: -0.01em;
}
.tier-badge {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.tier-badge.center { display: block; max-width: max-content; margin: 0 auto; }
.tier-badge--elite { background: var(--accent); color: #fff; border-color: var(--accent); }

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
@media (max-width: 720px) { .signal-grid { grid-template-columns: 1fr; } }
.signal {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--rad);
}
.signal__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.signal__value {
  font-family: var(--display);
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 8px;
}
.signal__note { margin: 0; }

/* locked report preview */
.locked {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  background: #fff;
  overflow: hidden;
  min-height: 480px;
}
.locked__preview {
  padding: clamp(32px, 5vw, 56px);
  filter: blur(6px);
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
}
.locked__row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 16px;
  color: var(--ink-soft);
}
.locked__row:first-child { border-top: 0; }
.locked__num {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
}
.locked__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.locked__list { display: grid; gap: 10px; margin-top: 12px; font-size: 15px; color: var(--ink-soft); }

.locked__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250,250,247,0.55) 0%, rgba(250,250,247,0.95) 40%, var(--bg) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  gap: 14px;
}
.lock-icon { width: 38px; height: 38px; color: var(--accent); margin-bottom: 4px; }
.locked__head {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.018em;
  margin: 0;
}
.locked__sub { max-width: 44ch; margin: 0; }
.locked__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 4px;
}
.locked__price .price__num {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* chips (used in score + report) */
.chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-quiet);
  color: var(--ink-soft);
  font-size: 13px;
  border: 1px solid var(--rule);
}
.chip--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---- SCREEN 6 · report ---- */
.report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 64px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.meta-pill {
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 999px;
  color: var(--ink-soft);
}
.meta-pill b { color: var(--ink); margin-left: 4px; font-weight: 600; }
.meta-pill--tier { background: var(--ink); color: #fff; border-color: var(--ink); }

.report-block { margin: 0 0 clamp(48px, 6vw, 72px); }
.report-h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.018em;
  margin: 0 0 24px;
}

.section-rows {
  display: grid;
  gap: 0;
}
.section-rows li {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.section-rows li:last-child { border-bottom: 1px solid var(--rule); }
.sec-name { font-weight: 600; color: var(--ink); font-size: 15px; }
.sec-note { color: var(--muted); font-size: 14.5px; }
.sec-score {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}
@media (max-width: 640px) {
  .section-rows li { grid-template-columns: 1fr auto; }
  .sec-note { grid-column: 1 / -1; }
}

.kw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 720px) { .kw-grid { grid-template-columns: 1fr; } }
.kw-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.ats-list { display: grid; gap: 12px; }
.ats-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--ink-soft);
}
.ats__mark {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-block;
  position: relative;
}
.ats--ok .ats__mark::after {
  content: "";
  position: absolute;
  left: 1px; top: 6px;
  width: 6px; height: 10px;
  border-right: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(45deg);
}
.ats--flag .ats__mark {
  background: transparent;
}
.ats--flag .ats__mark::before,
.ats--flag .ats__mark::after {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 1.6px;
  background: #B23A2A;
}
.ats--flag .ats__mark::before { transform: rotate(45deg); }
.ats--flag .ats__mark::after { transform: rotate(-45deg); }

.rec-list { display: grid; gap: 0; counter-reset: rec; }
.rec-list > li {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.rec-list > li:last-child { border-bottom: 1px solid var(--rule); }
.rec-rank {
  font-family: var(--display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.rec-head { margin: 0 0 4px; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.rec-pts {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .rec-list > li { grid-template-columns: 36px 1fr; }
  .rec-pts { grid-column: 2 / 3; padding-top: 6px; }
}

.deploy-card {
  margin-top: clamp(48px, 6vw, 80px);
  background: var(--dark);
  color: #E9E7E2;
  border-radius: var(--rad);
  padding: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.deploy-card .h2 { margin: 0 0 12px; }
.deploy-card .lead { margin: 0; }
@media (max-width: 820px) {
  .deploy-card { grid-template-columns: 1fr; }
}

/* ---- SCREEN 8 · optimizer ---- */
.opt-banner {
  text-align: center;
  padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.opt-banner__score {
  font-family: var(--display);
  font-weight: 340;
  font-size: clamp(48px, 8vw, 88px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 14px 0 20px;
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.score-was { color: var(--muted); }
.score-now { color: var(--accent); }
.opt-arrow {
  width: 60px;
  height: 20px;
  color: var(--muted);
  align-self: center;
}
.opt-banner .tier-badge { margin: 0 auto; }

.diff-list { display: grid; gap: 18px; }
.diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  overflow: hidden;
}
@media (max-width: 720px) { .diff { grid-template-columns: 1fr; } }
.diff__side {
  padding: 24px 28px;
  background: #fff;
}
.diff__side--before {
  background: var(--bg-quiet);
  color: var(--muted);
  border-right: 1px solid var(--rule);
}
@media (max-width: 720px) {
  .diff__side--before { border-right: 0; border-bottom: 1px solid var(--rule); }
}
.diff__side--after { color: var(--ink); }
.diff__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: inherit;
  opacity: 0.85;
}
.diff__text { margin: 0; font-size: 15.5px; line-height: 1.55; }
.diff__text mark {
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1.5px solid var(--accent);
  padding: 0 1px;
}

.opt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 56px);
}

/* ---- SCREEN 9 · success ---- */
.success-mark {
  width: 64px;
  height: 64px;
  color: var(--accent);
  margin: 0 auto 24px;
}
.next-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0 0 48px;
  text-align: left;
}
@media (max-width: 640px) { .next-list { grid-template-columns: 1fr; } }
.next-list li {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--rad);
}
.next__head {
  font-family: var(--display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

/* ---- MODAL ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,14,12,0.46);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: backdropIn .25s var(--ease);
}
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: clamp(32px, 4vw, 44px) clamp(28px, 4vw, 44px) clamp(28px, 4vw, 36px);
  box-shadow: 0 40px 80px -32px rgba(14,14,12,0.4);
  animation: modalIn .32s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal__close:hover { background: var(--bg-quiet); color: var(--ink); }
.modal__close svg { width: 18px; height: 18px; }
.modal__title {
  font-family: var(--display);
  font-weight: 380;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 6px 0 14px;
}
.modal__sub { margin: 0 0 18px; font-size: 15px; }
.modal__list {
  display: grid;
  gap: 10px;
  margin: 6px 0 20px;
}
.modal__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--ink-soft);
}
.modal__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 12px; height: 1px;
  background: var(--accent);
}
.modal__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0 6px;
}
.modal__price .price__num {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.modal__actions .btn--primary { flex: 1 1 260px; }

/* lock scroll when modal open */
body.modal-open { overflow: hidden; }


/* ===========================================================
   v2 — Resume preview (Document / Parsed), upload redesign,
   inline optimized output, success cards, ghost-mode note
   =========================================================== */

/* Upload head — center column */
.upload-head {
  max-width: 760px;
  margin: 0 auto 36px;
}
.upload-head .flow-h1 { margin-top: 8px; }
.ghost-note {
  margin: 14px auto 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.center-chip { margin: 22px auto 0; justify-self: center; }

/* Centered dropzone variant */
.dropzone--centered {
  max-width: 760px;
  margin: 0 auto;
}

.privacy-line.center { text-align: center; }

/* Resume preview container — centerpiece */
.resume-preview {
  max-width: 860px;
  margin: 8px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Segmented toggle */
.toggle {
  display: inline-flex;
  background: var(--bg-quiet);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 24px;
  gap: 2px;
}
.toggle__opt {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 500 13.5px/1 var(--body);
  letter-spacing: 0.02em;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 220ms var(--ease), background 220ms var(--ease);
}
.toggle__opt:hover { color: var(--ink); }
.toggle__opt.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}
.toggle__opt:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Resume stage — holds Document and Parsed panes */
.resume-stage {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* --- Document view — styled like a real resume page --- */
.resume-doc {
  width: 100%;
  max-width: 760px;
  display: flex;
  justify-content: center;
}
.rdoc__page {
  background: #FFFFFF;
  border: 1px solid #ECE9DF;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: clamp(36px, 6vw, 60px);
  width: 100%;
  max-width: 720px;
  color: #1A1A18;
  border-radius: 4px;
}
.rdoc__head { margin-bottom: 18px; }
.rdoc__name {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.015em;
  font-size: clamp(26px, 3.5vw, 32px);
  line-height: 1.08;
  margin: 0 0 6px;
  color: #0E0E0C;
}
.rdoc__contact {
  font-family: var(--body);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: #4A463E;
  margin: 0 0 4px;
}
.rdoc__target {
  font-family: var(--body);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: #4A463E;
  margin: 4px 0 0;
  font-style: italic;
}
.rdoc__rule {
  border: 0;
  border-top: 1px solid #D8D3C5;
  margin: 16px 0 22px;
}
.rdoc__section { margin: 0 0 22px; }
.rdoc__h {
  font-family: var(--body);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #E8E4D9;
}
.rdoc__summary {
  font-family: var(--body);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  color: #1A1A18;
}
.rdoc__item { margin: 0 0 14px; }
.rdoc__item:last-child { margin-bottom: 0; }
.rdoc__role {
  font-family: var(--body);
  font-weight: 600;
  font-size: 13.5px;
  margin: 0 0 2px;
  color: #0E0E0C;
}
.rdoc__org {
  font-family: var(--body);
  font-size: 12.5px;
  color: #4A463E;
  margin: 0;
}
.rdoc__dates {
  font-family: var(--body);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: #6B675F;
  margin: 1px 0 6px;
  font-style: italic;
}
.rdoc__bullets {
  list-style: disc;
  padding-left: 18px;
  margin: 6px 0 0;
}
.rdoc__bullets li {
  font-family: var(--body);
  font-size: 12.5px;
  line-height: 1.55;
  color: #1A1A18;
  margin-bottom: 4px;
}
.rdoc__inline {
  font-family: var(--body);
  font-size: 12.5px;
  line-height: 1.55;
  color: #1A1A18;
  margin: 0;
}

/* --- Parsed view — clean structured sections, no doc chrome --- */
.resume-parsed {
  width: 100%;
  max-width: 720px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.rparsed__block {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: 18px 0 0;
}
.rparsed__block:first-child { border-top: 0; padding-top: 0; }
.rparsed__label {
  font-family: var(--body);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.rparsed__inline {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.rparsed__target { color: var(--muted); font-style: italic; font-size: 13px; }
.rparsed__item { margin: 0 0 14px; }
.rparsed__item:last-child { margin-bottom: 0; }
.rparsed__role {
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 2px;
}
.rparsed__dates { font-weight: 400; color: var(--muted); font-style: italic; font-size: 13px; }
.rparsed__org {
  font-family: var(--body);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}
.rparsed__bullets {
  list-style: disc;
  padding-left: 18px;
  margin: 8px 0 0;
}
.rparsed__bullets li {
  font-family: var(--body);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

/* Upload actions below preview */
.upload-actions {
  width: 100%;
  max-width: 720px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.file-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-quiet);
  border: 1px solid var(--rule);
  border-radius: var(--rad);
}
.file-meta-row > div { flex: 1; }
.file-meta-row .file-card__name { margin: 0; font-weight: 600; font-size: 14px; }
.file-meta-row .file-card__meta { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.link-quiet {
  background: none;
  border: 0;
  color: var(--muted);
  font: 500 13px/1 var(--body);
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
}
.link-quiet:hover { color: var(--ink); text-decoration: underline; }
.upload-actions .btn--primary { min-width: 280px; }

/* Optimized resume phase */
.optimized-head {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 720px;
}
.optimized-head .lead { margin-top: 12px; }
.optimized-actions {
  width: 100%;
  max-width: 720px;
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: relative;
}
.inline-toast {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translate(-50%, 4px);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
  pointer-events: none;
}
.inline-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Mobile tweaks */
@media (max-width: 720px) {
  .rdoc__page { padding: 28px 22px; }
  .resume-preview { max-width: 100%; }
  .upload-actions .btn--primary { width: 100%; }
  .optimized-actions .btn { flex: 1 1 100%; }
  .file-meta-row { flex-wrap: wrap; }
}

/* Ensure [hidden] wins over our flex/grid display values */
[hidden] { display: none !important; }

/* ============================================================
   JOB LINK INTELLIGENCE (v3)
   ============================================================ */

.eyebrow--accent { color: var(--accent); }

/* ---- Targeting strip (above score / report) ---- */
.targeting-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-quiet);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--rad-sm);
  margin: 0 auto clamp(28px, 4vw, 44px);
  max-width: 760px;
  font-size: 14.5px;
}
.targeting-strip__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.targeting-strip__title { color: var(--ink); font-weight: 600; }
.targeting-strip__employer { color: var(--ink-soft); }
.targeting-strip__sep { color: var(--muted); }
.targeting-strip__edit {
  margin-left: auto;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-size: 13.5px;
}
.targeting-strip__edit:hover { color: var(--ink); }
.targeting-strip--report { margin-bottom: 28px; }

/* ---- Dual score (Score screen) ---- */
.dual-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  max-width: 880px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}
.dual-score__col {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dual-score__col .score-big {
  font-size: clamp(72px, 12vw, 128px);
  margin: 4px 0 8px;
}
.dual-score__col .eyebrow { margin: 0 0 6px; }
.dual-score__sub {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 14px;
}
.dual-score__sub--accent { color: var(--accent); }
.score-big--fit { color: var(--accent); }
.dual-score__divider {
  width: 1px;
  align-self: stretch;
  background: var(--rule);
}
@media (max-width: 720px) {
  .dual-score {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .dual-score__divider {
    width: 60%;
    height: 1px;
    justify-self: center;
  }
}

/* ---- Match Meter ---- */
.match-meter {
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 56px);
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--rad);
}
.match-meter__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.match-meter__row {
  display: grid;
  grid-template-columns: 200px 1fr 100px;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.match-meter__name { font-size: 14.5px; color: var(--ink-soft); }
.match-meter__bar {
  height: 6px;
  background: var(--bg-quiet);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.match-meter__bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.match-meter__bar--soft > span { background: var(--ink-soft); opacity: 0.5; }
.match-meter__count {
  font-size: 14px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.match-meter__gaps {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-soft);
}
.match-meter__gaps-label {
  color: var(--muted);
  font-weight: 600;
  margin-right: 6px;
}
@media (max-width: 720px) {
  .match-meter__row { grid-template-columns: 1fr; gap: 6px; }
  .match-meter__count { text-align: left; }
}

/* ---- Report meta — Job Fit pill ---- */
.meta-pill--accent {
  background: rgba(30, 58, 95, 0.08);
  border-color: rgba(30, 58, 95, 0.25);
  color: var(--accent);
}
.meta-pill--accent b { color: var(--accent); }

/* ---- Rec citation ---- */
.rec-citation {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--accent);
  font-style: italic;
  opacity: 0.92;
}
.rec-citation em { font-style: italic; }

/* ---- Optimizer — dual score pairs + diff legend ---- */
.opt-banner__scores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(28px, 5vw, 56px);
  margin: 14px 0 20px;
}
.opt-banner__pair { display: flex; flex-direction: column; align-items: center; }
.opt-banner__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.opt-banner__label--accent { color: var(--accent); }
.opt-banner__pair .opt-banner__score { margin: 0; font-size: clamp(40px, 6vw, 72px); }
.opt-banner__score--fit .score-now { color: var(--accent); }
.opt-banner__pair--fit .score-now { color: var(--accent); }

.diff-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
}
.diff-legend__item { display: inline-flex; align-items: center; gap: 8px; }
.diff-legend__swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}
.diff-legend__swatch--posting { background: var(--accent); }
.diff-legend__swatch--generic { background: var(--muted); opacity: 0.55; }

/* Diff highlight variants */
.diff__text mark.hl-posting {
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1.5px solid var(--accent);
  padding: 0 1px;
}
.diff__text mark.hl-generic {
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  border-bottom: 1.5px dashed var(--muted);
  padding: 0 1px;
}

/* Three-column diff when a posting is loaded */
.diff--tri { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 960px) { .diff--tri { grid-template-columns: 1fr; } }
.diff__side--signal {
  background: var(--bg-quiet);
  border-left: 1px solid var(--rule);
}
@media (max-width: 960px) {
  .diff__side--signal { border-left: 0; border-top: 1px solid var(--rule); }
}
.diff__text--signal {
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ============================================================
   SCREEN 2.5 · JOB LINK
   ============================================================ */
[data-screen="job-link"] .container {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

/* States A & E (paste, error) — centered card */
.jl-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.jl-card .flow-h1 { margin: 6px 0 14px; }
.jl-card .eyebrow { margin: 0 0 16px; }

/* URL input + detect chip */
.jl-input-wrap {
  text-align: left;
  max-width: 540px;
  margin: 0 auto 24px;
}
.jl-input-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.jl-input {
  width: 100%;
  font-family: var(--body);
  font-size: 15.5px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--rad-sm);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.jl-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}
.jl-input::placeholder { color: var(--muted); }

.jl-detect {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.jl-detect b { color: var(--ink); font-weight: 600; }
.jl-detect__ats { color: var(--muted); }
.jl-detect__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.jl-detect__dot--warn { background: #B8893A; }

/* Quick demo row */
.jl-quick { margin: 4px 0 32px; }
.jl-quick__label {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 10px;
}
.jl-quick__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.jl-quick__btn {
  appearance: none;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.jl-quick__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(30, 58, 95, 0.04);
}

/* Actions area */
.jl-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.jl-actions .btn--primary { min-width: 220px; }
.jl-actions .btn--primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--ink);
}
.jl-skip { font-size: 13.5px; }

/* State E — error textarea */
.jl-textarea {
  width: 100%;
  max-width: 540px;
  margin: 0 auto 20px;
  display: block;
  font-family: var(--body);
  font-size: 14.5px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--rad-sm);
  color: var(--ink);
  outline: none;
  resize: vertical;
  line-height: 1.5;
}
.jl-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

/* State D — Job card */
.jl-summary-head { text-align: center; margin-bottom: 28px; }
.job-card {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--rad);
  padding: clamp(28px, 4vw, 44px);
}
.job-card__top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.job-card__logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-size: 22px;
  display: grid;
  place-items: center;
  letter-spacing: -0.02em;
}
.job-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.jl-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  background: #fff;
}
.jl-chip--platform { border-color: var(--accent); color: var(--accent); }
.jl-chip--ats { color: var(--muted); }
.job-card__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 6px;
  color: var(--ink);
}
.job-card__employer {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 8px;
  font-weight: 500;
}
.job-card__meta {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.job-card__meta-sep { opacity: 0.5; }

.job-card__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 820px) { .job-card__grid { grid-template-columns: 1fr; gap: 22px; } }
.job-card__col {}
.job-card__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.job-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.job-card__list li {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.45;
  position: relative;
  padding-left: 18px;
}
.job-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
.job-card__list--signals li { padding-left: 22px; }
.job-card__list--signals li::before { display: none; }
.job-card__list--signals .sig {
  position: relative;
}
.job-card__list--signals .sig__mark {
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: transparent;
}
.job-card__list--signals .sig--warn .sig__mark {
  border-color: #B8893A;
}
.job-card__list--signals .sig--good .sig__mark::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  border-radius: 50%;
  background: var(--accent);
}

.job-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  padding-top: 24px;
}
.jl-add-job {
  margin-left: auto;
  position: relative;
  display: inline-block;
}
.jl-add-job button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13.5px;
  cursor: not-allowed;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}
.jl-tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.jl-add-job:hover .jl-tooltip { opacity: 0.95; }

/* Job-link extracting card spacing matches analyzing */
[data-screen="job-link"] .analyze-card .progress { margin: 18px auto 14px; }

/* Mobile niceties */
@media (max-width: 720px) {
  .job-card__top { grid-template-columns: 1fr; }
  .job-card__logo { width: 48px; height: 48px; font-size: 18px; }
  .job-card__actions .jl-add-job { margin-left: 0; }
  .jl-actions .btn--primary { width: 100%; }
  .opt-banner__scores { gap: 28px; }
}

/* ============================================================
   AUTH MODAL
   ============================================================ */
.auth-panel { max-width: 460px; }
.auth-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.auth-google { display: inline-flex; align-items: center; justify-content: center; }
.auth-sep {
  display: flex; align-items: center; gap: 10px; color: #8a8a85;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  margin: 4px 0;
}
.auth-sep::before, .auth-sep::after {
  content: ""; flex: 1; height: 1px; background: rgba(14,14,12,0.12);
}
.auth-magic { display: flex; flex-direction: column; gap: 8px; }
.auth-label {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: #6b6b66;
}
.auth-input {
  font: inherit; font-size: 15px;
  padding: 11px 13px;
  border: 1px solid rgba(14,14,12,0.16);
  border-radius: 8px;
  background: #fff;
  color: #0e0e0c;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.auth-input:focus {
  outline: none;
  border-color: #0e0e0c;
  box-shadow: 0 0 0 3px rgba(14,14,12,0.08);
}
.auth-msg {
  min-height: 1.4em;
  margin: 6px 0 0;
  font-size: 14px;
  color: #3b3b37;
}
.auth-fine { margin-top: 6px; }

/* Body lock while a modal is open */
body.modal-open { overflow: hidden; }

/* ============================================================
   PAYWALL OFF — open preview (replaces .locked teaser block)
   ============================================================ */
.locked.locked--open {
  position: relative;
  display: block;
  padding: 28px 32px 32px;
  background: var(--surface, #fff);
  border: 1px solid var(--rule, rgba(0,0,0,0.08));
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.locked.locked--open .locked__preview,
.locked.locked--open .locked__overlay {
  display: none !important;
}
.open-preview__head {
  font-family: var(--display-font, "GT Sectra", Georgia, serif);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--ink, #1a1a1a);
  letter-spacing: -0.005em;
}
.open-preview__rows {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule, rgba(0,0,0,0.08));
}
.open-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule, rgba(0,0,0,0.08));
  font-size: 15px;
  color: var(--ink, #1a1a1a);
}
.open-row__num {
  font-feature-settings: "tnum" 1;
  font-weight: 500;
  color: var(--ink, #1a1a1a);
  font-size: 17px;
}
.open-preview__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.open-preview__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.open-preview__note {
  margin-top: 14px;
  text-align: left;
}

