:root {
  --blue: #3182f6;
  --blue-hover: #1b64da;
  --blue-soft: #e8f3ff;
  --blue-mid: #c9e2ff;
  --blue-deep: #1b64da;
  --ink: #191f28;
  --ink-2: #333d4b;
  --muted: #8b95a1;
  --muted-2: #6b7684;
  --line: #e5e8eb;
  --line-soft: #f2f4f6;
  --page: #f2f4f6;
  --white: #ffffff;
  --ok: #03b26c;
  --danger: #f04452;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(25, 31, 40, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--page);
  word-break: keep-all;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(49, 130, 246, 0.28);
  outline-offset: 2px;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--white);
  overflow-x: hidden;
  box-shadow: 0 0 0 1px var(--line);
}

/* ---------- Intro ---------- */
.intro-shell {
  min-height: 100svh;
  background: var(--white);
  padding: 0;
}

.intro-v2-header {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 18px 20px 8px;
}

.intro-v2-header strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.intro-v2-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: calc(100svh - 52px);
  padding: 12px 20px 24px;
}

.intro-visual-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 350 / 218;
  margin: 8px 0 18px;
  overflow: hidden;
  background: var(--blue-soft);
  border: 0;
  border-radius: 24px;
}

.intro-visual-canvas h1 {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 20px;
  width: 48%;
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 7vw, 26px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.16;
  text-align: left;
  transform: translateY(-50%);
}

.intro-visual-canvas h1 span,
.intro-visual-canvas h1 em {
  display: block;
}

.intro-visual-canvas h1 em {
  margin: 4px 0;
  color: var(--blue);
  font-style: normal;
}

.intro-policy-stack {
  position: absolute;
  inset: 0;
}

.intro-policy-card {
  position: absolute;
  width: 118px;
  height: 146px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--blue-mid);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(49, 130, 246, 0.08);
}

.intro-policy-card.card-back {
  top: 52px;
  right: 12px;
  z-index: 1;
  background: #f7fbff;
  transform: rotate(6deg);
}

.intro-policy-card.card-middle {
  top: 14px;
  right: 32px;
  z-index: 2;
  background: #f7fbff;
}

.intro-policy-card.card-front {
  top: 36px;
  right: 50px;
  z-index: 3;
}

.intro-policy-card i {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 22px;
  height: 22px;
  background: var(--blue);
  border-radius: 6px;
}

.intro-policy-card i:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 12px;
  height: 11px;
  background: var(--white);
  clip-path: polygon(0 32%, 55% 32%, 100% 0, 100% 100%, 55% 68%, 0 68%);
}

.intro-policy-card b {
  position: absolute;
  left: 38px;
  height: 3px;
  background: var(--ink);
  border-radius: 99px;
  opacity: 0.18;
}

.intro-policy-card b:first-of-type {
  top: 13px;
  width: 44px;
}

.intro-policy-card b:nth-of-type(2) {
  top: 24px;
  width: 62px;
}

.intro-policy-card b:nth-of-type(3) {
  top: 44px;
  width: 74px;
  background: var(--blue-soft);
  opacity: 1;
}

.intro-policy-card small {
  position: absolute;
  right: 12px;
  bottom: 22px;
  width: 58px;
  height: 38px;
  background: var(--blue-soft);
  border-radius: 8px;
}

.intro-magnifier {
  position: absolute;
  z-index: 5;
  top: 52px;
  right: 64px;
  width: 126px;
  height: 126px;
  background: var(--white);
  border: 8px solid var(--blue);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(49, 130, 246, 0.18);
}

.intro-magnifier:after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 98px;
  left: 99px;
  width: 16px;
  height: 72px;
  background: var(--ink);
  border-radius: 99px;
  transform: rotate(-45deg);
  transform-origin: top;
}

.intro-case-rolling {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 108px;
  color: var(--blue);
  text-align: center;
  transform: translate(-50%, -50%);
}

.intro-rolling-line {
  position: relative;
  overflow: hidden;
}

