/* ============================================================
   The Free Journey Assessment — page-specific styles
   Design tokens, base reset, buttons, header/nav, and footer
   are already provided by /assets/site.css (loaded first).
   This file ONLY contains assessment-screen-specific rules.
   ============================================================ */

/* =========================================================
   INTRO SCREEN
   ========================================================= */
.intro {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
  flex: 1;
}
.intro::before {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; width: 45%;
  background: radial-gradient(circle at 70% 40%, rgba(200,155,60,0.20) 0%, transparent 60%);
  pointer-events: none;
}
.intro-inner {
  position: relative;
  max-width: 780px;
  text-align: left;
}
.intro h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}
.intro h1 em { color: var(--gold-soft); font-style: italic; }
.intro .lede {
  font-size: 19px;
  color: #D3DBE6;
  max-width: 640px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.promise-list {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
  max-width: 640px;
}
.promise-list li {
  display: flex;
  gap: 16px;
  color: #E4E9F1;
  font-size: 16px;
  align-items: flex-start;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.promise-num {
  color: var(--gold);
  font-weight: 700;
  min-width: 26px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
}
.privacy-note {
  margin-top: 24px;
  font-size: 13px;
  color: #98A4B4;
  max-width: 560px;
  line-height: 1.6;
}

/* =========================================================
   ASSESSMENT SCREEN
   ========================================================= */
.assessment {
  background: var(--slate);
  padding: 56px 0 80px;
  flex: 1;
}
.assessment-shell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 44px 32px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--slate-2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  width: 0%;
  transition: width .4s ease;
}
.progress-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 32px;
}

.question { margin-bottom: 32px; }
.q-num {
  display: inline-block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.q-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  color: var(--navy-deep);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.q-helper {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 580px;
}

.q-max-note {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin: -16px 0 16px;
  transition: color .15s ease;
}
.q-max-note.is-at-cap { color: var(--navy); }
.opt.is-capped {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--slate);
}
.opt.is-capped:hover { border-color: var(--border); background: var(--slate); }

.state-select {
  width: 100%;
  max-width: 420px;
  padding: 14px 16px;
  font: 500 15px var(--font-body);
  color: var(--ink);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
}
.state-select:focus { outline: 3px solid var(--gold-soft); outline-offset: 1px; border-color: var(--gold); }
.state-other-input {
  display: block;
  width: 100%;
  max-width: 420px;
  margin-top: 12px;
  padding: 14px 16px;
  font: 400 15px var(--font-body);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
}
.state-other-input:focus { outline: 3px solid var(--gold-soft); outline-offset: 1px; border-color: var(--gold); }

