/* thedrawer/public/css/should-i-ai.css — BRIEF-134: Renamed from worth-it-to-ai.css */
/* Mobile-first. All classes prefixed wita-. */

/* ── Wrapper ─────────────────────────────────────────────────────────────── */

.wita-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.wita-header {
  text-align: center;
  margin-bottom: 24px;
}

.wita-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

/* ── Card ────────────────────────────────────────────────────────────────── */

.wita-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 0.5px rgba(46, 61, 58, 0.12);
}

/* ── Frame line ──────────────────────────────────────────────────────────── */

.wita-frame-line {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: rgba(46, 61, 58, 0.55);
  margin: 0 0 16px;
  line-height: 1.5;
}

/* ── Textarea ────────────────────────────────────────────────────────────── */

.wita-textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.65;
  background: var(--white);
  border: 1px solid rgba(46, 61, 58, 0.18);
  border-radius: 6px;
  padding: 12px;
  resize: none;
  display: block;
  margin-bottom: 14px;
}

.wita-textarea:focus {
  outline: none;
  border-color: rgba(46, 61, 58, 0.35);
}

/* ── Primary button ──────────────────────────────────────────────────────── */

.wita-primary-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--white);
  background: var(--slate);
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.15s;
}

.wita-primary-btn:hover:not(:disabled) { opacity: 0.82; }
.wita-primary-btn:disabled             { opacity: 0.38; cursor: default; }

/* ── Error line ──────────────────────────────────────────────────────────── */

.wita-error {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--rose);
  margin: 10px 0 0;
}

/* ── Section question ────────────────────────────────────────────────────── */

.wita-section-q {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--slate);
  margin: 0 0 18px;
  line-height: 1.45;
}

/* ── Altitude stack ──────────────────────────────────────────────────────── */

.wita-alt-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.wita-alt-btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--slate);
  background: transparent;
  border: 1px solid rgba(46, 61, 58, 0.22);
  border-radius: 8px;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  line-height: 1.4;
}

.wita-alt-btn:hover {
  border-color: var(--sage);
  background: rgba(92, 138, 122, 0.06);
}

/* ── Walk-through link ───────────────────────────────────────────────────── */

.wita-walk-link {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  color: rgba(46, 61, 58, 0.5);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.12s;
}

.wita-walk-link:hover { color: rgba(46, 61, 58, 0.8); }

/* ── Walk-through buttons ────────────────────────────────────────────────── */

.wita-walk-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.wita-walk-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--slate);
  background: transparent;
  border: 1px solid rgba(46, 61, 58, 0.22);
  border-radius: 6px;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}

.wita-walk-btn:hover {
  border-color: var(--sage);
  background: rgba(92, 138, 122, 0.06);
}

#wita-walk-q2-block {
  margin-top: 24px;
}

/* ── Summary card ────────────────────────────────────────────────────────── */

.wita-summary-card {
  background: rgba(46, 61, 58, 0.18);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.wita-summary-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: rgba(248, 249, 247, 0.65);
  margin: 0;
  line-height: 1.5;
}

/* ── Loading ─────────────────────────────────────────────────────────────── */

.wita-loading-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 24px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 0.5px rgba(46, 61, 58, 0.12);
}

.wita-loading-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wita-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
  animation: wita-pulse 1.4s ease-in-out infinite;
}

@keyframes wita-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50%       { opacity: 1;   transform: scale(1);    }
}

.wita-loading-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: rgba(46, 61, 58, 0.55);
  margin: 0;
}

/* ── Previous answers ────────────────────────────────────────────────────── */

.wita-prev-answers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.wita-prev-answer-card {
  background: rgba(46, 61, 58, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
}

.wita-prev-q-text {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: rgba(46, 61, 58, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
}

.wita-prev-a-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: rgba(248, 249, 247, 0.7);
  margin: 0;
  line-height: 1.45;
}

/* ── Verdict card ────────────────────────────────────────────────────────── */

.wita-verdict-card {
  position: relative;
  overflow: hidden;
}

.wita-verdict-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(244, 247, 245, 0.92);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.wita-verdict-opening {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--slate);
  line-height: 1.45;
  margin: 0 0 12px;
}

