/* Axiom Strategic — Founder Dependency Scorecard
   Brand: orange #F26822 accent, Montserrat, white ground, orange rule under header. */

:root {
  --axiom-orange: #F26822;
  --axiom-orange-mid: #F2915F;
  --axiom-wash: #F2E0D7;
  --axiom-gray: #6F6865;
  --axiom-black: #000;
  --axiom-white: #fff;
  --axiom-font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --line: #E4E1DF;
  --measure: 44rem;
}

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

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

body {
  margin: 0;
  font-family: var(--axiom-font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--axiom-black);
  background: var(--axiom-white);
}

/* ---------- Header / footer ---------- */

.site-header {
  border-bottom: 2px solid var(--axiom-orange);
  background: var(--axiom-white);
}
.site-header .inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark { display: inline-block; line-height: 0; }
.wordmark img {
  display: block;
  height: 34px;
  width: auto;
}
@media (max-width: 34rem) {
  .wordmark img { height: 26px; }
}
.header-note {
  font-size: 0.75rem;
  color: var(--axiom-gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  margin-top: 4rem;
  border-top: 2px solid var(--axiom-orange);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--axiom-gray);
}
.site-footer a { color: var(--axiom-gray); }

/* ---------- Layout ---------- */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
}

.screen { display: none; }
.screen.is-active { display: block; animation: rise 0.32s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Type ---------- */

h1 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.08;
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0 0 1rem;
}
h2 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--axiom-orange);
  margin: 0 0 0.75rem;
}
.lede { font-size: 1.06rem; color: var(--axiom-black); }
.muted { color: var(--axiom-gray); }
.small { font-size: 0.85rem; }

/* ---------- Pyramid (signature element) ---------- */

.pyramid { display: block; width: 100%; max-width: 320px; height: auto; }
.pyramid .band {
  fill: var(--axiom-wash);
  stroke: var(--axiom-white);
  stroke-width: 2;
  transition: fill 0.5s ease;
}
.pyramid .band.is-done { fill: var(--axiom-orange-mid); }
.pyramid .band.is-current { fill: var(--axiom-orange); }
.pyramid .band-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--axiom-gray);
  dominant-baseline: middle;
}
.pyramid .band-label.on-fill { fill: var(--axiom-white); }

.progress-rail {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.progress-rail .pyramid { max-width: 110px; flex: 0 0 auto; }
.progress-meta { min-width: 0; }
.progress-meta .step {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--axiom-gray);
  margin: 0 0 0.15rem;
}
.progress-meta .tier-name {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.35rem;
  margin: 0;
}

/* ---------- Questions ---------- */

.question { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.question:last-of-type { border-bottom: 0; }

.question .qnum {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--axiom-orange);
  display: block;
  margin-bottom: 0.4rem;
}
.question .qtext {
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.45;
  margin: 0 0 0.35rem;
}
.question .qhint {
  font-size: 0.8rem;
  color: var(--axiom-gray);
  margin: 0 0 0.9rem;
}

.options { display: grid; gap: 0.45rem; margin: 0.9rem 0 0; }

.option {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  line-height: 1.45;
  font-size: 0.94rem;
  background: var(--axiom-white);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option:hover { border-color: var(--axiom-orange-mid); background: #FDFAF8; }
.option input { margin: 0.32rem 0 0; accent-color: var(--axiom-orange); flex: 0 0 auto; }
.option:has(input:checked) {
  border-color: var(--axiom-orange);
  background: var(--axiom-wash);
}
.option:has(input:focus-visible) { outline: 2px solid var(--axiom-orange); outline-offset: 2px; }

/* ---------- Fields ---------- */

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--axiom-gray);
  margin-bottom: 0.35rem;
}
.field label .req {
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--axiom-orange);
  margin-left: 0.35rem;
}
.field input, .field select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--axiom-white);
  color: var(--axiom-black);
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--axiom-orange);
  outline-offset: 1px;
  border-color: var(--axiom-orange);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 2rem 0 0;
}
.btn {
  font-family: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  padding: 0.85rem 1.6rem;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--axiom-orange); color: var(--axiom-white); }
.btn-primary:hover { background: #D9541A; }
.btn-primary:disabled { background: var(--axiom-wash); color: var(--axiom-gray); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--axiom-gray); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--axiom-gray); color: var(--axiom-black); }
.btn:focus-visible { outline: 2px solid var(--axiom-orange); outline-offset: 2px; }

.notice {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--axiom-orange);
  background: var(--axiom-wash);
  font-size: 0.88rem;
}
.notice[hidden] { display: none; }

/* ---------- Results ---------- */

.score-head {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.score-number {
  font-size: clamp(4rem, 16vw, 6.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--axiom-orange);
}
.score-number sub {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--axiom-gray);
  letter-spacing: 0;
  vertical-align: baseline;
  margin-left: 0.3rem;
}
.score-band { flex: 1 1 16rem; min-width: 0; }

.tier-bars { margin: 2.25rem 0; display: grid; gap: 1rem; }
.tier-bar .bar-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}
.tier-bar .bar-name { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.tier-bar .bar-pct { color: var(--axiom-gray); font-variant-numeric: tabular-nums; }
.tier-bar .track { height: 8px; background: var(--axiom-wash); border-radius: 4px; overflow: hidden; }
.tier-bar .fill { height: 100%; background: var(--axiom-orange-mid); border-radius: 4px; width: 0; transition: width 0.7s ease; }
.tier-bar.is-weakest .fill { background: var(--axiom-orange); }
.tier-bar.is-weakest .bar-name::after {
  content: " — weakest";
  color: var(--axiom-orange);
  letter-spacing: 0.04em;
}

.section { padding: 2rem 0; border-top: 1px solid var(--line); }
.findings { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.findings li {
  padding-left: 1rem;
  border-left: 3px solid var(--axiom-orange);
  line-height: 1.6;
}
.action-card {
  background: var(--axiom-wash);
  padding: 1.5rem;
  border-radius: 3px;
}
.action-card p:last-child { margin-bottom: 0; }

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 1.5rem;
  background: var(--axiom-black);
  border-radius: 3px;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cta-band {
  margin-top: 2rem;
  background: var(--axiom-black);
  color: var(--axiom-white);
  padding: 2.25rem 1.75rem;
  border-radius: 3px;
}
.cta-band h2 { color: var(--axiom-white); }
.cta-band p { color: #D8D4D2; }

.disclaimer {
  font-size: 0.75rem;
  color: var(--axiom-gray);
  line-height: 1.55;
  margin-top: 2rem;
}

.spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--axiom-wash);
  border-top-color: var(--axiom-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 34rem) {
  .field-row { grid-template-columns: 1fr; }
  .progress-rail { gap: 0.9rem; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .btn { text-align: center; }
}

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

@media print {
  .site-header, .site-footer, .cta-band, .actions { display: none; }
  body { font-size: 11pt; }
}
