/* ==========================================================================
   CV journey: upload, reading, review, questions, confirm, packages, checkout.
   Loaded after app.css and home.css. New classes are prefixed jx-.
   Existing journey classes are restyled under body.journey only.
   ========================================================================== */

body.journey { background: var(--paper); color: var(--ink); }
.journey h1 em, .journey h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; color: var(--amber-deep); }
.jx-col { max-width: 920px; }

/* Entrance motion (CSS only, no script needed) */
.jx-in { opacity: 0; transform: translateY(22px); animation: jx-in .85s var(--ease) var(--d, 0ms) forwards; }
@keyframes jx-in { to { opacity: 1; transform: none; } }

/* ---------- Top bar with step tracker (must stay 60px tall for the editor) ---------- */
.jx-bar { position: sticky; top: 0; z-index: 40; height: 60px; box-sizing: border-box; background: rgba(251, 250, 246, .9); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.jx-bar-in { height: 100%; width: min(100% - (var(--pad) * 2), 1320px); margin-inline: auto; display: flex; align-items: center; gap: 20px; }
.jx-bar-in.is-wide { width: calc(100% - 40px); }
.jx-logo { flex: none; display: block; }
.jx-logo img { display: block; width: 137px; height: auto; }
.jx-steps { list-style: none; margin: 0 auto; padding: 0; display: flex; align-items: center; gap: 6px; }
.jx-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #7C8592; white-space: nowrap; }
.jx-steps li + li::before { content: ""; width: 18px; height: 1.5px; background: var(--border-strong); margin-right: 2px; }
.jx-steps li.is-done + li::before, .jx-steps li.is-done::before { background: var(--ink); }
.jx-steps i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; border: 1.5px solid var(--border-strong); background: #fff; color: #7C8592; flex: none; }
.jx-steps i .icon { width: 13px; height: 13px; stroke-width: 3; }
.jx-steps li.is-done { color: var(--ink); }
.jx-steps li.is-done i { background: var(--ink); border-color: var(--ink); color: #fff; }
.jx-steps li.is-current { color: var(--ink); }
.jx-steps li.is-current i { background: var(--amber); border-color: var(--amber); color: var(--ink); box-shadow: 0 0 0 4px rgba(241, 141, 70, .22); }
.jx-step-compact { display: none; margin: 0 auto 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.jx-step-compact b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--amber); color: var(--ink); font-size: 11px; font-weight: 800; margin-right: 4px; }
.jx-step-compact span { color: var(--ink); font-weight: 700; margin-left: 6px; }
.jx-help { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink); background: #fff; transition: .25s; }
.jx-steps + .jx-step-compact + .jx-help { margin-left: 0; }
.jx-help:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.jx-help .icon { width: 16px; height: 16px; }
.jx-bar-line { display: none; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--border); }
.jx-bar-line span { display: block; height: 100%; background: var(--amber); transition: width .6s var(--ease); }
@media (max-width: 1180px) { .jx-steps li:not(.is-current) span { display: none; } .jx-steps li + li::before { width: 12px; } }
@media (max-width: 720px) {
  .jx-steps { display: none; }
  .jx-step-compact { display: block; }
  .jx-bar-line { display: block; }
  .jx-bar-in { gap: 12px; }
  .jx-logo img { width: 112px; }
  .jx-help span { display: none; }
  .jx-help { padding: 0; width: 40px; justify-content: center; }
}
@media (max-width: 380px) { .jx-step-compact span { display: none; } }