.wita-verdict-rest {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.65;
  white-space: pre-wrap;
  margin: 0 0 20px;
}

@media (max-width: 600px) {
  .wita-verdict-opening {
    font-size: 17px;
  }
  .wita-verdict-rest {
    font-size: 14px;
  }
}

.wita-expand-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--sage);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: block;
  margin-bottom: 16px;
  transition: opacity 0.12s;
}

.wita-expand-btn:hover { opacity: 0.75; }

.wita-verdict-long {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.7;
  white-space: pre-wrap;
  border-top: 1px solid rgba(46, 61, 58, 0.1);
  padding-top: 16px;
  margin-top: 4px;
}

/* ── Honest alternative ──────────────────────────────────────────────────── */

.wita-honest-alt-card {
  background: #f8f9f7;
  border: none;
  padding: 24px;
  margin: 20px 0;
}

.wita-honest-alt-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.wita-honest-alt-text {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--slate);
  margin: 0;
  line-height: 1.6;
}

/* ── Altitude footer ─────────────────────────────────────────────────────── */

.wita-altitude-footer {
  margin-bottom: 24px;
}

.wita-altitude-caption {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  color: rgba(248, 249, 247, 0.5);
  margin: 0 0 10px;
}

.wita-altitude-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wita-alt-pill {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: rgba(248, 249, 247, 0.6);
  background: transparent;
  border: 1px solid rgba(248, 249, 247, 0.2);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
  white-space: nowrap;
}

.wita-alt-pill:hover:not(.is-active):not(:disabled) {
  border-color: rgba(248, 249, 247, 0.45);
  color: rgba(248, 249, 247, 0.85);
}

.wita-alt-pill.is-active {
  border-color: var(--sage);
  color: var(--sage);
  background: rgba(92, 138, 122, 0.12);
}

.wita-alt-pill:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ── Passive invite ──────────────────────────────────────────────────────── */

.wita-passive-invite {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  color: rgba(248, 249, 247, 0.4);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: block;
  margin-bottom: 8px;
  transition: color 0.12s;
}

.wita-passive-invite:hover { color: rgba(248, 249, 247, 0.65); }

/* ── Rate limit screen ───────────────────────────────────────────────────── */

.wita-rate-limit-msg {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: rgba(46, 61, 58, 0.7);
  margin: 0;
  line-height: 1.6;
}

.wita-rate-limit-link {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.12s;
}

.wita-rate-limit-link:hover { opacity: 0.75; }

/* ── Feedback widget (hidden until verdict renders) ──────────────────────── */

#tool-feedback {
  display: none;
}

/* ── Disclosure panel ────────────────────────────────────────────────────── */

.wita-disclosure {
  margin-bottom: 24px;
}

.wita-disclosure-trigger {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  color: rgba(248, 249, 247, 0.45);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.12s;
}

.wita-disclosure-trigger:hover { color: rgba(248, 249, 247, 0.7); }

.wita-disclosure-arrow {
  font-size: 9px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.wita-disclosure-arrow.is-open {
  transform: rotate(90deg);
}

.wita-disclosure-panel {
  margin-top: 16px;
  background: rgba(244, 247, 245, 0.06);
  border: 1px solid rgba(248, 249, 247, 0.1);
  border-radius: 8px;
  padding: 20px;
}

.wita-disclosure-hdr {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  color: rgba(248, 249, 247, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 20px 0 8px;
}

.wita-disclosure-hdr:first-child {
  margin-top: 0;
}

.wita-disclosure-body p {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: rgba(248, 249, 247, 0.6);
  line-height: 1.65;
  margin: 0 0 10px;
}

.wita-disclosure-body p:last-child {
  margin-bottom: 0;
}

/* ── Scrub button ────────────────────────────────────────────────────────── */

.wita-scrub-area {
  margin: 16px 0;
}

.wita-scrub-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--rose);
  background: transparent;
  border: 1px solid rgba(181, 110, 110, 0.4);
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}

.wita-scrub-btn:hover {
  border-color: var(--rose);
  background: rgba(181, 110, 110, 0.08);
}

.wita-scrub-confirm {
  margin-top: 14px;
}

