@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  --ink: #1a1612;
  --ash: #2e2923;
  --bone: #f2ede6;
  --parchment: #e8e0d4;
  --ember: #c4501a;
  --gold: #b8932a;
  --steel: #6b7280;
  --white: #fafaf8;
  --green: #2d6a4f;
}

body.assessment-page {
  background: var(--bone);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

.assessment-shell {
  min-height: calc(100vh - 72px);
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

#cover {
  min-height: calc(100vh - 72px);
  background: var(--ash);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

#cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px);
}

.brand-mark {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3rem;
  position: relative;
}

.cover-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  max-width: 800px;
  position: relative;
}

.cover-title em {
  font-style: normal;
  color: var(--ember);
}

.cover-sub {
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--parchment);
  max-width: 520px;
  margin: 1.5rem auto 3rem;
  line-height: 1.75;
  position: relative;
}

.divider-line {
  width: 48px;
  height: 2px;
  background: var(--ember);
  margin: 2rem auto;
  position: relative;
}

.btn-start {
  background: var(--ember);
  color: var(--white);
  border: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, transform 0.15s;
}

.btn-start:hover {
  background: #d4601f;
  transform: translateY(-1px);
}

.cover-note {
  font-size: 0.8rem;
  color: var(--steel);
  margin-top: 1.5rem;
  font-family: 'Space Mono', monospace;
  position: relative;
}

#instructions {
  min-height: calc(100vh - 72px);
  padding: 4rem 2rem;
  max-width: 680px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ember);
  display: block;
  margin-bottom: 1rem;
}

.instr-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.instr-body p {
  margin-bottom: 1rem;
  color: var(--ash);
  line-height: 1.8;
}

.scale-card {
  background: var(--parchment);
  border-left: 3px solid var(--ember);
  padding: 1.5rem;
  margin: 2rem 0;
}

.scale-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.scale-row:last-child {
  margin-bottom: 0;
}

.scale-num {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ember);
  min-width: 24px;
}

.scale-desc {
  font-size: 0.9rem;
  color: var(--ash);
}

#assessment {
  padding: 2rem 1rem 4rem;
  max-width: 760px;
  margin: 0 auto;
}

.progress-bar-wrap {
  position: sticky;
  top: 72px;
  background: var(--bone);
  padding: 1rem 0;
  z-index: 10;
  border-bottom: 1px solid var(--parchment);
  margin-bottom: 2.5rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.progress-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

.progress-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.progress-count,
.save-status,
.progress-support {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
}

.progress-count {
  color: var(--ember);
}

.save-status {
  color: var(--steel);
}

.save-status[data-tone='ok'] {
  color: var(--green);
}

.save-status[data-tone='warning'] {
  color: var(--ember);
}

.progress-support {
  color: var(--steel);
  margin-top: 0.6rem;
}

.progress-track {
  height: 3px;
  background: var(--parchment);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--ember);
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
}

.q-block {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--parchment);
  transition: border-color 0.2s;
}

.q-block.answered {
  border-color: var(--gold);
}

.q-number {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--steel);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.q-text {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.rating-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.rating-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--parchment);
  background: transparent;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--steel);
  transition: all 0.15s;
  flex-shrink: 0;
}

.rating-btn:hover {
  border-color: var(--ember);
  color: var(--ember);
}

.rating-btn.selected {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--white);
}

.rating-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.rating-label-text {
  font-size: 0.65rem;
  color: var(--steel);
  font-family: 'Space Mono', monospace;
}

.nav-row {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.btn-primary {
  background: var(--ember);
  color: var(--white);
}

.btn-primary:hover {
  background: #d4601f;
}

.btn-secondary {
  background: transparent;
  color: var(--ash);
  border: 1px solid var(--parchment);
}

.btn-secondary:hover {
  border-color: var(--ash);
}

.warning-msg {
  color: var(--ember);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  text-align: right;
  margin-top: 0.5rem;
  display: none;
}

#results {
  padding: 3rem 1.5rem 5rem;
  max-width: 800px;
  margin: 0 auto;
}

.results-header {
  text-align: center;
  margin-bottom: 3rem;
}

.results-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.results-sub {
  color: var(--steel);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto;
}

.primary-gift-card {
  background: var(--ash);
  color: var(--white);
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.primary-gift-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(196,80,26,0.2) 0%, transparent 70%);
}

.pg-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.pg-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.pg-score {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--ember);
  margin-bottom: 1rem;
}

.pg-desc {
  font-size: 0.95rem;
  color: var(--parchment);
  line-height: 1.75;
  max-width: 560px;
}

.gift-rankings {
  margin-bottom: 2.5rem;
}

.rankings-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.gift-bar-row {
  margin-bottom: 0.85rem;
}

.gift-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
}

.gift-bar-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.gift-bar-pct {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--steel);
}

.gift-bar-track {
  height: 6px;
  background: var(--parchment);
  border-radius: 3px;
  overflow: hidden;
}

.gift-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--ember);
  transition: width 1s ease;
  width: 0%;
}

.gift-bar-fill.secondary {
  background: var(--gold);
}

.gift-bar-fill.tertiary {
  background: var(--steel);
}

.scripture-block {
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  background: var(--parchment);
}

.scripture-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ash);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.scripture-ref {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--steel);
  letter-spacing: 0.15em;
}

.shadow-section {
  margin-bottom: 2rem;
}

