:root {
  --background: #fff9f2;
  --cream: #fff9f2;
  --paper: #fff;
  --paper-warm: #fff0e0;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --muted-soft: rgba(90, 90, 90, 0.62);
  --accent: #ff5a3c;
  --accent-2: #ff8c2e;
  --amber: #ffb830;
  --gold-light: #ffd666;
  --accent-soft: rgba(255, 90, 60, 0.1);
  --line: rgba(255, 90, 60, 0.18);
  --green: #ff8c2e;
  --danger: #c73d2a;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 140, 46, 0.12), transparent 24rem),
    linear-gradient(180deg, var(--cream) 0%, var(--background) 100%);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.app {
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.app::before {
  background:
    radial-gradient(ellipse at 10% 30%, transparent 44%, rgba(255, 90, 60, 0.1) 44.5%, transparent 45.2%),
    radial-gradient(ellipse at 74% 10%, transparent 42%, rgba(255, 140, 46, 0.12) 42.5%, transparent 43.2%),
    radial-gradient(ellipse at 46% 78%, transparent 45%, rgba(255, 90, 60, 0.08) 45.5%, transparent 46.2%);
  background-size:
    980px 720px,
    760px 620px,
    980px 720px;
  content: "";
  inset: 0;
  opacity: 0.7;
  pointer-events: none;
  position: absolute;
}

.screen {
  align-items: center;
  display: flex;
  inset: 0;
  min-height: 100svh;
  opacity: 0;
  padding: 30px 20px;
  pointer-events: none;
  position: absolute;
  transform: translateX(42px);
  transition:
    opacity 180ms ease,
    transform 260ms ease;
  width: 100%;
  z-index: 1;
}

.screen.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  transform: translateX(0);
}

.screen.is-exiting {
  opacity: 0;
  transform: translateX(-42px);
}

.stack,
.question-shell,
.result-shell,
.thanks-shell {
  margin: 0 auto;
  max-width: 720px;
  width: 100%;
}

.stack {
  display: grid;
  gap: 24px;
  padding-block: 24px;
}

.eyebrow,
.question-count {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0;
  text-transform: uppercase;
}

.question-meta {
  align-items: center;
  display: flex;
  gap: 14px;
  min-height: 34px;
}

.back-button {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 90, 60, 0.16);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 34px;
  padding: 7px 14px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.back-button:hover,
.back-button:focus-visible {
  background: #ffffff;
  border-color: rgba(255, 90, 60, 0.28);
  color: var(--accent);
  outline: 0;
  transform: translateY(-1px);
}

.back-button[hidden] {
  display: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: var(--ink);
  font-size: clamp(3rem, 12vw, 6.4rem);
  line-height: 0.9;
  max-width: 10ch;
  text-wrap: balance;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.08rem, 3.7vw, 1.35rem);
  font-weight: 450;
  line-height: 1.45;
  max-width: 34rem;
}

.primary-button {
  align-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(255, 90, 60, 0.3);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 64px;
  padding: 17px 26px;
  transition:
    filter 160ms ease,
    transform 160ms ease;
  width: fit-content;
}

.primary-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  cursor: wait;
  filter: grayscale(0.3) brightness(0.72);
}

.question-shell {
  display: grid;
  gap: 28px;
  opacity: 1;
  padding-block: 10px;
  transform: translateX(0);
  transition:
    opacity 180ms ease,
    transform 260ms ease;
}

.question-shell.is-leaving {
  opacity: 0;
  transform: translateX(-42px);
}

.question-shell.is-entering {
  opacity: 0;
  transform: translateX(42px);
}

