:root {
  --green: #234a3b;
  --green-dark: #18372c;
  --gold: #d6ad65;
  --ink: #202523;
  --muted: #66716c;
  --line: #d8e0dc;
  --surface: #f7f8f5;
  --surface-strong: #eaf0ed;
  --white: #ffffff;
  --error: #9f2f24;
  --shadow: 0 24px 80px rgba(22, 45, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--surface);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Source Sans 3", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

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

.noscript,
.assessment-shell {
  width: min(1120px, calc(100vw - 40px));
  min-height: calc(100svh - 48px);
  margin: 24px auto;
}

.assessment-shell {
  position: relative;
}

.intro-screen,
.capture-screen,
.result-screen,
.question-screen {
  animation: pageIn 460ms ease both;
}

.brand-line {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2 {
  margin: 0;
  color: var(--green);
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.88;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.98;
}

p {
  margin: 0;
}

.lede {
  max-width: 680px;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.32;
}

.intro-grid,
.capture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  min-height: calc(100svh - 120px);
  padding: 34px 0;
}

.intro-copy {
  display: grid;
  gap: 26px;
}

.intro-panel,
.capture-form,
.secondary-note,
.handoff-note,
.cta-band {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.intro-panel {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 44px);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.45;
}

.intro-panel p:first-child {
  color: var(--green);
  font-weight: 700;
}

.intro-actions,
.question-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.intro-actions span {
  color: var(--muted);
  font-weight: 600;
}

.primary-action,
.secondary-action,
.text-action,
.answer-option {
  cursor: pointer;
  border: 0;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  padding: 13px 20px;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.primary-action {
  background: var(--green);
  color: var(--white);
  font-weight: 700;
}

.secondary-action {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green);
  font-weight: 700;
}

.primary-action:hover,
.secondary-action:hover,
.answer-option:hover {
  transform: translateY(-1px);
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.text-action {
  padding: 4px 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  text-decoration: none;
}

.tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 18px;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  background: #dfe6e2;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--gold);
  transition: width 340ms ease;
}

.question-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  min-height: calc(100svh - 210px);
  padding: clamp(34px, 7vw, 86px) 0 28px;
}

.question-copy {
  display: grid;
  gap: 18px;
}

.instruction {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.4;
}

.answer-list {
  display: grid;
  gap: 10px;
}

.answer-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  text-align: left;
  transition: border 180ms ease, background 180ms ease, transform 180ms ease;
}

.answer-option span {
  font-size: 1.06rem;
  font-weight: 700;
}

.answer-option strong {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--green);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.answer-option.selected {
  border-color: var(--green);
  background: var(--surface-strong);
}

.answer-option.selected strong {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.question-footer {
  justify-content: space-between;
  padding: 18px 0 8px;
  border-top: 1px solid var(--line);
}

.capture-layout {
  align-items: center;
}

.capture-layout > div {
  display: grid;
  gap: 20px;
}

.capture-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
}

label {
  display: grid;
  gap: 7px;
  color: var(--green);
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 12px 14px;
}

input:focus {
  outline: 2px solid rgba(214, 173, 101, 0.45);
  outline-offset: 2px;
}

.form-error {
  color: var(--error);
  font-weight: 700;
}

.result-screen {
  padding-bottom: 44px;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: clamp(34px, 7vw, 74px) 0 28px;
  border-bottom: 1px solid var(--line);
}

.result-hero div {
  display: grid;
  gap: 18px;
}

.secondary-note {
  margin: 24px 0 0;
  padding: 22px 24px;
}

.handoff-note {
  margin: 24px 0 0;
  padding: 18px 22px;
  background: #fbf6eb;
  box-shadow: none;
}

.handoff-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 1.02rem;
}

.handoff-note p {
  color: var(--ink);
  line-height: 1.4;
}

.secondary-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 1.05rem;
}

.secondary-note p {
  color: var(--ink);
  line-height: 1.4;
}

.result-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.result-block {
  min-height: 220px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.82);
}

.result-block h2 {
  margin-bottom: 12px;
  font-family: "Source Sans 3", Arial, sans-serif;
  color: var(--green);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-block p,
.cta-band p {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.48;
}

.cta-band {
  display: grid;
  gap: 18px;
  padding: clamp(26px, 5vw, 46px);
  background: var(--green);
}

.cta-band h2,
.cta-band p {
  color: var(--white);
}

.cta-band h2 {
  max-width: 830px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.cta-band .primary-action {
  background: var(--gold);
  color: var(--green-dark);
}

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

@media (max-width: 820px) {
  .noscript,
  .assessment-shell {
    width: min(100% - 28px, 720px);
    min-height: calc(100svh - 28px);
    margin: 14px auto;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .intro-grid,
  .capture-layout,
  .question-layout,
  .result-hero,
  .result-detail {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .capture-layout {
    min-height: auto;
    padding: 22px 0 34px;
  }

  .question-layout {
    min-height: auto;
    padding: 34px 0 24px;
  }

  .result-hero {
    align-items: start;
  }

  .answer-option {
    min-height: 58px;
  }

  .tool-header {
    align-items: center;
  }
}

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