:root {
  --cream: #f8f1e8;
  --paper: #fffdf8;
  --ink: #3d201f;
  --green: #29481e;
  --moss: #6c7b5d;
  --gold: #b69231;
  --rust: #8b4339;
  --rust-deep: #74322d;
  --line: #e2d8c7;
  --soft-line: #eee4d4;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(61, 32, 31, 0.08);
  --font-sans: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --font-script: "Brush Script MT", "Snell Roundhand", "Segoe Script", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
a,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.brand-bar {
  width: calc(100% - 40px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark img {
  width: 132px;
  height: auto;
}

.brand-mark-wide img {
  width: 230px;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-links a,
.secondary-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

main {
  width: calc(100% - 40px);
  max-width: 1120px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.tool-hero {
  min-height: 356px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 38%);
  align-items: start;
  gap: 36px;
  padding: 30px 0 38px;
  border-top: 1px solid rgba(139, 67, 57, 0.48);
}

.eyebrow,
.panel-kicker,
.question-theme {
  margin: 0 0 10px;
  color: var(--moss);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-copy,
.context-panel,
.quiz-panel,
.result-panel,
.next-step-panel,
.result-header {
  min-width: 0;
}

h1,
.question-block h2,
.result-header h2,
.answer-title,
.check-item span {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 650px;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 58px;
  line-height: 0.98;
}

h1 span {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-script);
  font-size: 76px;
  font-weight: 400;
}

.lead {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: 21px;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signal-row span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  background: var(--paper);
  color: var(--rust);
  font-size: 14px;
  font-weight: 800;
}

.hero-photo {
  align-self: start;
  margin: 0;
  border: 10px solid var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 755 / 540;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.context-panel,
.quiz-panel,
.result-panel,
.next-step-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.context-panel {
  position: sticky;
  top: 18px;
  padding: 26px;
}

.context-panel h2,
.next-step-panel h2,
.result-header h2 {
  color: var(--ink);
  font-size: 30px;
  line-height: 1.12;
  margin-bottom: 18px;
}

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

.theme-list li {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--ink);
  font-size: 15px;
}

.theme-list span {
  width: 13px;
  height: 13px;
  margin-top: 6px;
  border: 2px solid var(--green);
  border-radius: 3px;
}

.context-note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--soft-line);
  color: #6b5149;
  font-size: 13px;
}

.quiz-panel {
  min-height: 560px;
  padding: 30px;
}

.progress-wrap {
  margin-bottom: 32px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 9px;
  color: var(--moss);
  font-size: 13px;
  font-weight: 800;
}

.progress-track,
.meter-track {
  height: 10px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft-line);
}

.progress-fill,
.meter-fill {
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: var(--green);
  transition: width 220ms ease;
}

.question-block h2 {
  max-width: 720px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 36px;
  line-height: 1.12;
}

.question-block p {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: 18px;
}

.answer-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.answer-option {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.answer-option:hover,
.answer-option:focus-visible {
  border-color: var(--gold);
  outline: none;
}

.answer-option[aria-pressed="true"] {
  border-color: var(--green);
  background: #f1f5eb;
}

.answer-dot {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 2px solid var(--moss);
  border-radius: 50%;
  background: var(--paper);
}

.answer-option[aria-pressed="true"] .answer-dot {
  border-color: var(--green);
  box-shadow: inset 0 0 0 5px var(--paper);
  background: var(--green);
}

.answer-title {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

.answer-hint {
  display: block;
  margin-top: 4px;
  color: #6b5149;
  font-size: 14px;
}

.quiz-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.offer-button,
.text-button {
  min-height: 46px;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button,
.offer-button {
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--white);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--green);
}

.text-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--rust);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.result-section {
  margin-top: 42px;
  padding-top: 8px;
}

.profile-bars {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 0 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.profile-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.profile-row > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.profile-track {
  height: 12px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft-line);
}

.profile-fill {
  height: 100%;
  border-radius: 6px;
  background: var(--gold);
}

.email-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 32px;
  margin-bottom: 26px;
  padding: 30px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.email-gate h2 {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 30px;
  line-height: 1.12;
}

.email-gate form {
  display: grid;
  gap: 8px;
}

.email-gate form > label:not(.consent-row) {
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.email-gate input[type="text"],
.email-gate input[type="email"],
.email-gate input:not([type]) {
  width: 100%;
  min-height: 46px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
}

.email-gate input:focus {
  border-color: var(--gold);
  outline: none;
}

.consent-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 5px 0 8px;
  color: #6b5149;
  font-size: 12px;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.form-note {
  margin: 3px 0 0;
  color: var(--rust);
  font-size: 12px;
}

.email-benefit {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.optional-consent {
  padding-top: 10px;
  border-top: 1px solid var(--soft-line);
}

.form-success {
  margin: 8px 0 0;
  padding: 12px;
  border: 1px solid #b7c7aa;
  border-radius: 8px;
  background: #f1f5eb;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.email-preview {
  margin: 0 0 26px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.email-preview > h2 {
  max-width: 760px;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 34px;
  line-height: 1.12;
}

.email-preview > h3,
.email-core h3,
.success-criteria h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
}

.email-subject {
  display: inline-block;
  margin-bottom: 20px;
  border-radius: 6px;
  padding: 7px 10px;
  background: var(--soft-line);
  color: var(--rust);
  font-size: 13px;
  font-weight: 800;
}

.email-core,
.success-criteria {
  margin: 24px 0;
  padding: 20px;
  border-left: 4px solid var(--gold);
  background: #f6f0e5;
}

.email-core p,
.success-criteria p {
  margin-bottom: 0;
}

.week-plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.day-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
}

.day-item h4 {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 15px;
}

.day-item p {
  margin: 0;
  color: #59413b;
  font-size: 14px;
}

.email-offer {
  margin-top: 0;
}

.watch-for {
  margin-top: 22px;
  padding: 16px;
  border-left: 4px solid var(--gold);
  background: #f6f0e5;
}

.watch-for strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
}

.watch-for p {
  margin-bottom: 0;
}

.result-header {
  max-width: 820px;
  margin-bottom: 24px;
}

.result-header h2 {
  color: var(--green);
  font-size: 44px;
}

.result-header p:last-child {
  font-size: 20px;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  margin-bottom: 24px;
}

.result-panel {
  padding: 26px;
}

.result-panel p {
  font-size: 17px;
}

.accent-panel {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.accent-panel .panel-kicker,
.accent-panel h3,
.accent-panel p {
  color: var(--white);
}

.accent-panel h3 {
  margin-bottom: 12px;
  font-size: 27px;
  line-height: 1.16;
}

.offer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  background: var(--paper);
  color: var(--green);
  text-decoration: none;
}

.meter {
  margin-top: 24px;
}

.meter span,
.meter strong {
  display: block;
  color: var(--moss);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.meter-track {
  margin: 8px 0;
}

.next-step-panel {
  padding: 28px;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
}

.check-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
}

.check-item input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.check-item span {
  font-weight: 750;
}

.notes-label {
  display: block;
  margin-bottom: 8px;
  color: var(--moss);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--white);
  color: var(--ink);
}

