/* Company Benefits Benchmark Report - only what the shared mortgage-page
   styles (css/mortgage-readiness-report.css, css/components.css) don't
   already cover. Everything else on the page reuses those classes as is.

   Every mock on this page is drawn in Harbourline Talent's brand, the
   fictional recruitment firm the real benefits-demo embed runs under
   (its design pack lives in the app repo). The shared mocks were built
   in the mortgage page's fictional firm's palette and Poppins, so this
   file recolours them. Its rules, from that pack:
   - Ink #10222B, Deep Teal #14625F, Signal Amber #F2B52E, Mist #EEF3F2
   - Bricolage Grotesque for headings, DM Sans for everything else
   - Sharp corners on buttons, cards and answer boxes
   - Amber for highlights only, with dark text on it
   This stylesheet only loads on this page, so the overrides of shared
   classes below don't need scoping. */
:root {
  --hl-ink: #10222B;
  --hl-teal: #14625F;
  --hl-amber: #F2B52E;
  --hl-mist: #EEF3F2;
  --hl-muted: #3A4F57;
  --hl-line: #D5DEDD;
  /* The report's own two state colours, from the sample PDF. */
  --hl-no: #C0392B;
  --hl-some: #B7771C;
  --hl-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --hl-body: 'DM Sans', system-ui, sans-serif;
}

/* The logo: the pack's mark as an image, the wordmark as live text, since
   the pack's full SVG logos set their wordmark in Bricolage and an SVG
   loaded through <img> can't see the page's web fonts. */
.hl-logo { display: inline-flex; align-items: center; gap: 0.32em; font-family: var(--hl-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--hl-ink); }
.hl-logo img { width: 1.2em; height: 1.2em; }
.hl-logo--dark { color: var(--hl-mist); }

.mock-window__url { font-family: var(--hl-body); }