.shadow-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.shadow-section-sub {
  font-size: 0.9rem;
  color: var(--steel);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.shadow-primary-panel {
  background: var(--ash);
  padding: 2rem;
  margin-bottom: 1rem;
  position: relative;
}

.shadow-primary-panel::after {
  content: '↓ UNLOCKS';
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--ember);
  position: absolute;
  bottom: -1.1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bone);
  padding: 0 0.75rem;
  white-space: nowrap;
}

.sg-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.sg-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.sg-body {
  font-size: 0.9rem;
  color: var(--parchment);
  line-height: 1.8;
}

.shadow-pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.shadow-pair-card {
  background: var(--white);
  border: 1px solid var(--parchment);
  border-top: 3px solid var(--gold);
  padding: 1.25rem;
}

.spc-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.4rem;
}

.spc-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.spc-score {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--steel);
  margin-bottom: 0.6rem;
}

.spc-body {
  font-size: 0.82rem;
  color: var(--ash);
  line-height: 1.7;
}

.spc-warning {
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: #fef3ec;
  border-left: 2px solid var(--ember);
  font-size: 0.8rem;
  color: var(--ash);
  line-height: 1.6;
}

.spc-warning strong {
  color: var(--ember);
}

.cluster-section {
  background: var(--white);
  border: 1px solid var(--parchment);
  padding: 2rem;
  margin-bottom: 2rem;
}

.cluster-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.5rem;
}

.cluster-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cluster-desc {
  font-size: 0.92rem;
  color: var(--ash);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.cluster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.cluster-card {
  padding: 1rem 1.25rem;
}

.cluster-card.strength {
  background: var(--parchment);
  border-left: 3px solid var(--green);
}

.cluster-card.danger {
  background: #fef3ec;
  border-left: 3px solid var(--ember);
}

.cc-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.cc-label.str {
  color: var(--green);
}

.cc-label.dan {
  color: var(--ember);
}

.cc-body {
  font-size: 0.85rem;
  color: var(--ash);
  line-height: 1.65;
}

.cluster-placement {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--ash);
}

.cp-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.cp-body {
  font-size: 0.88rem;
  color: var(--parchment);
  line-height: 1.7;
}

.cluster-partners {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--parchment);
}

.cp2-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.4rem;
}

.cp2-body {
  font-size: 0.85rem;
  color: var(--ash);
  line-height: 1.65;
}

.next-steps-section {
  margin-bottom: 2rem;
}

.ns-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.ns-sub {
  font-size: 0.9rem;
  color: var(--steel);
  margin-bottom: 1.5rem;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--parchment);
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ember);
  min-width: 32px;
  line-height: 1;
  padding-top: 2px;
}

.step-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.step-body {
  font-size: 0.88rem;
  color: var(--ash);
  line-height: 1.7;
}

.step-action {
  margin-top: 0.6rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--ember);
  letter-spacing: 0.1em;
}

.step-card.week {
  border-left: 3px solid var(--ember);
}

.step-card.month {
  border-left: 3px solid var(--gold);
}

.step-card.season {
  border-left: 3px solid var(--steel);
}

.email-gate {
  background: var(--ash);
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.email-gate::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(184,147,42,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.eg-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  position: relative;
}

.eg-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  position: relative;
}

.eg-body {
  font-size: 0.9rem;
  color: var(--parchment);
  line-height: 1.75;
  margin-bottom: 0;
  max-width: 520px;
  position: relative;
}

.email-gate--capture {
  max-width: 760px;
  margin: 3rem auto 5rem;
}

.eg-form {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
}

.eg-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.eg-input {
  flex: 1;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.eg-input::placeholder {
  color: rgba(255,255,255,0.35);
}

.eg-input:focus {
  border-color: var(--gold);
}

.eg-btn {
  background: var(--ember);
  color: var(--white);
  border: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.eg-btn:hover {
  background: #d4601f;
}

.eg-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.eg-inline-message {
  display: none;
  margin-top: 0.75rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  position: relative;
  z-index: 1;
}

.eg-consent-row {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--parchment);
  font-size: 0.84rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.eg-consent-row input[type='checkbox'] {
  margin-top: 0.18rem;
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.eg-inline-message[data-tone='error'] {
  display: block;
  color: #fca5a5;
}

.eg-inline-message[data-tone='success'] {
  display: block;
  color: #bbf7d0;
}

.nav-row--email {
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

.share-card {
  background: var(--parchment);
  border: 1px solid #d4c9b8;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: none;
}

.share-card.visible {
  display: block;
}

.sc-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.75rem;
}

.sc-summary {
  background: var(--white);
  border: 1px solid #d4c9b8;
  padding: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--ash);
  white-space: pre-wrap;
  font-family: 'Space Mono', monospace;
  margin-bottom: 1rem;
}

.sc-copy-btn {
  background: var(--ash);
  color: var(--white);
  border: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
}

.sc-copy-btn:hover {
  background: var(--ember);
}

.sc-copy-btn.copied {
  background: var(--green);
}

.restart-row {
  text-align: center;
  padding-top: 1rem;
}

@media (max-width: 600px) {
  .rating-btn {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }

  .primary-gift-card {
    padding: 1.5rem;
  }

  .pg-name {
    font-size: 2rem;
  }

  .progress-meta,
  .nav-row {
    flex-direction: column;
    align-items: stretch;
  }

  .progress-side {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .shadow-pair-grid,
  .cluster-grid {
    grid-template-columns: 1fr;
  }

  .eg-input-row {
    flex-direction: column;
  }

  .eg-btn {
    width: 100%;
  }
}
