/*
 * Pixron pricing: category plans + plan cards (components/plan-grid.tpl).
 * Hosting-company sobriety with software-grade precision: one grid, one type scale,
 * hairline borders, numbers in tabular figures, mono for the cycle table.
 */
:root {
  --pxp-ink: #0b1220;
  --pxp-ink-2: #344054;
  --pxp-muted: #667085;
  --pxp-faint: #98a2b3;
  --pxp-line: #e4e7ec;
  --pxp-line-soft: #eef0f3;
  --pxp-panel: #f9fafb;
  --pxp-amber: #f59e0b;
  --pxp-amber-ink: #b54708;
  --pxp-radius: 14px;
  --pxp-ease: cubic-bezier(.22, 1, .36, 1);
  --pxp-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Section */
.pxp-section { margin: clamp(48px, 6vw, 80px) 0 0; }
.pxp-section-head { margin-bottom: 28px; }
.pxp-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--pxp-amber-ink); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.pxp-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 1px; background: var(--pxp-amber); }
.pxp-section-head h2 { margin: 0; color: var(--pxp-ink) !important; font-size: clamp(1.9rem, 2.8vw, 2.6rem) !important; font-weight: 700 !important; line-height: 1.1 !important; letter-spacing: -.015em !important; }
.pxp-lead { margin: 12px 0 0; max-width: 62ch; color: var(--pxp-muted); font-size: 16.5px; line-height: 1.6; }

