/* ============================================================
   URBANVOICE — PROBLEM DISCOVERY ENGINE
   Design tokens, base, components, screens
   ============================================================ */

/* ---- TOKENS ---- */
:root {
  --bg:          #222639;
  --bg-card:     #2c3050;
  --bg-input:    #1c1f33;
  --bg-modal:    #1a1d2e;
  --accent:      #ff6a00;
  --accent-dim:  rgba(255, 106, 0, 0.15);
  --accent-glow: rgba(255, 106, 0, 0.35);
  --text:        #f0f0f0;
  --text-muted:  #b0b6d4;
  --text-faint:  #8289a8;
  --border:      rgba(255,255,255,0.08);
  --border-focus:rgba(255, 106, 0, 0.6);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --shadow-card: 0 4px 32px rgba(0,0,0,0.4);
  --transition:  0.25s ease;
  --font-body:   'Inter', sans-serif;
  --font-head:   'Bebas Neue', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---- UTILITY ---- */
.hidden { display: none !important; }

/* ---- APP SHELL ---- */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- PROGRESS BAR ---- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0 10px;
  background: linear-gradient(180deg, var(--bg) 80%, transparent);
  display: flex;
  justify-content: center;
}

.progress-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: background var(--transition), transform var(--transition);
}

.progress-dot.active {
  background: var(--accent);
  transform: scale(1.35);
}

.progress-dot.done {
  background: var(--text-muted);
}

/* ---- SCREEN TRANSITIONS ---- */
#screen-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  animation: fadeIn 0.35s ease forwards;
}

.screen.active {
  display: flex;
}

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

/* ---- BUTTONS ---- */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-primary:hover:not(:disabled) {
  background: #ff8533;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: var(--text-faint);
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 12px 22px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

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

/* ---- CARDS ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.card:hover {
  border-color: rgba(255, 106, 0, 0.3);
}

/* ============================================================
   LANDING SCREEN
   ============================================================ */
#screen-landing {
  align-items: center;
}

.landing-header {
  width: 100%;
  max-width: 900px;
  padding: 32px 24px 0;
}

.logo {
  height: 48px;
  width: auto;
}

.landing-main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  padding: 48px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Hero */
.landing-hero {
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Search card */
.search-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.search-label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text);
}

.search-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.search-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.search-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 18px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input::placeholder {
  color: var(--text-faint);
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
}

.search-char-count {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: right;
  margin-top: 8px;
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.trust-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Usage counter */
.usage-counter {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
  padding: 0 24px 8px;
}

/* Footer */
.landing-footer {
  width: 100%;
  text-align: center;
  padding: 24px;
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ============================================================
   MODAL (API Key Config)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.modal-title {
  font-family: var(--font-head);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.modal-field {
  margin-bottom: 18px;
}

.modal-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.modal-field input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition);
}

.modal-field input:focus {
  border-color: var(--border-focus);
}

.modal-field input::placeholder {
  color: var(--text-faint);
}

.modal .btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  font-size: 1rem;
}

.modal-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-faint);
  text-align: center;
}

/* Gate modal — wider to accommodate GHL iframe */
.gate-modal {
  max-width: 560px;
  padding: 32px 28px;
}

.gate-iframe-wrap {
  margin: 16px 0 8px;
  border-radius: 6px;
  overflow: hidden;
}

.gate-skip-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-faint);
  text-decoration: underline;
  cursor: pointer;
}

.gate-skip-link:hover {
  color: var(--text-muted);
}

/* ============================================================
   LOADING SCREEN (reusable)
   ============================================================ */
.loading-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 24px;
  text-align: center;
}

.loading-spinner {
  width: 52px;
  height: 52px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.loading-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 340px;
  line-height: 1.6;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.loading-step {
  font-size: 0.85rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 10px;
}

.loading-step.done {
  color: var(--accent);
}

.loading-step.done::before {
  content: '✓';
  font-weight: 700;
}

.loading-step:not(.done)::before {
  content: '·';
  font-size: 1.4rem;
  line-height: 0;
  margin-top: 2px;
}

/* ============================================================
   COMMON SCREEN CHROME (header + back nav)
   ============================================================ */
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
}

.screen-logo {
  height: 36px;
  width: auto;
}

.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  transition: color var(--transition);
}

.btn-back:hover { color: var(--accent); }

.screen-body {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

.screen-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.screen-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 10px;
}

.screen-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 620px;
}

/* ============================================================
   CHOICE GRID (angles, problems, ideas)
   ============================================================ */
.choice-grid {
  display: grid;
  gap: 14px;
}

.choice-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.choice-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.choice-card.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.choice-card-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}

.choice-card.selected .choice-card-number {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.choice-card-content { flex: 1; }

.choice-card-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 4px;
}

.choice-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   PROBLEM CARD EXTRAS (quotes + meta row)
   ============================================================ */
.problem-quotes {
  margin: 10px 0 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.problem-quote {
  font-size: 0.82rem;
  color: var(--text-faint);
  font-style: italic;
  padding: 6px 10px;
  border-left: 2px solid var(--accent-dim);
  background: var(--bg-input);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.5;
}

.problem-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* ============================================================
   SOURCE BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
}

