/* Pricing-curve tool (static page). Complements corridor.css. */

.pricing-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.85rem 1rem;
  margin: 1.25rem 0 0.5rem;
}
.pricing-controls label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.pricing-controls select {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
}
.pricing-controls select:focus-visible {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.pricing-chart {
  margin: 1rem 0 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.75rem 0.75rem 0.4rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.pricing-chart svg {
  display: block;
  width: 100%;
  height: auto;
}
.pricing-chart figcaption {
  margin: 0.5rem 0.35rem 0.35rem;
  font-size: 0.82rem;
  color: #475569;
}

.pricing-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.5rem 0 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}
.pricing-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.pricing-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.25rem;
  display: inline-block;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
}
.pricing-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
  white-space: nowrap;
}
.pricing-table th,
.pricing-table td {
  padding: 0.6rem 0.85rem;
  text-align: right;
  border-bottom: 1px solid #f1f5f9;
}
.pricing-table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  position: sticky;
  top: 0;
}
.pricing-table tbody th,
.pricing-table thead th:first-child {
  text-align: left;
  color: #0f172a;
  font-weight: 700;
}
.pricing-table tbody tr:hover {
  background: #f8fafc;
}
