:root {
  --green: #234a3b;
  --gold: #d6ad65;
  --ink: #171f1b;
  --muted: #667168;
  --line: #dbe2dc;
  --paper: #fbfaf6;
  --white: #fffdf9;
  --charcoal: #18201b;
  --accent: var(--gold);
  --accent-dark: #8f6b2f;
  --sage: var(--green);
  --shadow: 0 24px 70px rgba(35, 74, 59, 0.14);
  font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(120deg, rgba(255, 253, 249, 0.9), rgba(251, 250, 246, 0.94)),
    radial-gradient(circle at 80% 0%, rgba(214, 173, 101, 0.16), transparent 28%),
    var(--paper);
}

button,
a,
input {
  font: inherit;
}

a {
  color: inherit;
}

main {
  min-height: 100vh;
}

.hero {
  min-height: 92svh;
  padding: 48px clamp(22px, 5vw, 78px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(145deg, rgba(35, 74, 59, 0.98), rgba(24, 32, 27, 0.96)),
    linear-gradient(90deg, rgba(214, 173, 101, 0.14), transparent 52%);
  color: var(--white);
}

.heroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.heroCopy {
  max-width: 760px;
  animation: rise 700ms ease both;
}

.brandMark {
  display: inline-flex;
  align-items: center;
  width: min(420px, 86vw);
  margin-bottom: 32px;
}

.brandMark img {
  display: block;
  width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 20px;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  font-weight: 750;
  color: rgba(255, 253, 249, 0.78);
}

.hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8.4vw, 7.8rem);
  line-height: 0.94;
  font-weight: 600;
  max-width: 780px;
}

.lede {
  margin: 28px 0 0;
  max-width: 620px;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1.32;
  color: rgba(255, 253, 249, 0.94);
}

.support {
  margin: 18px 0 0;
  max-width: 570px;
  color: rgba(255, 253, 249, 0.76);
  font-size: 1.03rem;
  line-height: 1.65;
}

.heroActions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.primaryAction,
.secondaryAction,
.textAction {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.primaryAction {
  padding: 0 20px;
  background: var(--accent);
  color: var(--green);
  font-weight: 760;
}

.primaryAction svg,
.secondaryAction svg,
.textAction svg,
.panelHeader svg,
.gateInner > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gateInner > svg {
  width: 30px;
  height: 30px;
  color: var(--green);
}

.primaryAction:hover,
.secondaryAction:hover,
.textAction:hover {
  transform: translateY(-2px);
}

.primaryAction:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.duration {
  color: rgba(255, 253, 249, 0.72);
  font-size: 0.95rem;
}

.signalPanel {
  padding: 28px;
  border: 1px solid rgba(214, 173, 101, 0.35);
  background: rgba(255, 253, 249, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  animation: fadeIn 760ms 180ms ease both;
}

.panelHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  margin-bottom: 24px;
}

.signalList {
  display: grid;
  gap: 18px;
}

.signalRow {
  animation: slideLine 700ms ease both;
  animation-delay: var(--delay);
}

.signalRow span {
  display: block;
  color: rgba(255, 253, 249, 0.86);
  margin-bottom: 8px;
}

.signalLine {
  height: 5px;
  background: linear-gradient(90deg, rgba(214, 173, 101, 0.95), rgba(255, 253, 249, 0.12));
  border-radius: 999px;
  transform-origin: left;
}

.introBand,
.audit,
.resultGate {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
}

.introBand {
  padding: 56px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  align-items: end;
}

.introBand h2 {
  margin: 0;
  max-width: 760px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.02;
  font-weight: 600;
}

.introBand p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 690px;
  margin: 18px 0 0;
}

.progressWrap {
  display: grid;
  gap: 10px;
  font-weight: 760;
  color: var(--charcoal);
}

.progressTrack,
.miniTrack {
  overflow: hidden;
  background: rgba(35, 74, 59, 0.14);
  border-radius: 999px;
}

.progressTrack {
  height: 9px;
}

.progressFill,
.miniTrack div {
  height: 100%;
  background: var(--sage);
  border-radius: inherit;
  transition: width 260ms ease;
}

