/* ───────────── Tokens ───────────── */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f4efe7;
  --ink: #14213d;
  --ink-2: #44506a;
  --muted: #6b7489;
  --line: #e6e0d5;
  --accent: #c4531f;
  --accent-hover: #a8451a;
  --accent-bright: #e8743b;
  --accent-ink: #ffffff;
  --accent-soft: #fbe8dc;
  --focus: #3e63dd;
  --success: #2f7d45;
  --danger: #b4322b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(20 33 61 / 0.05), 0 10px 30px rgb(20 33 61 / 0.07);
  --display: var(--font-display), Georgia, 'Times New Roman', serif;
  --body: var(--font-body), ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1525;
    --surface: #151e31;
    --surface-2: #1b2640;
    --ink: #f3eee6;
    --ink-2: #c5cbd8;
    --muted: #949db1;
    --line: #28344e;
    --accent: #f07d45;
    --accent-hover: #f59563;
    --accent-bright: #f07d45;
    --accent-ink: #1a0e07;
    --accent-soft: #3a2318;
    --focus: #8da4f7;
    --success: #6cc785;
    --danger: #f2837b;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px rgb(0 0 0 / 0.25);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .container {
    padding: 0 28px;
  }
}

.narrow {
  max-width: 760px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: 12px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  color: var(--ink-2);
  max-width: 62ch;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--ink-2);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  padding-inline: 0.75rem;
}
.btn-ghost:hover:not(:disabled) {
  color: var(--ink);
  background: var(--surface-2);
}
.btn-sm {
  min-height: 38px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
.btn-lg {
  min-height: 54px;
  padding: 0.9rem 1.75rem;
  font-size: 1.06rem;
}
.btn-block {
  width: 100%;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ───────────── Header / footer ───────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
/* The logo artwork has white lettering, so light mode gives it a navy chip. */
.brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--ink);
}
.brand-logo img {
  display: block;
  height: 30px;
  width: auto;
}
.brand-logo-footer img {
  height: 28px;
}
@media (prefers-color-scheme: dark) {
  .brand-logo {
    padding: 0;
    background: none;
  }
}
@media (max-width: 479px) {
  .brand-logo img {
    height: 24px;
  }
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav .nav-link {
  display: none;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav .nav-link:hover {
  color: var(--ink);
  background: var(--surface-2);
}
@media (min-width: 760px) {
  .site-nav .nav-link {
    display: inline-block;
  }
}
.nowrap {
  white-space: nowrap;
}
.show-xs {
  display: none;
}
@media (max-width: 479px) {
  .hide-xs {
    display: none;
  }
  .show-xs {
    display: inline;
  }
}

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}
/* A full-width band at the end of a page meets the footer directly. */
main:has(> .bleed-end:last-child) + .site-footer {
  margin-top: 0;
  border-top: 0;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}
/* Wide enough for the menu to sit on one line: the disclaimer takes what's left. */
@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 4rem;
  }
  .footer-links {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
}
.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ───────────── Layout blocks ───────────── */
.section {
  padding: 4rem 0;
}
.section-tight {
  padding: 2.5rem 0;
}
.section-head {
  max-width: 680px;
  margin-bottom: 2rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .grid-2,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.split {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
@media (min-width: 720px) {
  .card {
    padding: 1.75rem;
  }
}
.card-raised {
  box-shadow: var(--shadow);
}
.card h3:first-child,
.card h2:first-child {
  margin-top: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 600;
}

.notice {
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.9rem;
}
.notice-warn {
  background: var(--accent-soft);
  color: var(--ink);
}

.list-check {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.list-check li {
  position: relative;
  padding-left: 1.6rem;
}
.list-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2.5px solid var(--success);
  border-bottom: 2.5px solid var(--success);
  transform: rotate(-45deg);
}
.list-dot {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.list-dot li {
  position: relative;
  padding-left: 1.2rem;
}
.list-dot li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c, var(--accent));
}

/* ───────────── Landing ───────────── */
.hero-map {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: block;
}

.arch-card {
  --c: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  border-top: 4px solid var(--c);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
a.arch-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.arch-card h3 {
  margin: 0.4rem 0 0;
}
.arch-card .role {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.arch-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.monogram {
  --c: var(--accent);
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: var(--c);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  flex: none;
}
@media (prefers-color-scheme: dark) {
  .monogram {
    color: color-mix(in srgb, var(--c) 60%, white);
  }
}
.monogram-lg {
  width: 4rem;
  height: 4rem;
  border-radius: 18px;
  font-size: 1.25rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1rem;
}
@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}

.price-tag {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
}
.price-tag small {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.35rem;
}

.band-strip {
  background: var(--ink);
  color: var(--bg);
}
.band-strip .steps li::before {
  background: var(--accent);
  color: var(--accent-ink);
}
.band-strip .lede,
.band-strip .muted {
  color: color-mix(in srgb, var(--bg) 75%, var(--ink));
}

/* ───────────── Assessment ───────────── */
.quiz {
  padding: 2rem 0 1rem;
}
@media (min-width: 720px) {
  .quiz {
    padding: 3.5rem 0 1rem;
  }
}
.quiz-card {
  max-width: 760px;
  margin: 0 auto;
}
.progress {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.progress-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--accent-bright);
  transition: width 0.3s ease;
}
.q-kind {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.q-text {
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  margin-bottom: 1.5rem;
  outline: none;
}

.likert {
  display: grid;
  gap: 0.6rem;
}
@media (min-width: 640px) {
  .likert {
    grid-template-columns: repeat(5, 1fr);
  }
}
.choice {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.12s ease,
    background 0.12s ease;
}
.choice:hover {
  border-color: var(--ink-2);
}
.choice[aria-checked='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.choice-key {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 700;
}
.choice[aria-checked='true'] .choice-key {
  background: var(--accent);
  color: var(--accent-ink);
}
@media (min-width: 640px) {
  .likert .choice {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    min-height: 112px;
    font-size: 0.9rem;
    line-height: 1.3;
  }
}
.scenario-options {
  display: grid;
  gap: 0.55rem;
}
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.quiz-hint {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
@media (hover: none) {
  .quiz-hint {
    display: none;
  }
}
/* Intro: photo beside the text from tablets up, above it on phones. */
.quiz-intro {
  max-width: 1040px;
  padding: 0;
  overflow: hidden;
  display: grid;
}
@media (min-width: 860px) {
  .quiz-intro {
    grid-template-columns: 0.8fr 1.2fr;
  }
}
.quiz-intro-media {
  position: relative;
  min-height: 200px;
}
.quiz-intro-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quiz-intro-body {
  padding: 1.5rem;
}
@media (min-width: 720px) {
  .quiz-intro-body {
    padding: 2.5rem;
  }
}
.quiz-intro-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
}
.quiz-intro-note svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}
.quiz-intro-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 1.75rem;
}
@media (min-width: 640px) {
  .quiz-intro-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
.stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}
.stat > svg {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.5rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
}
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.1;
}
.stat span {
  font-size: 0.88rem;
  color: var(--ink-2);
}

