/* =============================================================
   Manager Gap Index v5 - Clover ERA Editorial system (System A)
   ============================================================= */

:root{
  --paper: #F1ECE3;
  --paper-2: #E8E2D6;
  --ink: #17161A;
  --ink-2: #2B2926;
  --ink-mute: #6F6A60;
  --rule: #C9C2B4;
  --rule-soft: #D9D3C5;
  --accent: #2196F3;

  --cruise: #1B7A4A;
  --drift: #C2842F;
  --headwinds: #6B5BD2;
  --stall: #B03A2E;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ui: "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}

body{
  font-family: var(--ui);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paper grain, matches the rest of the editorial system */
body::before{
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.018) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.7;
  z-index: 0;
}

a{ color: inherit; }

.wrap{
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- shared type ---------- */

.mono{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

h1, h2, h3{
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.018em;
  margin: 0;
}

h1{
  font-size: clamp(31px, 6.2vw, 46px);
  line-height: 1.08;
}

h2{
  font-size: clamp(23px, 4.4vw, 30px);
  line-height: 1.18;
}

p{ margin: 0 0 18px; }

.body-serif{
  font-family: var(--serif);
  font-size: clamp(17px, 3.6vw, 19px);
  line-height: 1.62;
  color: var(--ink-2);
}

.section-rule{
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- masthead ---------- */

.masthead{
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--ink);
}

.masthead .wrap{
  padding-top: 20px;
  padding-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}

.wordmark{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark .dot{ color: var(--accent); }

.masthead .meta{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  text-align: right;
}

/* ---------- views ---------- */

.view{ display: none; }
.view.is-active{ display: block; }

/* ---------- landing ---------- */

.landing{ padding: 52px 0 72px; }
.landing .eyebrow{ margin-bottom: 26px; display: block; }
.landing h1{ margin-bottom: 30px; }
.landing .lede{ max-width: 40em; }

.instruction{
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 22px 0;
  margin: 38px 0 34px;
}

.instruction p{
  font-family: var(--serif);
  font-size: clamp(16px, 3.4vw, 18px);
  line-height: 1.58;
  margin: 0;
  color: var(--ink);
}

.instruction strong{
  font-weight: 600;
  font-style: italic;
}

/* ---------- buttons ---------- */

.btn{
  font-family: var(--ui);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  background: var(--accent);
  color: #FFFFFF;
  border: 1px solid var(--accent);
  border-radius: 0;
  padding: 14px 26px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease;
}

.btn:hover{ background: var(--ink); border-color: var(--ink); }
.btn:disabled{ opacity: 0.35; cursor: not-allowed; }
.btn:disabled:hover{ background: var(--accent); border-color: var(--accent); }

.btn-quiet{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink-mute);
  padding: 4px 0;
  cursor: pointer;
}

.btn-quiet:hover{ color: var(--ink); border-bottom-color: var(--ink); }
.btn-quiet[hidden]{ display: none; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- questions ---------- */

.q-view{ padding: 30px 0 64px; }

.q-progress{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.q-progress .count{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  white-space: nowrap;
}

.q-bar{
  flex: 1;
  height: 1px;
  background: var(--rule);
  position: relative;
}

.q-bar span{
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--ink);
  transition: width 220ms ease;
}

.q-number{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  font-weight: 600;
  display: block;
  margin-bottom: 16px;
}

.q-text{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 4.8vw, 30px);
  line-height: 1.26;
  letter-spacing: -0.015em;
  margin: 0 0 34px;
}

fieldset.scale{
  border: 0;
  margin: 0;
  padding: 0;
}

.scale-option{
  display: block;
  position: relative;
  border-top: 1px solid var(--rule-soft);
  cursor: pointer;
}

.scale-option:last-of-type{ border-bottom: 1px solid var(--rule-soft); }

.scale-option input{
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
}

.scale-option .face{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  font-family: var(--ui);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 120ms ease, background 120ms ease;
}

.scale-option .key{
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  width: 20px;
  flex: 0 0 20px;
  text-align: left;
}

.scale-option:hover .face{ color: var(--ink); background: rgba(0,0,0,0.018); }
.scale-option input:checked ~ .face{ color: var(--ink); font-weight: 600; }

.scale-option input:checked ~ .face::after{
  content: "";
  width: 7px; height: 7px;
  background: var(--accent);
  margin-left: auto;
  flex: 0 0 7px;
}

.scale-option input:focus-visible ~ .face{
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.q-nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
}

.q-hint{
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

/* ---------- contact ---------- */

.contact-view{ padding: 46px 0 72px; }
.contact-view h2{ margin-bottom: 30px; max-width: 16em; }

.field{ margin-bottom: 22px; }
.field[hidden]{ display: none; }

.field label{
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 8px;
}

.field input,
.field select{
  width: 100%;
  font-family: var(--ui);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  padding: 9px 0;
  appearance: none;
}

.field select{
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%),
                    linear-gradient(135deg, var(--ink-mute) 50%, transparent 50%);
  background-position: calc(100% - 11px) 18px, calc(100% - 6px) 18px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 26px;
}

.field input:focus,
.field select:focus{
  outline: none;
  border-bottom-color: var(--ink);
}

.field input:focus-visible,
.field select:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hp{
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note{
  font-family: var(--ui);
  font-size: 13px;
  color: var(--ink-mute);
  margin: 26px 0 0;
  max-width: 34em;
}

.form-error{
  font-family: var(--ui);
  font-size: 13.5px;
  color: var(--stall);
  margin: 0 0 18px;
  font-weight: 500;
}

.form-error[hidden]{ display: none; }

/* ---------- report ---------- */

.report{ padding: 44px 0 76px; }

.report section{ padding: 40px 0; border-top: 1px solid var(--rule); }
.report section:first-of-type{ border-top: 0; padding-top: 0; }

.report .eyebrow{ display: block; margin-bottom: 20px; }

.state-call{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(27px, 5.6vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0 0 16px;
  max-width: 15em;
}

.state-name{
  font-style: italic;
  font-weight: 600;
}

.confidence-line{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  line-height: 1.75;
  margin: 0 0 28px;
  max-width: 30em;
}

.state-desc,
.gap-body{
  font-family: var(--serif);
  font-size: clamp(17px, 3.6vw, 19px);
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0;
  max-width: 36em;
}

.state-caution{
  font-family: var(--serif);
  font-size: clamp(16px, 3.4vw, 17.5px);
  line-height: 1.6;
  color: var(--ink);
  border-left: 2px solid var(--stall);
  padding: 2px 0 2px 20px;
  margin: 26px 0 0;
  max-width: 36em;
}

.state-caution[hidden]{ display: none; }

/* compass */

.compass-figure{ margin: 0; }

.compass-svg{
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 4px auto 6px;
}

.compass-caption{
  font-family: var(--ui);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 0;
  max-width: 34em;
}

/* signal score */

.signal-score{
  font-family: var(--mono);
  font-size: 26px;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 18px;
}

.signal-framing{
  font-family: var(--serif);
  font-size: clamp(16px, 3.4vw, 18px);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 14px;
  max-width: 36em;
}

.signal-copy{
  font-family: var(--serif);
  font-size: clamp(16px, 3.4vw, 18px);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 30px;
  max-width: 36em;
}

/* areas */

.area{
  border-top: 1px solid var(--rule-soft);
  padding: 20px 0;
}

.area:last-of-type{ border-bottom: 1px solid var(--rule-soft); }

.area-name{
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.012em;
  margin: 0 0 8px;
}

.area-desc{
  font-family: var(--ui);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 0 0 10px;
  max-width: 40em;
}

/* the recency fact stands in for a label. It fades with age,
   which is the only encoding here: no label vocabulary. */
.area-fact{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
}

.fact-3{ color: #17161A; }
.fact-2{ color: #3D3A34; }
.fact-1{ color: #6F6A60; }
.fact-0{ color: #918B7E; }

.area-callout{
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.58;
  color: var(--ink);
  background: var(--paper-2);
  border-left: 2px solid var(--ink);
  padding: 15px 18px;
  margin: 14px 0 0;
  max-width: 40em;
}

.areas-summary{
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.58;
  color: var(--ink);
  background: var(--paper-2);
  border-left: 2px solid var(--ink);
  padding: 16px 18px;
  margin: 22px 0 0;
  max-width: 40em;
}

.areas-summary[hidden]{ display: none; }

.action-body,
.closing-body{
  font-family: var(--serif);
  font-size: clamp(17px, 3.6vw, 19px);
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0;
  max-width: 36em;
}

.closing{
  border-top: 1px solid var(--ink) !important;
}

.closing-body strong{
  font-weight: 600;
  color: var(--ink);
}

.report-sent{
  font-family: var(--ui);
  font-size: 13px;
  color: var(--ink-mute);
  margin: 22px 0 0;
}

/* ---------- footer ---------- */

.site-footer{
  border-top: 1px solid var(--ink);
  margin-top: 0;
}

.site-footer .wrap{
  padding-top: 22px;
  padding-bottom: 34px;
}

.site-footer p{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin: 0 0 7px;
  line-height: 1.7;
}

.site-footer a{
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.site-footer a:hover{ color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 560px){
  .masthead .wrap{ align-items: baseline; }
  /* the strapline wraps to a ragged stack on a phone, and the
     wordmark already says what this is */
  .masthead .meta{ display: none; }
  .q-nav{ flex-direction: row-reverse; justify-content: flex-end; gap: 22px; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}

@media (pointer: coarse){
  .q-hint{ display: none; }
}
