/* ==========================================================================
   BuildBlock — VPS deals index
   ========================================================================== */

.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
  vertical-align: middle;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hero ---------- */

.deals-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 4%, rgba(47, 91, 255, .15), transparent 30%),
    radial-gradient(circle at 3% 100%, rgba(201, 255, 74, .2), transparent 26%),
    var(--paper);
}
.deals-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 15, 19, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 15, 19, .035) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 94%);
  content: "";
  pointer-events: none;
}
.deals-hero__inner {
  position: relative;
  padding: clamp(58px, 7.5vw, 108px) 0 clamp(48px, 6vw, 76px);
}
.deals-hero h1 {
  max-width: 15ch;
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  font-weight: 400;
  letter-spacing: -.048em;
  line-height: .88;
}
.deals-hero h1 em {
  color: var(--blue);
  font-style: italic;
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-size: 100% .12em;
  background-position: 0 91%;
}
.deals-hero__lede {
  max-width: 70ch;
  color: var(--muted);
  font-size: clamp(.96rem, 1.2vw, 1.06rem);
  line-height: 1.74;
}
.deals-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.deals-hero__stats {
  display: flex;
  flex-wrap: wrap;
  margin-top: 46px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}
.deals-hero__stats > div {
  min-width: 148px;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--line);
}
.deals-hero__stats > div:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
.deals-hero__stats strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1;
}
.deals-hero__stats span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ---------- Disclosure ---------- */

.deals-disclosure {
  padding: 13px 0;
  border-bottom: 1px solid rgba(15, 15, 19, .18);
  background: var(--lime);
  color: var(--ink);
  font-size: .66rem;
  line-height: 1.65;
}
.deals-disclosure p { max-width: 118ch; }
.deals-disclosure strong { font-weight: 800; }

/* ---------- Index ---------- */

.deals-index { padding: clamp(54px, 7vw, 88px) 0; background: var(--paper-2); }
.deals-index__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
  align-items: end;
  gap: clamp(28px, 6vw, 72px);
  margin-bottom: 30px;
}
.deals-index__top .section-title { max-width: 12ch; margin-bottom: 0; }
.deals-index__lede {
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.7;
}

.deals-bands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.deals-bands > div {
  padding: 14px 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.deals-bands strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
}
.deals-bands span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .53rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.deals-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}
.deals-chips button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.deals-chips button span {
  display: inline-grid;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 15, 19, .07);
  color: inherit;
  font-size: .5rem;
  font-weight: 800;
}
.deals-chips button:hover { border-color: var(--ink); color: var(--ink); }
.deals-chips button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.deals-chips button[aria-pressed="true"] span { background: rgba(255, 255, 255, .14); }

.deals-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}
.deals-search { flex: 1 1 280px; }
.deals-search label,
.deals-control label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.deals-search input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: none;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .78rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.deals-search input::placeholder { color: #8c867b; }
.deals-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 91, 255, .11);
}
.deals-controls {
  display: flex;
  flex: 0 1 auto;
  gap: 9px;
}
.deals-control select {
  min-width: 132px;
  padding: 11px 30px 11px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: none;
  background-color: var(--paper-2);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 53%, calc(100% - 10px) 53%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: .72rem;
  appearance: none;
  cursor: pointer;
}
.deals-control select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 91, 255, .11);
}

.deals-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 2px 10px;
}
.deals-meta p {
  color: var(--muted);
  font-size: .63rem;
  font-weight: 700;
}
.deals-meta button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .61rem;
  font-weight: 700;
  cursor: pointer;
}
.deals-meta button:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Table ---------- */

.deals-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  -webkit-overflow-scrolling: touch;
}
.deals-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}
.deals-table th,
.deals-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.deals-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--ink);
  color: var(--paper);
  font-size: .51rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.deals-table tbody tr:last-child td { border-bottom: 0; }
.deals-table tbody tr:hover { background: var(--paper-2); }
.deals-table tbody tr[hidden] { display: none; }

.deal-provider { min-width: 132px; }
.deal-provider__name {
  display: block;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.deal-provider__meta {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-size: .48rem;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.35;
  text-transform: uppercase;
}
.deal-plan { min-width: 172px; }
.deal-plan strong {
  display: block;
  color: var(--ink);
  font-size: .77rem;
  font-weight: 700;
  line-height: 1.35;
}
.deal-plan small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .58rem;
  line-height: 1.4;
}
.deal-specs { min-width: 150px; }
.deal-specs span {
  display: block;
  color: var(--muted);
  font-size: .65rem;
  line-height: 1.55;
}
.deal-specs span:first-child { color: var(--ink); font-weight: 700; }
.deal-transfer {
  color: var(--muted);
  font-size: .64rem;
  line-height: 1.5;
  white-space: nowrap;
}
.deal-region span {
  display: inline-block;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .47rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.deal-price { min-width: 104px; }
.deal-price strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.1;
  white-space: nowrap;
}
.deal-price small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .54rem;
  line-height: 1.4;
}
.deal-billing {
  color: var(--muted);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.deal-link { min-width: 118px; }
.deal-link__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: .56rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.deal-link__btn:hover { background: var(--ink); color: var(--paper); }
.deal-link small {
  display: block;
  max-width: 130px;
  margin-top: 6px;
  color: var(--muted);
  font-size: .52rem;
  line-height: 1.4;
}

.deals-table-hint {
  display: none;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
}
.deals-table-hint span { color: var(--blue); }
.deals-note {
  max-width: 100ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: .64rem;
  line-height: 1.7;
}
.deals-empty {
  margin-top: 18px;
  padding: 30px 24px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: var(--white);
  text-align: center;
}
.deals-empty strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
}
.deals-empty p {
  margin-top: 6px;
  color: var(--muted);
  font-size: .75rem;
}

