:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  --blue: #002C4D;
  --red: #AE0A3B;
  --green: #82A094;
  --pale: #EDEDED;
  --mid: #C6C6C6;
  --bg: #FFFFFF;
  --text: #002C4D;
  --panel: #EDEDED;
  --border: #C6C6C6;
  --focus: #AE0A3B;
  --btn-bg: #AE0A3B;
  --btn-text: #FFFFFF;
  --quiet: #3d5568;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Raleway', 'Segoe UI', Arial, sans-serif;
  font-size: 1.125rem; line-height: 1.6;
}
main { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
h1, h2, h3 { line-height: 1.25; font-weight: 700; }
h1 { font-size: 1.75rem; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 0.5rem; }
p { margin: 0 0 1rem; max-width: 38em; }
h1:focus, h2:focus { outline: none; }
h1:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}

/* progress */
.progress { margin-bottom: 1.5rem; }
.progress p { margin: 0 0 0.5rem; font-weight: 600; }
.segments { display: flex; gap: 6px; }
.segments span { flex: 1; height: 8px; background: var(--border); }
.segments span.done { background: var(--blue); }
.segments span.now { background: var(--red); }
.pillar-name { border-left: 6px solid var(--green); padding-left: 0.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.frame { color: var(--quiet); }
.note { background: var(--panel); padding: 0.75rem 1rem; font-weight: 600; }

/* question */
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; margin-bottom: 1rem; }
legend h1 { margin: 0; }
.options { display: grid; gap: 0.75rem; }
.option {
  display: flex; gap: 0.9rem; align-items: flex-start;
  border: 2px solid #6E7F8C; padding: 0.9rem 1rem; cursor: pointer; background: var(--bg);
}
.option input { width: 1.35rem; height: 1.35rem; margin: 0.2rem 0 0; flex-shrink: 0; accent-color: var(--blue); }
.option:has(input:checked) { border-color: var(--blue); background: var(--panel); }
.option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.error { color: var(--red); font-weight: 700; margin-top: 1rem; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; align-items: center; }
button, .btn {
  font: inherit; font-weight: 700; font-size: 1rem;
  background: var(--btn-bg); color: var(--btn-text); border: 2px solid var(--btn-bg);
  padding: 0.75rem 1.4rem; cursor: pointer; text-decoration: none; display: inline-block;
}
button.secondary, .btn.secondary { background: transparent; color: var(--text); border-color: var(--text); }

/* route */
.route { border: 2px solid var(--border); padding: 1.25rem; margin-bottom: 1rem; }
.route h2 { margin-top: 0; }
.soon { font-weight: 700; color: var(--quiet); }

/* reflect */
.you-said { background: var(--panel); padding: 0.75rem 1rem; border-left: 6px solid var(--green); }

/* results */
.pillar-panel { border-left: 6px solid var(--green); padding: 0.25rem 0 0.25rem 1rem; margin-bottom: 1.25rem; }
.offer { background: var(--panel); padding: 1.25rem; }
.offer h3 { margin-top: 0; }
.soon-panel { border: 2px solid var(--border); padding: 1.25rem; margin-bottom: 1rem; }
.soon-panel h3 { margin-top: 0; }
form { margin-top: 1rem; }
label.field { display: block; font-weight: 600; margin-bottom: 0.35rem; }
input[type="email"] {
  font: inherit; width: 100%; max-width: 24rem; padding: 0.6rem 0.75rem;
  border: 2px solid var(--text); background: var(--bg); color: var(--text); display: block; margin-bottom: 0.75rem;
}
.check { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 1rem; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.3rem; accent-color: var(--blue); }
.confirm { font-weight: 700; }
fieldset.interests { margin-bottom: 1.25rem; }
fieldset.interests legend { font-weight: 600; margin-bottom: 0.6rem; }
.small { font-size: 0.95rem; margin-top: 0.75rem; }
@media print {
  .no-print, .x-unused { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .offer { background: none; border: 1px solid #999; }
  a { text-decoration: none; color: #000; }
  a[data-print]::after { content: " (" attr(data-print) ")"; }
  .btn { background: none; border: 0; padding: 0; color: #000; font-weight: 700; }
  .sr { display: none; }
}
details.proto { margin-top: 3rem; border: 2px dashed var(--border); padding: 1rem; font-size: 0.95rem; }
details.proto summary { cursor: pointer; font-weight: 700; }
.safety { border-top: 6px solid var(--red); padding-top: 0.5rem; margin-top: 3rem; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button[disabled] { opacity: 0.7; cursor: progress; }

.quote { margin: 1.5rem 0 0; padding: 0.75rem 1rem; border-left: 6px solid var(--red); background: var(--panel); }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0 0 0.4rem; font-style: italic; }
.quote figcaption { font-weight: 600; font-size: 0.95rem; }

/* results overview circles */
.overview { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; }
.ov-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.ov-name { font-weight: 700; }
.ov-circle { width: 7.5rem; height: 7.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0.6rem; font-weight: 700; line-height: 1.2; color: #002C4D; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ov-connection.ov-low { background: #BFCAD2; } .ov-connection.ov-mid { background: #8CA0AF; } .ov-connection.ov-high { background: #002C4D; color: #FFFFFF; }
.ov-quality.ov-low { background: #EBC2CE; } .ov-quality.ov-mid { background: #DB91A7; } .ov-quality.ov-high { background: #AE0A3B; color: #FFFFFF; }
.ov-inclusion.ov-low { background: #E0E7E4; } .ov-inclusion.ov-mid { background: #A8BCB4; } .ov-inclusion.ov-high { background: #82A094; }

/* show and hide sections */
details.more { border: 2px solid var(--border); margin: 1rem 0; }
details.more > summary { cursor: pointer; padding: 0.85rem 1rem; font-weight: 700; font-size: 1.1rem; }
details.more > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
details.more[open] > summary { border-bottom: 2px solid var(--border); }
.more-body { padding: 0.25rem 1rem 0.75rem; }
.more-body h3:first-child { margin-top: 0.75rem; }
@media print {
  details.more { border: 0; }
  details.more > summary { list-style: none; padding: 0; margin-top: 1.5rem; }
  details.more > summary::-webkit-details-marker { display: none; }
  .more-body { padding: 0; }
}

.subtitle { font-weight: 600; margin-top: -0.25rem; }
.readmore { margin-left: 0.6rem; white-space: nowrap; }
.check { flex-wrap: wrap; }
h2[tabindex="-1"]:focus, [tabindex="-1"]:focus { outline: none; }
[tabindex="-1"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.ov-link { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: inherit; text-decoration: none; border-radius: 0.5rem; padding: 0.25rem; }
.ov-link:hover .ov-circle { box-shadow: 0 0 0 4px #FFFFFF, 0 0 0 7px #002C4D; }
.ov-link:hover .ov-name { text-decoration: underline; text-underline-offset: 3px; }
.ov-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media print { .ov-link .ov-circle { box-shadow: none; } }
