@font-face { font-family: "DM Sans"; font-style: normal; font-display: swap; font-weight: 100 1000; src: url("assets/dm-sans-latin-wght-normal.woff2") format("woff2-variations"), url("assets/dm-sans-latin-wght-normal.woff2") format("woff2"); }
/* Layout: one calm reading column for the questions, a wider report sheet for results.
   The hexagon from the N-Deavour symbol is the one recurring shape (step markers, score). */
:root {
  --violet: #372757;       /* Deep Violet: headings, primary actions */
  --lavender: #E0D6F8;     /* Soft Lavender: panels */
  --lilac: #A99DC6;        /* Muted Lilac: borders, tracks */
  --dusk: #8679A4;         /* Dusk Violet: eyebrows, accents */
  --charcoal: #212121;     /* Body text */

  --bg: #F7F4FD;
  --surface: #FFFFFF;
  --fg: var(--charcoal);
  --heading: var(--violet);
  --muted: #5F547C;
  --eyebrow: #6E6190;
  --line: #E3DCF1;
  --panel: #EFE9FC;
  --option-hover: #F4F0FD;
  --option-on: #EDE6FC;
  --track: #E6E0F3;
  --bar: var(--violet);
  --btn-bg: var(--violet);
  --btn-fg: #FFFFFF;
  --btn2-fg: var(--violet);
  --cta-bg: var(--violet);
  --cta-fg: #F4F0FD;
  --cta-muted: #CFC4EC;
  --focus: #6A4FB0;
  --error: #9B2C3A;
  --zone-1: #D9CFF3;
  --zone-2: #A99DC6;
  --zone-3: #5B4A86;

  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: clamp(2rem, 1.4rem + 2.6vw, 2.75rem);
  --radius: 10px;
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141019;
    --surface: #1C1724;
    --fg: #ECE8F4;
    --heading: #DED4FA;
    --muted: #B4AACB;
    --eyebrow: #A99DC6;
    --line: #342B45;
    --panel: #251E31;
    --option-hover: #231C2E;
    --option-on: #2E2540;
    --track: #2F2740;
    --bar: #C3B5EE;
    --btn-bg: #D6CBF6;
    --btn-fg: #1E1729;
    --btn2-fg: #DED4FA;
    --cta-bg: #2A2140;
    --cta-fg: #F1ECFB;
    --cta-muted: #BDB1DC;
    --focus: #C3B5EE;
    --error: #F2A7B1;
    --zone-1: #3A3050;
    --zone-2: #6E6192;
    --zone-3: #C3B5EE;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141019;
  --surface: #1C1724;
  --fg: #ECE8F4;
  --heading: #DED4FA;
  --muted: #B4AACB;
  --eyebrow: #A99DC6;
  --line: #342B45;
  --panel: #251E31;
  --option-hover: #231C2E;
  --option-on: #2E2540;
  --track: #2F2740;
  --bar: #C3B5EE;
  --btn-bg: #D6CBF6;
  --btn-fg: #1E1729;
  --btn2-fg: #DED4FA;
  --cta-bg: #2A2140;
  --cta-fg: #F1ECFB;
  --cta-muted: #BDB1DC;
  --focus: #C3B5EE;
  --error: #F2A7B1;
  --zone-1: #3A3050;
  --zone-2: #6E6192;
  --zone-3: #C3B5EE;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
}
h1, h2, h3 { color: var(--heading); line-height: 1.2; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0; }
a { color: var(--heading); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.eyebrow {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.muted { color: var(--muted); }
.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;
}

/* ---------- Frame ---------- */
.shell { padding-inline: var(--gutter); padding-block: 0 64px; }
.site-header {
  max-width: 880px; margin: 0 auto; padding-block: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 34px; height: 34px; flex: none; }
.brand .symbol-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .symbol-light { display: none; }
  :root:not([data-theme="light"]) .brand .symbol-dark { display: block; }
}
:root[data-theme="dark"] .brand .symbol-light { display: none; }
:root[data-theme="dark"] .brand .symbol-dark { display: block; }
.brand-name { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8125rem; color: var(--heading); }
.header-note { font-size: var(--step--1); color: var(--muted); text-align: right; }
@media (max-width: 480px) { .header-note { display: none; } }

.preview-banner {
  max-width: 880px; margin: 16px auto 0; padding: 10px 14px;
  background: var(--panel); border-radius: var(--radius);
  font-size: var(--step--1); color: var(--muted);
}
.preview-banner strong { color: var(--heading); }