/* Start button: brand (logo) yellow pill with an arrow badge that turns on hover. */
.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 58px;
  padding: 0.4rem 0.4rem 0.4rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: #ffd60a;
  color: #0b0b0b;
  font: inherit;
  font-size: 1.06rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgb(255 214 10 / 0.35);
  transition:
    gap 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
}
.start-btn:hover {
  gap: 1.15rem;
  background: #ffe14d;
  box-shadow: 0 10px 30px rgb(255 214 10 / 0.5);
}
.start-btn:active {
  transform: translateY(1px);
}
.start-btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.start-btn-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #0b0b0b;
  color: #ffd60a;
  transition: transform 0.3s ease;
}
.start-btn-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.start-btn:hover .start-btn-icon {
  transform: rotate(-45deg);
}
@media (prefers-reduced-motion: reduce) {
  .start-btn,
  .start-btn-icon {
    transition: none;
  }
}

/* Email step: blocks the page until completed. */
.gate-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  background: rgb(14 21 37 / 0.6);
  backdrop-filter: blur(6px);
  animation: gate-fade 0.2s ease;
}
.gate {
  width: 100%;
  max-width: 460px;
  animation: gate-rise 0.25s ease;
}
@keyframes gate-fade {
  from {
    opacity: 0;
  }
}
@keyframes gate-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ───────────── Result & profile chart ───────────── */
.result-hero {
  --c: var(--accent);
  padding: 3rem 0 2rem;
}
.result-hero .monogram {
  margin-bottom: 1rem;
}
.result-hero h1 span {
  color: var(--c);
}
@media (prefers-color-scheme: dark) {
  .result-hero h1 span {
    color: color-mix(in srgb, var(--c) 65%, white);
  }
}
.aliases {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.profile-chart {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}
.pc-row {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  grid-template-areas:
    'label band'
    'track track';
  gap: 0.3rem 0.75rem;
  align-items: center;
}
@media (min-width: 560px) {
  .pc-row {
    grid-template-columns: 7.5rem 1fr 8.5rem;
    grid-template-areas: 'label track band';
  }
}
.pc-label {
  grid-area: label;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.pc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.pc-track {
  grid-area: track;
  height: 12px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.pc-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.pc-band {
  grid-area: band;
  font-size: 0.8rem;
  color: var(--muted);
  justify-self: end;
  text-align: right;
}
.pc-row.is-lead .pc-band,
.pc-row.is-supporting .pc-band {
  color: var(--ink);
  font-weight: 700;
}

.band-legend {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.band-legend strong {
  color: var(--ink);
}

.kv {
  display: grid;
  gap: 1.25rem;
}
.kv h4 {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.unlock-card {
  border: 2px solid var(--accent);
}

/* ───────────── Forms ───────────── */
.form {
  display: grid;
  gap: 0.85rem;
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.input {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.input:focus {
  border-color: var(--focus);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent);
}
.checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.checkbox input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--accent);
  flex: none;
}
.form-msg {
  font-size: 0.9rem;
  margin: 0;
}
.form-msg.ok {
  color: var(--success);
}
.form-msg.err {
  color: var(--danger);
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ───────────── Report ───────────── */
.report {
  padding: 2rem 0 0;
}
.report-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.report-cover {
  --c: var(--accent);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
@media (min-width: 720px) {
  .report-cover {
    padding: 3rem;
  }
}
.report-cover::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--c);
  opacity: 0.35;
}
.report-cover > * {
  position: relative;
  z-index: 1;
}
.report-cover .eyebrow {
  color: var(--accent-bright);
}
.report-cover p {
  color: color-mix(in srgb, var(--bg) 80%, var(--ink));
}
.report-section {
  padding: 2.5rem 0 0;
}
.report-section > h2 {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.section-num {
  display: inline-block;
  min-width: 2.4rem;
  margin-right: 0.6rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.kdd {
  display: grid;
  gap: 1rem;
}
@media (min-width: 860px) {
  .kdd {
    grid-template-columns: repeat(3, 1fr);
  }
}
.kdd .card {
  border-top: 4px solid var(--ink);
}
.kdd .card:nth-child(2) {
  border-top-color: var(--accent-bright);
}
.kdd .card:nth-child(3) {
  border-top-color: var(--success);
}

.loop {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
@media (min-width: 720px) {
  .loop {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .loop {
    grid-template-columns: repeat(4, 1fr);
  }
}
.loop li {
  --c: var(--accent);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  background: var(--surface);
}
.loop li.is-gap {
  border-style: dashed;
  border-color: var(--danger);
}
.loop-step {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.loop-name {
  font-weight: 700;
}
.loop-verb {
  font-size: 0.9rem;
  color: var(--ink-2);
}
.loop-flag {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--danger);
}

.plan {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}
.plan li {
  display: grid;
  gap: 0.3rem 1.25rem;
}
@media (min-width: 720px) {
  .plan li {
    grid-template-columns: 9rem 1fr;
  }
}
.plan-days {
  font-weight: 700;
  color: var(--accent);
}
.plan-title {
  font-weight: 700;
  display: block;
}
.plan-you {
  margin-top: 0.4rem;
  padding: 0.6rem 0.85rem;
  border-left: 3px solid var(--c, var(--accent));
  background: var(--surface-2);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}

.write-lines {
  height: 4.5rem;
  margin-top: 0.4rem;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(1.5rem - 1px),
    var(--line) calc(1.5rem - 1px),
    var(--line) 1.5rem
  );
}
.prompts {
  list-style: none;
  counter-reset: prompt;
  display: grid;
  gap: 1.25rem;
}
.prompts li {
  counter-increment: prompt;
}
.prompts li > strong::before {
  content: counter(prompt) '. ';
  color: var(--accent);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}
.table th,
.table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th {
  background: var(--surface-2);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.table tr:last-child td {
  border-bottom: 0;
}
.fill-line {
  display: block;
  min-width: 8rem;
  border-bottom: 1px solid var(--line);
  height: 1.3rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0.75rem;
}
.chip {
  --c: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1.5px solid var(--c);
  font-size: 0.82rem;
  font-weight: 600;
}
.chip.is-you {
  background: var(--c);
  color: #fff;
}

.locked-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.locked-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.locked-list svg {
  flex: none;
  margin-top: 0.2rem;
  color: var(--muted);
}

/* ───────────── Print (Save as PDF) ───────────── */
@media print {
  :root {
    --bg: #fff;
    --surface: #fff;
    --surface-2: #f4f1ec;
    --ink: #111;
    --ink-2: #333;
    --muted: #555;
    --line: #d9d4ca;
  }
  .site-header,
  .site-footer,
  .no-print,
  .skip-link {
    display: none !important;
  }
  body {
    font-size: 10.5pt;
  }
  .report-cover {
    background: #fff;
    color: #111;
    border: 2px solid #111;
  }
  .report-cover p {
    color: #333;
  }
  .report-cover::after {
    display: none;
  }
  .report-section {
    break-inside: avoid-page;
  }
  .page-break {
    break-before: page;
  }
  .card,
  .loop li,
  .plan li,
  .prompts li {
    break-inside: avoid;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

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

/* ───────────── Floating controls: Archie + back to top ───────────── */
.site-footer {
  padding-bottom: 8rem;
}

.archie-pod {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 8px 20px rgb(20 33 61 / 0.28));
  transition: transform 0.2s ease;
}
.archie-pod:hover {
  transform: scale(1.05);
}
.archie-pod svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.archie-pod::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent-bright);
  opacity: 0;
  animation: archie-pulse 3s ease-out infinite;
  pointer-events: none;
}
.archie-pod.is-open::before {
  animation: none;
}
.archie-pod-bg {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1.5;
}
.archie-ring {
  transform-box: view-box;
  transform-origin: 60px 60px;
  animation: archie-spin 24s linear infinite;
}
.archie-pod:hover .archie-ring,
.archie-pod.is-open .archie-ring {
  animation-play-state: paused;
}
.archie-ring text {
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 800;
  fill: var(--ink);
}
.archie-x {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.archie-face {
  transition: opacity 0.15s ease;
}
.archie-pod.is-open .archie-x {
  opacity: 1;
}
.archie-pod.is-open .archie-face {
  opacity: 0;
}
@keyframes archie-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes archie-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.9);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.archie-panel {
  position: fixed;
  right: 16px;
  bottom: 124px;
  z-index: 91;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 32px));
  height: min(580px, calc(100dvh - 150px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px 22px 8px 22px;
  box-shadow:
    0 24px 60px rgb(20 33 61 / 0.25),
    0 2px 6px rgb(20 33 61 / 0.08);
  overflow: hidden;
  transform-origin: bottom right;
  animation: archie-pop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes archie-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.88);
  }
}
.archie-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem 0.85rem 1rem;
  background: var(--ink);
  color: var(--bg);
}
.archie-head strong {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.2;
}
.archie-head span {
  font-size: 0.8rem;
  opacity: 0.75;
}
.archie-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg) 35%, transparent);
}
.archie-avatar svg {
  display: block;
}
.archie-actions {
  display: flex;
  gap: 0.15rem;
  margin-left: auto;
}
.archie-icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}
.archie-icon-btn:hover {
  background: color-mix(in srgb, var(--bg) 15%, transparent);
}
.archie-icon-btn:first-child:hover svg {
  transform: rotate(-120deg);
}
.archie-icon-btn svg {
  transition: transform 0.35s ease;
}
.archie-log {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem;
}
.archie-msg {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 92%;
}
.archie-msg.from-visitor {
  align-self: flex-end;
  align-items: flex-end;
}
.archie-bubble {
  padding: 0.65rem 0.85rem;
  border-radius: 16px 16px 16px 4px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
}
.from-visitor .archie-bubble {
  border-radius: 16px 16px 4px 16px;
  background: var(--accent);
  color: var(--accent-ink);
}
.archie-bubble p {
  margin: 0 0 0.5em;
}
.archie-bubble p:last-child,
.archie-bubble ul:last-child {
  margin-bottom: 0;
}
.archie-bubble ul {
  list-style: disc;
  padding-left: 1.15rem;
  margin: 0.2em 0 0.6em;
}
.archie-bubble li {
  margin: 0.2em 0;
}
.archie-links,
.archie-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.archie-link {
  padding: 0.3rem 0.7rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}
