:root {
  --answer-transition-color: #1f6b5c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family:
    Inter,
    Arial,
    sans-serif;

  color: #183f38;
  background: #f5f4ed;
}

button {
  font: inherit;
}

.quiz-shell {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.quiz-header {
  margin-bottom: 64px;
}

.logo {
  margin-bottom: 24px;

  font-size: 28px;
  font-weight: 800;
}

.progress-track {
  height: 6px;

  overflow: hidden;

  background: #dfe6e2;
  border-radius: 999px;
}

.progress-bar {
  width: 0;
  height: 100%;

  background: #1f6b5c;
  border-radius: inherit;

  transition: width 200ms ease;
}

.question-counter,
.eyebrow {
  margin-bottom: 12px;

  color: #657c76;
  font-size: 14px;
  font-weight: 700;
}

h1 {
  margin: 0 0 32px;

  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
}

.answers {
  display: grid;
  gap: 12px;
}

.answer {
  width: 100%;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;

  text-align: left;

  color: #183f38;
  background: #ffffff;

  border: 2px solid transparent;
  border-radius: 14px;

  cursor: pointer;
  transition:
    opacity 180ms ease,
    filter 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.answer::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 4px;
  background: var(--answer-transition-color);
  opacity: 0;
}

.answer-status {
  position: absolute;
  top: 50%;
  right: 18px;
  color: #657c76;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transform: translate(6px, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.answers.is-transitioning .answer {
  pointer-events: none;
}

.answers.is-transitioning .answer:not(.selected) {
  opacity: 0.28;
  filter: grayscale(1);
  transform: scale(0.985);
  box-shadow: none;
}

.answers.is-transitioning .answer.selected {
  padding-right: 92px;
}

.answers.is-transitioning .answer.selected::after {
  opacity: 1;
  animation: answer-transition-progress 1s linear forwards;
}

.answers.is-transitioning .answer.selected .answer-status {
  opacity: 1;
  transform: translate(0, -50%);
}

@keyframes answer-transition-progress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* Light progressive reveal when a new question is rendered. */
body[data-screen="question"] #quiz-screen.question-entering .question-meta,
body[data-screen="question"] #quiz-screen.question-entering .question-label:not([hidden]),
body[data-screen="question"] #quiz-screen.question-entering #question-title,
body[data-screen="question"] #quiz-screen.question-entering .question-support:not([hidden]),
body[data-screen="question"] #quiz-screen.question-entering .answers > *,
body[data-screen="question"] #quiz-screen.question-entering .controls {
  opacity: 0;
  transform: translateY(9px);
  animation: question-reveal-in 420ms cubic-bezier(0.22, 0.8, 0.32, 1) forwards;
}

body[data-screen="question"] #quiz-screen.question-entering .question-meta {
  animation-delay: 20ms;
}

body[data-screen="question"] #quiz-screen.question-entering .question-label:not([hidden]) {
  animation-delay: 55ms;
}

body[data-screen="question"] #quiz-screen.question-entering #question-title {
  animation-delay: 85ms;
}

body[data-screen="question"] #quiz-screen.question-entering .question-support:not([hidden]) {
  animation-delay: 120ms;
}

body[data-screen="question"] #quiz-screen.question-entering .answers > * {
  animation-delay: calc(155ms + var(--question-reveal-index, 0) * 48ms);
}

body[data-screen="question"] #quiz-screen.question-entering .controls {
  animation-delay: 410ms;
}

.answers.is-transitioning .answer {
  animation: none !important;
}

@keyframes question-reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.answer:hover {
  border-color: #90b7ac;
}

.answer.selected {
  background: #e1f0eb;
  border-color: #1f6b5c;
}

.controls {
  display: flex;
  justify-content: space-between;
  gap: 16px;

  margin-top: 32px;
}

.controls button,
#restart-button {
  padding: 14px 24px;

  border: 0;
  border-radius: 999px;

  cursor: pointer;
}

#back-button {
  color: #183f38;
  background: transparent;
}

#next-button,
#restart-button {
  color: white;
  background: #1f6b5c;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.result-block {
  margin-bottom: 16px;
  padding: 20px;

  background: white;
  border-radius: 14px;
}

.result-block h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.result-block p {
  margin: 0;
}

.debug {
  margin: 24px 0;
  padding: 16px;

  background: #eef0ed;
  border-radius: 12px;
}

.debug pre {
  overflow-x: auto;
  white-space: pre-wrap;
}

#result-summary {
  max-width: 760px;
  margin: -12px 0 32px;

  color: #536d66;
  font-size: 18px;
  line-height: 1.6;
}

.result-block h3 {
  margin: 0 0 10px;

  font-size: 22px;
  line-height: 1.25;
}

.result-block p {
  line-height: 1.6;
}

#result-first-steps {
  margin: 0;
  padding-left: 24px;
}

#result-first-steps li {
  margin-bottom: 12px;
  line-height: 1.6;
}

#result-first-steps li:last-child {
  margin-bottom: 0;
}

.debug-tools {
  margin: 24px 0;
}

.debug-toggle {
  display: flex;
  align-items: center;
  gap: 10px;

  font-weight: 700;
  cursor: pointer;
}

.debug-toggle input {
  width: 18px;
  height: 18px;
}

#debug-controls {
  margin-top: 16px;
  padding: 18px;

  background: #eef0ed;
  border-radius: 14px;
}

#debug-controls > label {
  display: block;
  margin-bottom: 8px;

  font-size: 14px;
  font-weight: 700;
}

.debug-actions {
  display: flex;
  gap: 10px;
}

#test-scenario {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;

  color: #183f38;
  background: white;

  border: 1px solid #cbd8d3;
  border-radius: 10px;
}

#load-scenario-button {
  padding: 12px 20px;

  color: white;
  background: #1f6b5c;

  border: 0;
  border-radius: 10px;

  cursor: pointer;
}

#load-scenario-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.debug {
  margin-top: 16px;
}

[hidden] {
  display: none !important;
}

.intro-screen {
  min-height: 420px;
  display: grid;
  align-content: center;
}

.intro-screen.editorial {
  padding: 40px;
  background:
    radial-gradient(circle at top right, #dcece6 0, transparent 38%),
    #ffffff;
  border-radius: 28px;
}

.intro-screen.minimal {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.intro-text,
.insight-text,
.conversion-copy {
  margin: -12px 0 32px;
  color: #536d66;
  font-size: 18px;
  line-height: 1.65;
}

.conversion-card {
  margin: 32px 0 24px;
  padding: 28px;
  background: #183f38;
  color: #ffffff;
  border-radius: 24px;
}

.conversion-card .eyebrow,
.conversion-card p,
.conversion-card #offer-price-note {
  color: #d7e5df;
}

.conversion-card h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 24px 0 18px;
}

