
:root {
  color-scheme: light;
  --ground: #f7f6f6;
  --paper: #fff;
  --ink: #230b1d;
  --muted: #503b48;
  --rule: #b6a5ae;
  --blue: #64162b;
  --pale: #ebdfe4;
  font: 16px/1.55 "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--ground);
}
* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: #ccd6ff; color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
button { font: inherit; cursor: pointer; }
header {
  background: var(--ink);
  color: white;
  border-bottom: 4px solid var(--blue);
}
.header-inner, main, footer { width: min(1040px, calc(100% - 64px)); margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 1rem; }
.brand { font-weight: 700; font-size: 1.15rem; color: inherit; text-decoration: none; }
header :focus-visible { outline-color: white; }
.languages { display: flex; gap: .25rem; }
.languages button { border: 1px solid transparent; background: transparent; color: inherit; padding: .4rem .6rem; }
.languages [aria-pressed=true] { border-color: #a77588; }
main { padding-block: clamp(2rem, 6vw, 4.5rem); }
h1, h2 { font-family: "Calistoga", Georgia, serif; font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(2.55rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
p, figure { margin: 0; }
.entry { display: flex; justify-content: space-between; gap: 1.25rem 2rem; align-items: end; }
.intro { margin-top: .65rem; max-width: 54ch; color: var(--muted); }
.action { background: var(--blue); color: white; padding: .75rem 1rem; font-weight: 700; display: inline-block; text-decoration: none; }
.action:hover { background: #45101f; }
.sheet { background: var(--paper); border: 1px solid var(--rule); margin-top: 2.25rem; }
.sheet-title { padding: .7rem 1.15rem; background: var(--pale); border-bottom: 1px solid var(--rule); font-size: .88rem; font-weight: 700; }
.sample, .sheet figcaption { display: grid; grid-template-columns: minmax(9rem, 1fr) minmax(0,3fr); gap: .4rem 1.25rem; padding: 1.05rem 1.15rem; }
.sample + .sample, .sheet figcaption { border-top: 1px solid var(--rule); }
.label { font-size: .85rem; font-weight: 700; color: var(--muted); }
.sample p:last-child { font-size: 1.09rem; max-width: 55ch; }
.sample mark { background: #e0e7ff; color: inherit; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.sheet figcaption { color: var(--blue); background: #f7f8fd; }
.sheet figcaption .label { color: inherit; }
.note, footer { color: var(--muted); font-size: .82rem; }
.note { margin-top: .65rem; }
footer { border-top: 1px solid var(--rule); padding: .8rem 0 1.5rem; }
.plain { color: var(--blue); text-underline-offset: .2em; }
.results h1 { margin-top: 1rem; }
.findings { background: white; border-block: 1px solid var(--rule); margin: 1.5rem 0 2.25rem; }
.finding { padding: .85rem 1.1rem; }
.finding + .finding { border-top: 1px solid var(--rule); }
.finding strong { display: block; margin-bottom: .2rem; }
.finding p, .offer p { color: var(--muted); }
.offers { border-top: 2px solid var(--ink); }
.offer { display: grid; grid-template-columns: 1fr 1.15fr auto; gap: .5rem 1.4rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.offer b { color: var(--blue); }
@media (max-width: 700px) {
  .header-inner, main, footer { width: calc(100% - 36px); }
  .entry { flex-direction: column; align-items: start; }
  .sheet { margin-top: 1.5rem; }
  .offer { grid-template-columns: 1fr; }
}
@media (max-width: 475px) {
  .sample, .sheet figcaption { grid-template-columns: 1fr; }
}

header { background: var(--ground); color: var(--ink); border: 0; }
header :focus-visible { outline-color: var(--blue); }
.header-inner { border-bottom: 1px solid var(--ink); }
.header-inner, main, footer { width: min(1440px, calc(100% - 80px)); }
.brand { font: 2rem "Calistoga", Georgia, serif; }
main { padding-top: clamp(2rem, 4.5vw, 4rem); }
.entry { display: block; }
.entry .intro { max-width: 75ch; }
.intake { display: grid; grid-template-columns: 1fr 1.1fr auto; gap: .8rem 1rem; align-items: end; margin-top: 1.15rem; }
.intake label { display: grid; gap: .25rem; min-width: 0; font-weight: 700; }
.intake input, .intake textarea { background: #fff; border: 1px solid var(--rule); color: inherit; font: inherit; font-weight: 400; padding: .6rem; width: 100%; min-width: 0; }
.intake textarea { resize: vertical; min-block-size: 3.6rem; }
.intake .action { border: 1px solid var(--blue); white-space: normal; }
.example { border-top: 1px solid var(--ink); margin-top: 2.2rem; padding-top: 1rem; }
.example h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
.example > p { margin: .4rem 0 .8rem; }
.report { border: 1px solid var(--ink); padding: clamp(.75rem, 2.2vw, 1.7rem); background: var(--paper); }
.report-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(10rem, 16%); gap: 1.4rem; }
.report-table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.report-table caption { text-align: left; border-bottom: 1px solid var(--ink); font-family: Georgia,serif; font-weight: 700; padding-bottom: .65rem; }
.report-table th, .report-table td { text-align: left; vertical-align: top; padding: .6rem .65rem; overflow-wrap: anywhere; }
.report-table thead { background: var(--pale); }
.report-table tbody tr { border-bottom: 1px dotted var(--rule); }
.report-table tr > :nth-child(2) { border-left: 1px solid var(--rule); }
.report-table .gap { background: #f6e9ed; }
.margin-note { border-left: 1px solid var(--rule); padding: 2.2rem 0 .5rem 1rem; font: italic 1.05rem/1.45 Georgia, serif; color: var(--blue); }
.next-step { border-top: 1px solid var(--ink); padding-top: .65rem; margin-top: .9rem; }
@media (max-width: 850px) { .intake { grid-template-columns: 1fr 1fr; } .intake .action { justify-self: start; } .report-layout { grid-template-columns: 1fr; gap: .7rem; } .margin-note { border-left: 0; padding: 0; } }
@media (max-width: 550px) { .header-inner, main, footer { width: calc(100% - 32px); } .intake { grid-template-columns: 1fr; } .brand { font-size: 1.4rem; } .report-table th, .report-table td { padding: .5rem .25rem; } }

@media (min-width: 851px) {
  .header-inner, main, footer { width: min(1456px, calc(100% - 80px)); }
  .brand { font-size: 2.45rem; }
  main { padding-top: 2.5rem; }
  .entry h1 { font-size: clamp(3rem, 5.4vw, 5.25rem); }
  .entry .intro { max-width: 920px; font: 1.25rem/1.4 Georgia, serif; }
  .intake {
    --control-height: 3.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto;
  }
  .intake input, .intake textarea, .intake .action { block-size: var(--control-height); min-block-size: 0; }
  .intake input[type="file"] {
    padding-block: 0;
    line-height: calc(var(--control-height) - 2px);
  }
  .intake input[type="file"]::file-selector-button { line-height: normal; }
  .intake textarea { resize: none; }
  .intake .action { display: grid; place-items: center; padding-inline: 1.25rem; }
  .example { margin-top: 1.45rem; }
  .example h2 { font-size: 1.3rem; }
}

.live-result { margin-top: 1.15rem; }
.live-result:empty { display:none; }
.live-result ul { padding-left: 1.4rem; }

.live-result .report, .sample-report .report { margin-top: 1rem; }
.score-line { font-weight: 700; color: var(--blue); font-size: 1.25rem; margin: .4rem 0; }
.live-result .margin-note p { margin-top: .4rem; }
.live-result summary { cursor: pointer; }

.result-offer { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--ink); }
.result-offer > p { margin-top: .45rem; }
.interest-form { display: grid; justify-items: start; gap: .6rem; margin-top: .8rem; }
.interest-email { display: grid; gap: .25rem; width: min(100%, 24rem); }
.interest-email input { padding: .6rem; border: 1px solid var(--rule); font: inherit; width: 100%; }
.interest-consent { display: flex; align-items: baseline; gap: .45rem; }
.interest-form .action { border: 1px solid var(--blue); }
.interest-feedback:empty { display: none; }

.review-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: .75rem; border-block: 1px solid var(--rule); }
.review-score, .review-summary .result-offer { padding: 1rem 1.15rem; }
.review-summary .result-offer { border: 0; border-left: 1px solid var(--rule); margin: 0; background: var(--pale); }
.result-offer h3 { font-family: "Calistoga", Georgia, serif; font-weight: 400; font-size: 1.35rem; margin: 0; }
.result-offer > .action { margin-top: .65rem; border: 1px solid var(--blue); }
.offer-price, .score-label { font-weight: 700; }
.score-line { line-height: 1; }
.score-line strong { font: clamp(2.5rem, 5vw, 4.2rem)/1 "Calistoga", Georgia, serif; }
.score-line span { margin-left: .2rem; }
.review-pending { padding: .9rem 1.1rem; border-block: 1px solid var(--rule); background: var(--paper); }
.review-pending p { font-weight: 700; }
.review-progress { height: .35rem; margin-top: .65rem; background: var(--pale); overflow: hidden; }
.review-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--blue);
  transform-origin: left;
  animation: review-progress 4s linear both;
}
@keyframes review-progress {
  0% { transform: scaleX(.04); }
  16% { transform: scaleX(.34); }
  42% { transform: scaleX(.47); }
  65% { transform: scaleX(.77); }
  82% { transform: scaleX(.84); }
  100% { transform: scaleX(.94); }
}
@media (prefers-reduced-motion: reduce) {
  .review-progress span { animation: none; transform: scaleX(.3); }
}
.result-offer [hidden] { display: none; }
@media (max-width: 650px) {
  .review-summary { grid-template-columns: 1fr; }
  .review-summary .result-offer { border-left: 0; border-top: 1px solid var(--rule); }
}

.review-reveal { animation: review-reveal .48s cubic-bezier(.2,.75,.25,1) both; }
@keyframes review-reveal {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.score-line strong { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .review-reveal { animation: none; }
}

.score-line .score-band {
  display: inline-block;
  margin-inline-start: .55rem;
  padding: .35rem .55rem;
  border: 1px solid var(--rule);
  background: var(--pale);
  font-size: .85rem;
  vertical-align: middle;
  transition: opacity .18s ease-out;
}
.score-band-pending { opacity: 0; }

.job-field { display: grid; gap: .25rem; min-width: 0; }
.job-editor { position: relative; block-size: var(--control-height, 3.6rem); }
.intake .job-editor textarea {
  display: block;
  block-size: 100%;
  min-block-size: 0;
  padding-inline-end: 3rem;
  resize: none;
}
.job-toggle {
  position: absolute;
  z-index: 1;
  inset-block-start: .35rem;
  inset-inline-end: .35rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: var(--paper);
  color: var(--blue);
}
.job-toggle span { width: .6rem; height: .6rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.job-toggle:hover { background: var(--pale); }
.job-editor.job-expanded { z-index: 2; }
.intake .job-expanded textarea {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  block-size: clamp(8rem, 36vh, 16rem);
  box-shadow: 0 .6rem 1.4rem #230b1d29;
}
.job-expanded .job-toggle span { transform: translateY(2px) rotate(225deg); }

.score-breakdown th, .score-breakdown td { padding: .7rem .6rem; }
.score-breakdown thead th:first-child { width: 24%; }
.score-breakdown thead th:nth-child(2) { width: 24%; }
.score-breakdown thead th:nth-child(3) { width: 13%; }
.score-breakdown .breakdown-group { background: var(--ground); border-top: 1px solid var(--rule); color: var(--blue); }
.breakdown-points { font-weight: 700; font-variant-numeric: tabular-nums; }
.breakdown-method { margin-top: .75rem; }
@media (max-width: 550px) {
  .score-breakdown th, .score-breakdown td { padding: .45rem .25rem; font-size: .8rem; }
  .score-breakdown thead th:first-child { width: 23%; }
  .score-breakdown thead th:nth-child(2) { width: 22%; }
  .score-breakdown thead th:nth-child(3) { width: 12%; }
}

.resume-field { display: grid; gap: .25rem; min-width: 0; }
.resume-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: .45rem;
  block-size: var(--control-height, 3.6rem);
  padding-inline: .6rem;
  border: 1px solid var(--rule);
  background: #fff;
  min-width: 0;
}
.intake .resume-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.resume-picker:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.resume-button { flex: none; padding: .15rem .45rem; background: var(--pale); border: 1px solid var(--rule); }
.resume-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.intake .job-editor:not(.job-expanded) textarea {
  line-height: 1.5rem;
  padding-block: calc((var(--control-height, 3.6rem) - 1.5rem - 2px) / 2);
}

.review-preview {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows .38s ease, opacity .26s ease;
}
.review-preview[hidden] { display: none; }
.review-preview-closing { grid-template-rows: 0fr; opacity: 0; }
.review-preview-clip { min-block-size: 0; overflow: hidden; }
.review-preview-content {
  border-top: 1px solid var(--rule);
  margin-top: 1.25rem;
  padding-top: .85rem;
  transform: translateY(0);
  transition: transform .38s ease;
}
.review-preview-closing .review-preview-content { transform: translateY(-1rem); }
.review-preview-content h2 { font-size: 1.4rem; }
.review-preview-content p { margin-top: .35rem; max-width: 70ch; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .review-preview, .review-preview-content { transition: none; }
}

.result-offer > a.action { margin-top: .65rem; }
.service-options { margin-top: 1.6rem; }
.service-options .result-offer:first-child { border-left: 0; background: var(--paper); }
.service-options .offer-price { margin-top: .8rem; }
.service-options .interest-form .action { justify-self: start; }

#services-page { padding-bottom: clamp(1.8rem, 4vw, 3rem); }
.service-back { display: inline-block; margin-bottom: 1rem; }
#services-page h1 { font-size: clamp(2.15rem, 4.2vw, 3.85rem); max-width: 25ch; text-wrap: balance; }
#services-page > .intro { max-width: 65ch; margin-top: .8rem; }
.service-options { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.service-options .result-offer {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: clamp(1rem, 2.2vw, 1.65rem);
}
.service-options .result-offer > p { margin: 0; max-width: 61ch; }
.service-purchase { margin-top: auto; padding-top: .45rem; }
.service-options .offer-price { margin-top: 0; }
.service-purchase > .action { margin-top: .65rem; border: 1px solid var(--blue); }

#create-page h1 { font-size: clamp(2.15rem, 4.2vw, 3.85rem); text-wrap: balance; max-width: 25ch; }
.creation-content { margin-top: 1.4rem; }
.creation-content > .action { margin-top: .75rem; }
.creation-content h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
.creation-content ul { margin: 0; padding-inline-start: 1.2rem; }

.creation-questions { display: grid; gap: 1rem; max-width: 65ch; margin-top: 1rem; }
.creation-questions label { display: grid; gap: .35rem; font-weight: 700; }
.creation-questions textarea { font: inherit; font-weight: 400; padding: .6rem; min-height: 5rem; border: 1px solid var(--rule); resize: vertical; }
.creation-questions .action { justify-self: start; }
.creation-content button.action { border: 1px solid var(--blue); }
.creation-downloads { display: flex; flex-wrap: wrap; gap: .55rem; margin: .8rem 0; }

.resume-checkout { margin: .75rem .55rem .75rem 0; }

.generation-pending { margin-top: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .generation-pending .review-progress span { animation-duration: 12s; }
}

.creation-content > .generation-pending {
  max-width: 42rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--rule);
}
.creation-content .generation-pending .review-progress { max-width: 30rem; }
.order-wait-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .75rem; }

.creation-score { margin-top: .85rem; padding: .8rem 1rem; border: 1px solid var(--rule); background: var(--paper); width: fit-content; max-width: 100%; }

.checkout-coupon { margin: 0 0 .65rem; }

.intake .recruiter-choice { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: .55rem; max-width: 76ch; font-size: .88rem; font-weight: 400; color: var(--muted); }
.intake .recruiter-choice input { flex: none; inline-size: 1rem; block-size: 1rem; margin: .2rem 0 0; accent-color: var(--blue); }
.gallery-leave { background: transparent; border: 0; padding: .25rem 0; text-decoration: underline; }
.recruiter-form { max-width: 34rem; margin-top: 1rem; }
.recruiter-form label { display: grid; gap: .3rem; margin-bottom: .7rem; font-weight: 700; }
.recruiter-form input { font: inherit; padding: .5rem; border: 1px solid var(--rule); }
.recruiter-form .action { border: 1px solid var(--blue); }
.recruiter-profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin-top: 1.3rem; }
.recruiter-profile h2 { font-size: 1.55rem; }
.recruiter-profile p { margin-top: .45rem; }

.admin-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; padding: 1rem 0; margin-top: 1rem; border-block: 1px solid var(--rule); }
.admin-totals strong { display: block; color: var(--blue); font-size: 1.55rem; }
.admin-table { margin-top: 2rem; }
.admin-table h2 { margin-bottom: .65rem; }
.admin-scroll { overflow-x: auto; }
.admin-scroll table { min-width: 43rem; table-layout: auto; }
.admin-partner { display: flex; align-items: center; gap: .35rem; }
.admin-partner input { max-width: 12rem; min-width: 0; font: inherit; padding: .35rem; border: 1px solid var(--rule); }
