/* Successor Readiness Diagnostic — app styles.
 * Mobile-first. One question per screen. Nothing decorative.
 */

.app {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

/* -------------------------------------------------------------- chrome */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}


.step-count {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}

.progress {
  height: 3px;
  background: var(--rule-soft);
}

.progress__bar {
  height: 100%;
  width: 0;
  background: var(--green);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------- main */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 0 3rem;
}

.screen {
  max-width: var(--measure);
  margin: 0 auto;
  width: 100%;
}

.screen--wide {
  max-width: 46rem;
}

.screen[hidden] {
  display: none;
}

.fade-in {
  animation: fade-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.eyebrow {
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 0.6rem;
}

/* ------------------------------------------------------------- intro */

.intro__lede {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

/* The fit line under the lede: quieter, so the lede still leads. */
.intro__fit {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin: -0.5rem 0 1.5rem;
}

.intro__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0.9rem 0;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-soft);
  list-style: none;
}

.intro__meta li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.intro__meta li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

/* ------------------------------------------------------- choice cards */

.choices {
  display: grid;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
}

.choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  min-height: 60px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.choice:hover {
  border-color: var(--green);
  background: var(--green-tint-2);
}

.choice[aria-pressed='true'] {
  border-color: var(--green);
  background: var(--green-tint);
  box-shadow: inset 0 0 0 1px var(--green);
}

.choice strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
}

.choice span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin-top: 0.15rem;
}

/* -------------------------------------------------------- statements */

.statement__area {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-tint);
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.statement__text {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.55rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin: 0 0 1.75rem;
  text-wrap: pretty;
}

/* -------------------------------------------------------- 1-10 scale */

.scale {
  margin-top: 0.25rem;
}

.scale__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

@media (min-width: 34rem) {
  .scale__grid {
    grid-template-columns: repeat(10, 1fr);
    gap: 0.4rem;
  }
}

.scale__btn {
  aspect-ratio: 1 / 1;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.12s ease, background 0.12s ease,
    color 0.12s ease;
}

.scale__btn:hover {
  border-color: var(--green);
  background: var(--green-tint-2);
}

.scale__btn[aria-pressed='true'] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: scale(1.04);
}

.scale__labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  font-size: 0.8125rem;
  color: var(--gray);
}

.scale__labels span:last-child {
  text-align: right;
}

/* ------------------------------------------------------- reality checks */

.rc__note {
  border-left: 3px solid var(--green);
  padding-left: 1rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
}

.rc__question {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.4rem);
  line-height: 1.35;
  margin: 0 0 0.4rem;
}

.rc__help {
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.rc__list {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.rc__row {
  display: grid;
  grid-template-columns: 1fr 6.5rem;
  gap: 0.55rem;
}

.rc__index {
  display: none;
}

/* ----------------------------------------------------- email capture */

.capture__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-alt);
  margin-bottom: 1.5rem;
}

.capture__summary svg {
  flex: none;
}

.capture__summary p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.capture__legal {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.capture__legal--small {
  font-size: 0.8125rem;
  color: var(--gray);
}

.error {
  color: var(--flag-priority);
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
}

/* ------------------------------------------------------------ results */

.results__head {
  text-align: center;
  padding-bottom: 0.5rem;
}

.tier {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  background: var(--green-tint);
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.tier--significant-gaps {
  background: var(--flag-priority-tint);
  color: var(--flag-priority);
}

.tier--middle {
  background: var(--flag-develop-tint);
  color: var(--flag-develop);
}

.overall {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.25rem, 2rem + 6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.overall sup {
  font-size: 0.3em;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0;
  top: -1.6em;
  margin-left: 0.15em;
}

.overall__caption {
  color: var(--gray);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--display);
  font-weight: 700;
  margin: 0.4rem 0 1.25rem;
}

.tier__message {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 32rem;
  margin: 0 auto;
}

/* radar */

.radar {
  margin: 2rem auto 1.5rem;
  max-width: 30rem;
}

.radar svg {
  width: 100%;
  height: auto;
  display: block;
}

/* area table */

.areas {
  display: grid;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.area {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}

.area__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
}

.area__score {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.375rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.area__bar {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 100px;
  background: var(--rule-soft);
  overflow: hidden;
}

.area__bar i {
  display: block;
  height: 100%;
  border-radius: 100px;
}

.area__flag {
  grid-column: 1 / -1;
  justify-self: start;
  font-family: var(--display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
}

.flag--priority {
  color: var(--flag-priority);
  background: var(--flag-priority-tint);
}
.flag--priority ~ .area__bar i,
.area[data-flag='priority'] .area__bar i {
  background: var(--flag-priority);
}

.flag--develop {
  color: var(--flag-develop);
  background: var(--flag-develop-tint);
}
.area[data-flag='develop'] .area__bar i {
  background: var(--flag-develop);
}

.flag--strength {
  color: var(--green-dark);
  background: var(--green-tint);
}
.area[data-flag='strength'] .area__bar i {
  background: var(--green);
}

/* confidence flags */

.callout {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--flag-develop);
  border-radius: var(--radius);
  background: var(--flag-develop-tint);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.callout p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.callout__label {
  font-family: var(--display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--flag-develop);
  margin-bottom: 0.35rem !important;
}

/* narrative */

.narrative h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.narrative__area {
  margin-bottom: 1.5rem;
}

.narrative__area p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* CTA cards */

.cta {
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--paper);
}

.cta--primary {
  border-color: var(--green);
  background: var(--green-tint-2);
  box-shadow: var(--shadow);
}

/* What is riding on this person, stated before the price — the same sentence
   the report's offer page opens with (PLAN_PITCH.stakes). Body type, ruled off
   from the price block so the card reads stake first, then cost. */
.cta__stakes {
  margin: 0 0 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
}

.cta__price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 0.4rem;
}

.cta h3 {
  margin-bottom: 0.5rem;
}

.cta p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* footer */

.foot {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 2.5rem;
  font-size: 0.8125rem;
  color: var(--gray);
}

.foot a {
  color: var(--ink-soft);
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
  list-style: none;
  padding: 0;
}

/* nav row */

.navrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
}

.navrow--end {
  justify-content: flex-end;
}

/* spinner */

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Start-over controls on the results page. Deliberately quiet — useful for
 * demos and for seeing both voices, but not competing with the ladder CTAs. */
.restart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.restart .btn {
  padding-left: 0;
  padding-right: 0.75rem;
  font-size: 0.875rem;
}

/* ------------------------------------------------------- report offer */

.report {
  border: 1.5px solid var(--green);
  border-radius: var(--radius-lg);
  background: var(--green-tint-2);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.report h3 {
  margin-bottom: 0.4rem;
}

.report__body {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.report__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
}

.report__actions .btn {
  flex: 1 1 auto;
}

.report__emailed {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.report__emailed:only-child {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Launch pricing: the list price struck through beside it, and the one-line
   explanation under it. Both disappear on their own when PRICING.planLaunch is
   set to null — there is no separate switch to remember. */
.cta__was {
  font-size: 0.55em;
  font-weight: 400;
  color: var(--gray);
  text-decoration: line-through;
  margin-left: 0.35rem;
  vertical-align: 0.35em;
}

.cta__launch {
  margin: -0.35rem 0 0.6rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* The product's actual name, above the plan CTA's heading. It existed in
   LADDER.plan.name and was never rendered, so the results page invited people
   to buy something it never named — reported by a tester on 2026-08-26. */
.cta__name {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