#offer-price {
  font-size: 42px;
}

.benefit-list {
  margin: 0 0 24px;
  padding-left: 22px;
}

.benefit-list li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.primary-button,
.text-button {
  width: 100%;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.primary-button {
  color: #183f38;
  background: #dff36b;
  font-weight: 800;
}

.text-button {
  margin-top: 10px;
  color: inherit;
  background: transparent;
  text-decoration: underline;
}

.conversion-screen {
  max-width: 620px;
  margin: 0 auto;
  padding-top: 48px;
}

.email-form {
  display: grid;
  gap: 8px;
  margin: 28px 0;
}

.email-form label {
  font-weight: 700;
}

.email-form input {
  width: 100%;
  padding: 16px 18px;
  color: #183f38;
  background: #ffffff;
  border: 1px solid #cbd8d3;
  border-radius: 14px;
  font: inherit;
}

.email-form input:focus {
  outline: 2px solid #90b7ac;
  outline-offset: 2px;
}

.form-error {
  margin: 0;
  color: #9b2f2f;
  font-size: 14px;
}

.conversion-actions {
  display: grid;
  gap: 4px;
}

@media (max-width: 600px) {
  .quiz-header {
    margin-bottom: 36px;
  }

  .intro-screen.editorial {
    padding: 28px 22px;
  }

  .conversion-card {
    padding: 22px;
  }
}

/* Shared screen-state and responsive behavior */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark,
.answer-icon {
  display: none;
}

.answer-text {
  min-width: 0;
}

.question-meta {
  display: block;
}

.question-label,
.question-support,
.question-time {
  display: none;
}

.paid-result-status {
  margin: 0 0 24px;
  padding: 22px;
  color: #183f38;
  background: #e1f0eb;
  border: 1px solid #90b7ac;
  border-radius: 18px;
}

.paid-result-status .eyebrow,
.paid-result-status h2,
.paid-result-status p {
  margin-top: 0;
}

.paid-result-status p:last-child {
  margin-bottom: 0;
  line-height: 1.55;
}

body[data-screen="question"] {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body[data-screen="question"] .quiz-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(10px, 2.2vh, 24px) 0 clamp(10px, 2vh, 22px);
}

body[data-screen="question"] .quiz-header {
  margin-bottom: clamp(14px, 4vh, 44px);
}

body[data-screen="question"] #quiz-screen {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body[data-screen="question"] .question-counter {
  margin-top: 0;
  margin-bottom: clamp(6px, 1.4vh, 12px);
}

body[data-screen="question"] h1 {
  margin-bottom: clamp(14px, 2.8vh, 28px);
  font-size: clamp(27px, min(5vw, 5.7vh), 46px);
}

body[data-screen="question"] .answers {
  gap: clamp(6px, 1.3vh, 12px);
}

body[data-screen="question"] .answer {
  min-width: 0;
  min-height: clamp(46px, 7.2vh, 62px);
  padding: clamp(10px, 1.65vh, 16px) clamp(14px, 2.3vw, 20px);
  line-height: 1.28;
  overflow-wrap: anywhere;
}

body[data-screen="question"] .controls {
  flex: 0 0 auto;
  margin-top: clamp(8px, 2vh, 22px);
}

body.question-compact[data-screen="question"] .quiz-shell {
  padding-top: 8px;
  padding-bottom: 8px;
}

body.question-compact[data-screen="question"] .quiz-header {
  margin-bottom: 10px;
}

body.question-compact[data-screen="question"] .logo {
  margin-bottom: 10px;
  font-size: 24px;
}

body.question-compact[data-screen="question"] h1 {
  margin-bottom: 10px;
  font-size: clamp(25px, min(4.7vw, 5vh), 38px);
}

body.question-compact[data-screen="question"] .answer {
  min-height: 44px;
  padding-top: 8px;
  padding-bottom: 8px;
}

body.question-compact[data-screen="question"] .controls {
  margin-top: 6px;
}

body.question-tight[data-screen="question"] .quiz-header {
  margin-bottom: 6px;
}

body.question-tight[data-screen="question"] .progress-track {
  height: 4px;
}

body.question-tight[data-screen="question"] h1 {
  margin-bottom: 7px;
  font-size: clamp(23px, min(4.4vw, 4.5vh), 33px);
}

body.question-tight[data-screen="question"] .answers {
  gap: 4px;
}

body.question-tight[data-screen="question"] .answer {
  min-height: 40px;
  padding: 6px 12px;
  font-size: 14px;
}

body.question-tight[data-screen="question"] .controls button {
  padding: 8px 14px;
}

body.question-overflow[data-screen="question"] {
  height: auto;
  min-height: 100dvh;
  overflow-y: auto;
}

body.question-overflow[data-screen="question"] .quiz-shell {
  height: auto;
  min-height: 100dvh;
}

@media (max-width: 600px) {
  body[data-screen="question"] .quiz-shell {
    width: min(100% - 24px, 720px);
  }

  body[data-screen="question"] .quiz-header {
    margin-bottom: clamp(14px, 2.8vh, 28px);
  }

  body[data-screen="question"] .logo {
    margin-bottom: 14px;
  }

  body[data-screen="question"] h1 {
    font-size: clamp(29px, min(8.6vw, 5.8vh), 42px);
  }

  body[data-screen="question"] .answer {
    min-height: clamp(52px, 7.6vh, 64px);
    padding-top: clamp(11px, 1.7vh, 15px);
    padding-bottom: clamp(11px, 1.7vh, 15px);
    font-size: 16px;
  }

  body[data-screen="question"] .controls {
    margin-top: 12px;
  }

  body.question-compact[data-screen="question"] .quiz-header {
    margin-bottom: 10px;
  }

  body.question-compact[data-screen="question"] h1 {
    font-size: clamp(25px, min(7.5vw, 5vh), 36px);
  }

  body.question-compact[data-screen="question"] .answer {
    min-height: 46px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 14px;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  body[data-screen="question"] .quiz-shell {
    width: min(920px, calc(100% - 28px));
  }

  body[data-screen="question"] .quiz-header {
    margin-bottom: 6px;
  }

  body[data-screen="question"] .logo {
    margin-bottom: 6px;
    font-size: 22px;
  }

  body[data-screen="question"] h1 {
    margin-bottom: 6px;
    font-size: clamp(22px, 5.2vh, 30px);
  }

  body[data-screen="question"] .answers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
  }

  body[data-screen="question"] .answer {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 13px;
  }

  body[data-screen="question"] .controls {
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .answer,
  .answer-status {
    transition: none;
  }

  body[data-screen="question"] #quiz-screen.question-entering .question-meta,
  body[data-screen="question"] #quiz-screen.question-entering .question-label:not([hidden]),
  body[data-screen="question"] #quiz-screen.question-entering #question-title,
  body[data-screen="question"] #quiz-screen.question-entering .question-support:not([hidden]),
  body[data-screen="question"] #quiz-screen.question-entering .answers > *,
  body[data-screen="question"] #quiz-screen.question-entering .controls {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .answers.is-transitioning .answer.selected::after {
    width: 100%;
    animation: none;
  }
}