.audit {
  padding: 20px 0 54px;
  display: grid;
  gap: 22px;
}

.category {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.categoryIntro {
  position: sticky;
  top: 20px;
  align-self: start;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
}

.number {
  color: var(--green);
  font-weight: 820;
}

.category h2,
.resultGate h2,
.results h2,
.ctaPanel h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
}

.category h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  line-height: 1.05;
}

.categoryIntro p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.prompt {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 249, 0.76);
}

.prompt legend {
  float: left;
  width: 100%;
  margin-bottom: 16px;
  font-weight: 730;
  line-height: 1.42;
}

.prompt legend + * {
  clear: both;
}

.scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.scale label {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(35, 74, 59, 0.16);
  border-radius: 5px;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, background 180ms ease;
}

.scale label:hover {
  transform: translateY(-1px);
  border-color: rgba(35, 74, 59, 0.5);
}

.scale label.selected {
  color: var(--ink);
  border-color: var(--green);
  background: rgba(35, 74, 59, 0.08);
}

.scale input {
  position: absolute;
  opacity: 0;
}

.dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(35, 74, 59, 0.09);
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 780;
}

.selected .dot {
  background: var(--green);
  color: var(--white);
}

.resultGate {
  padding: 26px 0 80px;
}

.gateInner,
.results {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gateInner {
  padding: clamp(30px, 5vw, 56px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.gateInner h2,
.results h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
}

.gateInner p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 10px;
}

.helper {
  color: var(--muted);
  font-size: 0.92rem;
}

.results {
  padding: clamp(24px, 4vw, 48px);
}

.results .eyebrow {
  color: var(--green);
}

.resultLead p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
}

.resultStats {
  margin: 32px 0;
  display: grid;
  grid-template-columns: 0.65fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.resultStats > div {
  background: #fcfbf7;
  padding: 22px;
}

.statValue {
  display: block;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.7vw, 2.5rem);
  line-height: 1;
  color: var(--green);
}

.statLabel {
  display: block;
  margin-top: 11px;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
}

.resultStats p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.resultBody {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.resultBody h3,
.scoreTable strong,
.ctaPanel h3 {
  margin: 0;
}

.resultBody p,
.scoreRow span,
.ctaPanel p {
  color: var(--muted);
  line-height: 1.62;
}

.scoreTable {
  display: grid;
  gap: 16px;
  margin: 34px 0;
}

.scoreRow {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(160px, 280px) 54px;
  gap: 18px;
  align-items: center;
}

.scoreRow div:first-child {
  display: grid;
  gap: 4px;
}

.miniTrack {
  height: 8px;
}

.ctaPanel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px;
  background: var(--green);
  color: var(--white);
}

.ctaPanel h3 {
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.1;
}

.ctaPanel p {
  max-width: 700px;
  color: rgba(255, 253, 249, 0.76);
  margin: 12px 0 0;
}

.secondaryAction {
  flex: 0 0 auto;
  border: 1px solid rgba(214, 173, 101, 0.75);
  padding: 0 18px;
  color: var(--white);
}

.secondaryAction:hover {
  background: rgba(214, 173, 101, 0.12);
}

.resultActions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.textAction {
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--charcoal);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideLine {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-block: 42px;
  }

  .heroGrid,
  .introBand,
  .category,
  .resultStats,
  .resultBody {
    grid-template-columns: 1fr;
  }

  .signalPanel {
    max-width: 620px;
  }

  .categoryIntro {
    position: static;
  }

  .scale {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scoreRow {
    grid-template-columns: 1fr 72px;
  }

  .scoreRow .miniTrack {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ctaPanel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 34px 20px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 18vw, 4.4rem);
  }

  .introBand,
  .audit,
  .resultGate {
    width: min(100% - 28px, 1120px);
  }

  .scale {
    grid-template-columns: 1fr;
  }

  .scale label {
    min-height: 56px;
  }

  .prompt {
    padding: 16px;
  }
}

@media print {
  .hero,
  .introBand,
  .audit,
  .resultGate > .gateInner,
  .resultActions,
  .ctaPanel a {
    display: none !important;
  }

  body {
    background: white;
  }

  .resultGate,
  .results {
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
  }
}
