/* The assessment form and result on the home page (#check). Shared styles (colours, cards, ring, rating badges) are in site.css. */

/* Section: compact on phones, modest padding on desktop, centred with a maximum width */
.check { padding: var(--s6) 0; }
.check-head { margin-bottom: var(--s3); }
.check-head h2 { font-size: clamp(28px, 4.2vw, 44px); }
.check-head .lead { margin-top: var(--s1); font-size: 17px; }
.check-layout { max-width: 1080px; margin: 0 auto; }
.check-layout[hidden] { display: none; }
.check-main { min-width: 0; }

/* The two input cards: "01 Your CV" (indigo) and "02 The job" (onyx) */
.input-cards { display: grid; gap: var(--s2); }
.input-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: var(--s2); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.input-card-cv { border-color: rgba(99, 49, 251, 0.35); box-shadow: inset 0 3px 0 var(--indigo); }
.input-card-job { box-shadow: inset 0 3px 0 var(--navy); }
.input-card-head { display: flex; align-items: center; gap: 12px; }
.input-card-head label { font-family: var(--heading); font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.input-card-head .counter { margin-left: auto; white-space: nowrap; }
.input-card-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border-radius: 10px; color: var(--white); }
.input-card-icon .i { width: 20px; height: 20px; }
.input-card-cv .input-card-icon { background: var(--indigo); }
.input-card-job .input-card-icon { background: var(--navy); }
.input-card-num { margin-right: 4px; font-variant-numeric: tabular-nums; }
.input-card-cv .input-card-num { color: var(--indigo-light); }
.input-card-job .input-card-num { color: var(--muted); }
.input-card textarea { flex: 1; min-height: 150px; }
.input-card textarea::placeholder { color: var(--muted); opacity: 0.85; }
.input-card-hint { min-height: 0; }
/* Drop target: the CV card lights up while a file is dragged over it */
.input-card-cv.dragging { border-color: var(--indigo); box-shadow: inset 0 3px 0 var(--indigo), 0 0 0 3px rgba(99, 49, 251, 0.25); background: var(--indigo-soft); }

/* Step indicator: 01 Your CV, 02 The job, 03 Assessment */
.steps-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s1); margin: 0 0 var(--s2); padding: 0; list-style: none; }
.steps-bar li { display: flex; flex: none; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.2; }
.steps-bar li + li::before { content: ""; display: block; width: clamp(12px, 4vw, 40px); height: 2px; flex: none; border-radius: 2px; background: var(--line); }
.step-dot { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps-bar li[aria-current="step"] { color: var(--ink); }
.steps-bar li[aria-current="step"] .step-dot { border-color: var(--indigo); color: var(--indigo-light); }
.steps-bar li.done { color: var(--ink); }
.steps-bar li.done .step-dot { border-color: var(--indigo); background: var(--indigo); color: var(--white); }
.steps-bar li.done + li::before { background: var(--indigo); }
.step-name { white-space: nowrap; }
@media (max-width: 399px) {
  .steps-bar, .steps-bar li { gap: 5px; }
  .steps-bar li { font-size: 13px; }
  .steps-bar li + li::before { width: 6px; }
  .step-dot { width: 24px; height: 24px; font-size: 11px; }
}

/* Value preview under the headline: one compact row of three small labels */
.value-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: var(--s2) 0 0; padding: 0; list-style: none; }
.value-row li { padding: 4px 12px; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo-light); font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
@media (max-width: 719px) {
  /* Still one row on phones: three equal boxes, text wrapping inside them */
  .value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .value-row li { display: flex; align-items: center; justify-content: center; padding: 6px 8px; border-radius: 12px; font-size: 12px; line-height: 1.3; text-align: center; white-space: normal; }
}