/* Toolbar: sub-category tabs (underline) + billing switch (segmented) */
.pxp-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; border-bottom: 1px solid var(--pxp-line); }
.pxp-tabs { display: flex; flex-wrap: nowrap; gap: 28px; margin: 0 0 -1px; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; border: 0 !important; }
.pxp-tabs::-webkit-scrollbar { display: none; }
.pxp-tabs .nav-link {
  position: relative; padding: 12px 0 14px !important; border: 0 !important; border-radius: 0 !important; background: none !important;
  color: var(--pxp-muted) !important; font-size: 15.5px; font-weight: 500; white-space: nowrap;
  transition: color .2s var(--pxp-ease);
}
.pxp-tabs .nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--pxp-amber); transform: scaleX(0); transition: transform .3s var(--pxp-ease); }
.pxp-tabs .nav-link:hover { color: var(--pxp-ink) !important; }
.pxp-tabs .nav-link.active { color: var(--pxp-ink) !important; font-weight: 700; }
.pxp-tabs .nav-link.active::after { transform: scaleX(1); }
.pxp-tabs .nav-link:focus-visible { outline: 2px solid var(--pxp-amber); outline-offset: 2px; }
.pxp-billing { display: inline-flex; gap: 2px; margin-bottom: 12px; padding: 3px; border-radius: 10px; background: #eef1f5; border: 1px solid var(--pxp-line); }
.pxp-billing .billing-option {
  min-height: 36px; padding: 0 16px; border: 0; border-radius: 7px; background: transparent; cursor: pointer;
  color: var(--pxp-muted); font: inherit; font-size: 14px; font-weight: 600;
  transition: background-color .2s var(--pxp-ease), color .2s var(--pxp-ease), box-shadow .2s var(--pxp-ease);
}
.pxp-billing .billing-option:hover { color: var(--pxp-ink); }
.pxp-billing .billing-option.active { background: #fff; color: var(--pxp-ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 2px 6px -2px rgba(16, 24, 40, .12); }
.pxp-billing .billing-option:focus-visible { outline: 2px solid var(--pxp-amber); outline-offset: 1px; }

/* Grid */
.pxp-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; padding: 6px 0 0 !important; margin: 0 !important; }
.pxp-cell { display: flex; min-width: 0; }

/* Card */
.pxp-card.card {
  position: relative; display: flex; flex-direction: column; width: 100%;
  padding: 26px 24px 24px; margin: 0;
  background: #fff; border: 1px solid var(--pxp-line); border-radius: var(--pxp-radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  color: var(--pxp-ink-2);
  transition: border-color .3s var(--pxp-ease), box-shadow .4s var(--pxp-ease);
}
.pxp-card.card:hover { border-color: #d0d5dd; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 16px 40px -20px rgba(16, 24, 40, .22); }

.pxp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pxp-name { margin: 0; color: var(--pxp-ink) !important; font-size: 19px !important; font-weight: 700 !important; line-height: 1.25 !important; letter-spacing: -.005em !important; }
.pxp-tagline { margin: 4px 0 0; color: var(--pxp-muted); font-size: 14px; line-height: 1.4; }
.pxp-flag {
  position: absolute; top: -12px; left: 22px; z-index: 1;
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  background: #fff7e6; color: var(--pxp-amber-ink); border: 1px solid #fde3b0;
  font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}

/* Neutralise WStyle's plan-card extras (lift, glow blobs, edge-to-edge band) */
.pxp-card.card:hover { transform: none; }
.pxp-card.plan-popular::before, .pxp-card.plan-popular::after { content: none !important; display: none !important; }
.pxp-card .plan-price.price-band { margin-inline: 0; }
.pxp-card.plan-popular .plan-price.price-band { background-color: rgba(255, 255, 255, .04); }

/* Price panel */
.pxp-price { margin: 20px 0 18px; padding: 16px 18px 14px; border-radius: 12px; background: var(--pxp-panel); border: 1px solid var(--pxp-line-soft); }
.pxp-save { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.pxp-save del { color: var(--pxp-faint); font-size: 14px; font-weight: 600; text-decoration-thickness: 1.5px; }
.pxp-save-chip { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; background: #ecfdf3; color: #067647; border: 1px solid #abefc6; font-size: 12px; font-weight: 700; }
.pxp-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 4px; }
.pxp-amount .price-now { color: var(--pxp-ink); font-size: 2.6rem; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pxp-suffix { color: var(--pxp-muted); font-size: 15px; font-weight: 500; }
.pxp-onetime { margin-left: 6px; padding: 2px 7px; border-radius: 5px; background: #eef1f5; color: var(--pxp-ink-2); font-size: 12px; font-weight: 600; }
.pxp-compare {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--pxp-amber-ink); font: inherit; font-size: 13px; font-weight: 700;
}
.pxp-compare svg { transition: transform .3s var(--pxp-ease); }
.pxp-compare[aria-expanded="true"] svg { transform: rotate(180deg); }
.pxp-compare:hover { color: #93370d; }
.pxp-compare:focus-visible { outline: 2px solid var(--pxp-amber); outline-offset: 2px; border-radius: 4px; }
.pxp-cycles { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 12.5px; }
.pxp-cycles th { padding: 0 0 6px; color: var(--pxp-faint); font-weight: 600; text-align: right; }
.pxp-cycles th:first-child, .pxp-cycles td:first-child { text-align: left; }
.pxp-cycles td { padding: 7px 0; border-top: 1px solid var(--pxp-line); color: var(--pxp-ink-2); text-align: right; }
.pxp-cycles tr.cycle-current > td { color: var(--pxp-ink); font-weight: 700; }
.is-featured .pxp-cycles tr.cycle-current > td { color: #fff; }
.pxp-cycles td.num-tabular { font-family: var(--pxp-mono); font-size: 12px; }

/* CTA: pixron.com pill. Regular plans: hairline pill that fills ink on hover.
   Featured plan: amber pill that turns white on hover (dark card), like the pixron.com hero. */
.pxp-cta {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 50px; padding: 0 24px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none !important;
  color: #111 !important; background: transparent; border: 1px solid #d0d5dd;
  transition: background-color .25s, border-color .25s, color .25s, transform .45s cubic-bezier(.16, 1, .3, 1);
}
.pxp-cta svg { transition: transform .25s; }
.pxp-cta:hover { background: #111; border-color: #111; color: #fff !important; transform: translate3d(0, -2px, 0); }
.pxp-cta:hover svg { transform: translateX(4px); }
.pxp-cta:active { transform: none; }
.pxp-cta:focus-visible { outline: 2px solid #fbb040; outline-offset: 3px; }
.pxp-cta.is-primary { background: #fbb040; border-color: #fbb040; color: #111 !important; }
.pxp-cta.is-primary:hover { background: #fff; border-color: #fff; color: #111 !important; }
.pxp-cta:disabled { cursor: not-allowed; color: var(--pxp-faint) !important; background: #f2f4f7; border-color: var(--pxp-line); transform: none; }

/* Features */
.pxp-features { flex: 1; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--pxp-line-soft); }
.pxp-features-label { margin: 0 0 12px; color: var(--pxp-muted); font-size: 13px; font-weight: 600; }
.pxp-features ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.pxp-features li { display: flex; align-items: flex-start; gap: 10px; color: var(--pxp-ink-2); font-size: 14.5px; line-height: 1.45; }
.pxp-check { flex: none; margin-top: 2px; color: #d97706; }
.pxp-features b { color: var(--pxp-ink); font-weight: 700; }

/* Featured plan: ink card, amber hairline, restrained */
.pxp-card.card.is-featured {
  background: linear-gradient(180deg, #121b2d 0%, #0b1220 60%);
  border-color: rgba(245, 158, 11, .55);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .08), 0 24px 48px -24px rgba(11, 18, 32, .55);
  color: #cbd5e1;
}
.pxp-card.card.is-featured:hover { border-color: rgba(245, 158, 11, .75); box-shadow: 0 0 0 4px rgba(245, 158, 11, .12), 0 28px 56px -24px rgba(11, 18, 32, .6); }
.is-featured .pxp-name { color: #fff !important; }
.is-featured .pxp-tagline { color: #94a3b8; }
.is-featured .pxp-flag { background: #fbb040; color: #111; border-color: #fbb040; }
.is-featured .pxp-price { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); }
.is-featured .pxp-amount .price-now { color: #fff; }
.is-featured .pxp-suffix, .is-featured .pxp-features-label { color: #94a3b8; }
.is-featured .pxp-save del { color: #64748b; }
.is-featured .pxp-save-chip { background: rgba(16, 185, 129, .12); color: #6ee7b7; border-color: rgba(16, 185, 129, .3); }
.is-featured .pxp-compare { color: #fbbf24; }
.is-featured .pxp-cycles th { color: #64748b; }
.is-featured .pxp-cycles td { color: #cbd5e1; border-color: rgba(255, 255, 255, .08); }
.is-featured .pxp-features { border-color: rgba(255, 255, 255, .08); }
.is-featured .pxp-features li { color: #cbd5e1; }
.is-featured .pxp-features b { color: #fff; }
.is-featured .pxp-check { color: #fbbf24; }

.pxp-card.plan-soldout { opacity: .7; }
.pxp-note { margin: 22px 0 clamp(40px, 5vw, 64px); color: var(--pxp-faint); font-size: 13px; text-align: center; }
.pxp-empty { padding: 48px 0; color: var(--pxp-muted); text-align: center; }

/* Server hub (category with sub-categories) */
.pxp-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 40px; }
.pxp-hub-card {
  position: relative; display: grid; gap: 4px; padding: 18px 44px 18px 18px; border-radius: 12px; text-decoration: none !important;
  background: #fff; border: 1px solid var(--pxp-line); box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: border-color .25s var(--pxp-ease), box-shadow .3s var(--pxp-ease);
}
.pxp-hub-card:hover { border-color: #d0d5dd; box-shadow: 0 12px 28px -18px rgba(16, 24, 40, .25); }
.pxp-hub-title { color: var(--pxp-ink); font-weight: 700; }
.pxp-hub-desc { color: var(--pxp-muted); font-size: 13.5px; }
.pxp-hub-from { color: var(--pxp-muted); font-size: 13px; }
.pxp-hub-from b { color: var(--pxp-ink); }
.pxp-hub-arrow { position: absolute; right: 16px; top: 50%; translate: 0 -50%; color: var(--pxp-faint); transition: transform .3s var(--pxp-ease), color .2s; }
.pxp-hub-card:hover .pxp-hub-arrow { color: var(--pxp-ink); transform: translateX(3px); }

@media (max-width: 767.98px) {
  .pxp-toolbar { align-items: stretch; }
  .pxp-billing { width: 100%; }
  .pxp-billing .billing-option { flex: 1; }
  .pxp-grid { grid-template-columns: 1fr; }
  .pxp-head { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pxp-card.card, .pxp-cta, .pxp-cta svg, .pxp-compare svg, .pxp-tabs .nav-link::after { transition: none; }
}

/* Home showcase */
.pxp-home { padding-top: clamp(64px, 8vw, 112px) !important; padding-bottom: clamp(64px, 8vw, 112px) !important; }
.pxp-section-head.is-center { text-align: center; margin-bottom: 36px; }
.pxp-section-head.is-center .pxp-lead { margin-inline: auto; }
.pxp-home .pxp-toolbar { justify-content: space-between; }
.pxp-more { margin: 28px 0 0; text-align: center; }
.pxp-more a { display: inline-flex; align-items: center; gap: 8px; color: var(--pxp-amber-ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.pxp-more a svg { transition: transform .3s var(--pxp-ease); }
.pxp-more a:hover { color: #93370d; }
.pxp-more a:hover svg { transform: translateX(3px); }

/* Four plans never break into 3 + 1: four across when they fit at 250px, otherwise 2 × 2 */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .pxp-grid.pxp-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .pxp-grid.pxp-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
