
/* Palette from the new decodingit identity. Light-first by commitment:
   the brand is a light-ground asset and a wall-to-wall dark tool was not
   wanted, so dark appears only as deliberate accent. */
:root {
  --deep:  #005598;
  --brand: #007dbd;
  --azure: #42afea;
  --tint:  #9ec5ec;

  --ink:   #0b1a2b;
  --page:  #ffffff;
  --mist:  #eff5fb;
  --line:  #dbe6f0;
  --text:  #1d2c3a;
  --muted: #5b6f81;

  /* Semantic, deliberately separate from the brand accent so a low score
     never reads as "branded" and a high one never reads as an advert. */
  --bad:   #c2410c;
  --warn:  #b45309;
  --ok:    #0e7490;
  --good:  #15803d;

  --f-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font-family: var(--f-sans); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }

h1, h2, h3 { margin: 0; letter-spacing: -.022em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; line-height: 1.06; }
h2 { font-size: 1.35rem; font-weight: 800; }
p  { margin: 0; }

.eyebrow {
  font-family: var(--f-mono); font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em; color: var(--deep); margin: 0 0 12px;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { background: var(--mist); position: relative; overflow: hidden; }
.hero-f { position: absolute; inset: 0; pointer-events: none; }
.hero-f span { position: absolute; display: block; }
.hf1 { top: 0; right: 0; width: 40%; height: 100%; background: var(--tint); opacity: .38;
       clip-path: polygon(36% 0, 100% 0, 100% 100%, 0 100%); }
.hf2 { top: 0; right: 0; width: 22%; height: 56%; background: var(--brand); opacity: .16;
       clip-path: polygon(100% 0, 100% 100%, 0 0); }
/* Constrain the CHILDREN, not this element: it also carries .wrap, and a
   max-width here overrides .wrap's, leaving margin:0 auto to centre a narrow
   box while everything below stays left-aligned. */
.hero-in { position: relative; padding-block: 62px 58px; }
.hero-in > * { max-width: 680px; }
.hero p.lede { font-size: 1.08rem; color: var(--muted); margin-top: 18px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 26px;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { width: 6px; height: 6px; background: var(--azure);
               clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* ── Layout ───────────────────────────────────────────────────────────── */
.main { display: grid; grid-template-columns: 1fr 348px; gap: 26px; align-items: start;
        padding-block: 36px 60px; }
@media (max-width: 1000px) { .main { grid-template-columns: 1fr; } }
.qcol { min-width: 0; }

/* ── Domain cards ─────────────────────────────────────────────────────── */
.dom {
  border: 1px solid var(--line); background: var(--page); margin-bottom: 16px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.dom-hd {
  display: flex; align-items: center; gap: 13px; padding: 16px 20px;
  border-bottom: 1px solid var(--line); background: var(--mist);
}
.dom-n {
  width: 27px; height: 27px; flex: none; display: grid; place-items: center;
  background: var(--deep); color: #fff; font-size: .78rem; font-weight: 800;
  font-family: var(--f-mono);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.dom-t { font-size: 1rem; font-weight: 700; letter-spacing: -.012em; flex: 1; }
.dom-s {
  font-family: var(--f-mono); font-size: .74rem; font-weight: 700;
  color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.dom-b { padding: 6px 20px 18px; }

.q { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.q:last-child { border-bottom: none; }
.q-t { font-size: .94rem; font-weight: 700; margin-bottom: 11px; }
.opts { display: grid; gap: 7px; }
.opt {
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px;
  border: 1px solid var(--line); cursor: pointer; font-size: .87rem;
  color: var(--muted); transition: border-color .14s, background .14s, color .14s;
}
.opt:hover { border-color: var(--tint); background: var(--mist); }
.opt input { margin: 3px 0 0; accent-color: var(--deep); flex: none; }
.opt.sel { border-color: var(--deep); background: rgba(0,85,152,.05); color: var(--text); }
.opt-l { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .09em;
         text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 2px; }
.opt.sel .opt-l { color: var(--deep); }

/* ── Results ──────────────────────────────────────────────────────────── */
.res { position: sticky; top: 18px; }
@media (max-width: 1000px) { .res { position: static; } }
.score-card {
  background: var(--ink); color: #fff; padding: 24px 22px; text-align: center;
  position: relative; overflow: hidden;
}
.score-card::after {
  content: ''; position: absolute; right: -10%; bottom: -30%;
  width: 62%; height: 100%; background: var(--deep); opacity: .38;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.ring { position: relative; width: 132px; height: 132px; margin: 0 auto 14px; z-index: 1; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring-v {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 0;
}
.ring-n { font-size: 2.1rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-d { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em;
          text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 5px; }
.band {
  position: relative; z-index: 1;
  font-family: var(--f-mono); font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.band-d { position: relative; z-index: 1; font-size: .83rem; color: rgba(255,255,255,.72);
          margin-top: 8px; }
.prog {
  position: relative; z-index: 1; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.6);
}

.panel { border: 1px solid var(--line); border-top: none; padding: 18px 20px; background: var(--page); }
.panel-h {
  font-family: var(--f-mono); font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 13px;
}
.bar-row { margin-bottom: 11px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-t { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; margin-bottom: 4px; }
.bar-t b { font-variant-numeric: tabular-nums; font-weight: 700; }
.bar { height: 6px; background: var(--mist); border: 1px solid var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; transition: width .3s ease; }
@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }

.act { list-style: none; margin: 0; padding: 0; counter-reset: a; }
.act li {
  position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line);
  font-size: .86rem; counter-increment: a;
}
.act li:first-child { border-top: none; }
.act li::before {
  content: counter(a); position: absolute; left: 0; top: 11px;
  width: 19px; height: 19px; display: grid; place-items: center;
  background: var(--deep); color: #fff; font-family: var(--f-mono);
  font-size: .62rem; font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.act b { display: block; font-weight: 700; color: var(--text); }
.act span { color: var(--muted); }
.empty { font-size: .85rem; color: var(--muted); }

.cta { background: var(--mist); border: 1px solid var(--line); border-top: none; padding: 18px 20px; }
.cta p { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; width: 100%;
  justify-content: center; padding: 12px 18px; background: var(--deep); color: #fff;
  font-family: var(--f-sans); font-size: .88rem; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
}
.btn:hover { background: #00426f; }
.btn[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; }
.bench {
  margin-top: 12px; padding: 11px 13px; border: 1px dashed var(--tint);
  background: rgba(158,197,236,.12); font-size: .78rem; color: var(--muted);
}

:where(a, button, input, label):focus-visible {
  outline: 2px solid var(--azure); outline-offset: 2px;
}

/* ── Method ───────────────────────────────────────────────────────────── */
.method { background: var(--mist); border-top: 1px solid var(--line); padding-block: 54px 62px; }
.method-g { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin-top: 26px; }
@media (max-width: 820px) { .method-g { grid-template-columns: 1fr; } }
.method h3 { font-size: .98rem; font-weight: 800; color: var(--deep); margin-bottom: 8px; }
.method p { font-size: .89rem; color: var(--muted); max-width: 62ch; }
.method p + p { margin-top: 9px; }
.lvl { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .84rem; }
.lvl th, .lvl td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lvl th { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em;
          text-transform: uppercase; color: var(--muted); font-weight: 700; }
.lvl td:first-child { white-space: nowrap; font-weight: 700; }
.tblwrap { overflow-x: auto; }

.note-int {
  margin-top: 30px; border: 1px solid var(--line); border-left: 3px solid var(--azure);
  background: var(--page); padding: 20px 22px;
}
.note-int h3 { color: var(--text); }
.note-int .tag {
  display: inline-block; font-family: var(--f-mono); font-size: .64rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); padding: 4px 9px; margin-bottom: 12px;
}
