/* ===== Accountability Ladder — corporate dashboard aesthetic ===== */

:root {
  --bg:        #f6f7f9;
  --surface:   #ffffff;
  --border:    #e3e6ec;
  --primary:   #132238;
  --primary-2: #1f3557;
  --text:      #2b3446;
  --muted:     #6b7380;
  --accent:    #b8860b;
  --danger:    #a23b2d;
  --success:   #2f6b3f;
  --radius:    8px;
  --shadow:    0 1px 2px rgba(19, 34, 56, 0.04), 0 1px 0 rgba(19, 34, 56, 0.02);
  --shadow-2:  0 4px 14px rgba(19, 34, 56, 0.08);
  --serif:     Georgia, "Times New Roman", serif;
  --sans:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ===== Header / Nav ===== */
.site-header {
  background: var(--primary);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand__avatar {
  display: inline-block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary-2);
  border: 2px solid var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.brand__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Nudge the crop upward so the face frames nicely. Tweak if needed. */
  object-position: 50% 30%;
}
.brand__text { font-family: var(--serif); font-size: 17px; letter-spacing: 0.3px; }
.site-nav a { color: #cfd6e2; margin-left: 20px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.6px; }
.site-nav a:hover { color: #fff; text-decoration: none; }

/* ===== Footer ===== */
.site-footer {
  margin-top: 64px;
  padding: 24px 0;
  background: var(--primary);
  color: #aeb6c4;
  text-align: center;
  font-size: 13px;
}
.site-footer__tagline { margin: 0; font-family: var(--serif); font-style: italic; }
.site-footer__fine { margin: 4px 0 0; opacity: 0.6; font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; }

/* ===== Page head ===== */
main.container { padding-top: 40px; padding-bottom: 40px; }
.page-head { margin-bottom: 28px; }
.page-head--tight { margin-bottom: 16px; }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
h1 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--primary);
}
h2 { font-size: 20px; margin: 0 0 8px; color: var(--primary); }
.lede, .section-lede { color: var(--muted); margin: 0 0 14px; font-size: 16px; }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}
.section-title { margin: 0 0 4px; }

