/* ================================================================
   calculator.css — DeadSaaS Waste Calculator (Form C-01)
   Same statement world: sheet on desk, ledger rows, honest ranges.
   ================================================================ */

/* ---- Input sheet: the tool list field ---- */

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.calc-label {
  color: var(--ink-2);
}

.calc-textarea {
  width: 100%;
  min-height: 180px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-card);
  resize: vertical;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

.calc-textarea::placeholder {
  color: var(--ink-3);
}

.calc-textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 107, 60, 0.14);
}

.calc-hint {
  font-size: 0.78rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.calc-row .input {
  width: 100%;
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.calc-note {
  font-size: 0.78rem;
  color: var(--ink-2);
}

.calc-note.is-error {
  color: var(--red);
  font-weight: 600;
}

/* ---- Results: the leak total ---- */

.calc-amount {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--red);
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}

.calc-suspect-cost {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- Honest answers (FAQ) ---- */

.faq {
  margin-top: 14px;
  background: var(--paper-bright);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 0 18px;
}

.faq-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  user-select: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--green);
  transition: transform 0.15s ease-out;
}

.faq[open] .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---- Mobile ---- */

@media (max-width: 640px) {
  .calc-row {
    grid-template-columns: 1fr;
  }

  .calc-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .calc-actions .btn-primary {
    width: 100%;
  }
}