/* Calculator-specific styles. Shared visual language inherits from /styles.css. */

.muted { color: var(--ink-soft); font-weight: 400; font-size: .85em; }

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
}
@media (min-width: 520px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.field-col { display: flex; flex-direction: column; }
.field-col label {
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
  margin-bottom: .4rem;
}

input[type="number"],
input[type="text"] {
  width: 100%;
  padding: .7rem .8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fffdfa;
  font: inherit;
  color: var(--ink);
}
input[type="number"]:focus,
input[type="text"]:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

/* Result card */
.result { margin: 1rem 0 1.5rem; }
.result-card {
  border-left: 6px solid var(--brand);
}
.result-headline {
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 .5rem;
}
.result-headline strong {
  color: var(--brand-ink);
  font-size: 1.15em;
}
.result-stage {
  display: inline-block;
  background: var(--muted);
  color: var(--brand-ink);
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  margin: 0 0 .65rem;
}
.result-insight {
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

/* Aging curve */
.aging-curve {
  background: var(--muted);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  margin: 0 0 1rem;
}
.aging-curve h3 {
  margin: 0 0 .5rem;
  font-size: .95rem;
  color: var(--brand-ink);
}
.sparkline {
  width: 100%;
  max-width: 320px;
  margin: 0 0 .5rem;
}
.sparkline svg {
  width: 100%;
  height: auto;
  display: block;
}
.sparkline svg polyline {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sparkline svg circle {
  fill: var(--brand);
}
.sparkline svg circle.current-marker {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 2;
}

.curve-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.curve-table th,
.curve-table td {
  text-align: left;
  padding: .35rem .5rem;
  border-bottom: 1px solid var(--line);
}
.curve-table th {
  color: var(--ink-soft);
  font-weight: 700;
}
.curve-table tr.current td {
  background: rgba(255, 138, 61, 0.12);
  font-weight: 700;
  color: var(--brand-ink);
}

/* Action buttons row */
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1rem;
}
.result-actions .btn {
  flex: 1 1 auto;
}

/* CTA back to the name generator */
.btn-cta {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, #7c4dff 0%, #ad55e6 50%, #ff6fa3 100%);
  color: #fff !important;
  font-weight: 700;
  padding: .85rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(124, 77, 255, .3);
}
.btn-cta:hover { filter: brightness(1.05); }