.archie-link:hover {
  background: var(--accent-soft);
}
.archie-chip {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
}
.archie-chip:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}
.archie-typing {
  display: inline-flex;
  gap: 4px;
  align-self: flex-start;
}
.archie-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: archie-dot 1.2s infinite ease-in-out;
}
.archie-typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.archie-typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes archie-dot {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}
.archie-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
}
.archie-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}
.archie-input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent);
}
.archie-send {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}
.archie-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.to-top {
  position: fixed;
  right: 38px;
  bottom: 126px;
  z-index: 89;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  box-shadow: 0 10px 24px rgb(20 33 61 / 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.7);
  transition:
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
[data-archie-open] .to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.7);
}
.to-top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.to-top-track {
  fill: none;
  stroke: color-mix(in srgb, var(--bg) 18%, transparent);
  stroke-width: 3;
}
.to-top-progress {
  fill: none;
  stroke: var(--accent-bright);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.12s linear;
}
.to-top-arrow {
  position: relative;
  width: 22px;
  height: 22px;
}
.to-top:hover .to-top-arrow,
.to-top:focus-visible .to-top-arrow {
  animation: to-top-hop 0.7s ease infinite;
}
@keyframes to-top-hop {
  50% {
    transform: translateY(-4px);
  }
}
.to-top-label {
  position: absolute;
  right: calc(100% + 10px);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.to-top:hover .to-top-label,
.to-top:focus-visible .to-top-label {
  opacity: 1;
  transform: none;
}

@media (max-width: 639px) {
  .archie-pod {
    right: 12px;
    bottom: 12px;
    width: 80px;
    height: 80px;
  }
  .archie-panel {
    left: 8px;
    right: 8px;
    bottom: 102px;
    width: auto;
    height: min(620px, calc(100dvh - 118px));
  }
  .to-top {
    right: 28px;
    bottom: 104px;
    width: 48px;
    height: 48px;
  }
  .to-top-label {
    display: none;
  }
}
