:root {
  --paper: #1d232b;
  --paper-strong: rgba(242, 245, 248, .04);
  --paper-muted: rgba(242, 245, 248, .08);
  --ink: #f2f3f5;
  --muted: rgba(232, 236, 240, .74);
  --line: rgba(232, 236, 240, .13);
  --line-strong: rgba(232, 236, 240, .24);
  --bg-center: #2c323a;
  --bg-mid: #252c33;
  --bg-outer: #1d232b;
  --link: #8ed8ff;
  --link-soft: rgba(142, 216, 255, .14);
  --accent: #6a0f2c;
  --accent-hover: #7d1b3b;
  --white: #fff;
  --danger: #ffb4b4;
  --radius: 8px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top center, var(--bg-center), var(--bg-mid), var(--bg-outer));
  color: var(--ink);
  font: 16px/1.56 "Source Sans 3", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 10px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at top center, rgba(44,50,58,.9), rgba(37,44,51,.94), rgba(29,35,43,.96));
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: auto; height: 76px; max-width: min(272px, 62vw); }
.site-nav { display: flex; align-items: center; gap: 14px; color: rgba(232,236,240,.78); font-size: .95rem; font-weight: 650; }
.site-nav > span:first-child { padding: 7px 9px; border-bottom: 2px solid var(--accent); color: var(--white); }
.nav-status { padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper-strong); }
.nav-status i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--link); }

