:root {
  --bg: #f4efe6;
  --bg-strong: #16333b;
  --surface: #fffaf3;
  --surface-muted: #efe5d6;
  --text: #13282d;
  --text-soft: #4c5f63;
  --line: rgba(19, 40, 45, 0.14);
  --brand: #bb8a3b;
  --brand-dark: #8e641f;
  --accent: #254e59;
  --shadow: 0 18px 50px rgba(19, 40, 45, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --container: min(1120px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f6f0e8 0%, #efe5d6 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

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

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 239, 230, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(19, 40, 45, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  width: 176px;
  flex: 0 0 auto;
}

.workflow {
  padding-bottom: 64px;
}

.toast-stack {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 16px;
}

.toast {
  width: min(480px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(19, 40, 45, 0.18);
  color: #fffaf3;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  text-align: center;
}

.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-info {
  background: rgba(37, 78, 89, 0.78);
}

.toast-success {
  background: rgba(46, 125, 83, 0.78);
}

.toast-warning {
  background: rgba(170, 103, 26, 0.8);
}

.toast-error {
  background: rgba(153, 35, 35, 0.82);
}

.screen {
  display: none;
}

.screen-active {
  display: block;
}

.hero {
  padding: 40px 0 24px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.copy-card,
.card,
.result-shell {
  background: rgba(255, 250, 243, 0.94);
  border: 1px solid rgba(19, 40, 45, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 40px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-copy h1,
.section-heading h2,
.copy-card h2,
.result-header h2 {
  margin: 0;
  color: var(--bg-strong);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.03;
}

.lead {
  font-size: 1.24rem;
  color: var(--accent);
}

.eyebrow,
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--brand-dark);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-media img,
.support-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-media {
  min-height: 560px;
}

.hero-media-full {
  width: 100%;
  min-height: 620px;
}

.support-media {
  min-height: 380px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), #c79c57);
  color: #fffaf3;
}

.button-secondary {
  background: transparent;
  color: var(--accent);
  border-color: rgba(37, 78, 89, 0.2);
}

.section {
  padding: 24px 0;
}

.section-alt {
  padding: 12px 0 24px;
}

.document-flow {
  display: grid;
  gap: 24px;
}

.copy-card,
.card,
.result-shell {
  padding: 28px;
}

.copy-card-accent {
  background: linear-gradient(180deg, rgba(36, 78, 89, 0.96), rgba(19, 40, 45, 0.96));
  color: #f8f0e4;
}

.copy-card-accent h2,
.copy-card-accent .quote-inline {
  color: #fff5e4;
}

.quote-inline {
  font-size: 1.28rem;
}

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

.final-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.full-span {
  grid-column: 1 / -1;
}

.landing-cta {
  display: flex;
  justify-content: center;
  padding-bottom: 24px;
}

.narrow-layout {
  max-width: 880px;
  padding-top: 48px;
}

.align-center {
  text-align: center;
}

.form-card,
.guidance-card,
.pre-result-card {
  margin-top: 24px;
}

.guidance-card {
  padding: 18px 24px;
}

.guidance-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.guidance-card p {
  margin: 0 0 10px;
}

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

.full-width {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.98rem;
}

input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(19, 40, 45, 0.12);
  background: #fffdf8;
  color: var(--text);
}

input:focus {
  outline: 2px solid rgba(187, 138, 59, 0.24);
  border-color: rgba(187, 138, 59, 0.4);
}

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

.checklist-layout {
  padding-top: 40px;
}

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

.pill-row span,
.result-badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(187, 138, 59, 0.12);
  border: 1px solid rgba(187, 138, 59, 0.18);
}

.question-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.question-card {
  padding: 20px 28px 18px;
}

.question-card legend {
  width: 100%;
  display: grid;
  gap: 4px;
  padding-top: 8px;
  margin-bottom: 10px;
  line-height: 1.28;
}

.question-card-invalid {
  border-color: rgba(176, 32, 32, 0.7);
  box-shadow: 0 0 0 3px rgba(176, 32, 32, 0.14), var(--shadow);
}

.question-index {
  color: var(--brand-dark);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.question-text {
  display: block;
  font-weight: 700;
}

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

.answer-option {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(19, 40, 45, 0.1);
  background: rgba(239, 229, 214, 0.42);
  cursor: pointer;
  overflow: hidden;
}

.answer-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.answer-option:has(input:checked) {
  background: rgba(37, 78, 89, 0.95);
  color: #fffaf3;
  border-color: rgba(37, 78, 89, 1);
}

.result-layout {
  padding-top: 40px;
}

.result-shell {
  max-width: 920px;
  margin: 0 auto;
}

.result-score,
.result-note {
  color: var(--text-soft);
}

.result-block,
.result-section {
  margin-top: 22px;
}

@media (max-width: 960px) {
  .split-grid,
  .final-cards {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .support-media {
    min-height: 320px;
  }

  .hero-media-full {
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy,
  .copy-card,
  .card,
  .result-shell {
    padding: 22px;
    border-radius: 20px;
  }

  .hero-copy h1,
  .section-heading h2,
  .copy-card h2,
  .result-header h2 {
    font-size: 2rem;
  }

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

  .button {
    width: 100%;
  }
}
