/* Christopher's design direction (ClickUp 86e3rnkax, ~/ea/briefs/scorecard-design-direction/HANDOFF.md)
   on the Circle brand pack, apps/scorecard/brand/cqc-circle/DESIGN.md (contrast table there).
   --hair and --rule are decorative only and never carry meaning. The body face is set in --sans;
   reviewer O picked Source Sans 3 (ruling 99). Both faces are self-hosted from /fonts/ (ruling 106). */
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #faf7f0;          /* ground */
  --fg: #1b2433;          /* text */
  --muted: #5a5f6b;
  --accent: #8a6a2f;      /* eyebrows and step numerals only */
  --button: #1f3a5f;      /* the only button colour */
  --button-fg: #faf7f0;
  --focus: #1f3a5f;
  --hair: #b08d57;        /* the 64 px brass rule */
  --rule: #e4dccb;        /* section and list rules */
  --card: #fffdf8;        /* the application card */
  --field: #ffffff;
  --field-border: #7d7a72;
  --track: #ddd5c5;       /* progress segments not reached yet */
  --error: #a3261b;
  --serif: "Cormorant Garamond", "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1620;
    --fg: #ece7dc;
    --muted: #a8a398;
    --accent: #c9a96b;
    --button: #c9a96b;
    --button-fg: #0f1620;
    --focus: #c9a96b;
    --hair: #c9a96b;
    --rule: #8a877f;
    --card: #16202c;
    --field: #0f1620;
    --field-border: #8a877f;
    --track: #8a877f;
    --error: #ff9b8f;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--sans);
}
@media (min-width: 720px) { body { font-size: 18px; } }

h1, h2, h3, .wordmark, .close-line, .steps li::before {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}
h1, h2, h3 { margin: 0; }
p { margin: 0; max-width: 30em; }
a { color: var(--button); text-underline-offset: 3px; }
a:hover { color: var(--fg); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.small { font-size: 15px; color: var(--muted); }
.muted { color: var(--muted); }
.placeholder { color: var(--muted); font-style: italic; }
.preview { box-sizing: border-box; width: min(30em, 100% - 32px); max-width: none; margin: 16px max(16px, 50% - 20rem + 16px) 0; padding: 8px 16px; border-left: 2px solid var(--accent); color: var(--muted); font-size: 15px; }

/* Masthead and footer: a 72 rem bar with the name on the left. */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner, .foot-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 28px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.wordmark { font-size: 24px; letter-spacing: 0.02em; }
.foot { border-top: 1px solid var(--rule); }
.foot-inner { padding-bottom: 40px; font-size: 15px; color: var(--muted); align-items: flex-start; }
.foot-name { display: flex; flex-direction: column; gap: 4px; }

/* Hero: the one bold element, left-aligned on the 40 rem column (ruling 105). */
.hero {
  max-width: 40rem;
  margin: 0 auto;
  padding: 120px 16px 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.08; }
.hero .lede { max-width: 30em; font-size: 20px; }
.hero-action { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 8px; }
.hero .placeholder, .hero .small { max-width: 30em; }

.rule { display: flex; justify-content: center; }
.rule::before { content: ""; display: block; width: 64px; height: 1px; background: var(--hair); }
.rule-left { justify-content: flex-start; }
.rule-col { max-width: 40rem; margin: 0 auto; padding: 0 16px; justify-content: flex-start; }

/* Reading sections: one 40 rem column, 96 px apart. */
.col {
  max-width: 40rem;
  margin: 0 auto;
  padding: 96px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.col h2, .apply h2 { font-size: 40px; line-height: 1.15; }
.col > h2 + p { margin-top: -8px; }

.for-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.for-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 28px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; display: flex; flex-direction: column; gap: 4px; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -0.1em;
  font-size: 36px; line-height: 1;
  color: var(--accent);
}
.steps li strong { font-weight: 600; }
.steps li span { color: var(--muted); max-width: 30em; }
.count { padding-left: 16px; border-left: 1px solid var(--rule); }

.hosts-photo { display: block; width: 100%; height: auto; }
.hosts { display: flex; flex-direction: column; gap: 32px; }
.host { display: flex; flex-direction: column; gap: 8px; }
.host h3 { font-size: 28px; line-height: 1.2; }

/* Buttons: navy is the only button colour; Back is a quiet text button. */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 34px;
  border: 0;
  border-radius: 2px;
  background: var(--button);
  color: var(--button-fg);
  font: 600 16px var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
.cta:hover { color: var(--button-fg); }
.back {
  min-height: 48px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font: 400 16px var(--sans);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* The application: a card in a 44 rem column. */
.apply { max-width: 44rem; margin: 0 auto; padding: 120px 16px 0; display: flex; flex-direction: column; gap: 32px; }
.apply-head { width: 100%; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.apply h2 { font-size: 48px; line-height: 1.1; }
.form {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 40px 44px;
  background: var(--card);
  border: 1px solid var(--rule);
  font-size: 17px;
  line-height: 1.55;
}
@media (max-width: 559px) { .form { padding: 24px 16px 32px; } }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.step { display: flex; flex-direction: column; gap: 22px; }
.step + .step { margin-top: 48px; }
.stepped .step + .step { margin-top: 0; }
.step > legend { display: block; width: 100%; padding: 0; margin-bottom: 6px; }
.stepno { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.steptitle { display: block; margin-top: 4px; font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.15; }
.stepped .stepno { display: none; }
.hint { color: var(--muted); margin-top: -8px; }

.progress { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.progress-text { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.progress-step { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.progress-count { font-size: 15px; color: var(--muted); }
.progress-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.progress-bar span { height: 2px; background: var(--track); }
.progress-bar span.done { background: var(--button); }

.contact { display: grid; gap: 18px; }
@media (min-width: 560px) { .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .choices > legend { font-size: 15px; font-weight: 600; padding: 0; }
.choices > legend { margin-bottom: 10px; }
.optional { font-weight: 400; color: var(--muted); }
.field .q { font-size: 17px; }
.num { display: none; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--field-border);
  border-radius: 2px;
  background: var(--field);
  color: var(--fg);
  font: 400 17px var(--sans);
}
textarea { min-height: 88px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
#q1 { min-height: 112px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; appearance: none; border: 0; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--field-border);
  border-radius: 2px;
  background: var(--field);
  color: var(--fg);
  font-size: 16px;
  cursor: pointer;
}
.chip input:checked + span { background: var(--button); border-color: var(--button); color: var(--button-fg); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip input[aria-invalid="true"] + span { border: 2px solid var(--error); }
@media (forced-colors: active) {
  .chip input:checked + span { outline: 3px solid CanvasText; outline-offset: -3px; }
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border: 2px solid var(--error); }
.error { border-left: 3px solid var(--error); padding: 8px 16px; margin: 0 0 24px; max-width: none; }

.privacy { padding-top: 16px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); max-width: 30em; }
.stepnav { display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding-top: 8px; }
.stepnav .back { margin-right: auto; }

/* Close: a quiet repeat of the call to action, left-aligned (ruling 105). */
.close {
  max-width: 40rem;
  margin: 0 auto;
  padding: 120px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.close-line { font-size: 34px; line-height: 1.25; }
.close .small { max-width: 30em; }

.thanks { padding-bottom: 120px; }
.thanks h1 { font-size: 38px; line-height: 1.15; }
.thanks .steps li::before { font-size: 26px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hp input { border: 0; background: transparent; }
