:root {
  color-scheme: light;
  --navy: #0d223a;
  --orange: #ed6a2a;
  --orange-dark: #c54d14;
  --ink: #142236;
  --muted: #697585;
  --line: #dce2e8;
  --soft: #f5f7f9;
  --canvas: #f5f3ef;
  --surface: #fff;
  --success: #16705a;
  --success-soft: #eef8f3;
  --shadow-soft: 0 18px 50px rgba(13, 34, 58, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #faf9f7 0, var(--canvas) 100%);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button { font: inherit; }

img,
video {
  display: block;
  max-width: 100%;
}

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #2674c7;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.page-shell {
  width: min(100% - 32px, 980px);
  margin-inline: auto;
}

.challenge-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(13, 34, 58, 0.08);
  background: rgba(250, 249, 247, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100% - 24px, 632px);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-inline: auto;
}

.header-challenge-name {
  overflow: hidden;
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-step {
  flex: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.header-progress {
  height: 3px;
  overflow: hidden;
  background: rgba(13, 34, 58, 0.07);
}

.header-progress span {
  display: block;
  width: 5%;
  height: 100%;
  background: var(--orange);
  transition: width 220ms ease;
}

.challenge-main { min-height: 100vh; }

.challenge-column {
  width: min(100% - 16px, 632px);
  margin-inline: auto;
  padding: 14px 0 56px;
  scroll-margin-top: 54px;
}

.challenge-screen {
  min-height: 360px;
  padding: 22px 18px 24px;
  border: 1px solid rgba(13, 34, 58, 0.09);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

h1,
h2,
p { margin-top: 0; }

h1,
h2 {
  color: var(--navy);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.challenge-screen h1 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(22px, 5.7vw, 31px);
  font-weight: 650;
}

.challenge-screen h1 strong {
  color: var(--navy);
  font-weight: 800;
}

h2 { font-size: clamp(25px, 6.5vw, 34px); }

.mcq-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -3px 0 22px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.mcq-topline strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mcq-topline span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.mcq-question-copy {
  padding: 0 1px;
}

.question-bm {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
}

.question-bm strong {
  color: #4f5965;
  font-weight: 700;
}

.answer-grid {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.answer-button {
  --option-color: var(--navy);
  --option-soft: #f3f5f7;
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 11px;
  border: 1px solid #d3dae1;
  border-left: 4px solid var(--option-color);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  box-shadow: none;
  font-weight: 750;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.answer-option-1 {
  --option-color: #b93d4d;
  --option-soft: #fff4f5;
}

.answer-option-2 {
  --option-color: #2d63ad;
  --option-soft: #f2f6fc;
}

.answer-option-3 {
  --option-color: #bd7911;
  --option-soft: #fff8eb;
}

.answer-option-4 {
  --option-color: #24775a;
  --option-soft: #f0f8f5;
}

.answer-letter {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--option-color);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

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

.answer-main,
.answer-bm { display: block; }

.answer-bm {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
}

.answer-button:active:not(:disabled) {
  border-color: var(--option-color);
  background: var(--option-soft);
  transform: translateY(1px);
}

.answer-button:disabled { cursor: default; }

.answer-button.is-selected {
  border-color: var(--option-color);
  background: var(--option-soft);
  box-shadow: inset 0 0 0 1px var(--option-color);
}

.answer-button.is-selected .answer-letter {
  background: var(--option-color);
  color: #fff;
}

.source-meta {
  margin: 18px 0 0;
  color: #929ba5;
  font-size: 9px;
  font-weight: 500;
  text-align: center;
}

.source-meta span { margin: 0 3px; }

.source-meta a {
  color: #6f7b88;
  text-underline-offset: 2px;
}

.reveal-stage {
  scroll-margin-top: 58px;
}

.challenge-screen.is-video-mode {
  padding: 12px 9px 20px;
}

.answer-popover .answer-colour {
  min-width: 132px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--answer-border, transparent);
  border-radius: 11px;
  background: var(--answer-background, var(--navy));
  box-shadow: 0 8px 18px var(--answer-shadow, rgba(13, 34, 58, 0.16));
  color: var(--answer-text, #fff);
  font-size: clamp(24px, 7vw, 32px);
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.answer-colour--yellow {
  --answer-background: #f5d547;
  --answer-border: #e3bd17;
  --answer-shadow: rgba(227, 189, 23, 0.26);
  --answer-text: #17202a;
}

.answer-colour--black {
  --answer-background: #111820;
  --answer-border: #111820;
  --answer-shadow: rgba(17, 24, 32, 0.24);
  --answer-text: #fff;
}

.answer-colour--green {
  --answer-background: #2f9f69;
  --answer-border: #247d53;
  --answer-shadow: rgba(47, 159, 105, 0.24);
  --answer-text: #fff;
}

.answer-colour--brown {
  --answer-background: #955b3f;
  --answer-border: #75432f;
  --answer-shadow: rgba(149, 91, 63, 0.24);
  --answer-text: #fff;
}

.chemihack-timeline {
  max-width: 410px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 auto 12px;
  padding: 0;
  list-style: none;
}

.chemihack-timeline li {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 2px 10px;
  color: #9aa4af;
  font-size: 9px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.chemihack-timeline li::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: #e3e7eb;
}

.chemihack-timeline li > span {
  font-size: 8px;
  font-weight: 800;
}

.chemihack-timeline li > strong { font-weight: 600; }

.chemihack-timeline .is-current {
  color: var(--orange-dark);
  font-size: 10px;
}

.chemihack-timeline .is-current > strong { font-weight: 800; }

.chemihack-timeline .is-current::after { background: var(--orange); }

.chemihack-timeline .is-complete { color: var(--success); }

.chemihack-timeline .is-complete::after { background: var(--success); }

.video-shell {
  position: relative;
  max-width: 410px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: #07182b;
  box-shadow: 0 22px 46px rgba(7, 24, 43, 0.2);
}

.video-shell video {
  width: 100%;
  max-height: calc(100svh - 112px);
  aspect-ratio: 9 / 16;
  background: #07182b;
  object-fit: contain;
}

.answer-popover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  border: 0;
  border-radius: inherit;
  background: rgba(2, 8, 15, 0.86);
  text-align: center;
  opacity: 1;
  transition: opacity 480ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 480ms;
  cursor: pointer;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.answer-card {
  position: relative;
  width: min(100%, 330px);
  overflow: hidden;
  padding: 24px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  color: var(--navy);
  animation: answer-card-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: opacity 360ms ease, transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.answer-kicker {
  display: block;
  margin-bottom: 13px;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.answer-fact {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  text-wrap: balance;
}

.answer-subject {
  font-size: clamp(20px, 5.8vw, 27px);
  font-weight: 800;
  line-height: 1.2;
}

.answer-join {
  color: #788490;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-card p {
  margin: 14px 0 0;
  color: #66727e;
  font-size: 12px;
  font-style: italic;
  line-height: 1.45;
}

.answer-card p strong {
  color: var(--navy);
  font-weight: 800;
}

.answer-video-cue {
  display: block;
  margin-top: 14px;
  color: #8b96a1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.answer-timer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #e7ebee;
}

.answer-timer::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  animation: answer-timer 2100ms linear forwards;
  transform-origin: left;
}

.answer-popover.is-dismissed {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.answer-popover.is-dismissed .answer-card {
  opacity: 0;
  transform: scale(0.97);
}

@keyframes answer-card-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes answer-timer {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.video-next {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--orange-dark);
  border-radius: 14px;
  background: var(--orange);
  box-shadow: 0 10px 22px rgba(197, 77, 20, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.video-next:active {
  background: var(--orange-dark);
  color: #fff;
}

.video-next span {
  font-size: 18px;
  line-height: 1;
}

.video-action {
  max-width: 410px;
  margin: 14px auto 0;
}

.memory-cue {
  max-width: 410px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin: 15px auto 0;
  padding: 0 6px;
  text-align: center;
}

.memory-cue span {
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.memory-cue span::after {
  content: "·";
  margin-left: 7px;
  color: #a8b0b8;
}

.memory-cue strong {
  color: var(--navy);
  font-size: 14px;
}

.primary-button,
.secondary-button,
.quiet-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 17px;
  border-radius: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--orange-dark);
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(197, 77, 20, 0.2);
  color: #fff;
}

.primary-button:active { background: var(--orange-dark); }

.secondary-button,
.quiet-button {
  border: 1px solid #c1c9d1;
  background: #fff;
  color: var(--navy);
}

.result-actions {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.saving-answer {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}


.test-intro {
  max-width: 520px;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  padding: 8px 0;
  text-align: center;
}

.test-intro-kicker {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1e9;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.test-intro-number {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 20px auto 17px;
  border: 7px solid #fff1e9;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 12px 28px rgba(197, 77, 20, 0.2);
  color: #fff;
  font-size: 34px;
  font-weight: 800;
}

.test-intro h1 {
  margin-inline: auto;
  font-size: clamp(28px, 7vw, 38px);
}

.test-intro-copy {
  max-width: 470px;
  margin: 14px auto 0;
  color: #3e4a57;
  font-size: 15px;
  line-height: 1.6;
}

.test-intro-bm {
  max-width: 470px;
  margin-inline: auto;
}

.test-intro-summary {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.test-intro-summary span {
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.test-intro-summary strong {
  color: var(--navy);
  font-size: 17px;
}

.test-intro-start {
  margin-top: 22px;
}

.final-test-heading {
  margin-bottom: 20px;
}

.final-test-heading h1 {
  margin-bottom: 8px;
}

.final-test-heading > p:not(.question-bm) {
  margin: 0;
  color: #3e4a57;
  font-size: 14px;
  line-height: 1.55;
}

.final-test-list {
  display: grid;
  gap: 14px;
}

.final-test-card {
  padding: 16px 13px;
  border: 1px solid #dce2e8;
  border-radius: 16px;
  background: #fbfcfd;
}

.final-test-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.final-test-card-top strong {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
}

.final-test-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.35;
}

.final-test-card h2 strong {
  font-weight: 800;
}

.final-test-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.final-test-answer {
  min-height: 52px;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 8px 8px 7px;
  border-left-width: 3px;
  border-radius: 11px;
}

.final-test-answer .answer-letter {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  font-size: 11px;
}

.final-test-answer .answer-main {
  font-size: 12px;
}

.final-test-answer .answer-bm {
  margin-top: 1px;
  font-size: 9px;
}

.final-test-footer {
  position: sticky;
  bottom: 8px;
  z-index: 4;
  margin-top: 18px;
  padding: 11px;
  border: 1px solid rgba(13, 34, 58, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(13, 34, 58, 0.14);
  backdrop-filter: blur(12px);
}

.final-test-footer p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.video-next:disabled {
  border-color: #c7cfd7;
  background: #d7dde3;
  box-shadow: none;
  color: #67727e;
  cursor: not-allowed;
}

.result-screen { text-align: center; }

.result-screen h1 {
  margin-inline: auto;
  font-size: clamp(34px, 8.5vw, 45px);
}

.score-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  margin: 22px auto 16px;
  padding: 15px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.score-comparison span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.score-comparison strong {
  display: block;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.15;
}

.score-comparison .after-score strong { color: var(--success); }

.score-arrow {
  color: #a3abb4 !important;
  font-size: 20px !important;
}

.result-message {
  max-width: 500px;
  margin: 0 auto;
  color: var(--muted);
}

.proof-bridge {
  margin-top: 15px;
  color: var(--navy);
}

.sample-preview {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.sample-preview-heading {
  max-width: 480px;
  margin: 0 auto 17px;
  text-align: center;
}

.sample-preview-heading h2 {
  margin: 5px 0 6px;
  font-size: clamp(23px, 6vw, 30px);
}

.sample-preview-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.sample-track {
  max-width: 430px;
  display: flex;
  gap: 12px;
  margin-inline: auto;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.sample-track::-webkit-scrollbar { display: none; }

.sample-slide {
  min-width: 100%;
  flex: 0 0 100%;
  padding: 8px 8px 10px;
  border: 1px solid #d4dbe2;
  border-radius: 17px;
  background: #eef2f5;
  box-shadow: 0 12px 30px rgba(13, 34, 58, 0.09);
  color: var(--navy);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  text-align: left;
  cursor: zoom-in;
}

.sample-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.414;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(13, 34, 58, 0.08);
  object-fit: contain;
}

.sample-slide > span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 3px 1px;
  font-size: 11px;
  font-weight: 700;
}

.sample-slide > span strong {
  width: 22px;
  height: 22px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  font-size: 9px;
}

.sample-controls {
  max-width: 430px;
  display: grid;
  grid-template-columns: 36px 1fr auto 36px;
  align-items: center;
  gap: 9px;
  margin: 12px auto 0;
}

.sample-controls > button,
.sample-lightbox-bar button,
.sample-lightbox-nav button {
  border: 1px solid #c9d1d9;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.sample-controls > button {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-weight: 800;
}

.sample-controls > button:disabled,
.sample-lightbox-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

.sample-controls > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.sample-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sample-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c8d0d8;
  cursor: pointer;
  transition: width 160ms ease, background 160ms ease;
}

.sample-dots button.is-active {
  width: 21px;
  background: var(--orange);
}

.result-offer-card {
  max-width: 430px;
  margin: 22px auto 0;
  padding: 20px;
  border: 1px solid #d6e0e9;
  border-radius: 18px;
  background: linear-gradient(145deg, #f8fbfd 0%, #eef3f7 100%);
  box-shadow: 0 14px 32px rgba(13, 34, 58, 0.08);
  text-align: center;
}

.result-offer-kicker {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff0e6;
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.result-offer-card h3 {
  margin: 10px 0 7px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
}

.result-offer-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.result-offer-price {
  display: grid;
  gap: 3px;
  margin-top: 15px;
}

.result-offer-price strong {
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
}

.result-offer-price span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.result-offer-value {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #e7f5ef;
  color: #17614f;
  font-size: 11px;
}

.sample-buy-button,
.sample-memory-button {
  width: 100%;
}

.sample-buy-button { margin: 16px auto 0; }

.sample-memory-button {
  min-height: 46px;
  margin-top: 8px;
  padding: 11px 15px;
  font-size: 12px;
}

.sample-delivery {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

.result-share-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
}

.result-restart {
  min-height: 40px;
  margin-top: 17px;
  padding: 8px 14px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.sample-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 10px;
  background: rgba(3, 12, 22, 0.88);
  text-align: left;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.sample-lightbox-dialog {
  width: min(100%, 900px);
  height: min(94svh, 1020px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: #eef2f5;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.sample-lightbox-bar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 15px;
  background: #fff;
}

.sample-lightbox-bar > div { min-width: 0; }

.sample-lightbox-bar strong,
.sample-lightbox-bar span { display: block; }

.sample-lightbox-bar strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-lightbox-bar span {
  color: var(--muted);
  font-size: 9px;
}

.sample-lightbox-bar button {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  font-size: 22px;
  line-height: 1;
}

.sample-lightbox-image-wrap {
  overflow: auto;
  padding: 12px;
  background: #dfe5ea;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
}

.sample-lightbox-image-wrap img {
  width: min(100%, 780px);
  height: auto;
  margin-inline: auto;
  background: #fff;
  box-shadow: 0 8px 30px rgba(13, 34, 58, 0.18);
}

.sample-lightbox-nav {
  min-height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
}

.sample-lightbox-nav button {
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
}

.sample-lightbox-nav button:last-child { justify-self: end; }

.sample-lightbox-nav span {
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

body.sample-lightbox-open { overflow: hidden; }

body.showing-result-preview .sticky-buy { display: none !important; }

.eyebrow {
  display: inline-block;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.4;
}

.offer-section {
  scroll-margin-top: 50px;
  padding: 54px 0 88px;
  background: linear-gradient(145deg, #0b1f36 0, #142d4b 100%);
}

.offer-card {
  display: grid;
  gap: 32px;
  align-items: center;
}

.offer-cover {
  position: relative;
  width: min(64vw, 260px);
  margin-inline: auto;
  padding: 4px 12px 16px 4px;
}

.offer-cover::after {
  content: "";
  position: absolute;
  right: 14%;
  bottom: 4px;
  left: 10%;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  filter: blur(11px);
}

.book-mockup {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 682 / 1024;
  transform: perspective(1050px) rotateY(-7deg);
  transform-origin: center;
  filter: drop-shadow(13px 16px 15px rgba(0, 0, 0, 0.3));
}

.book-mockup::before {
  content: "";
  position: absolute;
  top: 1.2%;
  right: -8px;
  bottom: 1.3%;
  width: 10px;
  border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(0deg, #f4f1e9 0 2px, #d8d3c9 2px 3px);
  transform: skewY(33deg);
  transform-origin: left;
}

.book-mockup::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 7%;
  border-radius: 3px 8px 8px 3px;
  background: linear-gradient(90deg, rgba(2, 14, 34, 0.32), rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.book-mockup img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100% !important;
  aspect-ratio: 682 / 1024;
  object-fit: cover;
  border-radius: 3px 7px 7px 3px;
}

.offer-copy .eyebrow { color: #ffb27a; }

.offer-copy h2 {
  margin: 8px 0 12px;
  color: #fff;
}

.offer-copy > p { color: #d2dce6; }

.offer-list {
  margin: 19px 0;
  padding: 0;
  list-style: none;
  color: #e6edf4;
}

.offer-list li {
  position: relative;
  padding-left: 24px;
}

.offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #74d4aa;
  font-weight: 800;
}

.offer-list li + li { margin-top: 7px; }

.price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 15px;
}

.price strong {
  color: #fff;
  font-size: 32px;
  line-height: 1;
}

.price span {
  color: #aebdcb;
  font-size: 11px;
}

.offer-actions {
  display: grid;
  gap: 9px;
}

.offer-actions .secondary-button {
  border-color: #fff;
  background: #fff;
  color: var(--navy);
  opacity: 1;
  visibility: visible;
  -webkit-text-fill-color: var(--navy);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.share-link {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: #c7d3df;
  font-size: 12px;
  font-weight: 700;
}

.digital-note {
  margin: 13px 0 0;
  color: #9caebe !important;
  font-size: 10px;
}

.sticky-buy {
  position: fixed;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 15px;
  background: var(--orange);
  box-shadow: 0 14px 34px rgba(13, 34, 58, 0.26);
}

.sticky-buy a {
  min-height: 42px;
  flex: 1;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.sticky-buy button {
  width: 40px;
  height: 40px;
  flex: none;
  border: 0;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.13);
  color: #fff;
  font-size: 23px;
  cursor: pointer;
}

@media (hover: hover) {
  .answer-button:hover:not(:disabled) {
    border-color: var(--option-color);
    background: var(--option-soft);
    box-shadow: 0 8px 20px rgba(13, 34, 58, 0.07);
    transform: translateY(-1px);
  }

  .video-next:hover {
    background: var(--orange-dark);
    color: #fff;
  }

  .primary-button:hover { background: var(--orange-dark); }

  .secondary-button:hover,
  .quiet-button:hover { background: var(--soft); }

  .offer-actions .secondary-button:hover {
    border-color: #dce6ef;
    background: #edf2f6;
    color: var(--navy);
  }
}

@media (min-width: 560px) {
  .challenge-column { padding-top: 28px; }
  .challenge-screen { padding: 34px 36px 38px; }
  .answer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-actions { grid-template-columns: 1fr; }
}

@media (min-width: 820px) {
  .challenge-column { padding-top: 40px; }

  .challenge-screen {
    padding: 40px 42px 44px;
    border-radius: 24px;
  }

  .offer-card {
    grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
    gap: 68px;
  }

  .offer-cover { width: 270px; }

  .sticky-buy {
    right: 18px;
    left: auto;
    width: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
