.checker-page {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 1rem/1.6 Inter, "Avenir Next", "Segoe UI", sans-serif;
}

.checker-footer .brand {
  gap: 9px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.05em;
}
.checker-footer .brand-mark { width: 34px; height: 34px; margin: 0; border-radius: 8px; }
.checker-footer .wordmark b { color: var(--orange-dark); }
.checker-page .site-header { line-height: normal; }
.checker-page .sign-in { display: inline-flex; align-items: center; flex-shrink: 0; }
.checker-page :focus-visible { outline: 2px solid #265d4c; outline-offset: 4px; }
.checker-page [hidden] { display: none; }
.checker-page .button.orange { background: linear-gradient(135deg,#c74418,#b93310); color: white; text-align: center; }
.checker-page .button:disabled { opacity: .7; cursor: default; transform: none; box-shadow: none; }

.checker-main {
  width: min(1384px, calc(100% - 72px));
  margin: auto;
  padding: 0 0 48px;
}
.checker-main h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.05vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.checker-main h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.02em; }
.checker-muted { margin: 0; color: #53675e; }
.checker-intro { padding: clamp(40px, 4vw, 60px) 0 clamp(28px, 4vw, 48px); text-align: center; }
.checker-intro h1 {
  margin: 0 auto 18px;
}
.checker-intro h1 em { display: block; color: #c64418; font-style: normal; }
.checker-lede { max-width: 86ch; margin: 0 auto 30px; }
.checker-form { max-width: 880px; margin: auto; }
.checker-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.checker-upload .button { min-width: clamp(190px, 17vw, 260px); min-height: 60px; padding-inline: 24px; }
.checker-file {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 11px 16px;
  border: 1px solid #dfe7da;
  border-radius: 12px;
  background: var(--sage);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.checker-file:hover { background: #e4eddd; }
.checker-file:focus-within { outline: 2px solid #265d4c; outline-offset: 3px; }
.checker-file input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.checker-file svg { width: 21px; height: 21px; flex: none; }
.checker-file-button { flex: none; font-weight: 760; }
.checker-file:has(input:disabled) { opacity: .7; cursor: default; }
#cv-file-name, #file-guidance {
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid #aebfb2;
  color: #475f53;
  font-size: .875rem;
  line-height: 1.35;
}
#cv-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checker-file:has(#cv-file-name:not([hidden])) #file-guidance {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%);
}
.checker-privacy { max-width: 79ch; margin: 13px auto 0; color: #51655b; font-size: .875rem; line-height: 1.5; }
.checker-privacy-link { text-decoration: underline; text-underline-offset: .15em; }
.checker-form [role="status"], .checker-form [role="alert"] { margin: 8px auto 0; }
.checker-form [role="status"]:empty, .checker-form [role="alert"]:empty { margin: 0; }
.checker-error { color: #a1331d; font-weight: 650; }

.checker-example {
  overflow: hidden;
  padding: clamp(18px, 2.5vw, 34px);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg,#174237,var(--ink) 70%);
  color: var(--paper);
}
.example-header { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; margin-bottom: 16px; }
.example-header p { margin: 6px 0 0; color: #d3e2d7; }
.example-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.example-switch { display: flex; padding: 3px; border: 1px solid #88a49a; border-radius: 12px; }
.example-switch button, .example-play {
  min-height: 42px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255,255,255,.14);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.example-switch button:hover, .example-play:hover { background: #2b5147; }
.example-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.example-switch button:focus-visible, .example-play:focus-visible { outline-color: #e2ebe0; outline-offset: 2px; }
.example-play { display: flex; align-items: center; gap: 6px; border-color: #88a49a; }
.example-play svg { width: 18px; height: 18px; flex: none; }
.example-pause-icon, [data-playing] .example-play-icon { display: none; }
[data-playing] .example-pause-icon { display: block; }
.example-panel { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 12px; }
.example-document-view {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: clamp(315px, 35vw, 370px);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #dce8d9;
  container-type: size;
}
.example-feedback {
  min-width: 0;
  padding: clamp(18px, 2.3vw, 30px);
  border-radius: var(--radius-md);
  color: var(--ink);
}
.example-cv {
  position: relative;
  width: min(calc(100% - 24px), calc((100cqh - 28px) * 210 / 297));
  aspect-ratio: 210 / 297;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 24px #12372f30;
  container-type: inline-size;
}
.checker-example:not([data-stage="overview"]) .example-cv {
  transform: translate(var(--example-pan-x, 0), var(--example-pan-y, 0)) scale(var(--example-zoom, 1));
}
.example-cv-body { padding: 4.75% 6.2%; font-size: 3.6cqw; line-height: 1.25; }
.example-cv-header { display: block; height: auto; margin: 0 0 1.7cqw; padding: 0 0 1.8cqw; border-bottom: 1px solid var(--line); }
.example-cv-header h3 { font-size: 8.1cqw; line-height: 1.05; }
.example-cv p { margin: 0; }
.example-cv-header p { margin-top: .75cqw; color: #516459; }
.example-contact { font-size: .92em; }
.example-cv-focus { position: relative; font-size: 4.15cqw; }
.example-cv h4 { margin: 2.15cqw 0 .65cqw; font-size: 3.3cqw; letter-spacing: .09em; text-transform: uppercase; color: #4a6658; }
.example-role { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1.5cqw; font-size: .94em; }
.example-role span { color: #516459; font-size: .88em; }
.example-previous-role { margin-top: 2.8cqw; }
.example-cv ul { display: grid; gap: .5cqw; margin: 1cqw 0 0; padding: 0; list-style: none; }
.example-cv li { padding: .6cqw 1cqw .6cqw 3.7cqw; position: relative; }
.example-cv li::before { content: ""; position: absolute; width: .9cqw; height: .9cqw; border-radius: 50%; left: 1.1cqw; top: .72em; background: currentColor; }
.example-cv-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3cqw; }
.example-highlight { margin: 0; border-radius: 2px; background: var(--peach); }
p.example-highlight { padding: 1.15cqw 1.4cqw; }
[data-stage="overview"] .example-highlight, [data-stage="focus"] .example-highlight { background: transparent; }
[data-stage="feedback"] .example-highlight { box-shadow: inset 0 0 0 1px #e6bda1; }
[data-stage="edits"] .example-highlight { background: #e3eedb; font-weight: 650; }
.example-notes { display: grid; min-width: 0; }
.example-feedback { background: var(--sage); align-content: center; }
.example-feedback h3 { font-size: clamp(1.2rem, 2.1vw, 1.85rem); }
.example-feedback p { max-width: 49ch; margin: 9px 0 0; color: #334e42; }
.example-feedback dl { margin: 12px 0 0; color: #334e42; }
.example-feedback dt { margin-top: 9px; font-weight: 750; }
.example-feedback dd { margin: 0; }

.checker-results {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin: 0 0 clamp(24px, 3.5vw, 44px);
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.checker-score-header { margin-bottom: 17px; }
.checker-score-header h2 { width: fit-content; }
.checker-score-header > p { margin-top: 6px; }
.checker-sample { color: #53675e; font-size: .875rem; }
.checker-breakdown { display: grid; grid-template-columns: minmax(112px, 28%) minmax(0, 1fr); align-items: center; gap: clamp(14px, 2.3vw, 30px); }
.checker-gauge { position: relative; display: grid; place-items: center; width: min(100%, 190px); margin-inline: auto; aspect-ratio: 1; }
.checker-gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #e6ede1; stroke-width: 8; }
#cv-score-arc { stroke: #759865; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }
#cv-score-arc[stroke-dasharray="0 100"] { visibility: hidden; }
.checker-score-value { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.checker-score-value strong { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.065em; }
.checker-categories article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 3px 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.checker-categories article:last-child { border-bottom: 0; padding-bottom: 0; }
.checker-categories h3 { font-size: 1rem; }
.checker-category-score { margin: 0; font-size: .875rem; font-weight: 730; white-space: nowrap; }
.checker-feedback { grid-column: 1/-1; margin: 0; color: #475f53; font-size: .925rem; }
.checker-categories meter {
  display: block;
  grid-column: 1/-1;
  width: 100%;
  height: 6px;
  margin-block: 4px;
  border: 0;
  border-radius: 12px;
  background: #e6ede1;
}
.checker-categories meter::-webkit-meter-bar { background: #e6ede1; border: 0; }
.checker-categories meter::-webkit-meter-optimum-value { background: #759865; border-radius: 8px; }
.checker-categories meter::-moz-meter-bar { background: #759865; border-radius: 8px; }
.checker-suggestions { min-width: 0; padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.checker-suggestions h2 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); }
.checker-suggestions ol { margin: 13px 0 22px; padding: 0 0 0 1.5em; }
.checker-suggestions li { padding: 11px 0 11px 6px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.checker-suggestions li::marker { color: #ae431d; font-weight: 760; }

.checker-app {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 70px);
  margin-top: clamp(28px, 4.5vw, 64px);
  padding: clamp(24px, 3.5vw, 50px);
  border-radius: var(--radius-lg);
  background: #e9efe3;
}
.checker-app p { margin: 11px 0 19px; color: #445e51; }
.checker-app .button.outline { background: transparent; border-color: #657f71; }
.checker-app dl { margin: 0; padding-left: clamp(18px, 3vw, 42px); border-left: 1px solid #cbd9cb; }
.checker-app dl > div + div { margin-top: 10px; padding-top: 10px; border-top: 1px solid #cbd9cb; }
.checker-app dt { font-weight: 750; }
.checker-app dd { margin: 1px 0 0; color: #445e51; }
.checker-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px 34px; margin: 42px 0 0; padding-top: 30px; border-top: 1px solid var(--line); }
.checker-faq h2 { max-width: 17ch; font-size: clamp(1.65rem, 3vw, 2.32rem); }
.checker-faq .faq-list { max-width: none; }
.checker-faq .faq-list p, .checker-faq summary { font-size: 1rem; }
.checker-faq .faq-list details:first-child summary { padding-top: 0; }
.checker-footer { padding-inline: 32px; }
.checker-footer .footer-links { display: flex; gap: 14px; }

@keyframes checker-enter {
  from { opacity: .65; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes checker-gauge-fill { from { stroke-dasharray: 0 100; } }
@keyframes checker-document-scan {
  0% { opacity: 0; transform: translateY(0); }
  15%, 78% { opacity: 1; }
  100% { opacity: 0; transform: translateY(85%); }
}
@keyframes checker-edit-highlight {
  from { background: #c8dfb9; }
}
@media (prefers-reduced-motion: no-preference) {
  .example-cv { transition: transform .9s var(--ease); }
  .example-cv-focus {
    outline: 1px solid transparent;
    outline-offset: 7px;
    border-radius: 5px;
    transition: outline-color .32s var(--ease);
  }
  [data-stage="focus"] .example-cv-focus { outline-color: #9eb69b; }
  .example-feedback:not([hidden]), .checker-results:not([hidden]), .checker-page .checker-arrived {
    animation: checker-enter .36s var(--ease) both;
  }
  [data-stage="spot"][data-playing] .example-cv-focus::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(transparent, rgba(117,152,101,.15) 16%, #86a779 18%, transparent 19%);
    animation: checker-document-scan 1.45s var(--ease) both;
  }
  [data-stage="edits"] .example-highlight { animation: checker-edit-highlight .65s var(--ease) both; }
  .checker-results:not([hidden]) #cv-score-arc { animation: checker-gauge-fill .62s var(--ease) both; }
}
@media (max-width: 960px) {
  .checker-results { grid-template-columns: 1fr; }
  .checker-suggestions { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .checker-main { width: calc(100% - 32px); padding-bottom: 28px; }
  .checker-upload { grid-template-columns: 1fr; padding: 9px; gap: 8px; border-radius: 16px; }
  .checker-upload .button { min-height: 50px; }
  .checker-privacy { font-size: .8125rem; }
  .checker-example, .checker-results, .checker-app { border-radius: 20px; }
  .example-header { align-items: flex-start; flex-direction: column; margin-bottom: 12px; }
  .example-panel, .checker-app, .checker-faq { grid-template-columns: 1fr; }
  .example-panel { gap: 9px; }
  .example-document-view, .example-feedback { border-radius: 13px; }
  .checker-app dl { padding: 15px 0 0; border-left: 0; border-top: 1px solid #cbd9cb; }
  .checker-faq { margin-top: 30px; padding-top: 22px; }
  .checker-faq h2 { max-width: none; }
  .checker-footer { flex-wrap: wrap; gap: 12px; padding-inline: 16px; }
  .checker-footer .footer-links { margin-left: 0; }
}
@media (max-width: 440px) {
  .checker-page .sign-in { padding-inline: 9px; }
  .checker-intro h1 em { text-wrap: balance; }
  .checker-breakdown { grid-template-columns: 1fr; gap: 4px; }
  .checker-gauge { width: 125px; margin-block: 0 8px; }
  .checker-file { padding-inline: 10px; gap: 7px; }
  #cv-file-name, #file-guidance { padding-left: 7px; }
  .example-controls, .example-switch { width: 100%; }
  .example-switch button { flex: 1; padding-inline: 5px; font-size: .8125rem; }
  .example-cv-focus { font-size: 4.4cqw; }
  .checker-example:is([data-stage="spot"], [data-stage="feedback"], [data-stage="edits"]) .example-document-view::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(var(--paper), transparent 10px, transparent calc(100% - 10px), var(--paper));
    pointer-events: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .checker-page .button, .checker-file, .example-switch button, .example-play { transition: none; }
  .checker-page .button:hover { transform: none; }
}