.badge-reddit  { background: rgba(255, 69, 0, 0.18);  color: #ff6633; }
.badge-amazon  { background: rgba(255, 153, 0, 0.18); color: #ff9900; }
.badge-quora   { background: rgba(165, 42, 42, 0.2);  color: #c0392b; }
.badge-g2      { background: rgba(255, 100, 60, 0.18);color: #ff5733; }
.badge-default { background: rgba(255,255,255,0.08);   color: var(--text-muted); }

/* ============================================================
   FREQUENCY + TREND PILLS
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 99px;
}

.pill-freq-low      { background: rgba(100,200,100,0.12); color: #6ec46e; }
.pill-freq-medium   { background: rgba(255,200,0,0.12);   color: #f0c040; }
.pill-freq-high     { background: rgba(255,120,0,0.15);   color: #ff8c00; }
.pill-freq-veryhigh { background: rgba(255,60,60,0.15);   color: #ff4444; }

.pill-trend-declining  { background: rgba(150,150,200,0.12); color: #9090cc; }
.pill-trend-stable     { background: rgba(100,150,255,0.12); color: #6699ff; }
.pill-trend-growing    { background: rgba(80,200,120,0.15);  color: #50c878; }
.pill-trend-fast       { background: rgba(0,220,180,0.15);   color: #00dcb4; }

/* ============================================================
   EMAIL GATE
   ============================================================ */
.email-gate {
  background: var(--bg-card);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.email-gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-card) 100%);
  pointer-events: none;
}

.email-gate-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.email-gate-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.email-gate-row {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.email-gate-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  outline: none;
  transition: border-color var(--transition);
}

.email-gate-input:focus {
  border-color: var(--border-focus);
}

.email-gate-input::placeholder {
  color: var(--text-faint);
}

/* ============================================================
   OPPORTUNITY SCORE
   ============================================================ */
.opp-score {
  display: flex;
  align-items: center;
  gap: 10px;
}

.opp-score-value {
  font-family: var(--font-head);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
}

.opp-score-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-input);
  border-radius: 99px;
  overflow: hidden;
}

.opp-score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff8c00);
  border-radius: 99px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   VALIDATION RESULT CARD
   ============================================================ */
.validation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.val-stat {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.val-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.val-stat-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.val-verdict {
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
}

/* ============================================================
   BRAND SCREEN
   ============================================================ */
.brand-cards {
  display: grid;
  gap: 14px;
}

.brand-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: border-color var(--transition);
}

.brand-card:hover,
.brand-card.selected {
  border-color: var(--accent);
}

.brand-card.selected {
  background: var(--accent-dim);
}

.brand-name {
  font-family: var(--font-head);
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}

.brand-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Brand screen action row */
.brand-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Own brand input card */
.own-brand-card {
  background: var(--bg-card);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.own-brand-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.own-brand-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition);
}

.own-brand-input:focus {
  border-color: var(--border-focus);
}

.own-brand-input::placeholder {
  color: var(--text-faint);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0;
}

.own-brand-hint {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ============================================================
   FINAL SUMMARY SCREEN
   ============================================================ */
.summary-section {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.summary-section:last-of-type {
  border-bottom: none;
}

.summary-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.summary-value {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.cta-block {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  align-items: center;
}

.btn-cta-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 36px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition), box-shadow var(--transition);
  letter-spacing: 0.04em;
}

.btn-cta-primary:hover {
  background: #ff8533;
  box-shadow: 0 8px 28px var(--accent-glow);
  text-decoration: none;
  color: #fff;
}

.btn-download {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color var(--transition), color var(--transition);
}

.btn-download:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   REFINE SEARCH INPUT
   ============================================================ */
/* Near-miss banner */
.near-miss-banner {
  background: rgba(80, 140, 255, 0.08);
  border: 1px solid rgba(80, 140, 255, 0.25);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.near-miss-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6699ff;
  margin-bottom: 6px;
}

.near-miss-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.low-scores-callout {
  background: rgba(255, 106, 0, 0.08);
  border: 1px solid rgba(255, 106, 0, 0.3);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0 8px;
}

.low-scores-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.low-scores-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.refine-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.refine-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.refine-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.refine-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition);
}

.refine-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.refine-input::placeholder {
  color: var(--text-faint);
}

@media (max-width: 600px) {
  .refine-row { flex-direction: column; }
}

/* ============================================================
   CONSULTATION CTAs
   ============================================================ */

/* Mini banner — validation screen, below the verdict */
.consult-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text);
}

.consult-banner-link {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  text-decoration: none;
}

.consult-banner-link:hover { text-decoration: underline; }

/* Full conversion block — summary screen */
.consult-cta {
  background: var(--bg-card);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-top: 24px;
  text-align: center;
}

.consult-cta-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.consult-cta-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.1;
}

.consult-cta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  text-align: left;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.consult-cta-list li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.consult-cta-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.consult-cta-btn {
  display: inline-flex;
}

.consult-cta-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .search-row {
    flex-direction: column;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .validation-grid {
    grid-template-columns: 1fr;
  }

  .screen-header {
    padding: 16px 20px;
  }

  .screen-body {
    padding: 28px 20px;
  }

  .modal {
    padding: 28px 22px;
  }

  .email-gate-row {
    flex-direction: column;
  }

  .cta-block {
    flex-direction: column;
  }

  .btn-cta-primary,
  .btn-download {
    width: 100%;
    justify-content: center;
  }
}