textarea:focus {
  border-color: var(--gold);
  outline: none;
}

.result-actions {
  align-items: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .brand-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .tool-grid,
  .result-grid,
  .email-gate {
    grid-template-columns: 1fr;
  }

  .tool-hero {
    gap: 28px;
  }

  .hero-photo {
    max-width: none;
  }

  .context-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .brand-bar,
  main {
    width: calc(100% - 28px);
  }

  .brand-bar {
    gap: 18px;
  }

  .brand-mark img {
    width: 112px;
  }

  .brand-mark-wide img {
    width: min(210px, 72vw);
  }

  .top-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .top-links a,
  .secondary-link {
    min-height: 38px;
    font-size: 13px;
  }

  .tool-hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 36%);
    gap: 18px;
    padding-top: 22px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.05;
  }

  h1 span {
    display: block;
    margin-left: 0;
    font-size: 56px;
  }

  .lead {
    font-size: 18px;
  }

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

  .signal-row span {
    width: 100%;
  }

  .hero-photo {
    width: 100%;
    max-width: none;
  }

  .quiz-panel,
  .context-panel,
  .result-panel,
  .next-step-panel,
  .email-gate,
  .email-preview {
    padding: 20px;
  }

  .profile-row {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .week-plan {
    grid-template-columns: 1fr;
  }

  .question-block h2,
  .context-panel h2,
  .next-step-panel h2 {
    font-size: 26px;
  }

  .result-header h2 {
    font-size: 30px;
  }

  .answer-option {
    min-height: 82px;
    padding: 14px;
  }

  .primary-button,
  .secondary-button,
  .offer-button,
  .text-button,
  .secondary-link {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .tool-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

@media print {
  body {
    background: var(--paper);
  }

  .brand-bar,
  .tool-hero,
  .tool-grid,
  .result-actions {
    display: none;
  }

  main {
    width: 100%;
    padding: 0;
  }

  .result-section {
    display: block !important;
    margin: 0;
  }

  .result-panel,
  .next-step-panel {
    box-shadow: none;
    break-inside: avoid;
  }
}