.question-text {
  color: var(--ink);
  font-size: clamp(1.55rem, 5.5vw, 2.85rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.08;
  max-width: 22ch;
  text-wrap: balance;
}

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

.answer-button {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 90, 60, 0.16);
  border-left: 4px solid rgba(255, 90, 60, 0.72);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(255, 120, 50, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  color: var(--ink);
  cursor: pointer;
  font-size: clamp(1.12rem, 4.2vw, 1.46rem);
  font-weight: 620;
  line-height: 1.28;
  min-height: 114px;
  padding: 25px 24px 25px 22px;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
  width: 100%;
}

.answer-button:hover,
.answer-button:focus-visible {
  background: #ffffff;
  border-color: rgba(255, 90, 60, 0.28);
  box-shadow: 0 12px 40px rgba(255, 120, 50, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  outline: 0;
  transform: translateY(-2px);
}

.answer-button.is-selected {
  background: var(--accent-soft);
  border-color: rgba(255, 90, 60, 0.42);
  border-left-color: var(--accent);
  color: var(--ink);
  transform: translateX(2px);
}

.answer-button:nth-child(2) {
  border-left-color: rgba(255, 140, 46, 0.72);
}

.result-shell {
  display: grid;
  gap: 28px;
  padding-block: 30px;
}

.matrix-card {
  margin: 0 auto;
  max-width: min(100%, 600px);
  padding: 0 0 26px 32px;
  position: relative;
  width: 100%;
}

.matrix {
  aspect-ratio: 1;
  display: block;
  overflow: visible;
  width: 100%;
}

.matrix-bg {
  fill: rgba(255, 255, 255, 0.68);
  stroke: rgba(255, 90, 60, 0.34);
  stroke-width: 2;
}

.matrix-quadrant {
  fill: rgba(255, 90, 60, 0.025);
  transition: fill 220ms ease;
}

.matrix-quadrant.is-active {
  fill: rgba(255, 90, 60, 0.12);
}

.matrix-line {
  stroke: rgba(255, 90, 60, 0.34);
  stroke-width: 1.5;
}

.matrix-tick {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-width: 1.6;
}

.matrix-axis {
  color: var(--muted-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  position: absolute;
  text-transform: uppercase;
}

.matrix-axis--initiative {
  left: 0;
  top: 50%;
  transform: translate(-46%, -50%) rotate(-90deg);
  transform-origin: center;
}

.matrix-axis--craft {
  bottom: 0;
  left: calc(50% + 16px);
  transform: translateX(-50%);
}

.matrix-label {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: fill 180ms ease;
}

.matrix-label.is-active {
  fill: var(--accent);
}

.matrix-dot-group {
  --dot-x: 160px;
  --dot-y: 160px;
  transform: translate(var(--dot-x), var(--dot-y));
}

.matrix-dot-group.is-animating {
  animation: dot-wander 2.1s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.matrix-dot,
.matrix-dot-pulse {
  fill: var(--accent);
}

.matrix-dot {
  filter: drop-shadow(0 0 13px rgba(255, 90, 60, 0.42));
}

.matrix-dot-pulse {
  animation: matrix-pulse 2.2s ease-in-out infinite;
  opacity: 0.32;
  transform-box: fill-box;
  transform-origin: center;
}

.reveal {
  display: grid;
  gap: 16px;
  text-align: center;
}

.result-copy,
.email-delayed {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 320ms ease,
    transform 320ms ease;
}

.result-copy.is-visible,
.email-delayed.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal h2 {
  color: var(--accent);
  font-size: clamp(2.05rem, 6.2vw, 3.65rem);
  line-height: 0.95;
  text-wrap: balance;
}

.reveal p:last-child {
  color: var(--ink);
  font-size: clamp(1rem, 3vw, 1.28rem);
  font-weight: 650;
  line-height: 1.35;
  margin: 0 auto;
  max-width: 32rem;
}

.email-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 90, 60, 0.14);
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(255, 120, 50, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  display: grid;
  gap: 18px;
  padding: 22px;
}

.email-card h3 {
  font-size: clamp(1.7rem, 7vw, 2.7rem);
  line-height: 1;
}

.email-card p {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 450;
  line-height: 1.5;
}

input[type="email"] {
  background: #ffffff;
  border: 1px solid rgba(255, 90, 60, 0.18);
  border-radius: 999px;
  color: var(--ink);
  min-height: 62px;
  outline: 0;
  padding: 16px 18px;
  width: 100%;
}

input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 90, 60, 0.13);
}

.form-error {
  color: var(--danger);
  display: none;
}

.form-error.is-visible {
  display: block;
}

.thanks-shell {
  display: grid;
  gap: 18px;
  text-align: center;
}

.thanks-shell h2 {
  color: var(--accent);
  font-size: clamp(2.7rem, 12vw, 5.6rem);
  line-height: 0.95;
}

.thanks-shell p {
  color: var(--ink);
  font-size: clamp(1.1rem, 4vw, 1.45rem);
  line-height: 1.4;
}

#submittedEmail {
  color: var(--green);
  overflow-wrap: anywhere;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (min-width: 720px) {
  .screen {
    padding: 52px 56px;
  }

  .question-shell {
    gap: 32px;
  }

  .answers {
    gap: 16px;
  }

  .answer-button {
    min-height: 124px;
    padding: 29px 30px 29px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen,
  .question-shell,
  .reveal,
  .answer-button,
  .primary-button {
    transition: none;
  }

  .matrix-dot-pulse {
    animation: none;
  }

  .matrix-dot-group.is-animating {
    animation: none;
  }
}

@keyframes dot-wander {
  0% {
    transform: translate(160px, 160px);
  }

  24% {
    transform: translate(188px, 132px);
  }

  46% {
    transform: translate(122px, 182px);
  }

  68% {
    transform: translate(174px, 202px);
  }

  100% {
    transform: translate(var(--dot-x), var(--dot-y));
  }
}

@keyframes matrix-pulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(1);
  }

  50% {
    opacity: 0;
    transform: scale(1.3);
  }
}