main { max-width: 720px; margin: 0 auto; }
main.wide { max-width: 880px; }
.screen { padding-top: 40px; display: grid; gap: 28px; }
.screen-head { display: grid; gap: 10px; }
.screen-head h1:focus, .screen-head h2:focus { outline: none; }
.lede { font-size: var(--step-1); color: var(--fg); max-width: 60ch; }

/* ---------- Progress: five hexagons, one per step ---------- */
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; position: relative; }
.progress::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 15px; height: 2px; background: var(--track);
}
.progress li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.hex {
  width: 32px; height: 32px; display: grid; place-items: center;
  clip-path: polygon(50% 0, 97% 25%, 97% 75%, 50% 100%, 3% 75%, 3% 25%);
  background: var(--track); color: var(--muted);
  font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.progress .label { font-size: 0.75rem; color: var(--muted); font-weight: 500; overflow-wrap: anywhere; }
.progress li.done .hex { background: var(--zone-2); color: var(--surface); }
.progress li.current .hex { background: var(--btn-bg); color: var(--btn-fg); }
.progress li.current .label { color: var(--heading); font-weight: 700; }
@media (max-width: 420px) { .progress .label { font-size: 0.6875rem; } }

/* ---------- Intro ---------- */
.intro-grid { display: grid; gap: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 0.9375rem; padding: 0; margin: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; background: var(--dusk); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); flex: none; }
.method { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 8px; }
.method h2 { font-size: var(--step-1); margin-bottom: 4px; }
.method ol { list-style: none; margin: 0; padding: 0; }
.method li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); align-items: start; }
.method li:first-child { border-top: 0; }
.method .hex { width: 28px; height: 28px; background: var(--panel); color: var(--heading); font-size: 0.75rem; }
.method strong { color: var(--heading); display: block; }
.method span.d { color: var(--muted); font-size: 0.9375rem; }
.reassure { font-size: 0.9375rem; color: var(--muted); max-width: 60ch; }

