/* public/css/tier-match.css
 * Owns: /tier-match scorecard page styles (tm-* namespace).
 * Does NOT own: global nav, footer, theme tokens (theme.css), or conversion widgets.
 */

/* ── Progress bar ──────────────────────────────────────────────────── */
.tm-progress-bar-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--border, #E8E0D0);
  z-index: 1000;
}
.tm-progress-bar {
  height: 100%;
  background: var(--gold, #C9A961);
  transition: width 0.35s ease;
  width: 0%;
}

/* ── Page layout ────────────────────────────────────────────────────── */
.tm-page {
  background: var(--pearl, #FDFAF5);
  min-height: 100vh;
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.tm-hero {
  background: var(--pearl, #FDFAF5);
  padding: 120px 24px 72px;
  border-bottom: 1px solid var(--border, #E8E0D0);
  text-align: center;
}
.tm-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.tm-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold, #C9A961);
  margin-bottom: 20px;
}
.tm-hero-h1 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--charcoal, #1A1A2E);
  margin-bottom: 20px;
}
.tm-hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal-soft, #4A4A6A);
  max-width: 620px;
  margin: 0 auto 36px;
}
.tm-hero-cta {
  display: inline-block;
  background: var(--gold, #C9A961);
  color: #fff;
  font-family: var(--font-body, 'Jost', sans-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 40px;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.tm-hero-cta:hover { background: #b8962f; }

/* ── Quiz container ─────────────────────────────────────────────────── */
.tm-quiz-section {
  padding: 72px 24px 96px;
  display: none; /* shown by JS */
}
.tm-quiz-inner {
  max-width: 680px;
  margin: 0 auto;
}

/* Question card */
.tm-q-card {
  display: none;
  animation: tmFadeIn 0.3s ease;
}
.tm-q-card.active { display: block; }

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

.tm-q-step {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold, #C9A961);
  margin-bottom: 12px;
}
.tm-q-title {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400;
  color: var(--charcoal, #1A1A2E);
  margin-bottom: 32px;
}

/* Option buttons */
.tm-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tm-option {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1.5px solid var(--border, #E8E0D0);
  border-radius: 8px;
  padding: 18px 22px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: var(--font-body, 'Jost', sans-serif);
  font-size: 15px;
  color: var(--charcoal, #1A1A2E);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  line-height: 1.4;
  min-height: 44px;
}
.tm-option:hover {
  border-color: var(--gold, #C9A961);
  background: #FDFAF5;
  box-shadow: 0 2px 8px rgba(201,169,97,0.12);
}
.tm-option.selected {
  border-color: var(--gold, #C9A961);
  background: #FEF8EC;
  box-shadow: 0 2px 12px rgba(201,169,97,0.18);
}
.tm-option-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border, #E8E0D0);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, background 0.18s;
}
.tm-option.selected .tm-option-dot {
  border-color: var(--gold, #C9A961);
  background: var(--gold, #C9A961);
}
.tm-option.selected .tm-option-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

/* Email capture card (Q7) */
.tm-email-card {
  display: none;
}
.tm-email-card.active { display: block; }
.tm-email-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.tm-email-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--charcoal, #1A1A2E);
}
.tm-email-input {
  background: #fff;
  border: 1.5px solid var(--border, #E8E0D0);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: var(--font-body, 'Jost', sans-serif);
  font-size: 15px;
  color: var(--charcoal, #1A1A2E);
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  transition: border-color 0.18s;
}
.tm-email-input:focus {
  outline: none;
  border-color: var(--gold, #C9A961);
}
.tm-email-input::placeholder { color: #AAA; }
.tm-email-status {
  min-height: 20px;
  font-size: 13px;
  color: #c0392b;
  margin-bottom: 8px;
}
.tm-email-btn {
  display: block;
  width: 100%;
  background: var(--gold, #C9A961);
  color: #fff;
  font-family: var(--font-body, 'Jost', sans-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 18px 24px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  min-height: 56px;
  transition: background 0.2s;
}
.tm-email-btn:hover { background: #b8962f; }
.tm-email-btn:disabled { opacity: 0.65; cursor: wait; }

/* ── Result screen ──────────────────────────────────────────────────── */
.tm-result-section {
  padding: 72px 24px 96px;
  display: none;
}
.tm-result-inner {
  max-width: 760px;
  margin: 0 auto;
}
.tm-result-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold, #C9A961);
  margin-bottom: 16px;
}
.tm-result-tier {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 400;
  color: var(--charcoal, #1A1A2E);
  margin-bottom: 8px;
}
.tm-result-tier strong {
  color: var(--gold, #C9A961);
}
.tm-result-price {
  font-size: 22px;
  font-weight: 600;
  color: var(--gold, #C9A961);
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  margin-bottom: 36px;
}
.tm-result-divider {
  border: none;
  border-top: 1px solid var(--border, #E8E0D0);
  margin: 32px 0;
}

/* Justification bullets */
.tm-result-justifications {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tm-result-just {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tm-result-just-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold, #C9A961);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}
.tm-result-just-text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--charcoal, #1A1A2E);
}

/* CTAs */
.tm-result-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}
.tm-result-cta-primary {
  display: inline-block;
  background: var(--gold, #C9A961);
  color: #fff;
  font-family: var(--font-body, 'Jost', sans-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 18px 36px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
  min-height: 56px;
  display: flex;
  align-items: center;
}
.tm-result-cta-primary:hover { background: #b8962f; }
.tm-result-cta-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--charcoal, #1A1A2E);
  border: 1.5px solid var(--border, #E8E0D0);
  font-family: var(--font-body, 'Jost', sans-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 18px 32px;
  border-radius: 3px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  min-height: 56px;
}
.tm-result-cta-secondary:hover {
  border-color: var(--gold, #C9A961);
  color: var(--gold, #C9A961);
}

/* Trust strip below CTAs */
.tm-result-trust {
  margin-top: 28px;
  font-size: 13px;
  color: var(--charcoal-soft, #4A4A6A);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tm-result-trust svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold, #C9A961);
  flex-shrink: 0;
}

/* ── Scorecard teaser (for /services/* pages) ───────────────────────── */
.tm-scorecard-teaser {
  background: var(--pearl, #FDFAF5);
  border: 1px solid var(--border, #E8E0D0);
  border-radius: 10px;
  padding: 28px 32px;
  margin-top: 40px;
}
.tm-scorecard-teaser-text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--charcoal, #1A1A2E);
  margin-bottom: 14px;
}
.tm-scorecard-teaser-link {
  color: var(--gold, #C9A961);
  font-weight: 500;
  text-decoration: none;
  font-size: 15px;
}
.tm-scorecard-teaser-link:hover { text-decoration: underline; }

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .tm-hero { padding: 100px 20px 56px; }
  .tm-quiz-section,
  .tm-result-section { padding: 48px 20px 72px; }
  .tm-result-ctas { flex-direction: column; }
  .tm-result-cta-primary,
  .tm-result-cta-secondary { justify-content: center; text-align: center; }
  .tm-option { padding: 16px 16px; font-size: 14px; }
}