.wita-scrub-confirm-msg {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: rgba(248, 249, 247, 0.65);
  line-height: 1.55;
  margin: 0 0 12px;
}

.wita-scrub-confirm-btns {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.wita-scrub-confirm-yes {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--white);
  background: var(--rose);
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  transition: opacity 0.12s;
}

.wita-scrub-confirm-yes:hover:not(:disabled) { opacity: 0.82; }
.wita-scrub-confirm-yes:disabled             { opacity: 0.45; cursor: default; }

.wita-scrub-cancel-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  color: rgba(248, 249, 247, 0.5);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.12s;
}

.wita-scrub-cancel-btn:hover { color: rgba(248, 249, 247, 0.8); }

.wita-scrub-done {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: rgba(248, 249, 247, 0.55);
  margin: 12px 0 0;
  font-style: italic;
}

/* ── Rule ────────────────────────────────────────────────────────────────── */

.wita-rule {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 16px 0;
}

/* ── Credit line ─────────────────────────────────────────────────────────── */

.wita-credit {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  text-align: center;
  margin: 0;
}

.wita-credit a {
  color: rgba(248, 249, 247, 0.35);
  text-decoration: none;
  transition: color 0.12s;
}

.wita-credit a:hover { color: rgba(248, 249, 247, 0.6); }

/* ── Guardrail screens — shared container ────────────────────────────────── */

.wita-step {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 0.5px rgba(46, 61, 58, 0.12);
}

/* ── Button variants used by guardrail screens ───────────────────────────── */

.wita-btn-primary {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--white);
  background: var(--slate);
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.15s;
}

.wita-btn-primary:hover:not(:disabled) { opacity: 0.82; }
.wita-btn-primary:disabled             { opacity: 0.38; cursor: default; }

.wita-btn-secondary {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  color: rgba(46, 61, 58, 0.5);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.12s;
}

.wita-btn-secondary:hover { color: rgba(46, 61, 58, 0.8); }

.wita-btn-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* ── Calibration line ────────────────────────────────────────────────────── */

.wita-calibration-line {
  font-style: italic;
  color: var(--wita-text-muted, #6b7570);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* ── Out-of-scope screen ─────────────────────────────────────────────────── */

.wita-out-of-scope-body {
  margin-bottom: 1.25rem;
  color: var(--slate);
}

.wita-out-of-scope-opening {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--slate);
  line-height: 1.45;
  margin: 0 0 14px;
}

.wita-out-of-scope-suffix {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

@media (max-width: 600px) {
  .wita-out-of-scope-opening {
    font-size: 16px;
  }
}

.wita-out-of-scope-hdr {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wita-text-muted, #6b7570);
  margin-bottom: 0.5rem;
}

.wita-out-of-scope-examples {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.25rem 0;
}

.wita-out-of-scope-examples li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--wita-rule, #e6e6e1);
  font-style: italic;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.55;
}

.wita-out-of-scope-examples li:last-child {
  border-bottom: none;
}

.wita-out-of-scope-actions,
.wita-low-conf-actions,
.wita-disengagement-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Low-confidence screen ───────────────────────────────────────────────── */

.wita-low-conf-body {
  margin-bottom: 1.25rem;
  color: var(--slate);
}

/* ── Disengagement screen ────────────────────────────────────────────────── */

.wita-disengagement-body {
  margin-bottom: 1.25rem;
  color: var(--slate);
}

/* ── Soft exit screens ───────────────────────────────────────────────────── */

.wita-soft-exit-body {
  margin-bottom: 0.75rem;
  color: var(--slate);
}

.wita-soft-exit-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--wita-text-muted, #6b7570);
  margin-bottom: 1.25rem;
}

.wita-soft-exit-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Desktop ─────────────────────────────────────────────────────────────── */

@media (min-width: 900px) {
  .wita-wrap {
    padding: 0 24px 80px;
  }

  .wita-title {
    font-size: 40px;
  }
}

.wita-version {
  display:        block;
  font-family:    var(--sans);
  font-size:      11px;
  font-style:     italic;
  color:          var(--white);
  opacity:        1;
  letter-spacing: 0.04em;
  margin:         4px 0 0;
  text-align:     center;
}
