.tid-plans {
  --tid-ink: #211e23;
  --tid-rule: #d9d3c9;
  scroll-margin-top: 24px;
  padding-block: clamp(62px, 8vw, 120px);
  background: #f5f2ec;
  border-block: 1px solid var(--tid-rule);
  color: var(--tid-ink);
  font-family: Geist, sans-serif;
}

.tid-plans-shell {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  column-gap: clamp(30px, 5vw, 85px);
  grid-template-areas: "offer picker" "modes picker";
  align-items: center;
}

.tid-plans-intro { grid-area: offer; align-self: end; }
.tid-billing-info { grid-area: modes; align-self: start; }

.tid-kicker, .tid-scale-label {
  margin: 0 0 16px;
  font: 500 .77rem/1.4 'Geist Mono', monospace;
}

.tid-kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.tid-kicker::before {
  content: '';
  width: 26px;
  height: 3px;
  background: #ce2866;
}

.tid-plans h2 {
  margin: 0 0 20px;
  color: var(--tid-ink);
  font: 600 clamp(2.35rem, 3.8vw, 3.45rem)/.98 Geist, sans-serif;
  letter-spacing: -.065em;
}

.tid-plans-intro > p:not(.tid-kicker), .tid-modes dd {
  color: #554f52;
  line-height: 1.53;
}

.tid-plans-intro > p:not(.tid-kicker) {
  margin: 0;
  max-width: 45ch;
  font-size: 1.02rem;
}

.tid-modes { margin: 20px 0 16px; }
.tid-modes div {
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--tid-rule);
  font-size: .88rem;
}
.tid-modes dt { font-weight: 600; }
.tid-modes dd { margin: 0; }

.tid-build-link {
  color: #4e2890;
  text-underline-offset: .21em;
  font-weight: 600;
}

.tid-plans-card {
  grid-area: picker;
  position: relative;
  min-inline-size: 0;
  margin: 0;
  padding: clamp(19px, 2.6vw, 35px);
  border: 1px solid #444046;
  border-radius: 21px;
  color: #faf8f5;
  background: radial-gradient(ellipse at 100% 0, #422638, transparent 63%), #211f24;
  box-shadow: 0 17px 42px -30px #33223280;
}

.tid-plans-card legend, .tid-choice {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.tid-scale-label { margin-bottom: 12px; color: #e1dbe1; }
.tid-scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  align-items: stretch;
}
.tid-volume {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
  min-height: 60px;
  color: #f7f4f3;
  background: #302d33;
  border: 1px solid #56505a;
  border-radius: 8px;
  cursor: pointer;
}
.tid-volume span { font: 600 .99rem/1.1 Geist, sans-serif; }
.tid-volume small { color: #d3cbd3; font: 400 .73rem/1.2 Geist, sans-serif; }
.tid-volume:hover { border-color: #f6d678; }
.tid-choice:checked + .tid-volume {
  color: #231e13;
  background: #ffda75;
  border-color: #ffda75;
}
.tid-choice:checked + .tid-volume small { color: #42381f; }
.tid-choice:focus-visible + .tid-volume, .tid-trial:focus-visible, .tid-build-link:focus-visible {
  outline: 3px solid #d367ad;
  outline-offset: 3px;
}

.tid-offer {
  display: none;
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 11px;
  padding-top: 17px;
  border-top: 1px solid #544a52;
}
.tid-choice:checked + .tid-volume + .tid-offer {
  display: grid;
  justify-items: start;
  gap: 16px;
}
.tid-offer h3 {
  margin: 0;
  font: 600 clamp(2.15rem, 3.4vw, 3.5rem)/1 Geist, sans-serif;
  letter-spacing: -.065em;
}
.tid-offer h3 small { font-size: .9rem; font-weight: 400; letter-spacing: 0; }
.tid-offer p { margin: 9px 0 0; color: #ded7dd; line-height: 1.4; font-size: .92rem; }
.tid-trial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 999px;
  background: #7925db;
  color: #fff;
  text-decoration: none;
  font: 600 .91rem/1.25 Geist, sans-serif;
}
.tid-trial:hover { background: #8a35e9; }
.tid-terms { margin-top: 15px; color: #d1c9ce; font-size: .78rem; line-height: 1.4; }
.tid-terms p { margin: .3em 0 0; }

@media (max-width: 800px) {
  .tid-plans-shell {
    grid-template-columns: 1fr;
    grid-template-areas: "offer" "picker" "modes";
    row-gap: 22px;
  }
  .tid-modes { margin-top: 0; }
  .tid-plans h2 { font-size: clamp(2.35rem, 7vw, 3.6rem); }
}

@media (max-width: 520px) {
  .tid-scale { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tid-offer { grid-row: 4; }
  .tid-volume { padding: 8px; }
}

@media (max-width: 350px) {
  .tid-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tid-offer { grid-row: 5; }
  .tid-modes div { grid-template-columns: 82px minmax(0, 1fr); }
}


.rw-hero .trafficid-trial-note {
  margin: 8px 0 0;
  color: #ffedbc;
  font: 500 clamp(.72rem, 1.1vw, .85rem)/1.4 Geist, sans-serif;
  text-shadow: 0 1px 5px #211b22;
}

@media (max-height: 740px) and (max-width: 450px) {
  .rw-hero:has(.trafficid-trial-note) .rw-lede {
    margin-block: 7px 9px;
  }
  .rw-hero .trafficid-trial-note { margin-top: 5px; }
}

@media (max-width: 520px) {
  .tid-plans { padding-top: 30px; }
  .tid-plans-intro h2 { margin-bottom: 12px; }
  .tid-kicker { margin-bottom: 10px; }
  .tid-scale .tid-offer {
    grid-row: 1;
    margin: 0 0 5px;
    padding: 0 0 15px;
    border-top: 0;
    border-bottom: 1px solid #544a52;
  }
}
