:root {
  --bg: #f5f1ea;
  --page: #fbf8f2;
  --card: #fffdf9;
  --soft: #f3ede3;
  --line: rgba(23, 72, 62, 0.12);
  --text: #20312d;
  --muted: #5f6d68;
  --green: #17483e;
  --green-soft: #edf4f1;
  --gold: #bf8e3c;
  --shadow: 0 20px 52px rgba(54, 55, 46, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(191, 142, 60, 0.08), transparent 24%),
    linear-gradient(180deg, #faf7f2, #f1ece4 58%, #ece6dd);
  color: var(--text);
  font-family: "Source Sans 3", system-ui, sans-serif;
}

body {
  padding: 22px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  max-width: 1420px;
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}

.brand-logo {
  display: block;
  width: min(540px, 54vw);
  height: auto;
}

.site-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.98rem;
}

.site-nav a:hover {
  color: var(--green);
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: stretch;
}

.hero-panel,
.tool-panel {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 780px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.9)),
    linear-gradient(145deg, #faf5ee, #f5efe6 60%, #f1eadf);
}

.hero-inner {
  max-width: 520px;
}

.eyebrow,
.tool-label,
.section-kicker,
.label,
.pdf-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: rgba(32, 49, 45, 0.62);
}

.hero-panel h1,
.tool-topbar h2,
.section-intro h3,
.results-summary h3,
.pdf-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-panel h1 {
  font-size: clamp(3.4rem, 5vw, 5.4rem);
  margin: 10px 0 18px;
  max-width: 8.5ch;
}

.hero-text,
.hero-support,
.content-block p,
.section-intro p,
.result-copy p,
.insight-card p,
.reflection-list li,
label span,
textarea,
input {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  font-size: 1.14rem;
  max-width: 31ch;
}

.hero-divider {
  width: 88px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(191, 142, 60, 0.2));
  margin: 26px 0 24px;
}

.hero-support {
  max-width: 34ch;
  font-size: 1rem;
}

.hero-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
  color: #2d443e;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-note {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(23, 72, 62, 0.05);
  border: 1px solid rgba(23, 72, 62, 0.08);
}

.hero-note p:last-child {
  margin: 8px 0 0;
  color: #314741;
  line-height: 1.65;
}

.tool-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tool-topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 28px 30px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.tool-topbar h2 {
  font-size: clamp(2rem, 3.7vw, 3rem);
  margin: 8px 0 0;
}

.progress-meta {
  min-width: 220px;
  display: grid;
  gap: 10px;
}

.progress-meta span {
  color: var(--muted);
  font-size: 0.94rem;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(23, 72, 62, 0.08);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #e1be79);
  transition: width 320ms ease;
}

.step {
  display: none;
  flex: 1;
  padding: 30px;
}

.step.active {
  display: block;
  animation: fadeUp 320ms ease;
}

.content-block h3,
.section-intro h3 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 14px;
}

.context-form {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.context-form label {
  display: grid;
  gap: 10px;
}

.context-form textarea,
.context-form input {
  width: 100%;
  border: 1px solid rgba(23, 72, 62, 0.12);
  background: #fffdfa;
  color: var(--text);
  border-radius: 18px;
  padding: 16px 18px;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease;
}

.context-form textarea:focus,
.context-form input:focus {
  border-color: rgba(191, 142, 60, 0.68);
  background: #ffffff;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.section-intro {
  margin-bottom: 22px;
}

.questions-host {
  display: grid;
  gap: 14px;
}

.question-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(23, 72, 62, 0.08);
  background: #fffdfa;
}

.question-text {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.55;
}

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

.choice {
  min-height: 70px;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(23, 72, 62, 0.08);
  background: var(--soft);
  display: grid;
  place-items: center;
  text-align: center;
  color: #51605c;
  cursor: pointer;
  transition: all 200ms ease;
}

.choice:hover {
  border-color: rgba(191, 142, 60, 0.32);
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  font-size: 0.92rem;
  line-height: 1.32;
}

