/* BraunTrack Advisory — site styles
   Palette and type are fixed brand decisions; edit tokens here only. */

:root {
  --ink: #0F2942;
  --ink-soft: #33475C;
  --body: #4A5764;
  --muted: #6B7885;
  --brass: #B8912B;
  --brass-deep: #8A6B1C;
  --brass-wash: #FAF6EC;
  --paper: #FFFFFF;
  --band: #F3F6F8;
  --rule: #DCE3EA;
  --rule-soft: #EBEFF3;

  --measure: 66ch;
  --wrap: 1140px;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 .6em;
  letter-spacing: -0.011em;
}
h1 { font-size: clamp(2.15rem, 4.6vw, 3.35rem); line-height: 1.09; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.1rem); line-height: 1.18; text-wrap: balance; }
h3 { font-size: 1.24rem; line-height: 1.3; }
h4 {
  font-family: var(--sans); font-size: .96rem; font-weight: 600;
  color: var(--ink); letter-spacing: 0; margin-bottom: .4em;
}

p { margin: 0 0 1.1em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); padding-left: 1.15em; margin: 0 0 1.3em; }
li { margin-bottom: .5em; }
li::marker { color: var(--brass); }

a { color: var(--ink); text-decoration-color: var(--brass); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brass-deep); }

strong { color: var(--ink-soft); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.measure { max-width: var(--measure); }
.lede { font-size: 1.19rem; line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }
.small { font-size: .93rem; color: var(--muted); }
.center-measure { max-width: 70ch; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: .7rem 1.1rem; z-index: 100; font-size: .9rem;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 40; }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }

.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand-lockup { display: flex; align-items: baseline; gap: .62rem; }
.brand-mark { display: block; height: 27px; width: auto; }
.brand-desc {
  font-family: var(--serif); font-size: 1.06rem; font-weight: 400; color: var(--brass-deep);
  letter-spacing: .02em; padding-left: .62rem; border-left: 1px solid var(--rule);
  align-self: stretch; display: flex; align-items: center;
}
.brand-sub { font-size: .66rem; color: var(--muted); letter-spacing: .13em; text-transform: uppercase; margin-top: 7px; }

.foot-brand { display: flex; align-items: center; gap: .62rem; }
.foot-brand img { display: block; height: 25px; width: auto; }
.foot-desc {
  font-family: var(--serif); font-size: 1rem; color: var(--brass);
  padding-left: .62rem; border-left: 1px solid #2C4964; align-self: stretch;
  display: flex; align-items: center;
}