/* ---------- Questions ---------- */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.q { display: grid; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line); }
.q:first-of-type { border-top: 0; padding-top: 0; }
.q legend { float: left; width: 100%; font-size: var(--step-1); font-weight: 700; color: var(--heading); line-height: 1.35; padding: 0; margin-bottom: 12px; text-wrap: pretty; }
.q legend + * { clear: both; }
.q .qnum { color: var(--dusk); font-variant-numeric: tabular-nums; margin-right: 6px; }
.q .help { font-size: 0.9375rem; color: var(--muted); margin-top: -4px; margin-bottom: 12px; }
.options { display: grid; gap: 8px; }
.opt {
  position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  padding: 13px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.opt:hover { background: var(--option-hover); border-color: var(--lilac); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt .dot {
  width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--lilac); background: var(--surface);
  display: grid; place-items: center; transition: border-color .15s;
}
.opt .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--btn-bg); transform: scale(0); transition: transform .15s; }
.opt input[type="checkbox"] + .dot { border-radius: 5px; }
.opt input[type="checkbox"] + .dot::after { border-radius: 2px; }
.opt input:checked + .dot { border-color: var(--btn-bg); }
.opt input:checked + .dot::after { transform: scale(1); }
.opt:has(input:checked) { border-color: var(--btn-bg); background: var(--option-on); }
.opt input:focus-visible + .dot { outline: 3px solid var(--focus); outline-offset: 3px; }
.opt .t { min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .opt { grid-template-columns: 1fr; padding: 10px 16px; }
.chips .opt .dot { display: none; }
.chips .opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.field { display: grid; gap: 6px; }
.field label { font-weight: 700; color: var(--heading); }
.field .hint { font-size: 0.875rem; color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--surface);
  border: 1px solid var(--lilac); border-radius: 8px; padding: 11px 13px;
}
textarea { min-height: 88px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.two-col { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.error-msg { color: var(--error); font-weight: 500; font-size: 0.9375rem; }
.q.missing legend { color: var(--error); }
.field.invalid input { border-color: var(--error); }

.notice { background: var(--panel); border-radius: var(--radius); padding: 18px 20px; font-size: 0.9375rem; display: grid; gap: 8px; }
.notice h3 { font-size: 1rem; }
.notice p { color: var(--fg); }
.email-text { font-weight: 700; color: var(--heading); user-select: all; overflow-wrap: anywhere; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 8px; }
.actions .spacer { flex: 1; }
.actions.start { justify-content: flex-start; }
.small { font-size: 0.9375rem; }
.gap-top { margin-top: 8px; }
.preview-banner.inline { margin: 0; }
.btn {
  font: inherit; font-weight: 700; border: 0; cursor: pointer; border-radius: 999px;
  padding: 13px 26px; background: var(--btn-bg); color: var(--btn-fg);
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; transition: transform .1s, opacity .15s;
}
.btn:hover { opacity: 0.92; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--btn2-fg); padding: 13px 8px; }
.btn-ghost:hover { text-decoration: underline; opacity: 1; }
.btn-outline { background: transparent; color: var(--btn2-fg); border: 1.5px solid var(--lilac); }
.arrow { font-size: 1.1em; line-height: 1; }

/* ---------- Report ---------- */
.report { padding-top: 36px; display: grid; gap: 40px; }
.report-head { display: grid; gap: 8px; }
.report-head .for { color: var(--muted); }
.summary {
  display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 32px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px;
}
@media (max-width: 640px) { .summary { grid-template-columns: 1fr; justify-items: start; padding: 22px; gap: 22px; } }
.score-hex { position: relative; width: 200px; max-width: 100%; aspect-ratio: 1 / 1.08; }
.score-hex svg { width: 100%; height: 100%; display: block; overflow: visible; }
.score-hex .trk { fill: none; stroke: var(--track); stroke-width: 12; stroke-linejoin: round; }
.score-hex .val { fill: none; stroke: var(--bar); stroke-width: 12; stroke-linejoin: round; stroke-linecap: round; transition: stroke-dasharray 1.1s cubic-bezier(.2,.7,.2,1); }
.score-hex .num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-hex .num b { font-size: 3.25rem; line-height: 1; color: var(--heading); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.score-hex .num span { font-size: 0.875rem; color: var(--muted); }
.summary-text { display: grid; gap: 14px; min-width: 0; }
.level-name { font-size: var(--step-3); }
.zones { display: grid; gap: 8px; }
.zone-track { display: grid; grid-template-columns: 35fr 35fr 30fr; gap: 3px; position: relative; height: 10px; }
.zone-track span { border-radius: 3px; opacity: 0.45; }
.zone-track span.on { opacity: 1; }
.zone-track .z1 { background: var(--zone-1); }
.zone-track .z2 { background: var(--zone-2); }
.zone-track .z3 { background: var(--zone-3); }
.zone-marker { position: absolute; left: 0; top: -5px; width: 4px; height: 20px; background: var(--heading); border-radius: 2px; transform: translateX(-2px); }
.zone-labels { display: grid; grid-template-columns: 35fr 35fr 30fr; gap: 3px; font-size: 0.75rem; color: var(--muted); }
.zone-labels span.on { color: var(--heading); font-weight: 700; }
.zone-labels small { display: block; font-variant-numeric: tabular-nums; }
.cap-note { background: var(--panel); border-radius: 8px; padding: 12px 14px; font-size: 0.9375rem; }

.section { display: grid; gap: 18px; }
.section > header { display: grid; gap: 6px; }
.steps-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.step-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 24px; padding: 18px 22px; border-top: 1px solid var(--line); align-items: center; }
.step-row:first-child { border-top: 0; }
@media (max-width: 640px) { .step-row { grid-template-columns: 1fr; padding: 16px 18px; } }
.step-name { display: flex; align-items: center; gap: 10px; }
.step-name .hex { width: 26px; height: 26px; background: var(--panel); color: var(--heading); font-size: 0.75rem; flex: none; }
.step-name strong { color: var(--heading); font-size: 1.0625rem; }
.step-body { display: grid; gap: 8px; min-width: 0; }
.bar-line { display: grid; grid-template-columns: minmax(0, 1fr) 44px auto; gap: 12px; align-items: center; }
.bar { height: 10px; background: var(--track); border-radius: 999px; overflow: hidden; }
.bar i { display: block; width: 0; height: 100%; background: var(--bar); border-radius: 999px; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.bar-num { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--heading); text-align: right; }
.pill { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.b0 { background: var(--btn-bg); color: var(--btn-fg); }
.pill.b1 { background: var(--panel); color: var(--heading); }
.pill.b2 { border: 1.5px solid var(--lilac); color: var(--heading); }
.step-meaning { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 420px) { .bar-line { grid-template-columns: minmax(0, 1fr) 36px; } .bar-line .pill { grid-column: 1 / -1; justify-self: start; } }

.priorities { display: grid; gap: 16px; }
.priority { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 16px; }
.priority-head { display: flex; align-items: center; gap: 14px; }
.priority-head .hex { width: 40px; height: 40px; background: var(--btn-bg); color: var(--btn-fg); font-size: 1rem; flex: none; }
.priority-head h3 { font-size: var(--step-2); }
.priority-head .sub { color: var(--muted); font-size: 0.875rem; }
.priority-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 28px; }
.priority-grid > div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.priority h4 { margin: 0; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--eyebrow); }
.priority ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.priority .try { background: var(--panel); border-radius: 10px; padding: 14px 16px; }