.intro-rolling-amount {
  height: 27px;
}

.intro-rolling-line .current,
.intro-rolling-line .next {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  white-space: nowrap;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-rolling-line .current {
  transform: translateY(0);
}

.intro-rolling-line .next {
  transform: translateY(-100%);
}

.intro-case-rolling.moving .intro-rolling-line .current {
  transform: translateY(100%);
}

.intro-case-rolling.moving .intro-rolling-line .next {
  transform: translateY(0);
}

.intro-rolling-amount strong {
  font-size: clamp(16px, 5vw, 19px);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.intro-case-detail {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.intro-open-count {
  min-height: 17px;
  margin: -2px 0 14px;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.45;
}

.intro-open-count strong {
  color: var(--ink);
  font-weight: 700;
}

.intro-start-button {
  width: 100%;
  min-height: 56px;
  margin-top: auto;
  padding: 16px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.intro-start-button:active {
  background: var(--blue-hover);
}

/* ---------- Quiz ---------- */
.question-shell {
  min-height: 100dvh;
  background: var(--white);
  padding-bottom: 28px;
}

.question-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.question-header > strong,
.result-header > strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.question-back {
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: var(--line-soft);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.question-header-space {
  width: 36px;
  height: 36px;
}

.mobile-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  height: 28px;
  padding: 0 18px;
  background: var(--white);
}

.mobile-progress i {
  display: block;
  height: 4px;
  overflow: hidden;
  background: var(--line-soft);
  border-radius: 99px;
}

.mobile-progress i b {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
  transition: width 0.3s ease;
}

.mobile-progress > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.question-stage {
  padding: 28px 20px 30px;
}

.question-card-new {
  width: 100%;
  animation: questionIn 0.28s ease both;
}

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

.block-transition {
  margin-bottom: 16px;
  padding: 12px 14px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.question-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.question-card-new h1 {
  margin: 10px 0 10px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.3;
}

.question-card-new > p {
  margin: 0 0 24px;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.6;
}

.option-list {
  display: grid;
  gap: 8px;
}

.option-list button {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 12px 16px;
  color: var(--ink);
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.option-list button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.option-list button > i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
}

.option-list button > span b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.option-list button > span small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.option-list button.selected {
  color: var(--ink);
  background: var(--blue-soft);
  border-color: var(--blue);
}

.option-list button.selected > i {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.option-list button.selected > span small {
  color: var(--blue);
}

/* ---------- Result ---------- */
.result-shell {
  min-height: 100dvh;
  padding-bottom: 104px;
  background: var(--page);
}

.result-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.result-header > span {
  display: none;
}

.result-header > button {
  color: var(--blue);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.result-container {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 12px;
}

.result-hero-new {
  display: grid;
  grid-template-columns: 1fr 112px;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 24px 20px;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.result-hero-copy {
  position: relative;
  z-index: 2;
}

.result-eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.result-hero-copy h1 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.result-hero-copy > p {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.55;
}

.result-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.result-pills span {
  padding: 6px 10px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.fit-dial {
  --fit: 0deg;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 108px;
  height: 108px;
  background: conic-gradient(var(--blue) var(--fit), var(--line-soft) 0);
  border-radius: 50%;
}

.fit-dial:before {
  content: "";
  position: absolute;
  inset: 10px;
  background: var(--white);
  border-radius: 50%;
}

.fit-dial > div {
  position: relative;
  display: grid;
  text-align: center;
}

.fit-dial strong {
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.fit-dial small {
  color: var(--muted);
  font-size: 10px;
}

.fit-dial span {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
}

.growth-expansion-card {
  padding: 24px 20px;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.growth-bridge-tag {
  display: inline-flex;
  padding: 6px 10px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.growth-expansion-card > h2 {
  margin: 14px 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.growth-expansion-card > h3 {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.growth-expansion-card > h3 strong {
  color: var(--blue);
  font-size: 18px;
}

.growth-expansion-card > p {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.65;
}

.limit-growth-visual {
  margin-top: 18px;
  padding: 16px;
  background: var(--line-soft);
  border-radius: 16px;
}

.limit-growth-visual article + article {
  margin-top: 16px;
}

.limit-growth-visual article > div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.limit-growth-visual span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
}

.limit-growth-visual b {
  color: var(--ink);
  font-size: 13px;
  text-align: right;
}

.limit-growth-visual article > i {
  display: block;
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  background: var(--white);
  border-radius: 999px;
}

.limit-growth-visual article > i em {
  display: block;
  height: 100%;
  background: var(--blue-mid);
  border-radius: inherit;
  transform-origin: 0;
  animation: limit-bar-fill 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.limit-growth-visual article.after > i em {
  background: var(--blue);
}

.limit-growth-visual mark {
  display: block;
  width: fit-content;
  margin: 14px 0 0 auto;
  padding: 7px 10px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

@keyframes limit-bar-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.growth-strategy-grid {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.growth-strategy-grid article {
  position: relative;
  padding: 14px 14px 14px 48px;
  background: var(--line-soft);
  border-radius: 14px;
}

.growth-strategy-grid article > b {
  position: absolute;
  top: 15px;
  left: 14px;
  color: var(--blue);
  font-size: 12px;
}

.growth-strategy-grid h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.growth-strategy-grid p {
  margin: 6px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.5;
}

.result-conversion-card {
  scroll-margin-top: 80px;
  padding: 24px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.result-conversion-card > span,
.lead-success > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.result-conversion-card > h2,
.lead-success h2 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.result-conversion-card > p,
.lead-success p {
  margin: 0;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.6;
}

.conversion-promise {
  margin-top: 14px !important;
  color: var(--ink-2) !important;
}

.conversion-promise strong {
  color: var(--blue);
}

.conversion-experience {
  margin-top: 8px !important;
}

.lead-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.lead-contact-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.lead-contact-fields label,
.lead-form > label:not(.privacy-check):not(.tax-confirmation) {
  display: grid;
  gap: 6px;
}

.lead-contact-fields label > span,
.lead-form > label > span {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.lead-form input[type="text"],
.lead-form input[type="tel"] {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
}

.lead-form input::placeholder {
  color: var(--muted);
}

.lead-form input:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.16);
}

.lead-choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.lead-choice-group legend {
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.lead-choice-group > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lead-choice-group button {
  min-height: 48px;
  padding: 8px;
  color: var(--ink-2);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.call-time-group button {
  display: grid;
  align-content: center;
  gap: 2px;
}

.call-time-group button small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.lead-choice-group button.selected {
  color: var(--blue-deep);
  background: var(--blue-soft);
  border-color: var(--blue);
}

.call-time-group button.selected small {
  color: var(--blue);
}

.tax-confirmation {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 8px;
  padding: 12px;
  background: var(--line-soft);
  border-radius: 12px;
}

.tax-confirmation input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.tax-confirmation span {
  color: var(--ink-2) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.5;
}

.lead-form > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 14px 0 18px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.lead-form > button b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

.lead-form > button:disabled {
  opacity: 0.68;
  cursor: wait;
}

.submit-microcopy,
.privacy-submit-notice {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.privacy-submit-notice {
  margin-top: -6px;
}

.lead-error {
  color: var(--danger);
  font-size: 12px;
}

.lead-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  text-align: center;
}

.lead-success > i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--ok);
  background: #eaf8f1;
  border-radius: 50%;
  font-size: 22px;
  font-style: normal;
  font-weight: 800;
}

.consultant-opinion {
  margin-top: 16px;
  padding: 18px;
  color: var(--ink);
  background: var(--blue-soft);
  border-radius: 14px;
}

.consultant-opinion strong {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.consultant-opinion h3 {
  margin: 8px 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.consultant-opinion p {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.65;
}

.consultant-opinion p b {
  color: var(--ink);
}

.compact-evidence-toggle,
.source-note {
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.compact-evidence-toggle > summary,
.source-note > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.compact-evidence-toggle > summary::-webkit-details-marker,
.source-note > summary::-webkit-details-marker {
  display: none;
}

.compact-evidence-toggle > summary:after {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 50%;
  content: "+";
  font-size: 16px;
}

.compact-evidence-toggle[open] > summary:after {
  content: "−";
}

.compact-evidence-toggle > summary span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.compact-evidence-body {
  padding: 0 16px 18px;
  border-top: 1px solid var(--line-soft);
}

.source-note p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.6;
}

.calculation-logic-chart {
  display: block !important;
  margin: 16px 0;
  overflow: hidden;
  background: var(--line-soft);
  border-radius: 14px;
}

.calculation-logic-chart > header {
  padding: 16px;
  color: var(--ink);
  background: var(--white);
}

.calculation-logic-chart > header span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.calculation-logic-chart > header h3 {
  margin: 6px 0 4px;
  font-size: 16px;
}

.calculation-logic-chart > header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.calculation-flow {
  display: grid;
  gap: 0;
  padding: 14px;
}

.calculation-flow > i {
  display: grid;
  place-items: center;
  height: 22px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.calculation-node {
  padding: 14px;
  background: var(--white);
  border-radius: 12px;
}

.calculation-node > b {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 12px;
}

.input-node > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.input-node span,
.output-node span {
  min-width: 0;
  padding: 8px;
  background: var(--line-soft);
  border-radius: 8px;
}

.input-node small,
.input-node strong,
.output-node small,
.output-node strong {
  display: block;
}

.input-node small,
.output-node small {
  color: var(--muted);
  font-size: 11px;
}

.input-node strong,
.output-node strong {
  margin-top: 4px;
  color: var(--ink);
  overflow-wrap: anywhere;
  font-size: 13px;
}

.formula-node article {
  display: grid;
  gap: 4px;
  padding: 9px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-radius: 0;
}

.formula-node article:first-of-type {
  border-top: 0;
}

.formula-node article span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
}

.formula-node code {
  overflow-wrap: anywhere;
  color: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.5;
}

.formula-node article strong {
  color: var(--blue);
  font-size: 13px;
}

.transformed-node {
  background: var(--blue-soft);
}

.output-node {
  background: var(--ink);
}

.output-node > b,
.output-node small {
  color: #b0b8c1;
}

.output-node > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.output-node span {
  background: #333d4b;
}

.output-node strong {
  color: var(--white);
}

.calculation-logic-chart > footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 14px;
}

.calculation-logic-chart > footer span {
  padding: 5px 8px;
  color: var(--muted-2);
  background: var(--white);
  border-radius: 999px;
  font-size: 11px;
}

.calculation-factor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.calculation-factor-grid article,
.compact-evidence-body article {
  padding: 12px;
  background: var(--line-soft);
  border-radius: 12px;
}

.calculation-factor-grid span,
.calculation-factor-grid small,
.compact-evidence-body article span,
.compact-evidence-body article small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.calculation-factor-grid strong,
.compact-evidence-body article strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--ink);
  font-size: 14px;
}

.compact-blockers {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 12px;
  background: var(--blue-soft);
  border-radius: 12px;
}

.compact-blockers b {
  color: var(--ink);
  font-size: 13px;
}

.compact-blockers span {
  color: var(--muted-2);
  font-size: 12px;
}

.growth-detail-card {
  padding: 22px 20px;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.growth-detail-card > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.recommended-programs {
  margin-top: 14px;
  padding: 0;
  background: transparent;
  border: 0;
}

.recommended-programs > span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.recommended-programs ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: program;
}

.recommended-programs li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  padding: 12px;
  background: var(--line-soft);
  border-radius: 12px;
  counter-increment: program;
}

.recommended-programs li:before {
  display: grid;
  place-items: center;
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  content: counter(program);
  font-size: 11px;
  font-weight: 800;
}

.recommended-programs li b,
.recommended-programs li small {
  display: block;
}

.recommended-programs li b {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.recommended-programs li small {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 12px;
}

.recommended-programs > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.onsite-diagnostic-report {
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.onsite-diagnostic-report > header {
  padding: 22px 20px;
  color: var(--ink);
  background: var(--white);
}

.onsite-diagnostic-report > header span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.onsite-diagnostic-report > header h2 {
  margin: 8px 0 6px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.onsite-diagnostic-report > header p {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.6;
}

.onsite-report-summary {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

.onsite-report-summary article {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.onsite-report-summary span,
.onsite-report-summary strong,
.onsite-report-summary small {
  display: block;
}

.onsite-report-summary span {
  color: var(--muted);
  font-size: 12px;
}

.onsite-report-summary strong {
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: 16px;
}

.onsite-report-summary small {
  color: var(--muted);
  font-size: 12px;
}

.onsite-report-section {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.onsite-report-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.onsite-report-title > span {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--white);
  background: var(--blue);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

.onsite-report-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.onsite-report-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.onsite-score-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.onsite-score-list article {
  display: grid;
  grid-template-columns: 1fr 70px 28px;
  align-items: center;
  gap: 10px;
}

.onsite-score-list b,
.onsite-score-list span {
  display: block;
}

.onsite-score-list b {
  color: var(--ink-2);
  font-size: 13px;
}

.onsite-score-list span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.onsite-score-list i {
  height: 6px;
  overflow: hidden;
  background: var(--line-soft);
  border-radius: 999px;
}

.onsite-score-list em {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
}

.onsite-score-list > article > strong {
  color: var(--ink);
  font-size: 13px;
  text-align: right;
}

.onsite-program-table {
  margin-top: 16px;
}

.onsite-program-table article {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}

.onsite-program-table article > b {
  color: var(--blue);
  font-size: 12px;
}

.onsite-program-table span {
  color: var(--muted);
  font-size: 12px;
}

.onsite-program-table h4 {
  margin: 3px 0 5px;
  color: var(--ink);
  font-size: 14px;
}

.onsite-program-table p {
  margin: 0;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.55;
}

.onsite-program-table article > strong {
  color: var(--blue);
  font-size: 13px;
}

.onsite-report-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.onsite-report-grid > section {
  padding: 20px;
}

.onsite-report-grid > section + section {
  border-top: 1px solid var(--line);
}

.onsite-finding,
.onsite-document {
  margin-top: 10px;
  padding: 12px;
  background: var(--line-soft);
  border-radius: 10px;
}

.onsite-finding b,
.onsite-document b {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.onsite-finding p,
.onsite-document small {
  display: block;
  margin: 5px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.5;
}

.onsite-finding span,
.onsite-document span {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-size: 12px;
}

.onsite-diagnostic-report > footer {
  padding: 16px 20px;
  color: var(--muted-2);
  background: var(--line-soft);
}

.onsite-diagnostic-report > footer b {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.onsite-diagnostic-report > footer p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.result-floating-cta {
  position: fixed;
  z-index: 100;
  bottom: 0;
  left: 50%;
  width: min(100%, 430px);
  padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--page) 28%);
  transform: translateX(-50%);
}

.result-floating-cta > button,
.floating-complete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
  padding: 0 14px 0 18px;
  color: var(--white);
  text-align: left;
  background: var(--blue);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(49, 130, 246, 0.28);
  cursor: pointer;
}

.result-floating-cta strong {
  display: block;
  font-size: 15px;
}

.result-floating-cta small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.result-floating-cta b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

.floating-complete {
  cursor: default;
  background: var(--ok);
}

@media (width <= 390px) {
  .result-hero-new {
    grid-template-columns: 1fr 96px;
    padding: 20px 16px;
  }

  .fit-dial {
    width: 96px;
    height: 96px;
  }

  .result-hero-copy h1 {
    font-size: 24px;
  }

  .growth-expansion-card > h2 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .limit-growth-visual article > i em {
    animation: none;
  }
}