/* ---------- Slim footer ---------- */
.jx-foot { border-top: 1px solid var(--border); padding: 22px 0; font-size: 13px; color: var(--muted); }
.jx-foot .container { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.jx-foot span { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jx-foot .icon { width: 15px; height: 15px; color: var(--amber-deep); }
.jx-foot a { color: var(--ink); font-weight: 600; text-decoration: none; margin-left: 14px; }
.jx-foot a:first-child { margin-left: 0; }
.jx-foot a:hover { color: var(--amber-deep); }

/* ---------- Page heads ---------- */
.journey .page-head { padding: clamp(36px, 6vw, 76px) 0 clamp(20px, 3vw, 32px); }
.journey .page-head h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); font-weight: 700; line-height: 1; letter-spacing: -0.055em; margin: 0; text-wrap: balance; max-width: 18ch; }
.journey .page-head .center h1, .journey .page-head .center p { margin-inline: auto; }
.journey .page-head .hx-label { margin: 0 0 18px; }
.journey .page-head p:not(.hx-label) { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: #4D5967; max-width: 58ch; margin: 18px 0 0; }
.jx-body { padding: 8px 0 clamp(40px, 6vw, 80px); }
.jx-block { margin-top: clamp(40px, 5vw, 64px); }
.jx-h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1.05; margin: 0 0 20px; }
.jx-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Shared controls, journey skin ---------- */
.journey .btn { border-radius: 999px; }
.journey .btn-lg { min-height: 56px; padding-inline: 26px; }
.journey .btn-primary { transition: transform .3s var(--ease), background .2s; }
.journey .btn-primary:hover { transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: var(--ink); border-color: var(--amber); font-weight: 700; }
.btn-amber:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.journey .input, .journey .textarea, .journey .select { border-radius: 14px; border-color: var(--border-strong); box-shadow: none; transition: border-color .2s, box-shadow .2s; }
.journey .card { border-radius: 22px; border-color: var(--border); padding: clamp(20px, 2.4vw, 30px); }
.journey .alert { border-radius: 16px; }
.journey .tag { font-weight: 700; }
.journey .hx-btn:disabled { opacity: .6; cursor: progress; transform: none; }
.journey button.hx-price-btn { width: 100%; background: transparent; font: inherit; font-weight: 700; font-size: 15px; color: inherit; cursor: pointer; }
.journey .hx-price.is-featured button.hx-price-btn { background: var(--amber); color: var(--ink); }
.journey .hx-price.is-featured button.hx-price-btn:hover { background: #fff; }
.journey .hx-price:not(.is-featured) button.hx-price-btn:hover { background: var(--ink); color: #fff; }

/* ---------- Dark stage: upload and processing ---------- */
.jx-stage { position: relative; background: var(--ink); color: #fff; min-height: calc(100svh - 60px); display: grid; align-items: center; padding: clamp(32px, 6vw, 80px) 0; overflow: hidden; }
.jx-stage h1 { font-size: clamp(2.5rem, 6.2vw, 5.2rem); font-weight: 700; line-height: .96; letter-spacing: -0.06em; margin: 20px 0 0; text-wrap: balance; }
.jx-stage h1 em { color: var(--amber); }
.jx-lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: #C9D2DC; max-width: 48ch; margin: 22px 0 0; }
.jx-stage-in { width: min(100% - (var(--pad) * 2), 1240px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.jx-points { list-style: none; padding: 0; margin: clamp(28px, 4vw, 48px) 0 0; display: grid; gap: 0; max-width: 520px; }
.jx-points li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.jx-points li > span { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(241, 141, 70, .16); color: var(--amber); }
.jx-points .icon { width: 18px; height: 18px; }
.jx-points strong { font-size: 16px; }
.jx-points p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; color: #AEB9C5; }

/* Upload card (builds on .hx-upload from home.css) */
.journey .hx-upload { gap: 16px; }
.jx-upload-title { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1.05; margin: 6px 0 2px; }
.journey .hx-upload .alert { margin: 0; }
.jx-field { margin: 0; gap: 6px; }
.jx-field label { font-size: 14px; }
.jx-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1.5px solid var(--ink); animation: jx-pop .45s var(--ease); }
.jx-file-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--amber-soft); color: var(--amber-deep); display: grid; place-items: center; }
.jx-file-ico .icon { width: 20px; height: 20px; }
.jx-file-name { min-width: 0; flex: 1; display: grid; }
.jx-file-name b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jx-file-name small { font-size: 12.5px; color: var(--success); font-weight: 600; }
@keyframes jx-pop { from { opacity: 0; transform: scale(.96); } }
.journey .hx-upload .bar { height: 6px; background: var(--oat); margin-top: 8px; }
.journey .hx-upload .bar span { display: block; height: 100%; width: 0; background: var(--amber); border-radius: 99px; transition: width .2s; }

/* Processing */
.jx-stage-center { justify-items: center; }
.jx-proc { width: min(100% - (var(--pad) * 2), 980px); }
.jx-proc-work { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.jx-proc h1 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
.jx-sheet { position: relative; aspect-ratio: 210 / 285; background: #fff; border-radius: 10px; padding: 12% 11%; display: grid; align-content: start; gap: 4.2%; transform: rotate(-3deg); box-shadow: 0 60px 90px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; animation: jx-float 6s ease-in-out infinite; }
.jx-sheet i { display: block; height: 7px; border-radius: 4px; background: #E6E1D4; animation: jx-shimmer 2.6s ease-in-out infinite; }
.jx-sheet i:nth-of-type(3n) { animation-delay: .3s; }
.jx-sheet i:nth-of-type(3n + 1) { animation-delay: .6s; }
.jx-sheet i.t { height: 16px; width: 58%; background: var(--ink); animation: none; }
.jx-sheet i.s { width: 40%; margin-bottom: 6%; }
.jx-sheet i.h { width: 30%; height: 8px; background: var(--amber); margin-top: 6%; animation: none; }
.jx-sheet i.w85 { width: 85%; } .jx-sheet i.w70 { width: 70%; } .jx-sheet i.w60 { width: 60%; }
.jx-scanline { position: absolute; left: 0; right: 0; top: 0; height: 34%; background: linear-gradient(to bottom, transparent, rgba(241, 141, 70, .28)); border-bottom: 2px solid var(--amber); animation: jx-scan 2.8s cubic-bezier(.6, 0, .4, 1) infinite alternate; }
@keyframes jx-scan { from { transform: translateY(-100%); } to { transform: translateY(300%); } }
@keyframes jx-shimmer { 50% { background: #F5D9C2; } }
@keyframes jx-float { 50% { transform: rotate(-1.5deg) translateY(-10px); } }
.jx-pulse { width: 9px !important; height: 9px !important; border-radius: 50%; background: var(--amber) !important; opacity: 1 !important; animation: jx-pulse 1.4s ease-out infinite; }
@keyframes jx-pulse { from { box-shadow: 0 0 0 0 rgba(241, 141, 70, .7); } to { box-shadow: 0 0 0 12px rgba(241, 141, 70, 0); } }
.jx-proc-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.jx-proc-steps li { display: flex; align-items: center; gap: 14px; font-size: 16px; color: #7F8D9C; transition: color .4s; }
.jx-proc-steps .dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); display: grid; place-items: center; transition: .4s var(--ease); }
.jx-proc-steps .dot .icon { width: 13px; height: 13px; stroke-width: 3; opacity: 0; transform: scale(.4); transition: .4s var(--ease); }
.jx-proc-steps li.is-done { color: #fff; }
.jx-proc-steps li.is-done .dot { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.jx-proc-steps li.is-done .dot .icon { opacity: 1; transform: none; }
.jx-proc-steps li:first-child:not(.is-done), .jx-proc-steps li.is-done + li:not(.is-done) { color: #fff; }
.jx-proc-steps li:first-child:not(.is-done) .dot, .jx-proc-steps li.is-done + li:not(.is-done) .dot { border-color: var(--amber); animation: jx-pulse 1.4s ease-out infinite; }
.jx-proc-fail { text-align: center; max-width: 560px; margin-inline: auto; }
.jx-proc-fail .jx-lead { margin-inline: auto; }
.jx-fail-ico { width: 64px; height: 64px; border-radius: 50%; background: rgba(241, 141, 70, .16); color: var(--amber); display: inline-grid; place-items: center; }
.jx-fail-ico .icon { width: 28px; height: 28px; }
.jx-fail-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 28px 0 20px; }
.jx-proc-fail .small { color: #AEB9C5; }
.jx-proc-fail a:not(.btn) { color: #fff; }

/* ---------- Review ---------- */
.jx-summary { background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 48px); position: relative; overflow: hidden; }
.jx-summary .review-summary { font-family: var(--serif); font-size: clamp(1.5rem, 2.9vw, 2.25rem); line-height: 1.22; letter-spacing: -0.015em; margin: 18px 0 0; max-width: 30ch; text-wrap: pretty; position: relative; z-index: 1; }
.jx-summary-stats { list-style: none; padding: 22px 0 0; margin: 28px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); display: flex; flex-wrap: wrap; gap: 12px 36px; font-size: 14px; color: #AEB9C5; }
.jx-summary-stats b { font-size: 26px; font-weight: 700; letter-spacing: -0.04em; color: #fff; margin-right: 8px; }
.jx-strengths { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.jx-strength { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 24px; transition: transform .35s var(--ease), box-shadow .35s; }
.jx-strength:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(21, 38, 56, .4); }
.jx-strength > span { width: 36px; height: 36px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin-bottom: 18px; }
.jx-strength .icon { width: 17px; height: 17px; stroke-width: 2.6; }
.jx-strength h3, .jx-fixes h3 { font-size: 18px; letter-spacing: -0.02em; margin: 0 0 6px; }
.jx-strength p, .jx-fixes p { margin: 0; font-size: 15px; line-height: 1.55; color: #4D5967; }
.jx-fixes { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border-strong); }
.jx-fixes li { display: grid; grid-template-columns: clamp(52px, 9vw, 96px) minmax(0, 1fr); gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--border-strong); }
.jx-fixes b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: .9; color: var(--amber-deep); }
.jx-fixes small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.jx-compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 14px; }
.jx-compare > div { border-radius: 22px; padding: 24px; height: 100%; }
.jx-compare small { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.jx-compare p { margin: 0; font-size: 16px; line-height: 1.55; }
.jx-compare .before { background: var(--oat-soft); border: 1px dashed var(--border-strong); color: #5B6573; }
.jx-compare .before p { text-decoration: line-through; text-decoration-color: rgba(91, 101, 115, .45); }
.jx-compare .after { background: var(--ink); color: #fff; }
.jx-compare .after small { color: var(--amber); }
.jx-compare-arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; }
.jx-compare-arrow .icon { width: 18px; height: 18px; }
.jx-ratings { border-top: 1px solid var(--border-strong); }
.jx-rating { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border-strong); }
.jx-rating strong { font-size: 17px; letter-spacing: -0.02em; }
.jx-rating p { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: #4D5967; max-width: 60ch; }
.jx-rating-side { flex: none; display: grid; justify-items: end; gap: 8px; }
.jx-pill { font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.jx-meter { display: flex; gap: 4px; }
.jx-meter i { width: 20px; height: 4px; border-radius: 2px; background: var(--border-strong); }
.is-good .jx-pill { background: var(--success-soft); color: #0B5D2B; } .is-good .jx-meter .on { background: var(--success); }
.is-warn .jx-pill { background: var(--amber-soft); color: #8A4212; } .is-warn .jx-meter .on { background: var(--amber); }
.is-bad .jx-pill { background: var(--error-soft); color: #8E1C12; } .is-bad .jx-meter .on { background: var(--error); }
.jx-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.jx-chips li { padding: 10px 16px; border-radius: 999px; border: 1px dashed #B9A98F; background: #fff; font-size: 14.5px; font-weight: 600; }

/* Floating action dock */
.jx-dock { position: sticky; bottom: 14px; z-index: 20; margin-top: clamp(36px, 5vw, 56px); }
.jx-dock-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; background: var(--ink); color: #fff; border-radius: 28px; padding: 14px 14px 14px 28px; box-shadow: 0 30px 60px -24px rgba(14, 27, 41, .7); }
.jx-dock p { margin: 0; font-size: 14px; line-height: 1.45; color: #C9D2DC; max-width: 44ch; }
.jx-dock p strong { color: #fff; display: block; font-size: 15px; }
.jx-dock-actions { display: flex; align-items: center; gap: 20px; flex: none; }
.jx-dock-alt { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: #fff; cursor: pointer; text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 5px; white-space: nowrap; }
.jx-dock-alt:hover { color: var(--amber); }
.jx-dock .hx-btn { min-height: 56px; gap: 18px; padding-left: 24px; font-size: 15px; }
.jx-dock .hx-btn span { width: 38px; height: 38px; }

/* ---------- Questions chat ---------- */
.jx-chat { padding-top: 12px; }
.journey .convo { gap: 14px; padding-bottom: 28px; }
.journey .msg { max-width: min(85%, 620px); padding: 16px 20px; border-radius: 22px; font-size: 16.5px; line-height: 1.5; animation: jx-msg .5s var(--ease); }
@keyframes jx-msg { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.journey .msg-assistant { background: #fff; border: 1px solid var(--border); border-top-left-radius: 6px; position: relative; margin-left: 46px; }
.journey .msg-assistant::before { content: ""; position: absolute; left: -46px; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink) url("../brand/icon-192.png") center / 20px no-repeat; box-shadow: inset 0 0 0 2px var(--amber); }
.journey .msg-customer { background: var(--ink); border-top-right-radius: 6px; }
.journey .msg-customer.is-skipped { background: var(--oat-soft); border: 1px dashed var(--border-strong); }
.journey .composer { background: linear-gradient(to top, var(--paper) 78%, rgba(251, 250, 246, 0)); border-top: 0; padding: 18px 0 16px; }
.journey .composer-row { background: #fff; border: 1.5px solid var(--ink); border-radius: 26px; padding: 8px 8px 8px 8px; align-items: flex-end; box-shadow: 0 22px 44px -28px rgba(21, 38, 56, .55); transition: box-shadow .2s; }
.journey .composer-row:focus-within { box-shadow: var(--focus), 0 22px 44px -28px rgba(21, 38, 56, .55); }
.journey .composer textarea { border: 0; box-shadow: none !important; background: transparent; padding: 12px 14px; min-height: 48px; }
.jx-send { flex: none; min-height: 48px; padding-inline: 20px; gap: 8px; }
.jx-send .icon { width: 16px; height: 16px; }
.journey .composer-actions { padding-inline: 8px; }

/* ---------- Confirm ---------- */
.journey .legend { margin-top: 20px; gap: 10px; }
.journey .legend span { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-weight: 600; color: var(--ink); }
.journey .legend i { border-radius: 50%; }
.journey .fact-group { border-radius: 24px; border-color: var(--border); padding: clamp(20px, 2.6vw, 32px); margin-bottom: 16px; }
.journey .fact-group > h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.04em; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.journey .fact-item { border-radius: 18px; background: var(--paper); padding: 18px; }
.journey .fact-item.from-answer { border-left: 4px solid var(--amber); }

/* ---------- Packages and checkout ---------- */
.jx-prices { align-items: stretch; }
.journey .hx-price { background: #fff; border: 1px solid var(--border); transition: transform .4s var(--ease), box-shadow .4s; }
.journey .hx-price.is-featured { background: var(--ink); border-color: var(--ink); box-shadow: 0 40px 70px -40px rgba(14, 27, 41, .8); }
.journey .hx-price:hover { transform: translateY(-6px); }
.journey .hx-price h3 { margin: 30px 0 0; }
.journey .hx-price .pitch { margin: 2px 0 0; }
.journey .hx-price ul { list-style: none; padding: 0; }
.journey .hx-price form { margin: 0; }
.jx-after { margin-top: 32px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 40px; flex-wrap: wrap; font-size: 14px; color: #4D5967; }
.jx-after p { margin: 0; max-width: 68ch; }
.jx-after a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.jx-after .icon { width: 16px; height: 16px; }
.journey .summary-list li { padding: 14px 0; }
.journey .summary-list .total { font-size: 1.5rem; letter-spacing: -0.04em; padding-top: 18px; }
.journey .checklist .icon { color: var(--amber-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .jx-stage { align-items: start; }
  .jx-stage-in { grid-template-columns: 1fr; }
  .jx-stage-in .hx-upload { max-width: 620px; width: 100%; }
  .jx-points { display: none; }
  .jx-stage-copy .jx-lead { max-width: 56ch; }
}
@media (max-width: 760px) {
  .jx-proc-work { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 36px; }
  .jx-sheet { width: min(52vw, 210px); }
  .jx-proc-copy .hx-label { justify-content: center; }
  .jx-proc-copy .jx-lead { margin-inline: auto; }
  .jx-proc-steps { text-align: left; width: fit-content; margin-inline: auto; }
  .jx-compare { grid-template-columns: 1fr; }
  .jx-compare-arrow { margin: -4px auto; transform: rotate(90deg); }
  .jx-dock { bottom: 10px; }
  .jx-dock-in { flex-direction: column; align-items: stretch; padding: 10px 10px 14px; border-radius: 26px; gap: 10px; }
  .jx-dock p { display: none; }
  .jx-dock-actions { flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
  .jx-dock-alt { font-size: 13px; }
  .jx-dock .hx-btn { width: 100%; }
  .jx-rating { flex-direction: column; gap: 12px; }
  .jx-rating-side { display: flex; align-items: center; gap: 12px; }
}
@media (max-width: 560px) {
  .journey .msg { max-width: 92%; font-size: 16px; }
  .journey .msg-assistant { margin-left: 0; margin-top: 22px; }
  .journey .msg-assistant::before { left: 0; top: -26px; width: 22px; height: 22px; background-size: 13px; }
  .jx-send span { display: none; }
  .jx-send { width: 48px; padding: 0; }
  .jx-foot .container { flex-direction: column; align-items: flex-start; }
  .journey .composer-actions { flex-wrap: nowrap; align-items: center; padding-inline: 0; }
  .journey .composer-actions .btn { padding-inline: 10px; white-space: nowrap; }
  .journey .composer-actions [data-q-progress] { font-size: 12px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .jx-in, .journey .msg, .jx-file { animation: none; opacity: 1; transform: none; }
  .jx-sheet, .jx-sheet i, .jx-scanline, .jx-pulse, .jx-proc-steps .dot { animation: none !important; }
  .jx-scanline { transform: translateY(80%); }
}

/* ---------- Access and free review limit pages ---------- */
.jx-link-form { display: grid; gap: 16px; }
.jx-card-text { margin: 0; font-size: 15px; line-height: 1.55; color: #4D5967; }
.hx-btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.hx-btn-line span { background: var(--ink); color: #fff; }
.jx-or { display: flex; align-items: center; gap: 14px; margin: 6px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.jx-or::before, .jx-or::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }
.journey .hx-upload-note a { text-decoration: underline; }
.jx-plans { list-style: none; padding: 0; margin: clamp(28px, 4vw, 44px) 0 0; max-width: 520px; display: grid; gap: 10px; }
.jx-plans li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); }
.jx-plans li.is-featured { border-color: var(--amber); background: rgba(241, 141, 70, .12); }
.jx-plans strong { display: block; font-size: 17px; letter-spacing: -0.02em; }
.jx-plans span { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--amber); }
.jx-plans b { font-size: 28px; font-weight: 700; letter-spacing: -0.05em; }
.jx-plans-note { margin: 16px 0 0; font-size: 14px; color: #AEB9C5; }
.jx-plans-note a { color: #fff; }
.journey a.hx-btn, .journey a.hx-upload-alt:hover { text-decoration: none; }
.jx-stage-3 { align-items: start; row-gap: 0; }
.jx-stage-3 > .hx-upload { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.jx-stage-3 > .jx-plans-wrap { grid-column: 1; grid-row: 2; }
.jx-stage-3 .jx-plans { margin-top: clamp(24px, 3vw, 36px); }
@media (max-width: 960px) {
  .jx-stage-3 { row-gap: 28px; }
  .jx-stage-3 > .hx-upload, .jx-stage-3 > .jx-plans-wrap { grid-column: 1; grid-row: auto; }
  .jx-stage-3 .jx-plans { margin-top: 0; max-width: 620px; }
}

/* ---------- Phone refinements ---------- */
@media (max-width: 760px) {
  /* Waiting screen: breathing room under the bar, smaller sheet, centred. */
  .jx-stage-center { align-items: center; padding: 44px 0 56px; }
  .jx-sheet { width: min(40vw, 168px); }
  .jx-proc-work { gap: 40px; }
  .jx-proc h1 { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .jx-proc-steps { margin-top: 26px; gap: 12px; }
  .jx-proc-steps li { font-size: 15px; }

  /* Review: a summary that reads at a glance. */
  .jx-summary { padding: 22px 20px; border-radius: 22px; }
  .jx-summary .review-summary { font-size: 1.3rem; line-height: 1.3; max-width: none; margin-top: 12px; }
  .jx-summary-stats { margin-top: 18px; padding-top: 16px; gap: 8px 22px; font-size: 13px; }
  .jx-summary-stats b { font-size: 20px; margin-right: 6px; }
  .journey .page-head h1 { font-size: clamp(1.9rem, 8.6vw, 2.6rem); }
  .journey .page-head p:not(.hx-label) { font-size: 16px; margin-top: 12px; }
  .jx-block { margin-top: 36px; }
  .jx-fixes li { padding: 18px 0; }

  /* Action dock: one slim button, so it never hides what you're reading. */
  .jx-dock { bottom: 8px; margin-top: 28px; }
  .jx-dock-in { padding: 6px; border-radius: 999px; gap: 0; background: transparent; box-shadow: none; }
  .jx-dock .hx-btn { min-height: 54px; box-shadow: 0 16px 34px -14px rgba(14, 27, 41, .75); }
  .jx-dock a.jx-dock-alt { display: none; }
  .jx-dock button.jx-dock-alt { order: 2; background: var(--paper); color: var(--ink); border-radius: 999px; padding: 10px 14px; text-decoration: none; box-shadow: 0 10px 24px -14px rgba(14, 27, 41, .6); }
  .jx-body { padding-bottom: 28px; }
}

/* ---------- Job search helper ---------- */
.jx-jobs { display: grid; gap: 12px; }
.jx-job { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: clamp(18px, 2.4vw, 26px); }
.jx-job-head { display: grid; grid-template-columns: clamp(40px, 6vw, 64px) minmax(0, 1fr); gap: 10px; align-items: start; }
.jx-job-head b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; color: var(--amber-deep); }
.jx-job h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.03em; line-height: 1.2; margin: 0; }
.jx-job h2 span { font-weight: 400; color: var(--muted); }
.jx-job-head p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: #4D5967; }
.jx-job-links { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jx-job-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink); transition: background .2s, color .2s; }
.jx-job-links a:hover { background: var(--ink); color: #fff; }
.jx-job-links .icon { width: 14px; height: 14px; }
.jx-job-form { margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--border-strong); }
.jx-job-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; }
.jx-job-alerts { border: 0; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.jx-job-alerts legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 8px; }
.jx-job-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 24px; }
.jx-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; text-decoration: none; }
.jx-back .icon { width: 16px; height: 16px; }
.jx-job-refresh { margin-top: 20px; font-size: 14px; }
.jx-job-refresh p { margin: 0; }
.jx-promo { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: clamp(36px, 5vw, 56px); padding: 22px 24px; border-radius: 22px; background: var(--oat-soft); border: 1px solid var(--border); }
.jx-promo strong { display: block; font-size: 17px; letter-spacing: -0.02em; }
.jx-promo p { margin: 2px 0 0; font-size: 15px; color: #4D5967; }
.jx-promo a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.jx-promo .icon { width: 16px; height: 16px; }
@media (max-width: 700px) { .jx-job-fields { grid-template-columns: 1fr; } .jx-job-links a { flex: 1 1 calc(50% - 8px); justify-content: space-between; } }

/* ---------- Export quality gate on the downloads page ---------- */
.gate { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--border); }
.gate.is-bad { border-color: var(--error); background: var(--error-soft); }
.gate-title { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gate ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.gate li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.4; }
.gate li .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; stroke-width: 2.6; }
.gate li.ok .icon { color: var(--success); }
.gate li.bad { font-weight: 600; }
.gate li.bad .icon { color: var(--error); }
.gate li:last-child { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border); font-weight: 700; }
.gate li em { font-style: normal; font-weight: 400; color: var(--muted); }
.gate-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

.is-none .jx-pill { background: var(--oat-soft); color: var(--muted); border: 1px dashed var(--border-strong); }

/* Lines that look unfinished, put to the customer before download */
.gate ul.unfinished { gap: 12px; margin-bottom: 12px; }
.gate ul.unfinished li { display: block; font-weight: 400; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.unfinished-text { margin: 4px 0 6px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.unfinished-fix { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); display: grid; gap: 8px; justify-items: start; }
.gate .doc-actions form { margin: 0; }

/* Review: unfinished line note, next step note and the expandable full review */
.jx-unfinished { border: 1px solid var(--border-strong); border-left: 4px solid var(--amber); border-radius: 18px; padding: 20px 22px; background: #fff; }
.jx-unfinished h2 { font-size: 17px; margin: 0 0 8px; }
.jx-unfinished p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: #4A5563; }
.jx-unfinished p:last-child { margin-bottom: 0; }
.jx-unfinished .jx-unfinished-line { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.jx-next { border-radius: 18px; padding: 20px 22px; background: var(--oat-soft); }
.jx-next h2 { font-size: 17px; margin: 0 0 6px; }
.jx-next p { margin: 0; font-size: 15px; line-height: 1.5; color: #4A5563; }
.jx-full { margin-top: 28px; border: 1px solid var(--border); border-radius: 22px; background: #fff; padding: 0 22px; }
.jx-full > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 0; font-weight: 700; font-size: 17px; }
.jx-full > summary::-webkit-details-marker { display: none; }
.jx-full > summary small { font-weight: 500; font-size: 13.5px; color: var(--muted); }
.jx-full > summary small::after { content: ' +'; font-weight: 700; color: var(--amber); }
.jx-full[open] > summary small::after { content: ' \2212'; }
.jx-full[open] { padding-bottom: 22px; }
.jx-basis { margin: 6px 0 0 !important; font-size: 13px !important; color: var(--muted) !important; }

/* Full review: four separate dimensions, findings with evidence */
.jx-dim { padding: 20px 0 6px; border-top: 1px solid var(--border); margin-top: 16px; }
.jx-dim > h3 { font-size: 17px; margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.jx-dim > h3 small { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.jx-facts { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.45; }
.jx-facts b { display: inline-block; min-width: 92px; margin-right: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--success); }
.jx-facts .warn b { color: #9A5B00; }
.jx-facts .none b { color: var(--muted); }
.jx-finding { border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; margin: 0 0 12px; background: var(--paper); }
.jx-finding header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; }
.jx-finding h4 { margin: 0; font-size: 16px; }
.jx-tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.jx-tag.is-verified { background: #FDECDD; color: #8A4B12; }
.jx-tag.is-potential { background: var(--oat-soft); color: #4A5563; }
.jx-finding dl { margin: 0; display: grid; gap: 4px; }
.jx-finding dt { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.jx-finding dd { margin: 0; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.jx-finding dd.jx-evidence { padding: 8px 12px; border-left: 3px solid var(--border-strong); background: #fff; border-radius: 0 10px 10px 0; }

/* Editor: suggestions the customer can accept or dismiss */
.ed-suggest { border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.ed-suggest h3 { margin: 0 0 4px; font-size: 15px; }
.ed-suggest p { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: #4A5563; }
.ed-suggest .ed-proposal { white-space: pre-line; padding: 8px 12px; border-left: 3px solid var(--amber); background: var(--paper); border-radius: 0 10px 10px 0; color: var(--ink); overflow-wrap: anywhere; }
.ed-suggest form { display: inline; }
.ed-suggest .row { gap: 8px; }

/* The first question and the line of the CV a point is based on */
.jx-next .jx-next-q { font-size: 18px; line-height: 1.45; font-weight: 600; color: var(--ink); margin: 2px 0 10px; }
.jx-next-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--amber); padding-bottom: 2px; }
.jx-next-link .icon { width: 16px; height: 16px; }
.jx-quote { margin: 8px 0 0 !important; padding-left: 12px; border-left: 3px solid var(--border-strong); font-size: 14px !important; color: var(--muted) !important; overflow-wrap: anywhere; }
