/* ════════════════════════════════════════════════════════════════════
   TIER FINDER WIDGET — shared between /pricing and /savings
   The TierFinder lives at src/components/blocks/TierFinder.tsx and
   embeds in the hero of /pricing as well as Step 1 of /savings. This
   stylesheet must be loaded by both pages.
   ════════════════════════════════════════════════════════════════════ */

.tf-finder {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #d4d4d4);
  padding: 36px 40px;
  text-align: left;
}
.tf-intro {
  font-size: 16px;
  color: var(--text2, #444);
  margin: 0 0 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.tf-intro-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #B08D57);
}
.tf-questions { display: flex; flex-direction: column; gap: 22px; margin-bottom: 28px; }
.tf-question { display: flex; flex-direction: column; gap: 8px; }
.tf-q-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text, #0F1923);
  margin: 0;
}
.tf-q-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.tf-q-option {
  padding: 10px 8px;
  font-size: 14.5px;
  font-family: inherit;
  font-weight: 500;
  color: var(--text2, #444);
  background: var(--surface, #fff);
  border: 1px solid var(--border, #d4d4d4);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  line-height: 1.35;
}
.tf-q-option:hover { border-color: var(--text3, #6b6b6b); }
.tf-q-option.is-on {
  border-color: var(--accent, #B08D57);
  background: var(--accent, #B08D57);
  color: #fff;
}

/* Result panel */
.tf-result {
  background: var(--paper-3, #f5f5f5);
  border-left: 3px solid var(--border, #d4d4d4);
  padding: 22px 26px;
  text-align: center;
  transition: border-left-color 0.2s;
}
.tf-result.is-visible {
  border-left-color: var(--accent, #B08D57);
  background: var(--text, #0F1923);
  color: #fff;
}
.tf-result-placeholder {
  font-size: 15px;
  color: var(--text3, #6b6b6b);
  margin: 0;
  font-style: italic;
}
.tf-result-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 8px;
}
.tf-result-name {
  font-size: 21px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.tf-result-name strong { font-weight: 700; color: var(--accent, #B08D57); }
.tf-result-identity {
  font-size: 15px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 14px;
}
.tf-result-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
  font-feature-settings: 'tnum';
  flex-wrap: wrap;
}
.tf-price-num {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.tf-price-per {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.tf-price-monthly {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}
.tf-result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.tf-reset {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 6px 8px;
}
.tf-reset:hover { color: #fff; }
.tf-enterprise-hint {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.tf-enterprise-hint a { color: var(--accent, #B08D57); }

/* Compact variant for /savings (embedded in calculator form) */
.tf-finder--compact {
  padding: 24px 28px;
  background: var(--paper-2, #fafafa);
}
.tf-finder--compact .tf-questions { gap: 16px; margin-bottom: 20px; }

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 900px) {
  .tf-q-options { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tf-finder { padding: 24px 22px; }
  .tf-finder--compact { padding: 20px 18px; }
  .tf-result { padding: 18px 20px; }
  .tf-result-name { font-size: 19px; }
  .tf-price-num { font-size: 24px; }
  .tf-result-actions { flex-direction: column; gap: 10px; }
  .tf-result-actions .btn { width: 100%; }
}