/* ---------- Method ---------- */

.deals-method {
  padding: clamp(54px, 7vw, 88px) 0;
  background: var(--paper);
}
.deals-method__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .7fr);
  align-items: end;
  gap: clamp(24px, 6vw, 70px);
  margin-bottom: 32px;
}
.deals-method__top .section-title { max-width: 13ch; margin-bottom: 0; }
.deals-method__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.deals-method__grid article {
  padding: clamp(22px, 2.6vw, 30px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.deals-method__grid span {
  color: var(--blue);
  font-size: .53rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.deals-method__grid h3 {
  margin: 28px 0 8px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.deals-method__grid p {
  max-width: 38ch;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.65;
}

/* ---------- CTA ---------- */

.deals-cta {
  padding: clamp(62px, 8vw, 104px) 0;
  background:
    radial-gradient(circle at 92% 8%, rgba(201, 255, 74, .16), transparent 26%),
    var(--blue);
  color: #fff;
}
.deals-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.deals-cta h2 {
  max-width: 15ch;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.6vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .96;
}
.deals-cta h2 em { color: var(--lime); font-style: italic; }
.deals-cta p:not(.kicker) {
  max-width: 52ch;
  color: rgba(255, 255, 255, .82);
  font-size: .87rem;
  line-height: 1.7;
}
.deals-cta__actions {
  display: flex;
  width: min(100%, 280px);
  flex-direction: column;
  gap: 10px;
  justify-self: end;
}
.deals-cta__actions .btn { width: 100%; }
.deals-cta__ghost { border-color: rgba(255, 255, 255, .38); color: #fff; }
.deals-cta__ghost:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .deals-hero h1 { font-size: clamp(3.2rem, 7.6vw, 5.8rem); }
  .deals-hero__stats > div { min-width: 0; padding-right: 18px; margin-right: 18px; }
  .deals-hero__stats strong { font-size: 1.8rem; }
  .deals-toolbar { flex-wrap: wrap; }
  .deals-controls { flex: 1 1 100%; flex-wrap: wrap; }
  .deals-control { flex: 1 1 150px; }
  .deals-control select { width: 100%; min-width: 0; }
}

@media (max-width: 980px) {
  .deals-index__top,
  .deals-method__top { grid-template-columns: 1fr; gap: 18px; }
  .deals-index__top .section-title,
  .deals-method__top .section-title { max-width: 14ch; }
  .deals-method__grid { grid-template-columns: 1fr; }
  .deals-method__grid article { padding: 24px 22px; }
  .deals-cta__inner { grid-template-columns: 1fr; }
  .deals-cta__actions { width: min(100%, 340px); justify-self: start; }
}

@media (max-width: 700px) {
  .deals-hero__inner { padding-top: 44px; }
  .deals-hero h1 { font-size: clamp(2.9rem, 12.6vw, 4.6rem); margin-bottom: 20px; }
  .deals-hero__lede { font-size: .92rem; }
  .deals-hero__actions { align-items: stretch; flex-direction: column; margin-top: 25px; }
  .deals-hero__actions .btn { width: 100%; }
  .deals-hero__stats { margin-top: 34px; gap: 16px 0; }
  .deals-hero__stats > div {
    width: 50%;
    min-width: 0;
    padding-right: 14px;
    margin-right: 0;
    border-right: 0;
  }
  .deals-hero__stats > div:nth-child(2) { padding-left: 16px; border-left: 1px solid var(--line); }
  .deals-hero__stats > div:nth-child(3) {
    padding-top: 15px;
    border-top: 1px solid var(--line);
  }
  .deals-hero__stats > div:nth-child(4) {
    padding-top: 15px;
    padding-left: 16px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  .deals-hero__stats strong { font-size: 1.6rem; }

  .deals-disclosure { font-size: .61rem; }
  .deals-bands { grid-template-columns: repeat(2, 1fr); }
  .deals-bands > div { padding: 12px 14px; }
  .deals-bands strong { font-size: 1.4rem; }

  .deals-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .deals-chips button { flex: 0 0 auto; }

  .deals-toolbar { padding: 14px; }
  .deals-search { flex-basis: 100%; }
  .deals-controls { gap: 8px; }
  .deals-control { flex: 1 1 100%; }
  .deals-search input,
  .deals-control select { font-size: 16px; }

  .deals-table-hint { display: block; }
  .deals-note { font-size: .6rem; }
  .deals-table th,
  .deals-table td { padding: 11px 12px; }
  .deals-cta h2 { font-size: clamp(2.4rem, 10.5vw, 3.5rem); }
  .deals-cta__actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .deals-chips button,
  .deal-link__btn { transition: none; }
}
