/* Trace pricing (v5, build-your-own): the monthly / yearly toggle, the level
   tables, and the builder (assets/js/trace-builder.js) on pricing.html and
   agency-pricing.html. Shared tokens and the card / section rhythm come from
   site-v2.css; this file only adds what the pricing pages need. */
.price-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0.5rem 0 1.25rem;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.06);
}
.price-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #57534e;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.price-toggle button[aria-pressed='true'] {
  background: #fff;
  color: #1c1917;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.08);
}
.price-toggle button:focus-visible {
  outline: 3px solid #7e3ff2;
  outline-offset: 2px;
}
.grid-plans {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .grid-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .grid-plans {
    grid-template-columns: minmax(0, 1fr);
  }
}
.plan-badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(126, 63, 242, 0.1);
  color: #5b21b6;
  font-size: 0.8rem;
  font-weight: 600;
}
.guarantee-line {
  margin-top: 1rem;
}
.grid-fit {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.grid-fit > *,
.grid-plans > * {
  min-width: 0;
}

/* Level tables: one per usage type. */
.band-earns {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #57534e;
}
.volume-table .muted {
  color: #78716c;
  font-size: 0.85rem;
  font-weight: 400;
}
.volume-table {
  min-width: 0;
}
.volume-table thead th {
  white-space: normal;
}
@media (max-width: 640px) {
  .volume-table {
    font-size: 0.88rem;
  }
  .volume-table th,
  .volume-table td {
    padding: 0.6rem 0.65rem;
  }
  .volume-table td:first-child {
    white-space: normal;
  }
}
.level-card h3 {
  margin-bottom: 0.25rem;
}
.level-card .level-note {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #57534e;
}
.level-card .level-base {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: #78716c;
}

/* The builder: inputs on the left, the quote on the right. */
.tb__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .tb__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2.5rem;
  }
}
.tb__inputs h3 {
  margin: 1.25rem 0 0.6rem;
  font-size: 1rem;
}
.tb__inputs h3:first-child {
  margin-top: 0;
}
.tb__fields {
  margin-bottom: 0.75rem;
}
@media (min-width: 720px) {
  .tb__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tb__fields--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.tb__types {
  display: grid;
  gap: 0.75rem;
}
.tb__type {
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(28, 25, 23, 0.1);
  border-radius: 12px;
}
.tb__type label {
  display: block;
  font-weight: 600;
  color: #1c1917;
}
.tb__type select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(28, 25, 23, 0.16);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: #1c1917;
}
.tb__type select:focus-visible {
  outline: 3px solid #7e3ff2;
  outline-offset: 2px;
}
.tb__type small {
  display: block;
  margin-top: 0.4rem;
  color: #57534e;
  line-height: 1.45;
}
.tb__type--static {
  color: #57534e;
}
.tb__type--static strong {
  color: #1c1917;
}
.tb__addons {
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 720px) {
  .tb__addons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.tb__addon {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.35rem 0.6rem;
  align-items: start;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(28, 25, 23, 0.1);
  border-radius: 12px;
  color: #1c1917;
  font-weight: 600;
}
.tb__addon input {
  margin-top: 0.25rem;
}
.tb__addon small {
  grid-column: 2 / 4;
  color: #57534e;
  font-weight: 400;
  line-height: 1.45;
}
.tb__addon [data-tb-addon-price] {
  color: #57534e;
  font-weight: 600;
  white-space: nowrap;
}
.tb__billing {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
}
.tb__billing label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: #1c1917;
}
.tb__output {
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(126, 63, 242, 0.05);
}
.tb__output .trace-eq__result strong {
  font-family: var(--font-display, inherit);
  font-size: 1.5rem;
}
.tb__lines {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.tb__lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
  color: #57534e;
}
.tb__lines strong {
  color: #1c1917;
  white-space: nowrap;
}
.tb__lines .tb-line--estimate {
  color: #78716c;
  font-style: italic;
}
.tb__lines .tb-line--estimate strong {
  color: #57534e;
}
.tb__enterprise {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(126, 63, 242, 0.08);
  color: #3b0764;
}
.tb__actions {
  margin-top: 1rem;
}
.tb__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}