.card--cta { text-align: center; background: var(--primary); color: #fff; border-color: var(--primary); }
.card--cta .section-title, .card--cta .section-lede { color: #fff; }
.card--cta .section-lede { opacity: 0.8; }

/* ===== Badges ===== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: #f1f3f7;
  color: var(--primary);
}
.badge--rung { background: var(--primary); color: #fff; border-color: var(--primary); min-width: 28px; text-align: center; }
.badge--status { background: #fff; color: var(--accent); border-color: var(--accent); }

/* ===== Hero (home) ===== */
.hero {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.hero__title { font-size: 52px; font-family: var(--serif); line-height: 1.05; margin: 0 0 16px; color: var(--primary); }
.hero__em { color: var(--accent); font-style: italic; }
.hero__lede { font-size: 18px; max-width: 640px; color: var(--muted); margin: 0 0 24px; }
.hero__meta {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-wrap: wrap; gap: 24px;
  color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px;
}
.hero__meta strong { font-size: 22px; font-family: var(--serif); color: var(--primary); display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
  text-decoration: none;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-2); text-decoration: none; }
.btn--primary:disabled { background: #8892a5; border-color: #8892a5; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--primary); }
.btn--ghost:hover { background: #eef1f6; text-decoration: none; }
.btn--lg { padding: 14px 24px; font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }

/* ===== Grid ===== */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid--2 { grid-template-columns: 1fr 1fr; } }

/* ===== Ladder ===== */
.ladder { list-style: none; padding: 0; margin: 0; counter-reset: rung; }
.ladder-rung {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 12px;
}
.ladder-rung__num .badge--rung { font-size: 16px; padding: 8px 0; width: 44px; }
.ladder-rung__title { margin: 0 0 4px; font-family: var(--serif); }
.ladder-rung__desc  { margin: 0; color: var(--muted); }

/* ===== Activity feed / Testimonials ===== */
.activity { list-style: none; padding: 0; margin: 0; }
.activity__item {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.activity__item:last-child { border-bottom: 0; }
.activity__name { font-weight: 600; color: var(--primary); }
.activity__result { color: var(--muted); text-align: right; }

.testimonials { list-style: none; padding: 0; margin: 0; }
.testimonial { padding: 12px 0; border-bottom: 1px dashed var(--border); }
.testimonial:last-child { border-bottom: 0; }
.testimonial blockquote { margin: 0 0 4px; font-family: var(--serif); font-style: italic; color: var(--text); }
.testimonial cite { color: var(--muted); font-size: 13px; font-style: normal; }

/* ===== Assessment / Scenario ===== */
.progress { margin: 0 0 20px; }
.progress__meta {
  display: flex; justify-content: space-between;
  font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.progress__bar {
  height: 6px; background: #e3e6ec; border-radius: 999px; overflow: hidden;
}
.progress__fill {
  height: 100%; background: var(--accent);
  transition: width 250ms ease;
}

.scenario fieldset { border: 0; padding: 0; margin: 0; }
.scenario__legend {
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.scenario__text {
  font-family: var(--serif); font-size: 24px; line-height: 1.3;
  margin: 0 0 20px; color: var(--primary);
}
.options { display: grid; gap: 10px; }
.option {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
  background: #fafbfd;
}
.option:hover { border-color: var(--primary); background: #fff; }
.option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.option__key {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--border); border-radius: 4px;
  font-weight: 600; color: var(--muted); font-size: 13px;
  background: #fff;
}
.option__text { font-size: 15px; }
.option:has(input:checked) {
  border-color: var(--primary);
  background: #eef2f8;
}
.option:has(input:checked) .option__key {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

.form-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
}
.form-actions__hint { color: var(--muted); font-size: 12px; }

.error {
  background: #fdecea;
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}

/* ===== Result ===== */
.result-hero { text-align: center; padding: 40px 24px; }
.result-hero__badge { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.result-hero__title {
  font-family: var(--serif); font-size: 38px; margin: 0 0 10px;
  color: var(--primary);
}
.result-hero__desc { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 20px; }
.result-hero__stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  margin: 24px 0 0; padding: 0;
  border-top: 1px solid var(--border);
}
.result-hero__stats > div {
  flex: 1 1 33%;
  padding: 16px 8px;
  min-width: 120px;
}
.result-hero__stats dt {
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.result-hero__stats dd {
  margin: 0;
  font-family: var(--serif); font-size: 28px; color: var(--primary);
}

.leaderboard {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.leaderboard th, .leaderboard td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.leaderboard th {
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); background: #fafbfd;
}
.leaderboard tr:last-child td { border-bottom: 0; }

/* ===== Final notes (result page) ===== */
.final-notes { margin: 0; padding: 0; }
.final-notes__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.final-notes__row:last-child { border-bottom: 0; }
.final-notes dt {
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); margin: 0;
}
.final-notes dd {
  margin: 0; font-family: var(--serif); font-style: italic; color: var(--primary);
  text-align: right;
}

/* ===== Viktor figure (result page) ===== */
.viktor-card { text-align: center; }
.viktor-figure { margin: 0; }
.viktor-figure img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(19, 34, 56, 0.12);
  background: #eef1f6;
}
.viktor-figure__caption {
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}

/* ===== Splash / First-visit modal ===== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.splash[hidden] { display: none; }

.splash__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 34, 56, 0.62);
  backdrop-filter: blur(2px);
  opacity: 0;
  animation: splash-backdrop-in 220ms ease forwards;
}

.splash__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  padding: 28px;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  text-align: center;
  opacity: 0;
  transform: scale(0.96) translateY(6px);
  animation: splash-card-in 280ms cubic-bezier(0.2, 0.7, 0.2, 1) 80ms forwards;
}

.splash__figure {
  margin: 0 0 16px;
}
.splash__figure img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(19, 34, 56, 0.12);
  background: #eef1f6;
}
.splash__caption {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
}

.splash__title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  color: var(--primary);
  margin: 6px 0 12px;
}
.splash__body {
  color: var(--text);
  font-size: 14px;
  text-align: center;
  margin: 0 0 20px;
}
.splash__body p { margin: 0 0 10px; }
.splash__body p:last-child { margin-bottom: 0; color: var(--muted); font-style: italic; }

.splash__signoff {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.splash__signoff span {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.3px;
  text-transform: none;
  color: var(--primary);
}

@keyframes splash-backdrop-in {
  to { opacity: 1; }
}
@keyframes splash-card-in {
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .splash__backdrop,
  .splash__card { animation-duration: 1ms; }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  h1 { font-size: 30px; }
  .hero__title { font-size: 38px; }
  .scenario__text { font-size: 20px; }
  .site-nav a { margin-left: 12px; font-size: 12px; }
  .brand__text { font-size: 15px; }
  .ladder-rung { grid-template-columns: 48px 1fr; }
  .ladder-rung__status { grid-column: 1 / -1; text-align: right; }
  .result-hero__title { font-size: 28px; }
  .result-hero__stats dd { font-size: 22px; }
}