.shell { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; }
.panel { padding: clamp(46px, 6vw, 74px) 0 clamp(42px, 5vw, 64px); }
.hero { min-height: calc(100vh - 82px); display: grid; grid-template-columns: minmax(0,.92fr) minmax(360px,.78fr); align-items: center; gap: clamp(42px,6vw,76px); }
.hero-copy { max-width: 680px; }
.holsen-signature { display: inline-flex; width: fit-content; margin: 0 0 20px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; background: #fff; text-decoration: none; }
.holsen-signature img { display: block; width: 120px; height: auto; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: .75rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "EB Garamond", Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: 0; }
h1 { max-width: 760px; margin-bottom: 18px; font-size: clamp(2.75rem,5.1vw,3.65rem); line-height: 1.05; }
h2 { max-width: 850px; margin-bottom: 22px; font-size: clamp(2rem,4vw,2.75rem); line-height: 1.08; }
h3 { margin-bottom: 8px; font-size: 1.03rem; line-height: 1.28; }
.hero-lead, .section-lead { max-width: 700px; margin-bottom: 18px; color: var(--muted); font-size: 1.08rem; }
.intro-axes { max-width: 700px; margin: -4px 0 22px; padding-left: 28px; color: var(--ink); font-size: 1.04rem; font-weight: 720; }
.intro-axes li { margin: 6px 0; padding-left: 4px; }
.promise-box { max-width: 680px; margin-bottom: 24px; padding: 13px 16px; border-left: 4px solid var(--accent); background: var(--paper-muted); color: var(--ink); font-weight: 700; }
.assurance-list { display: grid; gap: 0; max-width: 680px; margin: 0 0 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.assurance-list div { display: grid; grid-template-columns: 146px minmax(0,1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.assurance-list div:last-child { border-bottom: 0; }
.assurance-list dt { color: var(--ink); font-weight: 720; }
.assurance-list dd { margin: 0; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 780;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.button:focus-visible, .option:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(142,216,255,.22); outline-offset: 2px; }
.button.primary { background: var(--accent); color: var(--white); }
.button.primary:hover, .button.primary:focus-visible { background: var(--accent-hover); }
.button.secondary { border-color: var(--line-strong); background: var(--paper-strong); color: var(--link); }
.button.secondary:hover, .button.secondary:focus-visible { border-color: var(--link); }
.button:disabled { cursor: not-allowed; opacity: .48; }

.register-card { overflow: hidden; border: 1px solid var(--line-strong); background: var(--paper-strong); }
.register-card-head { display: flex; justify-content: space-between; gap: 16px; padding: 15px 18px; background: var(--bg-outer); color: var(--white); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.register-card-head strong { color: rgba(255,255,255,.72); }
.report-card-copy { padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.report-outline { margin: 0; }
.report-outline div { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.report-outline dt { color: var(--accent); font-size: .75rem; font-weight: 850; }
.report-outline dd { margin: 0; color: var(--ink); font-weight: 680; }
.signal-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; margin: 0; border-top: 1px solid var(--line); background: var(--paper-strong); }
.signal-row div { min-height: 66px; padding: 12px 14px; border-right: 1px solid var(--line); }
.signal-row div:last-child { border-right: 0; }
.signal-row dt { color: var(--muted); font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.signal-row dd { margin: 4px 0 0; color: var(--ink); font-size: 1rem; font-weight: 780; }

.diagnostic-panel { max-width: 840px; min-height: calc(100vh - 140px); margin: 0 auto; }
.progress-row { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .82rem; font-weight: 650; }
.progress { height: 5px; margin: 11px 0 42px; overflow: hidden; background: var(--paper-muted); }
.progress span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .32s ease; }
#question-title { font-size: clamp(1.8rem,3.6vw,2.45rem); line-height: 1.15; }
.options { display: grid; gap: 10px; }
.option { position: relative; width: 100%; min-height: 66px; padding: 17px 20px 17px 56px; border: 1px solid var(--line); border-radius: 0; background: var(--paper-strong); color: var(--muted); text-align: left; font-size: .97rem; line-height: 1.42; transition: border .15s ease, background .15s ease, color .15s ease; }
.option::before { position: absolute; top: 21px; left: 20px; width: 16px; height: 16px; border: 1px solid var(--line-strong); border-radius: 50%; content: ""; }
.option:hover, .option.selected { border-color: var(--link); background: var(--link-soft); color: var(--ink); }
.option.selected::before { border: 5px solid var(--accent); background: var(--white); }
.priority-instructions { margin: 0 0 5px; color: var(--muted); font-size: .92rem; }
.priority-row { display: grid; grid-template-columns: 1fr 76px; gap: 18px; align-items: center; min-height: 64px; margin: 0; padding: 13px 15px 13px 20px; border: 1px solid var(--line); background: var(--paper-strong); color: var(--muted); font-size: .94rem; font-weight: 500; line-height: 1.38; }
.priority-row select { width: 100%; min-height: 38px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg-outer); color: var(--ink); font-weight: 750; text-align: center; }
.actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; }
.secondary:not(.button) { min-height: 46px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper-strong); color: var(--link); }

.contact-panel { max-width: 760px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; margin: 22px 0 8px; color: var(--ink); font-weight: 700; }
input[type=email], input[type=text] { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(18,23,30,.6); color: var(--ink); }
input::placeholder { color: rgba(232,236,240,.4); }
.delivery-note { margin: 18px 0 12px; color: var(--muted); font-size: .84rem; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 22px; color: var(--muted); font-size: .9rem; font-weight: 400; line-height: 1.45; }
.check input { margin-top: 4px; accent-color: var(--accent); }
.cf-turnstile { margin: 18px 0; }
.error { min-height: 1.5em; margin-top: 12px; color: var(--danger); }

.result-panel { max-width: 920px; margin: 0 auto; }
.result-grid { display: grid; grid-template-columns: minmax(300px,.85fr) 1.15fr; gap: 44px; align-items: center; }
.radar svg { display: block; width: 100%; height: auto; }
.score-list { display: grid; gap: 12px; }
.score-row { display: grid; grid-template-columns: 1fr 48px; gap: 8px 12px; align-items: center; color: var(--muted); font-size: .9rem; }
.score-row span:nth-child(2) { color: var(--ink); font-weight: 800; text-align: right; }
.score-track { grid-column: 1 / 3; height: 5px; overflow: hidden; background: var(--paper-muted); }
.score-track i { display: block; height: 100%; background: var(--accent); }
.report-pending { display: flex; gap: 16px; margin-top: 36px; padding: 20px; border-left: 4px solid var(--accent); background: var(--paper-muted); }
.report-pending p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.pulse { flex: 0 0 12px; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: var(--link); box-shadow: 0 0 0 rgba(142,216,255,.34); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 13px rgba(142,216,255,0); } 100% { box-shadow: 0 0 0 0 rgba(142,216,255,0); } }
.link-button { margin-top: 24px; }

.site-footer { display: flex; justify-content: space-between; gap: 24px; width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 26px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.site-footer a, .delivery-note a { color: var(--blue); }

.report-page { background: radial-gradient(circle at top center, var(--bg-center), var(--bg-mid), var(--bg-outer)); }
.report-page .shell { width: min(920px, calc(100% - 56px)); }
.report-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 520px; text-align: center; }
.report-loading h1 { max-width: 680px; margin-top: 20px; }
.report-loading p { color: var(--muted); }
.report-document { max-width: 860px; margin: 0 auto; padding-top: 30px; }
.report-actions { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.pdf-button { min-height: 34px; padding: 0; border: 0; background: transparent; color: var(--link); font-size: .82rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.report-head { max-width: 790px; padding: 8px 0 28px; }
.report-document h1 { max-width: 790px; margin: 0 0 18px; font-size: clamp(2.35rem,5vw,3.25rem); }
.report-intro { max-width: 790px; margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.68; white-space: pre-line; }
.report-section { padding: 28px 0; border-top: 1px solid var(--line); }
.report-document .report-section h2 { margin: 0 0 15px; color: var(--ink); font-family: "EB Garamond", Georgia, serif; font-size: 1.75rem; font-weight: 700; line-height: 1.12; }
.report-section p { max-width: 790px; color: var(--muted); font-size: .98rem; line-height: 1.7; }
.report-section ul, .report-section ol { max-width: 790px; padding-left: 21px; color: var(--muted); font-size: .98rem; }
.report-section li { margin: 10px 0; line-height: 1.65; }
.balance-grid { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 34px; align-items: center; max-width: 790px; }
.balance-reading { grid-column: 1 / -1; margin: 0; padding: 18px 20px; border-left: 4px solid var(--accent); background: var(--paper-muted); }
.report-radar svg { display: block; width: 100%; height: auto; }
.radar-number circle { fill: var(--bg-outer); stroke: var(--link); stroke-width: 1.5; }
.radar-number text { fill: var(--ink); font-size: 12px; font-weight: 750; }
.dimension-list { display: grid; gap: 12px; }
.dimension-line { display: grid; grid-template-columns: 1fr 44px; gap: 5px 10px; align-items: center; color: var(--muted); font-size: .84rem; }
.dimension-line strong { color: var(--ink); font-size: .82rem; text-align: right; }
.dimension-line i { grid-column: 1 / 3; display: block; height: 4px; overflow: hidden; background: var(--paper-muted); }
.dimension-line i b { display: block; height: 100%; background: var(--accent); }
.declared-priorities { display: grid; gap: 7px; padding-left: 24px !important; counter-reset: priorities; list-style: none; }
.declared-priorities li { position: relative; margin: 0; }
.declared-priorities li::before { position: absolute; left: -24px; color: var(--link); content: counter(priorities) "."; counter-increment: priorities; font-size: .88rem; font-weight: 750; }
.priority-reading { margin: 16px 0 0; }
.report-narrative { display: grid; gap: 13px; max-width: 790px; }
.report-narrative p { margin: 0; }
.risk-breakdown { display: grid; gap: 0; max-width: 790px; }
.risk-item { padding: 17px 0; border-top: 1px solid var(--line); }
.risk-item:first-child { border-top: 0; }
.report-document .risk-item h3 { margin: 0 0 6px; color: var(--link); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.risk-item p { margin: 0; }
.risk-cost { padding: 20px; margin: 0 0 10px; border: 1px solid var(--line-strong) !important; border-left: 4px solid var(--accent) !important; background: var(--paper-muted); }
.risk-cost p { color: var(--ink); font-size: 1.02rem; font-weight: 620; line-height: 1.6; }
.source-list { padding: 0 !important; list-style: none; }
.source { display: grid; grid-template-columns: minmax(140px,.35fr) 1fr; gap: 8px 18px; padding: 13px 0; margin: 0 !important; border-bottom: 1px solid var(--line); }
.source strong { color: var(--ink); font-size: .88rem; font-weight: 700; }
.source-pages { min-width: 0; }
.source a { color: var(--link); overflow-wrap: anywhere; text-underline-offset: 3px; }
.preview-nav { display: flex; justify-content: center; gap: 6px; width: min(860px, calc(100% - 56px)); margin: 24px auto 0; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-strong); }
.preview-nav a { flex: 1; padding: 9px 12px; border-radius: 5px; color: var(--muted); font-size: .8rem; font-weight: 700; text-align: center; text-decoration: none; }
.preview-nav a:hover, .preview-nav a[aria-current="page"] { background: var(--accent); color: var(--white); }

@media (max-width: 760px) {
  .site-header { min-height: 70px; padding: 8px 19px; }
  .brand-logo { height: 58px; max-width: 58vw; }
  .site-nav > span:first-child { display: none; }
  .nav-status { padding: 7px 9px; font-size: .78rem; }
  .shell, .report-page .shell { width: min(100% - 38px, 620px); }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 48px 0 58px; gap: 44px; }
  .holsen-signature img { width: 112px; }
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.15rem; }
  .assurance-list div { grid-template-columns: 112px minmax(0,1fr); gap: 12px; }
  .diagnostic-panel { min-height: calc(100vh - 105px); padding-top: 38px; }
  .option { padding: 16px 16px 15px 49px; }
  .option::before { top: 19px; left: 17px; }
  .priority-row { grid-template-columns: 1fr 65px; gap: 12px; padding-left: 14px; }
  .contact-grid, .result-grid, .balance-grid { grid-template-columns: 1fr; }
  .result-grid { gap: 24px; }
  .radar, .report-radar { width: min(310px,100%); margin: auto; }
  .balance-reading { grid-column: auto; }
  .source { grid-template-columns: 1fr; gap: 4px; }
  .site-footer { flex-direction: column; width: calc(100% - 38px); gap: 5px; }
  .preview-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: calc(100% - 38px); }
}

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

@media print {
  @page { margin: 14mm; }
  :root { --ink: #20282f; --muted: #4d5860; --line: #d9dfe2; --line-strong: #bfc7cc; --paper-muted: #f4f6f7; --accent: #6a0f2c; --link: #245f7c; --bg-outer: #fff; }
  body, .report-page { background: #fff !important; color: var(--ink); }
  .report-site-header, .preview-nav, .report-actions, .report-page .site-footer { display: none !important; }
  .report-document, .shell, .report-page .shell { width: 100%; max-width: none; margin: 0; padding: 0; }
  .holsen-signature { margin-bottom: 18px; border-color: #d9dfe2; }
  .report-section { break-inside: avoid; }
  .report-radar { max-width: 220px; }
  .radar-number circle { fill: #fff; }
}