.opts { display: grid; gap: 10px; }
.opt {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
  background: #fff;
}
.opt:hover { border-color: var(--gold-soft); background: #FFFDF7; }
.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.opt-marker {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  transition: border-color .15s ease;
}
.opts-multi .opt-marker { border-radius: 4px; }
.opt.is-checked {
  border-color: var(--gold);
  background: #FFFAF0;
}
.opt.is-checked .opt-marker {
  border-color: var(--gold);
  background: var(--gold);
}
.opt.is-checked .opt-marker::after {
  content: "";
  position: absolute;
  left: 4px; top: 0px;
  width: 6px; height: 12px;
  border: solid var(--navy-deep);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.opt-label {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
  font-weight: 500;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 12px;
}
.quit-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
}

/* =========================================================
   RESULTS SCREEN
   ========================================================= */
.results {
  padding: 72px 0 96px;
  background: linear-gradient(180deg, var(--slate) 0%, #fff 60%);
  flex: 1;
}
.results-inner {
  max-width: 900px;
  padding: 0 var(--gutter-x);
  margin: 0 auto;
}
.results h2#results-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 46px);
  line-height: 1.15;
  color: var(--navy-deep);
  letter-spacing: -0.4px;
  margin-bottom: 18px;
}
.results h2#results-title em { color: var(--gold); font-style: italic; }
.results .lede {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 680px;
}

.results-section {
  margin-bottom: 44px;
}
.results-section-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--navy-deep);
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.results-section-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Pillar cards */
.pillar-cards { display: grid; gap: 16px; }
.pillar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.pillar-card.tier-2 { border-left-color: #8DA0B8; }
.pillar-card.tier-3 { border-left-color: #B8BFCB; }
.pillar-card-head { margin-bottom: 10px; }
.tier-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy-deep);
  background: var(--gold-soft);
  padding: 5px 12px;
  border-radius: 20px;
}
.tier-2 .tier-badge { background: #E4E9F1; color: var(--navy); }
.tier-3 .tier-badge { background: var(--slate); color: var(--muted); }
.pillar-card h3 {
  font-size: 19px;
  color: var(--navy-deep);
  margin-bottom: 10px;
  font-weight: 700;
}
.pillar-card p {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.pillar-card p strong { color: var(--navy-deep); }
.why-details {
  margin: 4px 0 14px;
  padding: 12px 16px;
  background: var(--slate);
  border-radius: var(--radius-sm);
}
.why-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}
.why-details summary::-webkit-details-marker { display: none; }
.why-details summary::before {
  content: "+ ";
  color: var(--gold);
  font-weight: 700;
}
.why-details[open] summary::before { content: "\2212 "; }
.why-details p {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.pillar-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
}
.pillar-link:hover { color: var(--navy-deep); }

/* Overall profile grid */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.profile-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.profile-value {
  font-size: 14px;
  color: var(--navy-deep);
  font-weight: 700;
  text-align: right;
}

/* Ruled out */
.pillars-ruled-out { display: grid; gap: 8px; }
.ruled-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 14px 18px;
  background: var(--slate);
  border-radius: var(--radius-sm);
  border-left: 3px solid #B8BFCB;
}
.ruled-name {
  font-weight: 600;
  color: var(--navy-deep);
  font-size: 14px;
}
.ruled-reason {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.ruled-none {
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  padding: 14px 18px;
  background: var(--slate);
  border-radius: var(--radius-sm);
}

/* Timeline */
.timeline { display: grid; gap: 14px; }
.timeline-step {
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold);
}
.timeline-step.timeline-urgent { border-left-color: var(--red); }
.timeline-step.timeline-urgent .step-tag { color: var(--red); }
.step-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.timeline-step p {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

/* Compliance */
.compliance-box {
  background: var(--slate);
  border-left: 4px solid var(--navy);
  padding: 22px 26px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 44px 0;
}
.compliance-box h3 {
  font-size: 12px;
  color: var(--navy-deep);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}
.compliance-box p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* CTA */
.results-cta {
  background: var(--navy-deep);
  color: #fff;
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 32px;
}
.results-cta h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 8px;
}
.results-cta p {
  color: #CDD5E1;
  font-size: 16px;
  margin-bottom: 24px;
}
.results-cta .btn-ghost-dark {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  background: transparent;
}
.results-cta .btn-ghost-dark:hover:not(:disabled) { background: rgba(255,255,255,0.08); color: #fff; }
.results-cta .btn-link { color: var(--gold-soft); margin-top: 16px; display: inline-block; }
.results-cta .btn-link:hover { color: var(--gold); }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 40, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-inner {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
}
.modal-inner h3 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--navy-deep);
  margin-bottom: 10px;
}
.modal-inner p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.55;
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--slate);
  border: 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
}
.modal-close:hover { background: var(--slate-2); color: var(--navy-deep); }
#email-form input {
  width: 100%;
  padding: 14px 16px;
  font: 400 15px var(--font-body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
#email-form input:focus {
  outline: 3px solid var(--gold-soft);
  outline-offset: 1px;
  border-color: var(--gold);
}
.modal-fine {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
  .assessment-shell { padding: 28px 22px; }
  .nav-row { flex-direction: column-reverse; }
  .nav-row .btn { width: 100%; }
  .ruled-item { grid-template-columns: 1fr; gap: 4px; }
  .results-cta { padding: 32px 24px; }
  .modal-inner { padding: 28px 24px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .profile-value { text-align: left; }
}

/* Accessibility helpers */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