.choice.selected {
  background: linear-gradient(180deg, rgba(191, 142, 60, 0.22), rgba(23, 72, 62, 0.12));
  border-color: rgba(191, 142, 60, 0.52);
  color: #17342d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.results-shell {
  display: grid;
  gap: 24px;
}

.results-summary h3 {
  font-size: clamp(2.4rem, 3.6vw, 3.6rem);
  margin: 8px 0 12px;
}

.result-reframe {
  max-width: 50ch;
  font-size: 1.05rem;
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.result-card,
.insight-card {
  padding: 22px;
  border-radius: 22px;
  background: #fffdfa;
  border: 1px solid rgba(23, 72, 62, 0.08);
}

.result-scoreline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(23, 72, 62, 0.08);
}

.result-scoreline strong {
  display: block;
  margin-top: 6px;
  font-size: 1.8rem;
  color: #8d6321;
}

.secondary-pattern {
  max-width: 24ch;
  color: #425651;
  font-size: 0.92rem;
  line-height: 1.55;
}

.secondary-pattern.hidden {
  display: none;
}

.result-copy {
  display: grid;
  gap: 20px;
}

.insight-card {
  background:
    linear-gradient(180deg, rgba(23, 72, 62, 0.05), rgba(255, 255, 255, 0.7)),
    #fffdfa;
}

.mini-divider {
  height: 1px;
  background: rgba(23, 72, 62, 0.08);
  margin: 18px 0;
}

.reflection-list {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action,
.ghost-action,
.nav-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.primary-action,
.nav-button {
  background: var(--green);
  color: #f8f2e7;
}

.secondary-action {
  background: rgba(23, 72, 62, 0.08);
  color: #1f443b;
}

.ghost-action,
.nav-button.muted {
  background: transparent;
  border: 1px solid rgba(23, 72, 62, 0.14);
  color: var(--muted);
}

.primary-action:hover,
.secondary-action:hover,
.ghost-action:hover,
.nav-button:hover {
  transform: translateY(-1px);
}

.tool-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 30px 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.scale-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: rgba(32, 49, 45, 0.62);
  font-size: 0.84rem;
}

.scale-note span:first-child {
  color: #253c36;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.hidden {
  display: none !important;
}

.pdf-shell {
  width: 940px;
  padding: 48px 52px 54px;
  background: #fbf8f2;
  color: #20312d;
  font-family: "Source Sans 3", system-ui, sans-serif;
}

.pdf-logo {
  width: 420px;
  height: auto;
  margin-bottom: 28px;
}

.pdf-title {
  font-size: 3.4rem;
  margin: 12px 0 10px;
}

.pdf-subtitle {
  font-size: 1.25rem;
  color: #365048;
  margin: 0 0 28px;
}

.pdf-section {
  margin-top: 28px;
}

.pdf-section h2,
.pdf-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 10px;
  color: #17483e;
}

.pdf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.pdf-card {
  padding: 20px;
  background: #fffdfa;
  border: 1px solid rgba(23, 72, 62, 0.08);
  border-radius: 18px;
}

.pdf-section p,
.pdf-card p,
.pdf-section li,
.pdf-footer p {
  color: #425651;
  line-height: 1.7;
}

.pdf-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.pdf-footer {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 72, 62, 0.12);
}

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

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

  .hero-panel {
    min-height: auto;
  }

  .results-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    padding: 14px;
  }

  .site-header,
  .tool-topbar,
  .tool-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    width: min(420px, 100%);
  }

  .hero-panel,
  .tool-panel {
    border-radius: 22px;
  }

  .hero-panel,
  .tool-topbar,
  .step,
  .tool-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .field-row,
  .choices,
  .pdf-grid {
    grid-template-columns: 1fr;
  }

  .nav-actions,
  .results-actions {
    width: 100%;
  }

  .nav-button,
  .primary-action,
  .secondary-action,
  .ghost-action {
    width: 100%;
    text-align: center;
  }
}
