/* Checkout — three-step purchase flow, mirrors the original /residential/ layout */

.buy { padding: 44px 0 72px; background: linear-gradient(180deg, var(--tint-2), #fff 420px); }
.buy__head { text-align: center; margin-bottom: 36px; }
.buy__head h1 { margin-bottom: 10px; }
.buy__head p { color: var(--muted); font-size: 18px; }

.buy__grid { display: grid; grid-template-columns: 1fr 372px; gap: 32px; align-items: start; }

.step { background: #fff; border: 1px solid #e6eaf2; border-radius: var(--r-xl); padding: 28px; margin-bottom: 22px; }
.step__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.step__n {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 900; font-size: 17px;
  display: grid; place-items: center;
}
.step__head h2 { margin: 0; font-size: 22px; }

/* --- plan cards --- */
/* Package cards.
   The old PyProxy store sold on exactly two things: a big volume number and a
   visible gift beside a struck-through price. Small, evenly-weighted tiles read
   as a settings form and nobody looks twice at them, so the volume, the gift and
   the price each get their own tier of emphasis here. */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.plan { position: relative; padding-top: 10px; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan__box {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; height: 100%;
  border: 2px solid #e2e8f5; border-radius: 16px; padding: 26px 22px 22px;
  text-align: center; background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.plan__box:hover { border-color: #c9beff; box-shadow: 0 8px 22px rgba(13, 22, 38, .07); }
.plan input:checked + .plan__box {
  border-color: var(--navy); background: var(--tint-2);
  box-shadow: 0 10px 26px rgba(90, 75, 223, .18);
}
.plan input:focus-visible + .plan__box { outline: 3px solid rgba(90, 75, 223, .4); outline-offset: 2px; }

/* the package name sits above the number as a quiet label, so the eye lands on
   the volume first and only then learns what the tier is called */
.plan__head { display: flex; flex-direction: column; align-items: center; width: 100%; }
.plan__name {
  margin-bottom: 7px; font-size: 12px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted-2);
}
.plan input:checked + .plan__box .plan__name { color: var(--blue-ink); }

/* volume: the number people scan for */
.plan__vol { display: flex; align-items: baseline; gap: 5px; }
.plan__gb {
  font-size: 50px; font-weight: 900; line-height: 1;
  color: var(--ink-strong); letter-spacing: -1.5px;
}
.plan__unit { font-size: 15px; font-weight: 800; color: var(--muted-2); }
.plan input:checked + .plan__box .plan__gb { color: var(--blue-ink); }

/* the gift rides beside the volume so the pair reads as one number: the size
   you buy, and the extra that comes with it */
.plan__gift {
  font-style: normal; font-size: 17px; font-weight: 900; line-height: 1;
  color: var(--green-ink, #0a7a34); letter-spacing: -.4px;
}

/* price: struck-through original beside the real one, as the original store did */
.plan__prices {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  margin-top: 10px;
}
.plan__was { color: var(--muted-2); font-size: 16px; text-decoration-thickness: 1.5px; }
.plan__now { font-size: 30px; font-weight: 900; color: var(--ink-strong); letter-spacing: -.5px; }

/* Launch-sale marks on each card: the red corner discount and the live "Sale
   ends" line. Both cosmetic — the charged price is .plan__now. */
.plan__flash {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 10px; border-radius: 9px;
  background: #b4122e; color: #fff; font-size: 12.5px; font-weight: 900;
  letter-spacing: .02em; box-shadow: 0 3px 10px rgba(180, 18, 46, .32);
}
.plan__deal {
  margin-top: 8px; font-size: 12.5px; font-weight: 800; color: #b4122e;
}
.plan__deal b { font-variant-numeric: tabular-nums; letter-spacing: .4px; }
/* the facts under the price, one per line. Without these the spans collapse
   into a single run of text — the markup carries no separators of its own. */
.plan__rows {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 100%; margin-top: 13px; padding-top: 12px;
  border-top: 1px solid #eef1f7;
}
.plan__row { font-size: 12.5px; line-height: 1.35; color: var(--muted); }

/* what actually arrives is the number that closes the sale, so it leads the
   list and is the only green thing in it */
.plan__row--total { font-size: 13px; color: #0a7a34; }
.plan__row--total b { font-size: 15px; font-weight: 900; letter-spacing: -.2px; }
/* The pick action reads as a real button now, not a stray blue word: an outline
   pill that fills navy once the plan is chosen — same language as .btn. */
.plan__pick {
  margin-top: auto; align-self: stretch; text-align: center;
  padding: 11px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--navy); background: #fff; box-shadow: inset 0 0 0 1.6px #ded7f5;
  transition: background .15s, color .15s, box-shadow .15s;
}
.plan__box:hover .plan__pick { box-shadow: inset 0 0 0 1.6px var(--navy); }
.plan input:checked + .plan__box .plan__pick {
  background: var(--navy); color: #fff; box-shadow: none;
}
.plan input:checked + .plan__box .plan__pick::before { content: "\2713\00a0"; }

/* badges sit on the border, so they need the card to have room above it */
.plan__ribbon {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 2;
  background: var(--green); color: #fff; font-size: 11.5px; font-weight: 800;
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(13, 22, 38, .12);
}
.plan__ribbon--hot { background: var(--gold); color: #fff; }
.plan__ribbon--test { background: #eef1f7; color: var(--muted); box-shadow: none; }

.plan--bonus .plan__box { border-color: #ddd4fb; }
.plan--best .plan__box { border-color: var(--gold); }
.plan--best .plan__box:hover { border-color: var(--gold-600); }

@media (max-width: 780px) {
  .plans { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .plan__gb { font-size: 34px; }
  .plan__now { font-size: 22px; }
}
@media (max-width: 420px) {
  .plans { grid-template-columns: 1fr; }
}

.buy__promo {
  max-width: 680px; margin: 14px auto 0; font-size: 16px; line-height: 1.6;
  color: var(--ink); background: #f5f2ff; border: 1px solid #ddd4fb;
  border-radius: var(--r-lg); padding: 14px 18px;
}
.buy__promo b { color: var(--blue-ink); }

/* Only rendered for an account that genuinely has a bonus running out, which
   is why it is allowed to look as loud as it does. */
/* Written to beat `.buy__head p`, which sits one notch higher on specificity and
   was painting this grey on an orange banner — legible only in the sense that
   the pixels were technically different colours. */
.buy__head p.buy__timer {
  margin: 14px auto 0; display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 800; color: #fff;
  background: linear-gradient(90deg, #ff8500, #ff5a00);
  border-radius: 999px; padding: 9px 10px 9px 18px;
  box-shadow: 0 6px 18px rgba(255, 90, 0, .3);
}
/* display:inline-flex would otherwise beat the hidden attribute and show an
   empty clock to visitors who have no bonus running. */
.buy__head p.buy__timer[hidden] { display: none; }
.buy__head p.buy__timer b {
  font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 900;
  background: rgba(0, 0, 0, .22); border-radius: 999px; padding: 4px 12px;
  letter-spacing: .5px;
}

.sum__line--gift b { color: var(--green); }
.sum__line--deliver {
  border-top: 1px dashed #e3e9f4; margin-top: 4px; padding-top: 12px;
}
.sum__line--deliver b { font-size: 17px; }

.step--done { opacity: .72; }
.step--done .field, .step--done .field-row { display: none; }

/* --- custom volume --- */
.custom { margin-top: 22px; padding-top: 22px; border-top: 1px dashed #dfe6f3; }
.custom__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.custom__row label { font-weight: 700; color: var(--ink-strong); }
.custom input[type=range] { flex: 1 1 260px; accent-color: var(--navy); height: 6px; }
.custom__val {
  min-width: 118px; height: 44px; padding: 0 12px; font: inherit; font-weight: 700;
  border: 2px solid #e2e8f5; border-radius: var(--r); text-align: center; color: var(--ink-strong);
}
.custom__val:focus { border-color: var(--navy); outline: none; }
.custom__hint { color: var(--muted-2); font-size: 14px; margin: 10px 0 0; }

/* --- form --- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; color: var(--ink-strong); }
.field input {
  width: 100%; height: 48px; padding: 0 14px; font: inherit;
  border: 2px solid #e2e8f5; border-radius: var(--r); color: var(--ink);
}
.field input:focus { border-color: var(--navy); outline: none; }
.field small { display: block; margin-top: 6px; color: var(--muted-2); font-size: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.switch-note { font-size: 14.5px; color: var(--muted); }

/* --- payment methods --- */
.pms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pm { position: relative; }
.pm input { position: absolute; opacity: 0; pointer-events: none; }
.pm__box {
  display: flex; align-items: center; gap: 14px; cursor: pointer; height: 100%;
  border: 2px solid #e2e8f5; border-radius: var(--r-lg); padding: 16px;
  transition: border-color .15s, background .15s;
}
.pm__box:hover { border-color: #c9beff; }
.pm input:checked + .pm__box { border-color: var(--navy); background: var(--tint-2); }
.pm__ico { display: flex; gap: 6px; align-items: center; }
.pm__ico img { height: 22px; width: auto; }
.pm__t { display: block; font-weight: 700; color: var(--ink-strong); font-size: 15.5px; }
.pm__s { display: block; font-size: 13px; color: var(--muted-2); }

.pm--soon .pm__box { cursor: not-allowed; background: #fafbfd; border-color: #edf0f6; }
.pm--soon .pm__box:hover { border-color: #edf0f6; }
/* dim via colour, not opacity — an opaque parent would fade the badge too */
.pm--soon .pm__ico img { opacity: .45; filter: grayscale(1); }
.pm--soon .pm__t { color: var(--muted); }
.pm--soon .pm__s { color: var(--line); }
.pm__soon {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--amber); color: #3d2600; font-size: 11px; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; vertical-align: 1px;
}

/* --- summary --- */
.sum { position: sticky; top: calc(var(--header-h) + 16px); }
.sum__box { background: #fff; border: 1px solid #e6eaf2; border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow); }
.sum__box h3 { font-size: 19px; margin-bottom: 18px; }
.sum__line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 15px; color: var(--muted); }
.sum__line b { color: var(--ink-strong); font-weight: 700; }
.sum__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px; padding-top: 16px; border-top: 1px solid #eaeef6;
}
.sum__total span { font-weight: 700; color: var(--ink-strong); }
.sum__total b { font-size: 30px; font-weight: 900; color: var(--blue-ink); }
.sum .btn { margin-top: 18px; }
.sum__fine { margin: 14px 0 0; font-size: 13px; color: var(--muted-2); text-align: center; }
.sum__err {
  margin: 16px 0 0; padding: 11px 13px; border-radius: var(--r);
  background: #fdeced; border: 1px solid #f3b9bb; color: #a32126;
  font-size: 14px; line-height: 1.45;
}
.sum__promo { display: flex; gap: 8px; margin-top: 14px; }
.sum__promo input {
  flex: 1; height: 42px; padding: 0 12px; font: inherit;
  border: 2px solid #e2e8f5; border-radius: var(--r);
}
.sum__promo input:focus { border-color: var(--navy); outline: none; }
.sum__trust { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eaeef6; }
.sum__trust li { list-style: none; padding: 5px 0 5px 24px; position: relative; font-size: 14px; color: var(--muted); }
.sum__trust ul { margin: 0; padding: 0; }
.sum__trust li::before {
  content: ""; position: absolute; left: 3px; top: 11px; width: 5px; height: 9px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg);
}

@media (max-width: 1024px) {
  .buy__grid { grid-template-columns: 1fr; }
  .sum { position: static; }
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .plans, .pms, .field-row { grid-template-columns: 1fr; }
  .step { padding: 20px; }
}


/* Proxy type switch on the buy page — the category picker. Deliberately large:
   these are the products, so the tiles read as big buttons, not a quiet nav. */
.ptabs {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin: 26px auto 4px; max-width: 1000px;
}
.ptabs__t {
  flex: 1 1 172px; min-width: 172px; min-height: 82px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 16px 20px; border-radius: 14px; text-decoration: none;
  background: #fff; border: 1.5px solid #e2ddf7;
  font-size: 17px; font-weight: 800; color: #241f47; line-height: 1.2;
  transition: border-color .14s, box-shadow .14s, transform .14s;
}
.ptabs__t small {
  font-size: 14px; font-weight: 700; color: #8a97ab;
}
.ptabs__t:hover { border-color: #c9beff; box-shadow: 0 8px 20px rgba(90,75,223,.12); transform: translateY(-1px); }
.ptabs__t.is-on {
  background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: 0 12px 26px rgba(90,75,223,.28);
}
.ptabs__t.is-on small { color: #d8cfff; }

@media (max-width: 560px) {
  .ptabs__t { flex: 1 1 44%; min-width: 0; padding: 14px 16px; font-size: 16px; }
}

/* Launch-sale bar: the urgency strip under the heading. Red so it reads as a
   live deal, with a rolling countdown that restarts every day. */
.flash {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px 16px; max-width: 820px; margin: 18px auto 0;
  padding: 13px 22px; border-radius: 13px;
  background: linear-gradient(90deg, #7c1122, #b4122e);
  color: #fff; font-size: 15.5px; font-weight: 700;
  box-shadow: 0 12px 28px rgba(180, 18, 46, .26);
}
.flash__badge {
  padding: 4px 11px; border-radius: 999px; background: var(--gold);
  color: #3a2a00; font-size: 12px; font-weight: 900; letter-spacing: .09em;
}
.flash__txt { color: #fff; }
.flash__txt b { color: #ffe08a; }
.flash__txt a { color: #ffe08a; text-decoration: underline; font-weight: 800; }
.flash__timer { color: #fff; }
.flash__timer b {
  font-variant-numeric: tabular-nums; letter-spacing: .6px; font-weight: 900;
  background: rgba(0, 0, 0, .26); padding: 4px 11px; border-radius: 8px;
}
@media (max-width: 560px) {
  .flash { font-size: 14px; padding: 12px 16px; }
}

/* Premium trust strip — a clean, airy row of headline numbers with a thin
   violet accent (a nod to the top providers), kept light so it does not stack as a
   second heavy band under the sale bar. */
.pstats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 900px; margin: 30px auto 4px;
  padding: 20px 12px; border-radius: 16px;
  background: #fff; border: 1px solid #e7ecf6;
  box-shadow: 0 10px 30px rgba(16, 32, 64, .05);
  position: relative; overflow: hidden;
}
.pstats::after {
  content: ""; position: absolute; left: 22%; right: 22%; top: 0; height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, #7b5cff, var(--navy), transparent);
}
.pstat { text-align: center; padding: 4px 6px; }
.pstat + .pstat { box-shadow: inset 1px 0 0 #eef1f8; }
.pstat b {
  display: block; font-size: 30px; font-weight: 900; letter-spacing: -.5px;
  line-height: 1.05; color: var(--navy);
}
.pstat span {
  display: block; margin-top: 5px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .02em; color: var(--muted-2);
}
@media (max-width: 620px) {
  .pstats { grid-template-columns: repeat(2, 1fr); gap: 18px 0; padding: 18px 10px; }
  .pstat:nth-child(2) { box-shadow: none; }
  .pstat b { font-size: 26px; }
}

/* What the selected product actually gives you, directly under the switch and
   above the price ladder. It sits before the money on purpose: the limits are
   cheaper to read here than to discover after paying.

   Presented as a spec sheet — a grid of labelled fact cards rather than a bare
   two-column table. The lead fact runs full width, the rest sit two-up, and the
   one caveat spans the width in amber so it is read rather than buried. */
.pspec {
  max-width: 940px; margin: 14px auto 0; text-align: left;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  background: none; border: 0; padding: 0;
}
.pspec__title {
  max-width: 940px; margin: 34px auto 0; text-align: left;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2);
}
.pspec__row {
  display: block; padding: 18px 20px;
  background: #fff; border: 1px solid #e7ecf5; border-radius: 14px;
  box-shadow: 0 6px 18px rgba(16, 32, 64, .04);
  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}
.pspec__row:hover {
  box-shadow: 0 12px 30px rgba(16, 32, 64, .09);
  transform: translateY(-2px); border-color: #d7e1f3;
}
.pspec__row b {
  display: block; margin-bottom: 7px; padding: 0;
  font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--navy-600);
}
.pspec__row span {
  display: block; font-size: 15px; line-height: 1.5; color: var(--ink-strong);
}
/* The opening line is a plain-English statement of what the product is, so it
   leads the sheet at full width and a touch larger. */
.pspec__row:first-child { grid-column: 1 / -1; }
.pspec__row:first-child span { font-size: 16.5px; }
/* The awkward line is marked but not hidden — full width, amber, unmissable. */
.pspec__row--limit { grid-column: 1 / -1; background: #fff9ef; border-color: #f0dcae; }
.pspec__row--limit b { color: #b7791f; }
.pspec__row--limit span { color: #7a5a2a; }

@media (max-width: 620px) {
  .pspec { grid-template-columns: 1fr; gap: 12px; }
  .pspec__row { padding: 15px 16px; }
}

/* A discount is the one line in the summary a customer looks for on purpose,
   so it is the one line allowed to be a different colour from the rest. */
.sum__line--off b { color: #0a8f4d; }
.sum__promo-msg {
  margin: 8px 0 0; font-size: 13px; font-weight: 700; line-height: 1.4;
}
.sum__promo-msg.is-ok { color: #0a8f4d; }
.sum__promo-msg.is-bad { color: #c02626; }

/* Shown only when the balance actually covers the order, so it reads as a
   shortcut rather than as one more decision to make. */
.sum__wallet {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r);
  background: #eefaf1; border: 1px solid #c9ecd5;
  color: #1d5c33; font-size: 14px; line-height: 1.45;
}
.sum__wallet input { margin: 2px 0 0; width: 17px; height: 17px; flex: none; cursor: pointer; }

/* Card and crypto are days away from being switched on. Said quietly under the
   pay button rather than in a banner: it has to be read before paying, but it
   is not a reason to stop reading the page. */
.sum__maint {
  margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r);
  background: #fff9ef; border: 1px solid #f0dcae;
  color: #7a5a2a; font-size: 12.5px; line-height: 1.45; text-align: center;
}