@media (max-width: 420px) {
  .brand-mark { height: 22px; }
  .brand-desc { font-size: .92rem; }
  .brand-sub { font-size: .6rem; }
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { font-size: .95rem; text-decoration: none; color: var(--ink-soft); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }
.nav .btn { padding: .72rem 1.35rem; white-space: nowrap; flex: none; border: 1px solid var(--ink); color: #fff; }
.nav .btn:hover { background: #163a5c; border-color: #163a5c; color: #fff; }

.btn {
  display: inline-block; font-family: var(--sans); font-size: .95rem; font-weight: 500;
  padding: .72rem 1.35rem; background: var(--ink); color: #fff; text-decoration: none;
  border: 1px solid var(--ink); cursor: pointer; transition: background .15s ease;
}
.btn:hover { background: #163a5c; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--band); color: var(--ink); border-color: var(--ink); }
.btn-brass { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-deep); border-color: var(--brass-deep); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.nav-toggle { display: none; background: none; border: 1px solid var(--rule); padding: .55rem .8rem; font-family: var(--sans); font-size: .9rem; color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: .5rem 28px 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--rule-soft); }
  .nav a[aria-current="page"] { border-bottom-color: var(--brass); }
  .nav .btn { margin-top: .9rem; text-align: center; }
}

/* ---------- Sections ---------- */
.sec { padding: 5rem 0; border-top: 1px solid var(--rule-soft); }
.sec:first-of-type { border-top: 0; }
.sec-band { background: var(--band); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sec-ink { background: var(--ink); border: 0; }
.sec-ink h1, .sec-ink h2, .sec-ink h3, .sec-ink h4 { color: #fff; }
.sec-ink p, .sec-ink li { color: #C3D0DC; }
.sec-ink strong { color: #fff; }
.sec-ink a { color: #fff; }
.sec-tight { padding: 3.25rem 0; }

@media (max-width: 700px) { .sec { padding: 3.4rem 0; } }

/* ---------- Hero ---------- */
.hero { padding: 5.5rem 0 3.5rem; }
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; align-items: center; }
.hero-note { font-size: .87rem; color: var(--muted); margin: .9rem 0 0; }

.page-head { padding: 4.25rem 0 2.5rem; border-bottom: 1px solid var(--rule-soft); }
.page-head h1 { max-width: 20ch; }
.eyebrow-line { font-size: .93rem; color: var(--brass-deep); margin: 0 0 1.1rem; font-weight: 500; }

/* ---------- Maturity scale ---------- */
.scale { margin: 0; }
.scale-track { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 3px solid var(--ink); }
.scale-seg { padding: 1.25rem 1.1rem 1.35rem .05rem; border-right: 1px solid var(--rule); position: relative; }
.scale-seg:last-child { border-right: 0; }
.scale-seg b { display: block; font-family: var(--serif); font-size: 1.16rem; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.scale-seg span { display: block; font-size: .87rem; color: var(--muted); line-height: 1.5; margin-top: .4rem; max-width: 22ch; }
.scale-seg.is-here { background: var(--brass-wash); }
.scale-seg.is-here b { color: var(--brass-deep); }
.scale-seg.is-here::before {
  content: ""; position: absolute; top: -3px; left: 0; right: 0; height: 5px; background: var(--brass);
}
.scale-caption { font-size: .88rem; color: var(--muted); margin: 1.15rem 0 0; }

@media (max-width: 780px) {
  .scale-track { grid-template-columns: 1fr; border-top: 0; }
  .scale-seg { border-right: 0; border-top: 1px solid var(--rule); padding: .8rem 0 .8rem .9rem; }
  .scale-seg:first-child { border-top: 3px solid var(--ink); }
  .scale-seg.is-here::before { top: 0; bottom: 0; right: auto; width: 4px; height: auto; }
}

/* ---------- Recognition list ---------- */
.recog { list-style: none; padding: 0; max-width: 74ch; }
.recog li {
  padding: .85rem 0 .85rem 1.6rem; border-bottom: 1px solid var(--rule-soft);
  position: relative; color: var(--ink-soft); font-size: 1.04rem; margin: 0;
}
.recog li::before { content: ""; position: absolute; left: 0; top: 1.5rem; width: 9px; height: 1px; background: var(--brass); }

/* ---------- Two-column ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3.25rem; align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.cols-side { display: grid; grid-template-columns: 260px 1fr; gap: 3.25rem; align-items: start; }
@media (max-width: 880px) {
  .cols, .cols-3, .cols-side { grid-template-columns: 1fr; gap: 2.25rem; }
}
.cols p, .cols-3 p, .cols-side p, .cols li, .cols-3 li { max-width: 52ch; }

.side-label { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); border-top: 2px solid var(--brass); padding-top: .8rem; }

/* ---------- Steps (real sequence — numbered) ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; max-width: none; }
.steps > li {
  counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; gap: 1.5rem;
  padding: 1.6rem 0; border-top: 1px solid var(--rule); margin: 0;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.35rem; color: var(--brass); line-height: 1.2;
}
.steps h3 { margin-bottom: .35rem; }
.steps p { margin: 0; max-width: 58ch; }
@media (max-width: 620px) { .steps > li { grid-template-columns: 2.2rem 1fr; gap: 1rem; } }

/* ---------- Definition rows ---------- */
.rows { border-top: 1px solid var(--rule); margin: 1.5rem 0 0; }
.row-item { display: grid; grid-template-columns: 210px 1fr; gap: 2rem; padding: 1.35rem 0; border-bottom: 1px solid var(--rule-soft); }
.row-item dt, .row-k { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: 1rem; }
.row-item dd, .row-v { margin: 0; color: var(--body); }
.row-v p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .row-item { grid-template-columns: 1fr; gap: .3rem; } }

/* ---------- Callout ---------- */
.note {
  border-left: 3px solid var(--brass); background: var(--brass-wash);
  padding: 1.4rem 1.6rem; margin: 2rem 0; max-width: 74ch;
}
.note p:last-child { margin-bottom: 0; }
.note h4 { margin-bottom: .5rem; }

.flag {
  border-left: 3px solid #B04A2F; background: #FDF3F0; padding: 1.15rem 1.4rem;
  margin: 1.5rem 0; max-width: 74ch; font-size: .95rem;
}
.flag p:last-child { margin-bottom: 0; }
.flag b { color: #8C3620; }

/* ---------- Fit columns ---------- */
.fit-list { list-style: none; padding: 0; }
.fit-list li { padding: .7rem 0 .7rem 1.7rem; position: relative; border-bottom: 1px solid var(--rule-soft); margin: 0; }
.fit-yes li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 10px; height: 2px; background: var(--brass); }
.fit-no li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 10px; height: 2px; background: var(--rule); }

/* ---------- Forms ---------- */
.form { max-width: 40rem; margin-top: 2rem; }
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-size: .95rem; font-weight: 500; color: var(--ink); margin-bottom: .4rem; }
.field .hint { font-size: .86rem; color: var(--muted); margin: 0 0 .5rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; padding: .7rem .85rem; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 0;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline-offset: 1px; }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; color: var(--body); margin: 1.5rem 0; max-width: 46rem; }
.consent input { margin-top: .3rem; flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--brass); }
.form-status { margin-top: 1rem; font-size: .95rem; }
.form-status.err { color: #8C3620; }
.form-status.ok { color: var(--brass-deep); }

/* ---------- Assessment ---------- */
.q-progress { position: sticky; top: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: .9rem 0; z-index: 30; }
.q-progress-in { display: flex; align-items: center; gap: 1.25rem; font-size: .9rem; color: var(--muted); }
.q-bar { flex: 1; height: 3px; background: var(--rule); position: relative; }
.q-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--brass); transition: width .25s ease; }
@media (prefers-reduced-motion: reduce) { .q-bar i { transition: none; } }

.q-group { padding: 2.75rem 0 .5rem; border-top: 1px solid var(--rule-soft); }
.q-group:first-of-type { border-top: 0; }
.q-group > h2 { font-size: 1.5rem; margin-bottom: .25rem; }
.q-group > .small { margin-bottom: 1rem; }

fieldset.q { border: 0; padding: 1.5rem 0; margin: 0; border-top: 1px solid var(--rule-soft); }
fieldset.q { display: flow-root; }
fieldset.q legend { float: left; width: 100%; font-size: 1.06rem; color: var(--ink); font-weight: 500; padding: 0; margin-bottom: .9rem; max-width: 62ch; }
.opts { display: grid; gap: .4rem; max-width: 46rem; }
.opt { display: flex; gap: .8rem; align-items: flex-start; padding: .62rem .85rem; border: 1px solid var(--rule-soft); cursor: pointer; font-size: .98rem; color: var(--ink-soft); }
.opt:hover { border-color: var(--rule); background: var(--band); }
.opt input { margin-top: .32rem; flex: none; accent-color: var(--brass); }
.opt:has(input:checked) { border-color: var(--brass); background: var(--brass-wash); color: var(--ink); }

.assess-actions { padding: 2.5rem 0 0; border-top: 1px solid var(--rule); margin-top: 2rem; }

/* Result */
.result-head { display: grid; grid-template-columns: 200px 1fr; gap: 3rem; align-items: center; }
@media (max-width: 720px) { .result-head { grid-template-columns: 1fr; gap: 1.5rem; } }
.dial { width: 200px; height: 200px; }
.dial circle { fill: none; stroke-width: 14; }
.dial .track { stroke: var(--rule); }
.dial .val { stroke: var(--brass); stroke-linecap: butt; transition: stroke-dashoffset 1s cubic-bezier(.4,0,.2,1); }
@media (prefers-reduced-motion: reduce) { .dial .val { transition: none; } }
.dial-num { font-family: var(--serif); font-size: 3rem; fill: var(--ink); }
.dial-lbl { font-family: var(--sans); font-size: .72rem; fill: var(--muted); letter-spacing: .06em; }

.dim-bars { margin-top: .5rem; }
.dim { display: grid; grid-template-columns: 130px 1fr 3.2rem; gap: 1rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--rule-soft); font-size: .95rem; }
.dim b { color: var(--ink); font-weight: 500; }
.dim-track { height: 8px; background: var(--rule-soft); position: relative; }
.dim-track i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.dim.weak b { color: var(--brass-deep); }
.dim.weak .dim-track i { background: var(--brass); }
.dim-score { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .dim { grid-template-columns: 105px 1fr 2.8rem; gap: .7rem; font-size: .88rem; } }

.hide { display: none !important; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #A9B9C8; padding: 3.5rem 0 2.25rem; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h4 { color: #fff; font-size: .82rem; letter-spacing: .11em; text-transform: uppercase; margin-bottom: .9rem; font-weight: 600; }
.site-foot a { color: #D5E0EA; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--brass); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: .55rem; }
.site-foot p { max-width: 40ch; }
.foot-brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin-bottom: .6rem; }
.foot-legal { border-top: 1px solid #23405C; margin-top: 2.75rem; padding-top: 1.5rem; font-size: .85rem; color: #8296A9; }
.foot-legal p { max-width: 78ch; margin-bottom: .6rem; }

/* Suppress empty paragraphs left by conditional result copy */
p:empty { display: none; }