/* ---------- The form: a dark onyx panel ---------- */
#check-area {
  padding: var(--s2); border-radius: 28px; color: var(--white);
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(99, 49, 251, 0.30), transparent 70%),
    radial-gradient(50% 45% at 10% 100%, rgba(99, 49, 251, 0.18), transparent 70%),
    var(--navy);
}
.input-card { background: var(--glass); border-color: var(--glass-line); color: var(--white); }
.input-card-cv { border-color: rgba(165, 139, 255, 0.45); box-shadow: inset 0 3px 0 var(--indigo-light); }
.input-card-job { box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.55); }
.input-card-job .input-card-icon { background: rgba(255, 255, 255, 0.14); }
.input-card-cv .input-card-num { color: var(--indigo-light); }
.input-card-job .input-card-num,
#check-area .counter,
#check-area .hint { color: var(--on-navy); }
#check-area textarea { background: var(--navy); border-color: var(--glass-line); color: var(--white); }
#check-area textarea::placeholder { color: var(--on-navy); opacity: 0.75; }
#check-area .field-msg { color: var(--white); }
#check-area .field-msg.problem,
#check-area .counter.over { color: var(--missing); }
#check-area textarea.over { border-color: var(--missing); }
.upload-btn { border-color: var(--indigo-light); color: var(--white); }
.consent { color: var(--white); }
.consent a { color: var(--indigo-light); }
.consent input { accent-color: var(--indigo-light); }
.input-card-cv.dragging { background: rgba(99, 49, 251, 0.18); border-color: var(--indigo-light); box-shadow: inset 0 3px 0 var(--indigo-light), 0 0 0 3px rgba(165, 139, 255, 0.35); }
/* Steps on dark */
.steps-bar li { color: var(--on-navy); }
.step-dot { background: transparent; border-color: var(--glass-line); color: var(--on-navy); }
.steps-bar li + li::before { background: var(--glass-line); }
.steps-bar li[aria-current="step"],
.steps-bar li.done { color: var(--white); }
.steps-bar li[aria-current="step"] .step-dot { border-color: var(--indigo-light); color: var(--white); }
.steps-bar li.done .step-dot { background: var(--indigo); border-color: var(--indigo); color: var(--white); }
.steps-bar li.done + li::before { background: var(--indigo-light); }
/* The switch, and the two views it chooses between. The counter stays visible in both. */
.cv-switch { display: inline-flex; align-self: flex-start; padding: 3px; border: 1px solid var(--glass-line); border-radius: 999px; background: var(--navy); }
.cv-switch button { min-height: 40px; padding: 0 var(--s2); border: 0; border-radius: 999px; background: none; color: var(--on-navy); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.cv-switch button[aria-pressed="true"] { background: var(--indigo); color: var(--white); }
.input-card-cv[data-cv-mode="paste"] .upload { display: none; }
.input-card-cv[data-cv-mode="upload"] textarea { display: none; }
.input-card-cv[data-cv-mode="upload"] .upload { flex: 1; flex-direction: column; justify-content: center; min-height: 150px; padding: var(--s3) var(--s2); border: 2px dashed rgba(165, 139, 255, 0.5); border-radius: 16px; text-align: center; }
.status.problem { color: var(--ink); }
@media (max-width: 719px) {
  #check-area { padding: 12px; border-radius: 22px; }
  .input-card { padding: 12px; }
}
@media (min-width: 720px) {
  #check-area { padding: var(--s4); }
  .input-card-cv[data-cv-mode="upload"] .upload { min-height: 220px; }
}

/* ---------- Dark zone details: form, examples, result, footer ---------- */
/* Rating colours on dark: strong uses light indigo (no green). */
.check,
#examples { background: var(--navy); color: var(--white); }
#check-area { background: radial-gradient(60% 50% at 85% 0%, rgba(99, 49, 251, 0.22), transparent 70%), radial-gradient(50% 45% at 10% 100%, rgba(99, 49, 251, 0.14), transparent 70%); }
.value-row li { background: rgba(99, 49, 251, 0.22); color: var(--white); }
/* Result view on dark (it replaces the form inside the dark section) */
.result .hint { color: var(--on-navy); }
.again { border-color: var(--indigo-light); color: var(--white); }
.examples-link { color: var(--indigo-light); }
/* The result's cards stay white, so their text must stay dark instead of taking the section's white */
.result .card,
.sample-flag { color: var(--ink); }

/* Examples on dark */
#examples .lead,
#examples .quiet { color: var(--on-navy); }
#examples .tabs { background: var(--glass); border-color: var(--glass-line); }
#examples .tab { color: var(--on-navy); }
#examples .tab:hover { background: rgba(99, 49, 251, 0.22); }
#examples .tab[aria-selected="true"] { background: var(--indigo); color: var(--white); }
#examples .card { background: var(--glass); border-color: var(--glass-line); box-shadow: none; color: var(--white); }
#examples .score-side { background: rgba(99, 49, 251, 0.16); box-shadow: inset 0 0 0 1px rgba(165, 139, 255, 0.22); }
#examples .ring-track { stroke: var(--glass-line); }
#examples .ring-arc { stroke: var(--indigo-light); }
#examples .ring-max { color: var(--on-navy); }
#examples .band,
#examples .req-name,
#examples .fix p,
#examples .checklist li,
#examples .panel-label { color: var(--white); }
#examples .counts li { background: rgba(255, 255, 255, 0.06); }
#examples .rate { color: var(--white); }
/* Pure indigo is only 2.8 to 3.1:1 on these dark cards, so "strong" uses light indigo (7.1:1). Amber, coral and grey already pass (5.1 to 8.9:1) and stay as they are. */
#examples .rate-strong { --c: var(--indigo-light); }
#examples .req { border-top-color: var(--glass-line); }
#examples .kind { border-color: var(--glass-line); color: var(--on-navy); }
#examples .card p.req-evidence,
#examples .card p.check-note { color: var(--on-navy); }
#examples .checklist .i,
#examples .fold > summary .i { color: var(--indigo-light); }

/* Closing is already dark; the footer joins it */
footer { background: var(--navy); border-top-color: var(--glass-line); color: var(--on-navy); }
footer nav a:hover { color: var(--white); }
footer .logo { color: var(--white); }

/* ---------- Examples v2: compact card, all six requirements, Before/After, three fixes ---------- */
#examples .tab-panel { gap: var(--s2); max-width: 960px; margin-left: auto; margin-right: auto; }
#examples .panel-main { gap: var(--s2); padding: var(--s2); }
#examples .score-side { gap: var(--s2); padding: var(--s2); }
#examples .score-side .ring { width: 112px; height: 112px; }
#examples .score-side .ring-score { font-size: 34px; }
#examples .band { font-size: 20px; }
#examples .counts { gap: 6px; }
#examples .counts li { padding: 8px 10px; }
#examples .count-num { font-size: 20px; margin-bottom: 4px; }
#examples .req { padding: 12px 0; }
#examples .req-name { font-size: 16px; }
#examples .card p.req-evidence { font-size: 15px; }
.ex-ba { display: grid; gap: var(--s1); }
.ex-ba .say, .ex-ba .show { padding: 12px var(--s2); }
.ex-ba .show-line { font-size: 18px; }
#examples .panel-label { font-size: 20px; margin-bottom: 12px; }
#examples .fixes { gap: 12px; }
#examples .fix { gap: 12px; padding: var(--s2); }
#examples .fix p { font-size: 16px; line-height: 1.45; }
#examples .fix-num { width: 30px; height: 30px; font-size: 15px; }
@media (max-width: 719px) {
  /* Phones: ring beside the band and the four tiles, so the panel stays short */
  #examples .score-side { display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "ring band" "counts counts"; align-items: center; gap: 12px; text-align: left; }
  #examples .score-side .ring { grid-area: ring; }
  #examples .score-info { display: contents; }
  #examples .score-side .band { grid-area: band; margin: 0; }
  #examples .score-side .counts { grid-area: counts; }
  #examples .score-side .ring { width: 88px; height: 88px; }
  #examples .score-side .ring-score { font-size: 26px; }
  #examples .score-side .ring-max { font-size: 10px; }
  #examples .band { font-size: 17px; margin-bottom: 8px; }
  #examples .counts li { padding: 6px 8px; }
  #examples .count-num { font-size: 17px; }
}
@media (min-width: 720px) {
  #examples .panel-main { padding: var(--s3); }
  #examples .score-side { flex-wrap: nowrap; text-align: left; }
  #examples .score-info .band { margin-bottom: 12px; }
  #examples .req { grid-template-columns: 1fr 150px; }
}
@media (min-width: 960px) {
  /* Score panel beside the requirements, no taller than it needs to be */
  #examples .panel-main { grid-template-columns: 232px 1fr; gap: var(--s3); align-items: start; }
  #examples .score-side { flex-direction: column; align-items: stretch; text-align: center; }
  #examples .score-side .ring { margin: 0 auto; }
  #examples .counts { grid-template-columns: 1fr 1fr; }
}

/* Privacy link inside the consent sentence: opens in a new tab, shown by a small icon */
.ext-link { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-weight: 600; }
.ext-link .i { width: 15px; height: 15px; }
.form-foot { display: grid; gap: var(--s2); margin-top: var(--s3); }
@media (min-width: 720px) {
  .check { padding: var(--s8) 0; }
  .input-card { padding: var(--s3); }
  .input-card textarea { min-height: 220px; }
}
@media (min-width: 900px) {
  .input-cards { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .form-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s4); }
}
.mode-box { margin: 0 0 var(--s3); display: grid; gap: var(--s1); min-width: 0; /* fieldsets don't shrink below their content by default */ }
/* "display: grid" above would otherwise override the hidden attribute and show the test-only boxes to everyone */
.mode-box[hidden] { display: none; }
.mode-box legend { padding: 0 var(--s1); font-weight: 700; font-size: 15px; }
.radio { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; cursor: pointer; }
.radio input, .consent input { width: 22px; height: 22px; flex: none; accent-color: var(--indigo); }
.passcode { display: grid; gap: 6px; margin-top: var(--s1); }
.passcode label { font-weight: 600; font-size: 15px; }
.passcode input { min-height: 48px; padding: 0 var(--s2); border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }

.form { display: block; }
.field { display: grid; gap: var(--s1); min-width: 0; }
.field-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1); }
.field-head label { font-family: var(--heading); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.counter { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.over { color: var(--missing); font-weight: 650; }
textarea { width: 100%; min-height: 220px; padding: var(--s2); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; }
textarea.over { border-color: var(--missing); border-width: 2px; }
.field-msg { font-size: 15px; line-height: 1.45; color: var(--ink); }
.field-msg:empty { display: none; }
.field-msg.problem { color: var(--missing); font-weight: 600; }
.hint { font-size: 14px; line-height: 1.45; color: var(--muted); }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); }
.upload-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 var(--s2); border: 1px solid var(--indigo); border-radius: 999px; color: var(--indigo-light); font-weight: 650; font-size: 15px; cursor: pointer; }
.upload-btn .i { width: 18px; height: 18px; }
#cv-file:focus-visible + .hint, .upload-btn:focus-within { outline: 3px solid var(--sky); outline-offset: 3px; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; cursor: pointer; }
.consent input { margin-top: 2px; }
.consent a { color: var(--indigo-light); text-underline-offset: 3px; }
/* Submit: same button design, a little more compact on phones */
.form .cta { border: none; font: inherit; font-size: 17px; font-weight: 650; cursor: pointer; width: 100%; min-height: 52px; padding: 0 var(--s3); }
.form .cta[disabled] { opacity: 0.6; cursor: progress; transform: none; }
@media (min-width: 600px) {
  .form .cta { width: auto; justify-self: start; }
}
@media (min-width: 900px) {
  .form .cta { min-height: 56px; font-size: 18px; }
}