.timeback { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--panel); border-radius: 14px; padding: 24px; }
@media (max-width: 560px) { .timeback { grid-template-columns: 1fr; gap: 12px; } }
.timeback .big { font-size: 2.25rem; font-weight: 700; color: var(--heading); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.timeback .big small { display: block; font-size: 0.875rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.fine { font-size: 0.8125rem; color: var(--muted); }

.cta { background: var(--cta-bg); color: var(--cta-fg); border-radius: 16px; padding: 30px; display: grid; gap: 16px; }
.cta h2 { color: var(--cta-fg); }
.cta p { color: var(--cta-fg); max-width: 62ch; }
.cta .fine, .cta .muted { color: var(--cta-muted); }
.cta .email-text { color: var(--cta-fg); }
.cta-audit { border-top: 1px solid rgba(255,255,255,0.18); padding-top: 16px; display: grid; gap: 8px; }
.cta-audit ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.cta-audit strong { color: var(--cta-fg); }

.report-foot { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.875rem; color: var(--muted); }
.report-foot .sig { color: var(--heading); font-weight: 700; }
.report-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-foot { max-width: 880px; margin: 48px auto 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }


/* ---------- Simpler quiz: examples, reassurance, notes ---------- */
.q .help { font-size: 0.9375rem; color: var(--muted); margin-top: -4px; margin-bottom: 12px; max-width: 62ch; }
.reassure-box { background: var(--panel); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 8px; max-width: 66ch; font-size: 0.9375rem; }
.reassure-box strong { color: var(--heading); }
.step-reminder { font-size: 0.875rem; color: var(--muted); font-style: italic; }
.opt-unsure .t { color: var(--muted); }
.note { display: grid; gap: 8px; margin-top: 2px; }
.note-toggle { justify-self: start; font: inherit; font-size: 0.875rem; font-weight: 700; color: var(--btn2-fg); background: none; border: 0; padding: 4px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.note-toggle[aria-expanded="true"] { text-decoration: none; color: var(--muted); }
.note-box textarea { min-height: 64px; font-size: 0.9375rem; }

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

/* ---------- Print: a clean light report ---------- */
@media print {
  :root, :root:not([data-theme="light"]), :root[data-theme="dark"] {
    --bg: #fff; --surface: #fff; --fg: #212121; --heading: #372757; --muted: #4f4668; --eyebrow: #6E6190;
    --line: #ddd5ee; --panel: #f1ecfc; --track: #e6e0f3; --bar: #372757; --btn-bg: #372757; --btn-fg: #fff;
    --cta-bg: #f1ecfc; --cta-fg: #212121; --cta-muted: #4f4668; --zone-1: #D9CFF3; --zone-2: #A99DC6; --zone-3: #5B4A86;
    color-scheme: light;
  }
  body { font-size: 11pt; }
  .shell { padding: 0; }
  .no-print, .preview-banner, .site-foot { display: none !important; }
  .brand .symbol-light { display: block !important; }
  .brand .symbol-dark { display: none !important; }
  .report { padding-top: 12px; gap: 24px; }
  .summary, .priority, .step-row, .timeback, .cta, .section > header { break-inside: avoid; }
  .section > header { break-after: avoid; }
  .cta h2, .cta p { color: #212121; }
  .cta .email-text { color: #372757; }
  .cta-audit { border-top-color: #ddd5ee; }
  .score-hex .val, .bar i { transition: none; }
  a { color: inherit; text-decoration: none; }
}