/* ---- The embedded questionnaire --------------------------------------- */
.hl-site { font-family: var(--hl-body); }
.hl-site * { font-family: inherit; }
.hl-site__nav { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: #fff; }
.hl-site__nav .hl-logo { font-size: 17px; }
.hl-site__links { display: flex; gap: 14px; font-size: 11px; color: var(--hl-muted); }
.hl-site__stage { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; padding: 24px 20px; background: var(--hl-mist); }
.hl-q { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: #fff; }
.hl-q__meta { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--hl-muted); }
.hl-q__meta span:first-child { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hl-teal); }
.hl-q__progress { height: 4px; background: var(--hl-mist); }
.hl-q__progress span { display: block; height: 100%; background: var(--hl-amber); }
.hl-q__title { font-family: var(--hl-display); font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--hl-ink); }
.hl-q__options { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.hl-q__option { padding: 11px 16px; background: var(--hl-mist); font-size: 13px; color: var(--hl-ink); }
.hl-q__option.is-selected { background: var(--hl-ink); font-weight: 700; color: #fff; }
.hl-q__actions { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; font-size: 12px; color: var(--hl-teal); }
.hl-btn { padding: 9px 22px; background: var(--hl-ink); font-weight: 700; color: #fff; }
.hl-site__note { font-size: 10px; line-height: 1.5; color: var(--hl-muted); }

/* ---- The on-screen report ---------------------------------------------- */
.hl-result { font-family: var(--hl-body); }
.hl-result * { font-family: inherit; }
.hl-result__bar { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; background: var(--hl-ink); border-bottom: 3px solid var(--hl-amber); }
.hl-result__bar .hl-logo { font-size: 16px; }
.hl-result__doc { font-size: 10px; color: rgba(238, 243, 242, 0.82); }
.hl-result__body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; }
.hl-result__prepared { font-size: 10px; color: var(--hl-muted); }
.hl-tier { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: #F4F4F2; }
.hl-tier__title { font-size: 17px; font-weight: 700; color: var(--hl-ink); }
.hl-tier__text { font-size: 11px; line-height: 1.6; color: var(--hl-muted); }
.hl-h { align-self: flex-start; padding: 2px 0 5px; border-bottom: 2px solid var(--hl-amber); font-size: 12px; font-weight: 700; color: var(--hl-ink); }
.hl-table { display: flex; flex-direction: column; }
.hl-table__row { display: grid; grid-template-columns: minmax(0, 1fr) auto 72px; gap: 10px; align-items: center; padding: 7px 0 7px 9px; border-bottom: 1px solid #E6EAEA; border-left: 3px solid transparent; font-size: 11px; color: var(--hl-ink); }
.hl-table__row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-table__row span:nth-child(2) { color: var(--hl-muted); white-space: nowrap; }
.hl-table__row span:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.hl-table__row--head { padding-top: 0; font-size: 9px; color: var(--hl-muted); }
.hl-table__row--head span:last-child { font-weight: 400; }
.hl-table__row--no { border-left-color: var(--hl-no); }
.hl-table__row--no span:last-child { color: var(--hl-no); }
.hl-table__row--some { border-left-color: var(--hl-some); }
.hl-table__row--some span:last-child { color: var(--hl-some); }
.hl-result__note { font-size: 10px; line-height: 1.6; color: var(--hl-muted); }

/* ---- The email (shared .mail__* mock, recoloured) ---------------------- */
.laptop__screen { font-family: var(--hl-body); }
.browser__favicon,
.mail__avatar,
.mail__folder--active span:first-child,
.agenda-item__rail--navy { background: var(--hl-ink); }
.mail__folder--active { background: rgba(16, 34, 43, 0.08); }
.agenda-item__rail--orange { background: var(--hl-amber); }
.mail__card { border-color: var(--hl-line); border-radius: 0; }
.mail__letterhead { border-bottom-color: var(--hl-amber); }
.mail__letterhead img { width: 2.4cqi; height: 2.4cqi; }
.mail__letterhead span:last-child { font-family: var(--hl-display); font-size: 2.2cqi; font-weight: 700; letter-spacing: -0.02em; color: var(--hl-ink); }
.mail__body h3 { font-family: var(--hl-display); color: var(--hl-ink); }
.mail__score { background: var(--hl-mist); border-left-color: var(--hl-amber); }
.mail__score span,
.mail__contact { color: var(--hl-muted); }
.mail__contact strong { color: var(--hl-ink); }
.mail__legal { border-top-color: var(--hl-line); color: var(--hl-muted); }

/* ---- The PDF: page one of the sample report ----------------------------
   Sized in cqi against the sheet's own width, like the shared .pdf-sheet
   it sits in, so the whole page scales as one object. */
.hl-pdf { border-radius: 0; font-family: var(--hl-body); }
.hl-pdf__bar { display: flex; align-items: center; justify-content: space-between; gap: 3cqi; padding: 4cqi 5.4cqi; background: var(--hl-ink); border-bottom: 0.7cqi solid var(--hl-amber); }
.hl-pdf__bar .hl-logo { font-size: 3.6cqi; }
.hl-pdf__doc { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6cqi; text-align: right; }
.hl-pdf__doc b { font-size: 2.6cqi; font-weight: 500; color: #fff; }
.hl-pdf__doc span { font-size: 1.9cqi; color: rgba(238, 243, 242, 0.75); }
.hl-pdf__body { display: flex; flex-direction: column; gap: 2.2cqi; padding: 5cqi 5.4cqi 4.4cqi; }
.hl-pdf__title { font-size: 4.6cqi; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; color: var(--hl-ink); }
.hl-pdf__prepared { margin-top: -0.8cqi; font-size: 2cqi; color: var(--hl-muted); }
.hl-pdf__tier { display: flex; flex-direction: column; gap: 1.6cqi; margin-top: 0.8cqi; padding: 3.4cqi 3.6cqi; background: #F4F4F2; }
.hl-pdf__tier b { font-size: 3.4cqi; font-weight: 700; color: var(--hl-ink); }
.hl-pdf__tier p { margin: 0; font-size: 2.1cqi; line-height: 1.65; color: var(--hl-ink); }
.hl-pdf__h { align-self: flex-start; margin-top: 1.4cqi; padding-bottom: 1.2cqi; border-bottom: 0.4cqi solid var(--hl-amber); font-size: 2.6cqi; font-weight: 700; color: var(--hl-ink); }
.hl-pdf__lead { margin: 0; font-size: 2.2cqi; line-height: 1.6; color: var(--hl-ink); }
.hl-pdf__small { margin-top: -1cqi; font-size: 1.9cqi; color: var(--hl-muted); }
.hl-pdf__table { display: flex; flex-direction: column; border-top: 1px solid #E6EAEA; }
.hl-pdf__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 2cqi; align-items: center; padding: 2cqi 0 2cqi 2cqi; border-bottom: 1px solid #E6EAEA; border-left: 0.6cqi solid transparent; font-size: 2.2cqi; color: var(--hl-ink); }
.hl-pdf__row span:nth-child(2) { color: var(--hl-muted); }
.hl-pdf__row span:nth-child(2) b { font-weight: 700; }
.hl-pdf__row span:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.hl-pdf__row--head { padding-top: 1.6cqi; padding-bottom: 1.6cqi; font-size: 1.9cqi; color: var(--hl-muted); }
.hl-pdf__row--head span:last-child { font-weight: 400; }
.hl-pdf__row--no { border-left-color: var(--hl-no); }
.hl-pdf__row--no span:last-child { color: var(--hl-no); }
.hl-pdf__row--some { border-left-color: var(--hl-some); }
.hl-pdf__row--some span:last-child { color: var(--hl-some); }
.hl-pdf__foot { display: flex; align-items: center; justify-content: space-between; gap: 2cqi; padding: 2.4cqi 5.4cqi; background: var(--hl-ink); font-size: 1.8cqi; color: #fff; }
.hl-pdf__page { padding: 0.5cqi 1.6cqi; background: var(--hl-mist); color: var(--hl-ink); white-space: nowrap; }
.pdf-stack__back,
.pdf-stack__mid { border-radius: 0; }

/* ---- The adverts sheet (shared .soldprice__* mock, recoloured) --------- */
.soldprice__sheet { border-radius: 0; font-family: var(--hl-body); }
.soldprice__brand { background: var(--hl-ink); border-bottom: 4px solid var(--hl-amber); }
.soldprice__brand img { width: 24px; height: 24px; }
.soldprice__brand span:last-child { font-family: var(--hl-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--hl-mist); }
.soldprice__body h3 { font-weight: 700; color: var(--hl-ink); }
.soldprice__body > p { color: var(--hl-ink); }
.soldprice__legal { border-top-color: #E6EAEA; }
.soldprice__legal p { color: var(--hl-muted); }

/* ---- Return table headings --------------------------------------------
   .roi-row centres each cell at its own content width, so a heading's
   divider (its border-left) lands wherever that heading's text starts.
   Stretching the head cells to their full column puts every divider on
   the column line and centres the text inside it, which is how the
   mortgage page's table reads with its own heading lengths. */
.roi-row--head span { justify-self: stretch; text-align: center; }

/* ---- Adverts section: report sheet on the left --------------------------
   Swapped by request (3 Nov 2026) so the sheet leads on wide screens.
   Done with row-reverse rather than reordering the markup, so when the
   row wraps to a stack on narrow screens the copy still comes first.
   With row-reverse, flex-end is the left edge: it keeps a wrapped copy
   column (max-width 520px) left-aligned instead of pushed right. */
.soldprice__row { flex-direction: row-reverse; justify-content: flex-end; }