.answer:disabled {
  opacity: 1;
  cursor: default;
}


/* Kinly result page — deterministic payload UI */
body[data-screen="result"] {
  background:
    radial-gradient(circle at 84% 8%, rgba(240, 139, 108, 0.10), transparent 24%),
    radial-gradient(circle at 10% 20%, rgba(243, 213, 107, 0.16), transparent 22%),
    #f7f2e8;
}

html body[data-screen="result"] .quiz-shell {
  width: min(1180px, calc(100% - 32px));
  padding-bottom: 64px;
}

body[data-screen="result"] .quiz-header {
  margin-bottom: 22px;
}

body[data-screen="result"] .progress-track {
  display: none;
}

.kinly-result {
  color: #173c35;
}

.result-snapshot-card,
.result-detail-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 60, 53, 0.12);
  border-radius: 30px;
  box-shadow: 0 22px 70px rgba(29, 61, 54, 0.08);
}

.result-detail-card {
  margin-top: 22px;
  padding: 28px;
}

.result-snapshot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 22px;
  align-items: stretch;
}

.result-profile-panel {
  min-height: 420px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-eyebrow {
  margin: 0 0 12px;
  color: #657c76;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

body[data-screen="result"] #result-profile {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.result-profile-summary {
  max-width: 720px;
  margin: 0;
  color: #355d57;
  font-size: 20px;
  line-height: 1.5;
}

.result-start-note {
  display: grid;
  gap: 6px;
  max-width: 620px;
  color: #355d57;
}

.result-start-note strong {
  color: #657c76;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-start-note p { margin: 0; }

.result-dimensions-card {
  padding: 22px;
  color: white;
  background: #164b43;
  border-radius: 24px;
}

.result-dimensions-card .result-eyebrow { color: #bbd4cd; }
.result-dimensions { display: grid; gap: 17px; margin-top: 16px; }
.result-dimension-row { display: grid; gap: 7px; }
.result-dimension-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.result-dimension-label { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.result-dimension-track { height: 9px; overflow: hidden; background: rgba(255,255,255,.14); border-radius: 999px; }
.result-dimension-track span { display: block; height: 100%; background: #ddefe8; border-radius: inherit; }
.result-dimension-row[data-kind="strength"] .result-dimension-track span { background: #f3d56b; }
.result-dimension-row[data-kind="opportunity"] .result-dimension-track span { background: #f08b6c; }

.result-marker {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}
.result-marker--strength { color: #173c35; background: #f3d56b; }
.result-marker--opportunity { color: white; background: #f08b6c; }

.result-inline-offer,
.result-soft-bridge {
  margin-top: 22px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #edf5f1, #fffdf8);
  border: 1px solid rgba(23, 60, 53, 0.12);
  border-radius: 22px;
}
.result-inline-offer h2,
.result-soft-bridge h3 { margin: 0 0 8px; letter-spacing: -0.025em; }
.result-inline-offer p,
.result-soft-bridge p { margin: 0; color: #44665f; }
.result-inline-offer-actions { min-width: 0; display: grid; gap: 8px; }
.result-inline-offer-actions small { color: #657c76; line-height: 1.4; }

.result-focus-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.result-focus-card { min-height: 142px; padding: 20px; border-radius: 20px; }
.result-focus-card--strength { background: #dff0e8; }
.result-focus-card--opportunity { background: #f5d6cf; }
.result-focus-card h3 { margin: 0 0 8px; font-size: 22px; }
.result-focus-card p:last-child { margin: 0; color: #44665f; }

.result-detail-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; }
.result-barrier-card,
.result-strategy-card { min-width: 0; padding: 24px; border-radius: 22px; }
.result-barrier-card { background: #fffdf8; border: 1px solid rgba(23, 60, 53, 0.12); }
.result-strategy-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(205px, 230px); gap: 18px; align-items: start; background: #edf5f1; }
.result-strategy-card > div { min-width: 0; }
.result-strategy-card h2,
.result-strategy-card p,
.result-strategy-card .result-principle,
.result-strategy-card .result-variant { overflow-wrap: anywhere; }
.result-barrier-card h2,
.result-strategy-card h2 { margin: 0 0 12px; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.04; letter-spacing: -0.04em; }
.result-barrier-card p:last-child,
.result-strategy-card p { margin-bottom: 0; color: #44665f; }
.result-principle,
.result-variant { display: inline-flex; padding: 7px 10px; background: white; border-radius: 999px; font-size: 12px; font-weight: 800; }
.result-principle { margin-bottom: 12px; }
.result-variant { margin-top: 14px; }

.result-pace-card { min-width: 0; width: 100%; padding: 18px; text-align: center; background: #f3d56b; border-radius: 18px; }
.result-pace-card > span { display: block; color: #586a63; font-size: 12px; }
.result-pace-card strong { display: block; margin-top: 5px; font-size: 24px; line-height: 1.1; }
.result-pace-card p { margin: 12px 0; font-size: 13px; line-height: 1.4; }
.result-text-link { padding: 0; color: #164b43; background: transparent; border: 0; font-weight: 850; text-align: left; cursor: pointer; }
.result-text-link:hover { text-decoration: underline; }

.result-steps-section { margin-top: 24px; }
.result-steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; }
.result-steps li { min-height: 150px; padding: 18px; background: white; border: 1px solid rgba(23,60,53,.12); border-radius: 18px; }
.result-steps li > span { width: 34px; height: 34px; margin-bottom: 28px; display: grid; place-items: center; color: white; background: #164b43; border-radius: 11px; font-size: 13px; font-weight: 900; }
.result-steps li p { margin: 0; color: #345a54; }

.result-soft-bridge { grid-template-columns: minmax(0, 1fr) auto; }

.result-artifact { margin-top: 18px; padding: 20px; display: flex; justify-content: space-between; gap: 18px; align-items: center; background: linear-gradient(135deg, #fffdf8, #edf5f1); border: 1px dashed rgba(23,60,53,.25); border-radius: 20px; }
.result-artifact h3 { margin: 0 0 8px; }
.result-artifact p:last-child { margin: 0; color: #44665f; }
.result-artifact-preview { width: 180px; flex: 0 0 auto; padding: 14px; background: white; border: 1px solid rgba(23,60,53,.12); border-radius: 16px; }
.result-artifact-preview span { display: block; height: 7px; margin: 8px 0; background: #dff0e8; border-radius: 9px; }
.result-artifact-preview span:nth-of-type(2) { width: 62%; }

.result-product-bridge {
  margin-top: 22px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  color: white;
  background: #164b43;
  border: 0;
  border-radius: 30px;
}
.result-product-bridge .result-eyebrow { color: #bbd4cd; }
.result-product-copy > h2 { margin: 0 0 12px; color: white; font-size: clamp(30px, 4vw, 46px); line-height: 1.03; letter-spacing: -0.04em; }
.result-product-copy > p { color: #d6e5e1; }
.result-benefits { margin-top: 20px; color: #e6f0ed; }
.result-benefits li { margin-bottom: 12px; }
.result-offer-card { padding: 22px; color: #173c35; background: white; border-radius: 22px; }
.result-offer-card h3 { margin: 0 0 8px; }
.result-offer-card .price-row strong { font-size: 46px; letter-spacing: -0.05em; }
.result-offer-card .primary-button { width: 100%; }

body[data-screen="result"] .paid-result-status { margin: 18px 0 0; }
body[data-screen="result"] #restart-button { margin-top: 24px; }

@media (max-width: 900px) {
  .result-snapshot-grid,
  .result-detail-grid,
  .result-product-bridge,
  .result-inline-offer,
  .result-soft-bridge { grid-template-columns: 1fr; }
  .result-profile-panel { min-height: auto; }
  .result-strategy-card { grid-template-columns: 1fr; }
  .result-pace-card { min-width: 0; }
}

@media (max-width: 700px) {
  html body[data-screen="result"] .quiz-shell { width: min(100% - 20px, 1180px); }
  body[data-screen="result"] .quiz-header { margin-bottom: 12px; }
  .result-snapshot-card,
  .result-detail-card { padding: 12px; border-radius: 22px; }
  .result-profile-panel { padding: 18px; }
  body[data-screen="result"] #result-profile { margin-bottom: 14px; font-size: 40px; }
  .result-profile-summary { font-size: 16px; }
  .result-dimensions-card { padding: 16px; }
  .result-inline-offer,
  .result-soft-bridge { padding: 18px; }
  .result-focus-grid { grid-template-columns: 1fr; }
  .result-detail-card { padding: 16px; }
  .result-barrier-card,
  .result-strategy-card { padding: 18px; }
  .result-steps { grid-template-columns: 1fr; }
  .result-steps li { min-height: 0; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
  .result-steps li > span { margin-bottom: 0; }
  .result-artifact { align-items: flex-start; }
  .result-artifact-preview { width: 120px; }
  .result-product-bridge { padding: 20px; border-radius: 22px; }
}

@media (max-width: 420px) {
  .result-artifact { flex-direction: column; }
  .result-artifact-preview { width: 100%; }
}


/* Result offer must keep the Kinly palette even when theme2 is active. */
html[data-theme="theme2"] body[data-screen="result"] #conversion-offer.result-product-bridge {
  color: #ffffff;
  background: #164b43;
  border: 1px solid rgba(23, 60, 53, 0.12);
  box-shadow: 0 22px 70px rgba(29, 61, 54, 0.10);
}

html[data-theme="theme2"] body[data-screen="result"] #conversion-offer.result-product-bridge .result-eyebrow {
  color: #bbd4cd;
}

html[data-theme="theme2"] body[data-screen="result"] #conversion-offer.result-product-bridge .result-product-copy > h2 {
  color: #ffffff;
}

html[data-theme="theme2"] body[data-screen="result"] #conversion-offer.result-product-bridge .result-product-copy > p,
html[data-theme="theme2"] body[data-screen="result"] #conversion-offer.result-product-bridge .result-benefits {
  color: #d6e5e1;
}

html[data-theme="theme2"] body[data-screen="result"] #conversion-offer.result-product-bridge .result-offer-card {
  color: #173c35;
  background: #ffffff;
  border: 0;
  box-shadow: none;
}

html[data-theme="theme2"] body[data-screen="result"] #conversion-offer.result-product-bridge .result-offer-card p,
html[data-theme="theme2"] body[data-screen="result"] #conversion-offer.result-product-bridge .result-offer-card #offer-price-note {
  color: #536d66;
}

/* Dynamic Kinly preboarding: one layout, five ad-matched variants. */
body[data-screen="intro"][data-intro-mode="preboarding"] {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-x: hidden;
  background: #e9e5df;
  cursor: pointer;
}

html body[data-screen="intro"][data-intro-mode="preboarding"] .quiz-shell {
  width: min(1120px, 100%);
  height: min(760px, calc(100dvh - 32px));
  min-height: 568px;
  margin: 0;
  padding: 0;
}

body[data-screen="intro"][data-intro-mode="preboarding"] .quiz-header,
body[data-screen="intro"][data-intro-mode="preboarding"] .question-meta,
body[data-screen="intro"][data-intro-mode="preboarding"] #question-label,
body[data-screen="intro"][data-intro-mode="preboarding"] #question-title,
body[data-screen="intro"][data-intro-mode="preboarding"] #question-support,
body[data-screen="intro"][data-intro-mode="preboarding"] .controls {
  display: none !important;
}

body[data-screen="intro"][data-intro-mode="preboarding"] #quiz-screen,
body[data-screen="intro"][data-intro-mode="preboarding"] .answers {
  width: 100%;
  height: 100%;
}

body[data-screen="intro"][data-intro-mode="preboarding"] .answers {
  display: block;
}

body[data-screen="intro"][data-intro-mode="preboarding"] #quiz-screen.preboarding-click-target {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.preboarding-screen {
  --preboarding-ink: #173f39;
  --preboarding-surface: #f8f2e8;
  --preboarding-shape-a: #f2dac8;
  --preboarding-shape-b: #bec8b2;
  --preboarding-accent: #e27858;
  --preboarding-muted: #49635e;
  --preboarding-button: #173f39;
  --preboarding-button-ink: #ffffff;
  --preboarding-dash: rgba(23, 63, 57, 0.42);
  --preboarding-card-radius: 30px;

  width: 100%;
  height: 100%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--preboarding-ink);
  background: var(--preboarding-surface);
  border-radius: var(--preboarding-card-radius);
  box-shadow: 0 24px 70px rgba(39, 49, 45, 0.16);
}

.preboarding-screen::before,
.preboarding-screen::after {
  content: "";
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border: 2px dashed var(--preboarding-dash);
  border-radius: 50%;
  pointer-events: none;
}

.preboarding-screen::before {
  width: clamp(280px, 37vw, 520px);
  right: clamp(-180px, -10vw, -90px);
  top: clamp(-220px, -15vw, -120px);
  background: var(--preboarding-shape-a);
}

.preboarding-screen::after {
  width: clamp(240px, 31vw, 430px);
  left: clamp(-180px, -10vw, -100px);
  bottom: clamp(-230px, -18vw, -140px);
  background: var(--preboarding-shape-b);
}

.preboarding-logo {
  width: clamp(88px, 10vw, 120px);
  height: auto;
  position: absolute;
  z-index: 5;
  left: clamp(28px, 4.4vw, 58px);
  top: clamp(24px, 4.4vh, 44px);
  display: block;
}

.preboarding-copy {
  width: min(530px, 49%);
  position: absolute;
  z-index: 4;
  left: clamp(30px, 6vw, 76px);
  top: 50%;
  transform: translateY(-48%);
  animation: preboarding-enter 440ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.preboarding-eyebrow {
  margin: 0 0 14px;
  color: var(--preboarding-accent);
  font-size: clamp(11px, 0.95vw, 13px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preboarding-headline {
  max-width: 18ch;
  margin: 0;
  color: var(--preboarding-ink);
  font-size: clamp(38px, 4.35vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.052em;
  font-weight: 790;
  text-wrap: balance;
}

.preboarding-accent {
  color: var(--preboarding-accent);
}

.preboarding-description {
  max-width: 47ch;
  margin: clamp(18px, 2.8vh, 26px) 0 0;
  color: var(--preboarding-muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.52;
  text-wrap: pretty;
}

.preboarding-cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  margin-top: clamp(22px, 3.8vh, 34px);
}

.preboarding-cta {
  width: min(100%, 370px);
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 30px;
  color: var(--preboarding-button-ink);
  background: var(--preboarding-button);
  border: 0;
  border-radius: 16px;
  box-shadow:
    0 14px 34px rgba(23, 63, 57, 0.26),
    0 2px 0 rgba(255, 255, 255, 0.16) inset;
  cursor: pointer;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 850;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  transform-origin: left center;
  transition:
    transform 620ms cubic-bezier(0.22, 0.8, 0.25, 1),
    box-shadow 220ms ease,
    filter 180ms ease;
}

.preboarding-screen.is-conversion-nudged .preboarding-cta {
  transform: scale(1.15);
  animation: preboarding-conversion-pulse 2.4s ease-in-out infinite;
}

@keyframes preboarding-conversion-pulse {
  0%,
  100% {
    box-shadow:
      0 14px 34px rgba(23, 63, 57, 0.28),
      0 0 0 0 color-mix(
        in srgb,
        var(--preboarding-accent),
        transparent 46%
      ),
      0 0 0 0 color-mix(
        in srgb,
        var(--preboarding-shape-b),
        transparent 58%
      ),
      0 2px 0 rgba(255, 255, 255, 0.18) inset;
  }

  50% {
    box-shadow:
      0 18px 44px color-mix(
        in srgb,
        var(--preboarding-button),
        transparent 58%
      ),
      0 0 0 7px color-mix(
        in srgb,
        var(--preboarding-accent),
        transparent 42%
      ),
      0 0 0 14px color-mix(
        in srgb,
        var(--preboarding-shape-b),
        transparent 56%
      ),
      0 2px 0 rgba(255, 255, 255, 0.22) inset;
  }
}

.preboarding-cta:hover {
  filter: brightness(1.04);
  transform: translateY(-3px);
  box-shadow:
    0 19px 42px rgba(23, 63, 57, 0.31),
    0 2px 0 rgba(255, 255, 255, 0.18) inset;
}

.preboarding-cta:active {
  transform: translateY(0);
}

.preboarding-cta:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--preboarding-accent), transparent 60%);
  outline-offset: 4px;
}

.preboarding-cta svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.preboarding-trust {
  margin: 0;
  color: color-mix(in srgb, var(--preboarding-muted), transparent 12%);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  transition: transform 620ms cubic-bezier(0.22, 0.8, 0.25, 1);
}

.preboarding-screen.is-conversion-nudged .preboarding-trust {
  transform: translateY(12px);
}

.preboarding-art {
  width: 49%;
  height: 94%;
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  pointer-events: none;
  animation: preboarding-enter 500ms 60ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.preboarding-art img {
  max-width: none;
  position: absolute;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.preboarding-art-primary {
  width: 96%;
  max-height: 93%;
  right: 2.5%;
  bottom: -2%;
  object-fit: contain;
  object-position: bottom right;
}

.preboarding-art-secondary {
  display: none;
}

.preboarding-screen[data-variant="time"] .preboarding-art-primary {
  width: 100%;
  right: -1%;
  bottom: -7%;
}

.preboarding-screen[data-variant="calls"] .preboarding-art-primary {
  width: 92%;
  right: 0;
  bottom: -8%;
}

.preboarding-screen[data-variant="know"] .preboarding-art {
  width: 47%;
  height: 88%;
  right: 1.5%;
  bottom: 0;
  overflow: hidden;
  border-radius: 260px 260px 0 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.preboarding-screen[data-variant="know"] .preboarding-art-primary {
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center bottom;
}

.preboarding-screen[data-variant="distance"] .preboarding-art-primary,
.preboarding-screen[data-variant="distance"] .preboarding-art-secondary {
  width: 61%;
  max-height: 82%;
  display: block;
  bottom: -9%;
  object-fit: contain;
  object-position: bottom;
}

.preboarding-screen[data-variant="distance"] .preboarding-art-primary {
  right: -2%;
}

.preboarding-screen[data-variant="distance"] .preboarding-art-secondary {
  left: -5%;
}

.preboarding-screen[data-variant="later"] .preboarding-art {
  width: 45%;
  height: 82%;
  right: 3.5%;
  bottom: 0;
  overflow: hidden;
  border-radius: 240px 240px 0 0;
  box-shadow: 0 22px 50px rgba(58, 45, 38, 0.17);
  transform: rotate(1.2deg);
}

.preboarding-screen[data-variant="later"] .preboarding-art-primary {
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center 46%;
}

@keyframes preboarding-enter {
  from {
    opacity: 0;
    translate: 0 8px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 760px) {
  body[data-screen="intro"][data-intro-mode="preboarding"] {
    padding: 0;
    background: var(--preboarding-surface, #f8f2e8);
  }

  html body[data-screen="intro"][data-intro-mode="preboarding"] .quiz-shell {
    width: 100%;
    height: 100dvh;
    min-height: 560px;
  }

  .preboarding-screen {
    border-radius: 0;
    box-shadow: none;
  }

  .preboarding-screen::before {
    width: min(72vw, 340px);
    right: -31vw;
    top: -20vw;
  }

  .preboarding-screen::after {
    width: min(68vw, 320px);
    left: -34vw;
    bottom: -23vw;
  }

  .preboarding-logo {
    width: 88px;
    left: 22px;
    top: max(20px, env(safe-area-inset-top));
  }

  .preboarding-copy {
    width: auto;
    left: 22px;
    right: 22px;
    top: clamp(86px, 14vh, 112px);
    transform: none;
  }

  .preboarding-eyebrow {
    margin-bottom: 9px;
    font-size: 10px;
  }

  .preboarding-headline {
    max-width: 18ch;
    font-size: clamp(34px, 10.8vw, 48px);
    line-height: 0.98;
  }

  .preboarding-description {
    max-width: 38ch;
    margin-top: 14px;
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.42;
  }

  .preboarding-cta-row {
    gap: 9px;
    margin-top: 18px;
  }

  .preboarding-screen.is-conversion-nudged .preboarding-cta {
    transform: scale(1.15);
  }

  .preboarding-cta {
    width: 100%;
    min-height: 58px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 15px;
  }

  .preboarding-trust {
    font-size: 11px;
  }

  .preboarding-screen.is-conversion-nudged .preboarding-trust {
    transform: translateY(10px);
  }

  .preboarding-art {
    width: 100%;
    height: 48%;
    right: 0;
    bottom: -1%;
  }

  .preboarding-art-primary {
    width: 78%;
    max-height: 100%;
    right: 0;
  }

  .preboarding-screen[data-variant="time"] .preboarding-art-primary {
    width: 76%;
    right: -7%;
    bottom: -5%;
  }

  .preboarding-screen[data-variant="calls"] .preboarding-art-primary {
    width: 72%;
    right: -8%;
    bottom: -9%;
  }

  .preboarding-screen[data-variant="know"] .preboarding-art {
    width: 68%;
    height: 44%;
    right: -3%;
    bottom: 0;
    border-radius: 180px 180px 0 0;
  }

  .preboarding-screen[data-variant="distance"] .preboarding-art-primary,
  .preboarding-screen[data-variant="distance"] .preboarding-art-secondary {
    width: 56%;
    max-height: 100%;
    bottom: -10%;
  }

  .preboarding-screen[data-variant="distance"] .preboarding-art-primary {
    right: -7%;
  }

  .preboarding-screen[data-variant="distance"] .preboarding-art-secondary {
    left: -10%;
  }

  .preboarding-screen[data-variant="later"] .preboarding-art {
    width: 65%;
    height: 44%;
    right: -6%;
    bottom: 0;
    border-radius: 190px 190px 0 0;
  }
}

@media (max-width: 420px) and (min-height: 720px) {
  .preboarding-copy {
    top: 12.5vh;
  }

  .preboarding-art {
    height: 45%;
  }
}

@media (max-height: 719px) {
  .preboarding-logo {
    top: 20px;
  }

  .preboarding-copy {
    top: 49%;
  }

  .preboarding-eyebrow {
    margin-bottom: 8px;
  }

  .preboarding-headline {
    font-size: clamp(34px, 4.2vw, 52px);
  }

  .preboarding-description {
    margin-top: 13px;
    font-size: 14px;
    line-height: 1.4;
  }

  .preboarding-cta-row {
    margin-top: 16px;
  }

  .preboarding-cta {
    min-height: 54px;
    padding-block: 13px;
  }
}

@media (max-width: 760px) and (max-height: 719px) {
  .preboarding-copy {
    top: 78px;
  }

  .preboarding-headline {
    font-size: clamp(31px, 9.7vw, 40px);
  }

  .preboarding-description {
    max-width: 35ch;
  }

  .preboarding-art {
    height: 43%;
  }

  .preboarding-screen[data-variant="know"] .preboarding-art,
  .preboarding-screen[data-variant="later"] .preboarding-art {
    height: 39%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preboarding-copy,
  .preboarding-art {
    animation: none;
  }
}

@media (min-height: 600px) {
  body[data-screen="intro"][data-intro-mode="preboarding"] {
    overflow-y: hidden;
  }
}

/* Result page mobile hardening — prevent translated/dynamic copy from widening the viewport. */
body[data-screen="result"] {
  overflow-x: clip;
}

body[data-screen="result"] .quiz-shell,
body[data-screen="result"] .kinly-result,
body[data-screen="result"] .kinly-result *,
body[data-screen="result"] .conversion-card,
body[data-screen="result"] .result-product-copy,
body[data-screen="result"] .result-offer-card {
  min-width: 0;
  max-width: 100%;
}

body[data-screen="result"] .kinly-result h1,
body[data-screen="result"] .kinly-result h2,
body[data-screen="result"] .kinly-result h3,
body[data-screen="result"] .kinly-result p,
body[data-screen="result"] .kinly-result li,
body[data-screen="result"] .kinly-result small,
body[data-screen="result"] .kinly-result strong,
body[data-screen="result"] .kinly-result span,
body[data-screen="result"] .kinly-result button {
  overflow-wrap: anywhere;
  word-break: normal;
}

body[data-screen="result"] .primary-button,
body[data-screen="result"] .text-button {
  max-width: 100%;
  white-space: normal;
}

@media (max-width: 700px) {
  html body[data-screen="result"] .quiz-shell {
    width: 100%;
    max-width: 100%;
    padding: 10px 10px 48px;
  }

  body[data-screen="result"] .result-snapshot-card,
  body[data-screen="result"] .result-detail-card,
  body[data-screen="result"] .result-product-bridge {
    width: 100%;
  }

  body[data-screen="result"] .result-product-copy > h2 {
    font-size: clamp(28px, 8.5vw, 38px);
    line-height: 1.05;
  }

  body[data-screen="result"] .result-product-copy > p,
  body[data-screen="result"] .result-benefits {
    font-size: 16px;
    line-height: 1.5;
  }

  body[data-screen="result"] .result-offer-card {
    padding: 20px;
  }

  body[data-screen="result"] .price-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    margin: 22px 0 18px;
  }

  body[data-screen="result"] .result-offer-card .price-row strong,
  body[data-screen="result"] #offer-price {
    font-size: clamp(42px, 13vw, 58px);
    line-height: 1;
  }

  body[data-screen="result"] #offer-price-note {
    display: block;
    font-size: 15px;
    line-height: 1.4;
  }
}

@media (max-width: 380px) {
  html body[data-screen="result"] .quiz-shell {
    padding-inline: 8px;
  }

  body[data-screen="result"] .result-snapshot-card,
  body[data-screen="result"] .result-detail-card {
    padding: 10px;
  }

  body[data-screen="result"] .result-product-bridge {
    padding: 16px;
  }

  body[data-screen="result"] .result-offer-card {
    padding: 16px;
  }

  body[data-screen="result"] .result-benefits {
    padding-left: 20px;
  }
}

/* Result email recovery funnel */
.result-email-capture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: center;
  margin: 28px 0;
  padding: 28px;
  border: 2px solid #191919;
  border-radius: 22px;
  background: #fffdf7;
  box-shadow: 5px 5px 0 #191919;
}
.result-email-capture[hidden] { display: none; }
.result-email-capture h3 { margin: 6px 0 8px; font-size: clamp(24px, 3vw, 34px); line-height: 1.08; }
.result-email-capture p { margin: 0; }
.result-email-form { display: grid; gap: 10px; }
.result-email-form input {
  width: 100%; min-height: 52px; padding: 13px 15px;
  border: 2px solid #191919; border-radius: 12px; background: #fff;
  font: inherit; box-sizing: border-box;
}
.result-email-form .primary-button { width: 100%; }
.result-email-modal {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: end center;
  padding: 18px; background: rgba(20,20,20,.48); backdrop-filter: blur(4px);
}
.result-email-modal[hidden] { display: none; }
.result-email-modal-card {
  position: relative; width: min(560px, 100%); padding: 30px;
  border: 2px solid #191919; border-radius: 24px; background: #fffdf7;
  box-shadow: 7px 7px 0 #191919;
}
.result-email-modal-card h2 { margin: 6px 36px 10px 0; font-size: clamp(27px, 5vw, 38px); line-height: 1.05; }
.result-email-modal-close { position:absolute; top:12px; right:14px; border:0; background:transparent; font-size:32px; cursor:pointer; }
.result-email-modal-continue { width:100%; margin-top:8px; }
.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; }
.processing-email-capture { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(25,25,25,.2); }
.processing-email-capture h2 { margin: 0 0 7px; font-size: clamp(23px, 3vw, 31px); line-height: 1.08; }
.processing-email-capture p { margin: 0 0 12px; }
.processing-email-actions { display:grid; gap:8px; }
@media (min-width: 700px) { .result-email-modal { place-items:center; } }
@media (max-width: 700px) {
  .result-email-capture { grid-template-columns: 1fr; padding: 20px; }
  .result-email-modal-card { padding: 24px 20px 20px; border-radius: 22px 22px 12px 12px; }
}

/* Desktop result offer price hardening */
@media (min-width: 701px) {
  body[data-screen="result"] #conversion-offer .price-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    column-gap: 18px;
  }

  body[data-screen="result"] #conversion-offer #offer-price {
    display: block;
    min-width: max-content;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
    line-height: 1;
  }

  body[data-screen="result"] #conversion-offer #offer-price-note {
    min-width: 0;
  }
}

/* Softer result email modal motion and Kinly palette */
.result-email-modal {
  background: rgba(22, 75, 67, 0.30);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 280ms ease,
    visibility 280ms ease;
}

.result-email-modal.is-open,
.result-email-modal.is-closing {
  visibility: visible;
}

.result-email-modal.is-open {
  opacity: 1;
}

.result-email-modal.is-closing {
  opacity: 0;
}

.result-email-modal-card {
  border-color: rgba(23, 60, 53, 0.20);
  background: #f7f2e8;
  box-shadow: 0 24px 70px rgba(22, 75, 67, 0.22);
  opacity: 0;
  transform: translateY(18px) scale(0.975);
  transition:
    opacity 320ms cubic-bezier(0.22, 0.8, 0.32, 1),
    transform 320ms cubic-bezier(0.22, 0.8, 0.32, 1);
}

.result-email-modal.is-open .result-email-modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.result-email-modal.is-closing .result-email-modal-card {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
}

.result-email-modal-card .result-email-form input {
  border-color: rgba(23, 60, 53, 0.28);
  background: #fffdf8;
}

.result-email-modal-card .primary-button {
  background: #dff36b;
}

.result-saved-notice {
  position: fixed;
  z-index: 1100;
  left: 50%;
  bottom: 24px;
  width: min(520px, calc(100% - 32px));
  padding: 15px 18px;
  color: #173c35;
  background: #dff0e8;
  border: 1px solid rgba(23, 60, 53, 0.16);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(22, 75, 67, 0.16);
  text-align: center;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 240ms ease,
    transform 320ms cubic-bezier(0.22, 0.8, 0.32, 1);
}

.result-saved-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .result-email-modal,
  .result-email-modal-card,
  .result-saved-notice {
    transition: none;
  }
}


/* Secondary founding-access reminder inside the email modal */
.result-email-modal-offer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(23, 60, 53, 0.14);
  color: #44665f;
}

.result-email-modal-offer p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.45;
}

.result-email-modal-offer strong {
  color: #173c35;
}

.result-email-modal-offer .result-text-link {
  margin-top: 4px;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .preboarding-screen.is-conversion-nudged .preboarding-cta {
    animation: none;
  }
}

/* Kinly app preview integration — scoped to the two result offer blocks. */
/* Kinly app previews in the upper and lower result offers. */
/* When disabled, preserve the exact pre-preview offer layouts. */
.result-inline-offer:not(.result-inline-offer--preview) .result-inline-preview-column {
  display: contents;
}

.result-product-bridge:not(.result-product-bridge--preview) .result-product-offer-column {
  display: contents;
}

.result-inline-offer--preview {
  grid-template-columns: minmax(0, 1.42fr) minmax(250px, 0.58fr);
  gap: 22px;
  padding: 20px 24px;
}

.result-inline-offer-copy {
  min-width: 0;
}

.result-inline-offer--preview h2 {
  margin-bottom: 8px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.02;
}

.result-inline-offer--preview .result-inline-offer-copy > p:last-child {
  font-size: 16px;
  line-height: 1.45;
}

.result-inline-preview-column {
  width: 100%;
  max-width: 420px;
  min-width: 0;
  justify-self: end;
}

.result-product-preview-label {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 6px 10px;
  color: #173c35;
  background: #f3d56b;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-inline-preview-window {
  --preview-end-shift: 383px;
  height: 145px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #fffdf8, #edf5f1);
  border: 1px solid rgba(23, 60, 53, 0.12);
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(22, 75, 67, 0.12);
}

.result-inline-preview-window::after {
  content: "";
  height: 34px;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(255, 253, 248, 0), rgba(255, 253, 248, 0.96));
  pointer-events: none;
}

.result-inline-preview-image {
  width: 220px;
  max-width: none;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translate(-50%, 0);
  filter: drop-shadow(0 18px 22px rgba(22, 75, 67, 0.2));
  animation: kinly-inline-preview-scroll 30s ease-in-out infinite;
  will-change: transform;
}

@keyframes kinly-inline-preview-scroll {
  0%, 6.67% {
    transform: translate(-50%, 0);
  }

  46.67%, 53.33% {
    transform: translate(-50%, calc(-1 * var(--preview-end-shift)));
  }

  93.33%, 100% {
    transform: translate(-50%, 0);
  }
}

.result-inline-offer--preview .result-inline-offer-actions {
  margin-top: 10px;
}

.result-product-bridge--preview {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
}

.result-product-offer-column,
.result-product-preview-column {
  min-width: 0;
}

.result-product-offer-column {
  display: grid;
  gap: 22px;
  align-content: start;
}

.result-product-preview-column {
  min-height: 750px;
  position: relative;
  padding-top: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-product-preview-column .result-product-preview-label {
  position: absolute;
  top: 0;
  left: 0;
}

.result-product-preview-crop {
  width: 100%;
  height: 690px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.result-product-preview-image {
  width: min(100%, 410px);
  max-width: none;
  transform: translateY(8px);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.28));
}

.result-product-preview-caption {
  margin: 10px 0 0;
  color: #d6e5e1;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 900px) {
  .result-inline-offer--preview,
  .result-product-bridge--preview {
    grid-template-columns: 1fr;
  }

  .result-inline-preview-column {
    max-width: none;
    justify-self: stretch;
  }

  .result-inline-preview-window {
    --preview-end-shift: 367px;
    height: 138px;
  }

  .result-inline-preview-image {
    width: 210px;
  }

  .result-product-preview-column {
    min-height: 650px;
  }

  .result-product-preview-crop {
    height: 590px;
  }
}

@media (max-width: 700px) {
  .result-inline-offer--preview {
    padding: 18px;
  }

  .result-inline-preview-window {
    --preview-end-shift: 339px;
    height: 130px;
  }

  .result-inline-preview-image {
    width: 195px;
  }

  .result-product-preview-column {
    min-height: 560px;
  }

  .result-product-preview-crop {
    height: 500px;
  }

  .result-product-preview-image {
    width: min(92vw, 350px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .result-inline-preview-image {
    animation: none;
    transform: translate(-50%, -120px);
  }
}

/* Mobile result-page compactness: keep the upper Kinly offer visible,
   but reveal the first personal result sooner. Desktop remains unchanged. */
@media (max-width: 700px) {
  .result-inline-offer--preview {
    gap: 12px;
    padding: 14px 14px 16px;
  }

  .result-inline-offer--preview h2 {
    margin-bottom: 6px;
    font-size: clamp(28px, 8.6vw, 35px);
    line-height: 1.01;
  }

  .result-inline-offer--preview .result-inline-offer-copy > p:last-child {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .result-inline-preview-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .result-inline-preview-column .result-product-preview-label {
    width: max-content;
    margin: 0;
    padding: 5px 9px;
    font-size: 9px;
  }

  .result-inline-preview-window {
    --preview-end-shift: 324px;
    height: 98px;
    border-radius: 17px;
  }

  .result-inline-preview-image {
    width: 176px;
    top: 6px;
  }

  .result-inline-offer--preview .result-inline-offer-actions {
    gap: 5px;
    margin-top: 2px;
  }

  .result-inline-offer--preview .result-inline-offer-actions .primary-button {
    min-height: 50px;
    padding: 12px 16px;
    font-size: 16px;
  }

  .result-inline-offer--preview .result-inline-offer-actions small {
    font-size: 12px;
    line-height: 1.35;
  }

  .result-inline-offer--preview #result-offer-details-link {
    padding-top: 1px;
    font-size: 14px;
  }

  .result-snapshot-grid {
    margin-top: 0;
  }
}


/* Personalized-plan offer copy: upper and lower offer text only. */
.offer-copy-price-line {
  display: block;
  margin-top: 7px;
  color: #657c76;
  font-size: 0.78rem;
  line-height: 1.35;
}

.offer-copy-price-line del,
.offer-regular-price del {
  opacity: 0.74;
  text-decoration-thickness: 1px;
}

.offer-copy-guarantee {
  display: block;
  margin-top: 4px;
  color: #657c76;
  font-size: 0.72rem;
  line-height: 1.35;
}

.offer-regular-price {
  margin: 4px 0 14px;
  color: #657c76;
  font-size: 0.86rem;
}

.offer-trust-line {
  margin: 10px 0 0;
  color: #657c76;
  font-size: 0.76rem;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 700px) {
  .offer-copy-price-line {
    margin-top: 4px;
    font-size: 0.72rem;
  }

  .offer-copy-guarantee {
    margin-top: 2px;
    font-size: 0.66rem;
  }
}


/* Upper result offer: desktop three-column composition (copy / app preview / CTA). */
@media (min-width: 901px) {
  .result-inline-offer--preview {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.9fr) minmax(280px, 0.78fr);
    gap: 0;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
  }

  .result-inline-offer--preview .result-inline-offer-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 26px;
  }

  .result-inline-offer--preview .result-inline-preview-column {
    width: auto;
    max-width: none;
    justify-self: stretch;
    display: grid;
    align-content: center;
    padding: 18px 18px;
    border-left: 1px solid rgba(23, 60, 53, 0.08);
    border-right: 1px solid rgba(23, 60, 53, 0.08);
    background: rgba(255, 255, 255, 0.52);
  }

  .result-inline-offer--preview .result-inline-preview-window {
    height: 158px;
  }

  .result-inline-offer--preview .result-inline-offer-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.72);
  }

  .result-inline-offer--preview .result-inline-offer-actions .primary-button {
    min-height: 58px;
    border-radius: 999px;
    font-size: 20px;
  }

  .result-inline-offer--preview #result-offer-details-link {
    font-size: 16px;
  }
}