.status { margin-top: var(--s3); padding: var(--s3); border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font-size: 17px; line-height: 1.55; }
.status h2 { font-size: 22px; margin-bottom: var(--s1); }
.status.problem { border: 2px solid var(--partial); }
/* Loading: a calm, steady pulse with one line of text. No progress bar and no
   changing messages, so nothing suggests the answer is nearly ready. */
.status.loading { display: flex; align-items: center; gap: var(--s2); background: var(--indigo-soft); border-color: rgba(99, 49, 251, 0.25); font-weight: 600; color: var(--ink); }
.pulse { position: relative; display: inline-block; width: 28px; height: 28px; flex: none; }
.pulse::before, .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--indigo); }
.pulse::before { animation: pulse-ring 1.8s ease-out infinite; }
.pulse::after { inset: 8px; }
@keyframes pulse-ring { 0% { transform: scale(0.45); opacity: 0.55; } 100% { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse::before { animation: none; opacity: 0.25; } }

.result { display: grid; gap: var(--s3); max-width: 860px; margin: 0 auto; }
.result[hidden] { display: none; }
.result:focus { outline: none; }
/* Model text can hold long unbroken words or links; let them wrap instead of widening the page. */
.result p, .result li, .result .req-name { overflow-wrap: anywhere; }
.result .fix p { min-width: 0; }
.result h2 { font-size: clamp(26px, 4vw, 34px); margin-top: var(--s3); }
.sample-flag { padding: var(--s2) var(--s3); border-radius: 16px; background: var(--indigo-soft); font-weight: 600; }
.result-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.result-head .ring { width: 140px; height: 140px; }
.result-head .ring-score { font-size: 46px; }
.result-head .band { width: auto; flex: 1 1 200px; }
.result .card p.req-evidence { color: var(--muted); }
.result .req { grid-template-columns: 1fr; }
.check-grid { display: grid; gap: var(--s2); }
.check-grid .card { display: grid; gap: var(--s1); }
.check-name { font-weight: 700; font-size: 18px; }
.rewrite { display: grid; gap: var(--s1); }
.rewrite-before, .rewrite-after { padding: var(--s2) var(--s3); border-radius: 16px; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.rewrite-before { border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.rewrite-after { border: 2px solid var(--indigo); background: var(--indigo-soft); color: var(--ink); font-weight: 600; }
.rewrite small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.rewrite-after small { color: var(--indigo-light); }
.verdict { font-size: 18px; line-height: 1.6; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s2); }
.examples-link { display: inline-flex; align-items: center; min-height: 52px; color: var(--indigo-light); font-weight: 650; text-underline-offset: 4px; }
.again { justify-self: start; min-height: 52px; padding: 0 var(--s3); border: 1px solid var(--indigo); border-radius: 999px; background: none; color: var(--indigo-light); font: inherit; font-weight: 650; cursor: pointer; }

@media (min-width: 720px) {
  .check-grid { grid-template-columns: 1fr 1fr; }
  .result .req { grid-template-columns: 1fr auto; align-items: start; }
}

/* Phones and tablets (768px and below, 16 November 2026): about 48px between
   one section's content and the next, and tighter space under headings.
   Home page only (this file isn't used by the blog, Privacy or Terms). */
@media (max-width: 768px) {
  section, .check { padding: var(--s3) 0; }
  .hero { padding-bottom: var(--s3); }
  .section-head { margin-bottom: var(--s3); }
  .section-head .lead, .closing .lead { margin-top: 12px; }
  .faq-item:last-child { margin-bottom: 0; }
  /* The gap: each Says it / Shows it pair is one card, with a thin divider */
  .pair { gap: 0; border: 2px solid var(--indigo); border-radius: 16px; background: var(--indigo-soft); overflow: hidden; }
  .pair .say { border: none; border-radius: 0; padding: var(--s2) var(--s3) 12px; }
  .pair .show { border: none; border-radius: 0; background: none; border-top: 1px solid var(--line); padding: 12px var(--s3) var(--s3); }
}
