:root {
  --tariff-kicker-size: .875rem;
  --tariff-card-title-size: 1.0625rem;
  --tariff-reading-size: 1.0625rem;
}

.tariff-intro {
  padding-top: clamp(36px, 6vw, 88px);
  padding-bottom: clamp(36px, 6vw, 72px);
}

.tariff-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}

.tariff-heading h1 {
  margin-top: 14px;
}

.tariff-heading .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.tariff-summary {
  margin-block: 18px 24px;
  font-size: var(--tariff-reading-size);
}

.tariff-ledger tbody td:nth-child(2) {
  font-family: var(--font-mono);
}

.tariff-ledger tbody tr:nth-child(4) > * {
  border-top: 2px solid var(--border-strong);
}

.tariff-ledger tbody tr:last-child > * {
  border-bottom: 0;
}

.tariff-table-note {
  max-width: 68ch;
  margin-top: 14px;
  font-size: var(--tariff-kicker-size);
}

.tariff-lead {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.tariff-lead p,
.tariff-cycle-copy p {
  max-width: 68ch;
  color: var(--muted);
}

.tariff-choice .tariff-switch {
  width: fit-content;
  margin-block: 22px 16px;
}

.tariff-choice .tariff-cycle {
  padding: clamp(14px, 2.5vw, 28px);
  border: 1px solid var(--border);
  border-top: 2px solid var(--text);
  border-radius: var(--radius-card);
  background: var(--panel-2);
  box-shadow: var(--shadow-frame);
}

.tariff-cycle + .tariff-cycle {
  margin-top: 16px;
}

.tariff-cycle-copy {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.tariff-grid > div {
  min-width: 0;
}

.tariff-grid .plan-card {
  height: 100%;
}

.tariff-grid h4 {
  margin: 0;
  font: var(--weight-control) var(--tariff-card-title-size)/1.35 var(--font-display);
  text-wrap: pretty;
}

.tariff-grid .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.tariff-grid .tariff-allowance {
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  font-weight: var(--weight-control);
}

.tariff-inclusions,
.tariff-faq {
  background: var(--panel-2);
  border-block: 1px solid var(--line-soft);
}

.tariff-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: clamp(18px, 4vw, 52px);
}

.tariff-register > div {
  display: grid;
  grid-template-columns: minmax(0, 8em) minmax(0, 1fr);
  gap: 6px 16px;
}

.tariff-register > div + div {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.tariff-register dt {
  font-weight: var(--weight-control);
}

.tariff-register dd {
  color: var(--muted);
}

.tariff-register a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.tariff-lead .tariff-methods,
.tariff-lead .tariff-refund-fact {
  color: var(--text);
  font-weight: var(--weight-control);
}

.tariff-operation-card .steps > li:first-child {
  margin-top: 0;
}

.tariff-operation-card .steps > li:last-child {
  margin-bottom: 0;
}

.tariff-refund {
  margin-top: clamp(28px, 5vw, 64px);
  padding-top: clamp(28px, 5vw, 64px);
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .tariff-split,
  .tariff-register > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .tariff-ledger tbody tr:nth-child(4) > * {
    border-top: 0;
  }

  .tariff-ledger tbody tr:nth-child(4) {
    margin-top: 18px;
    border-top: 2px solid var(--border-strong);
  }

  .tariff-ledger tbody tr:last-child {
    margin-bottom: 0;
  }
}