:root {
  --coral: #e17f5e;
  --coral-dark: #c96547;
  --green: #1b3a31;
  --green-soft: #294f43;
  --cream: #f4efe5;
  --cream-deep: #eadfce;
  --ink: #2a2a2a;
  --white: #ffffff;
  --yellow: #d4a63f;
  --soft-shadow: 0 22px 70px rgba(27, 58, 49, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: var(--green);
  background:
    radial-gradient(circle at 12% 18%, rgba(225, 127, 94, 0.16), transparent 28rem),
    linear-gradient(135deg, var(--cream) 0%, #fbf7ef 52%, var(--cream-deep) 100%);
}

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.quiz-frame {
  width: min(100%, 980px);
  min-height: 640px;
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 46px);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(27, 58, 49, 0.1);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.quiz-frame::after {
  content: "";
  position: absolute;
  inset: auto 46px 26px 46px;
  height: 2px;
  background: var(--coral);
  opacity: 0.58;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(36px, 6vw, 72px);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--coral), var(--green));
}

.brand-name,
.brand-subtitle {
  margin: 0;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0;
}

.brand-subtitle {
  color: rgba(27, 58, 49, 0.72);
  font-size: 0.86rem;
}

.screen {
  display: none;
  animation: rise 360ms ease both;
}

.screen.active {
  display: block;
}

.screen-intro.active {
  display: block;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--coral);
  font-weight: 800;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.15rem, 7vw, 5.7rem);
  line-height: 0.95;
  font-weight: 500;
}

h1 span {
  color: var(--coral);
  font-weight: 800;
}

h1 strong {
  display: inline-block;
  color: var(--green);
  font-weight: 800;
}

.intro-text {
  max-width: 560px;
  margin: 24px 0 30px;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 16px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
input:focus-visible,
.option-card:focus-within {
  outline: 3px solid rgba(225, 127, 94, 0.45);
  outline-offset: 3px;
}

.button.primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(225, 127, 94, 0.25);
}

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

.button.secondary {
  background: var(--green);
  color: var(--white);
}

.button.full {
  width: 100%;
}

.screen-question,
.screen-lead,
.screen-result {
  max-width: 760px;
  margin: 0 auto;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(27, 58, 49, 0.14);
  margin-bottom: 34px;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  transition: width 240ms ease;
}

.screen-question h2 {
  margin: 0 0 24px;
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  line-height: 1.18;
}

.options-list {
  display: grid;
  gap: 13px;
}

.option-card {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(27, 58, 49, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.option-card:hover {
  transform: translateY(-1px);
  border-color: rgba(225, 127, 94, 0.5);
}

.option-card input {
  accent-color: var(--coral);
  margin-top: 3px;
}

.option-card.selected {
  background: rgba(225, 127, 94, 0.1);
  border-color: var(--coral);
}

.navigation-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.form-error {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--coral-dark);
  font-weight: 700;
}

.result-card {
  padding: clamp(24px, 4vw, 34px);
  border-radius: 18px;
  background: var(--green);
  color: var(--white);
}

.result-card .eyebrow,
.result-card h2,
.result-card p,
.result-card strong {
  color: var(--white);
}

.result-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.result-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  line-height: 1.15;
}

.result-dot {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #67a772;
}

.result-emoji {
  flex: 0 0 auto;
  font-size: 1.45rem;
  line-height: 1;
}

.result-card p {
  line-height: 1.7;
}

.score-pill {
  display: inline-flex;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 30px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(27, 58, 49, 0.12);
}

.form-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  line-height: 1.08;
}

.form-heading .eyebrow {
  color: var(--coral);
}

.form-heading p {
  margin: 0;
  color: var(--ink);
}

.lead-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.lead-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(27, 58, 49, 0.22);
  border-radius: 12px;
  color: var(--green);
  background: var(--white);
}

.result-note {
  max-width: 640px;
  margin: 22px 0 24px;
  color: var(--ink);
  line-height: 1.7;
}

.hidden {
  display: none !important;
}

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

@media (max-width: 760px) {
  .page-shell {
    padding: 0;
    place-items: stretch;
  }

  .quiz-frame {
    min-height: 100vh;
    border-radius: 0;
    border: 0;
    padding: 24px 18px 46px;
  }

  .quiz-frame::after {
    left: 18px;
    right: 18px;
  }

  .brand-row {
    margin-bottom: 36px;
  }

  .navigation-row {
    position: sticky;
    bottom: 12px;
    align-items: stretch;
  }

  .navigation-row .button {
    flex: 1;
  }
}
