:root {
  color-scheme: light;
  --ink: #18221d;
  --muted: #5d6962;
  --paper: #f4f6f2;
  --surface: #ffffff;
  --line: #d4dcd5;
  --forest: #18392b;
  --leaf: #74a95b;
  --sun: #f1b24b;
  --danger: #a54a3f;
  --shadow: 0 12px 28px rgba(24, 57, 43, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px max(24px, calc((100vw - 1440px) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: white;
  background: var(--forest);
  border-radius: 6px;
}

nav {
  display: flex;
  gap: 22px;
  font-size: 0.9rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

main {
  min-height: calc(100vh - 120px);
}

.intro-band {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: stretch;
  background: var(--forest);
  color: white;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 52px max(32px, calc((100vw - 1440px) / 2));
  padding-right: 7vw;
}

.eyebrow,
.step-label,
.result-label {
  margin: 0;
  color: var(--leaf);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.lede {
  max-width: 660px;
  margin: 0 0 28px;
  color: #dbe7df;
  font-size: 1.08rem;
}

.field-visual {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
}

.field-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(24, 57, 43, 0.38), transparent 35%);
}

.field-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 23%;
}

.field-visual figcaption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  padding: 4px 6px;
  color: white;
  background: rgba(0, 0, 0, 0.68);
  font-size: 0.68rem;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  color: var(--forest);
  background: var(--sun);
}

.secondary-button {
  color: var(--forest);
  background: white;
  border-color: var(--line);
}

.secondary-button:disabled {
  color: #929a95;
  background: #edf0ed;
  cursor: not-allowed;
}

.full-width {
  width: 100%;
}

.workspace {
  width: min(1500px, 100%);
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(330px, 0.8fr) minmax(390px, 1.1fr);
  gap: 14px;
  margin: 0 auto;
  padding: 18px;
}

.panel {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.panel-heading h2,
.panel-heading p {
  margin: 0;
}

.panel-heading h2 {
  font-size: 1.18rem;
}

.panel-heading div p {
  color: var(--muted);
  font-size: 0.82rem;
}

.step-label {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  color: white;
  background: var(--forest);
  border-radius: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

label,
legend {
  color: #2e3b34;
  font-size: 0.8rem;
  font-weight: 700;
}

input[type="date"],
input[type="number"],
select {
  width: 100%;
  height: 42px;
  margin-top: 5px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.domain-fieldset,
#questionFieldset {
  min-width: 0;
  margin: 18px 0;
  padding: 0;
  border: 0;
}

.domain-fieldset legend,
#questionFieldset legend {
  margin-bottom: 10px;
}

.domain-grid {
  display: grid;
  gap: 8px;
}

.domain-grid label {
  display: grid;
  grid-template-columns: minmax(138px, 1fr) 100px 22px;
  gap: 8px;
  align-items: center;
  min-height: 30px;
  padding-bottom: 6px;
  border-bottom: 1px solid #edf0ed;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--forest);
}

output {
  color: var(--forest);
  font-weight: 800;
  text-align: right;
}

#questionFieldset legend {
  min-height: 66px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}

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

.answer-list label {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f8faf7;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.answer-list input {
  flex: 0 0 auto;
  accent-color: var(--forest);
}

.quiz-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.answer-feedback {
  min-height: 78px;
  margin-top: 14px;
  padding: 12px;
  color: var(--muted);
  background: #f3f5f2;
  border-left: 4px solid var(--line);
}

.answer-feedback.correct {
  color: var(--forest);
  border-color: var(--leaf);
}

.answer-feedback.review {
  color: #71362e;
  border-color: var(--danger);
}

.readiness-summary {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.score-box {
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  color: white;
  background: var(--forest);
  border-radius: 50%;
}

.score-box strong {
  font-size: 2rem;
  line-height: 1;
}

.score-box span {
  margin-top: 4px;
  font-size: 0.68rem;
}

#priorityList {
  margin: 8px 0 0;
  padding-left: 20px;
}

#priorityList li {
  margin: 4px 0;
}

#priorityList span {
  color: var(--muted);
}

.plan-output {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.plan-output article {
  min-height: 86px;
  padding: 12px;
  background: #f7f9f6;
  border-left: 4px solid var(--leaf);
}

.plan-output span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-output h3,
.plan-output p {
  margin: 2px 0;
}

.plan-output h3 {
  font-size: 0.94rem;
}

.plan-output p {
  color: var(--muted);
  font-size: 0.8rem;
}

.offer-band,
.boundary-band {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) repeat(2, minmax(260px, 0.8fr));
  gap: 26px;
  align-items: start;
  padding: 46px max(28px, calc((100vw - 1380px) / 2));
}

.offer-band {
  background: #e8eee8;
  border-top: 1px solid var(--line);
}

.offer-band h2,
.boundary-band h2 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
}

.offer-band article {
  padding-left: 18px;
  border-left: 3px solid var(--forest);
}

.offer-band h3,
.offer-band p {
  margin: 4px 0 10px;
}

.offer-band p {
  color: var(--muted);
}

.price {
  color: var(--forest);
  font-size: 1.5rem;
  font-weight: 900;
}

.boundary-band {
  grid-template-columns: minmax(280px, 0.8fr) minmax(400px, 1.6fr);
  background: #fff9ec;
}

.boundary-band > p {
  margin: 0;
  color: #505a54;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px max(24px, calc((100vw - 1380px) / 2));
  color: #dbe7df;
  background: #10271e;
  font-size: 0.82rem;
}

footer span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legal {
  width: min(820px, calc(100% - 32px));
  margin: 34px auto;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal h1 {
  margin: 12px 0;
  color: var(--forest);
  font-size: 2.4rem;
}

.legal h2 {
  margin-top: 28px;
}

@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 1fr 1fr;
  }

  .results-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    padding: 10px 16px;
  }

  nav {
    gap: 10px;
    font-size: 0.76rem;
  }

  .intro-band,
  .workspace,
  .offer-band,
  .boundary-band {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    min-height: 420px;
    padding: 40px 22px;
  }

  h1 {
    font-size: 2.65rem;
  }

  .field-visual {
    min-height: 260px;
  }

  .workspace {
    padding: 12px;
  }

  .results-panel {
    grid-column: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .domain-grid label {
    grid-template-columns: minmax(120px, 1fr) 86px 18px;
  }

  .offer-band,
  .boundary-band {
    padding: 36px 22px;
  }

  footer {
    flex-direction: column;
    padding: 22px;
  }
}
