/*
 * Live pricing (pulsia/live-pricing). Toman, VAT included, per-period discounts.
 * Uses the v2 tokens with fallbacks so the block also reads right in the editor.
 */
.pp {
  --pp-ink: var(--h-ink, #0b1324);
  --pp-ink-2: var(--h-ink-2, #334058);
  --pp-muted: var(--h-muted, #5f6c82);
  --pp-line: var(--h-line, #e3e8f0);
  --pp-soft: var(--h-soft, #f5f7fb);
  --pp-brand: var(--h-brand, #1877ff);
  --pp-brand-ink: var(--h-brand-ink, #0b57d0);
  --pp-wash: var(--h-brand-wash, #eaf2ff);
  --pp-ease: cubic-bezier(.16, 1, .3, 1);
  max-width: 1160px;
  margin-inline: auto;
  color: var(--pp-ink);
}

/* Period switch */
.pp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 28px; }
.pp-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--pp-line); border-radius: 14px; background: var(--pp-soft); }
.pp-switch button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 10px; background: transparent; color: var(--pp-ink-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s; }
.pp-switch button:hover { color: var(--pp-ink); }
.pp-switch button.is-active { background: #fff; color: var(--pp-ink); box-shadow: 0 1px 2px #0b13241a, 0 6px 16px -10px #0b132440; }
.pp-switch button:focus-visible { outline: 2px solid var(--pp-brand); outline-offset: 2px; }
.pp-off { padding: 2px 7px; border-radius: 999px; background: #e7f7ee; color: #0f7a45; font-size: 11px; font-weight: 800; }
.pp-note { margin: 0; color: var(--pp-muted); font-size: 13px; }

/* Plan cards */
.pp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.pp-card { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; border: 1px solid var(--pp-line); border-radius: 18px; background: #fff; transition: border-color .3s, box-shadow .4s var(--pp-ease), translate .4s var(--pp-ease); }
.pp-card:hover { border-color: #c9d8ee; box-shadow: 0 30px 60px -40px #14356b55; }
.pp-card.is-featured { border: 2px solid var(--pp-brand); padding: 25px 21px 21px; box-shadow: 0 30px 70px -40px #1877ff88; }
.pp-badge { position: absolute; top: -13px; inset-inline-start: 20px; margin: 0; padding: 3px 12px; border-radius: 999px; background: var(--pp-brand); color: #fff; font-size: 12px; font-weight: 800; }
.pp-card h3, .pp-wide h3 { margin: 0; color: var(--pp-ink); font-size: 20px; font-weight: 850; letter-spacing: 0; }
.pp-tagline { min-height: 1.9em; margin: 4px 0 18px; color: var(--pp-muted); font-size: 13px; line-height: 1.9; }

.pp-price { display: grid; gap: 2px; min-height: 104px; align-content: start; }
.pp-amount { color: var(--pp-ink); font-size: 32px; font-weight: 900; line-height: 1.3; font-feature-settings: "tnum"; }
.pp-unit { color: var(--pp-ink-2); font-size: 13px; font-weight: 700; }
.pp-bill { color: var(--pp-muted); font-size: 12px; line-height: 1.8; }
.pp-save { width: fit-content; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: #e7f7ee; color: #0f7a45; font-size: 11.5px; font-weight: 800; }
.pp-save[hidden] { display: none; }

.pp-cta.wp-element-button { display: block; margin: 16px 0 20px; padding: 11px 12px; border: 1px solid var(--pp-line); border-radius: 10px; background: #fff; color: var(--pp-ink); font-size: 14px; font-weight: 750; text-align: center; text-decoration: none; transition: background-color .2s, border-color .2s, transform .15s; }
.pp-cta.wp-element-button:hover { border-color: #b9cde9; background: var(--pp-soft); }
.pp-cta.wp-element-button:active { transform: scale(.98); }
.pp-card.is-featured .pp-cta.wp-element-button, .pp-wide .pp-cta.wp-element-button { border-color: var(--pp-brand); background: var(--pp-brand); color: #fff; }
.pp-card.is-featured .pp-cta.wp-element-button:hover { background: var(--pp-brand-ink); }

.pp-limits, .pp-gains, .pp-channels { margin: 0; padding: 0; list-style: none; }
.pp-limits { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--pp-line); }
.pp-limits li { color: var(--pp-ink-2); font-size: 13.5px; line-height: 1.8; }
.pp-limits b { color: var(--pp-ink); font-weight: 850; }
.pp-plus { margin: 18px 0 8px; color: var(--pp-muted); font-size: 12px; font-weight: 700; }
.pp-gains { display: grid; gap: 7px; }
.pp-gains li { position: relative; padding-inline-start: 22px; color: var(--pp-ink-2); font-size: 13px; line-height: 1.8; }
.pp-gains li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .62em; width: 9px; height: 5px; border-left: 2px solid var(--pp-brand); border-bottom: 2px solid var(--pp-brand); rotate: -45deg; }
.pp-gains .pp-more { color: var(--pp-muted); }
.pp-gains .pp-more::before { display: none; }
.pp-channels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 20px; }
.pp-ch { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--pp-line); border-radius: 999px; color: var(--pp-ink-2); font-size: 12px; }
.pp-ch-wordpress::before { content: ''; width: 13px; height: 13px; background: #21759b; -webkit-mask: url("icons/wordpress.svg") center / contain no-repeat; mask: url("icons/wordpress.svg") center / contain no-repeat; }

/* The high-volume plan: one wide row instead of a fifth squeezed column. */
.pp-wide { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .6fr); align-items: center; gap: 28px; margin-top: 14px; padding: 26px 28px; border-radius: 18px; background: var(--h-stage, #0a1122); color: #c6d0e2; }
.pp-wide h3 { color: #fff; }
.pp-wide .pp-tagline { min-height: 0; margin-bottom: 12px; color: #93a1bb; }
.pp-wide__facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-size: 13.5px; }
.pp-wide__facts b { color: #fff; font-weight: 850; }
.pp-wide .pp-price { min-height: 0; }
.pp-wide .pp-amount { color: #fff; }
.pp-wide .pp-unit { color: #c6d0e2; }
.pp-wide .pp-bill { color: #93a1bb; }
.pp-wide .pp-cta.wp-element-button { margin: 0; }

/* Full comparison */
.pp-compare { margin-top: 36px; border-top: 1px solid var(--pp-line); }
.pp-compare summary { position: relative; width: fit-content; padding: 22px 0 22px 30px; color: var(--pp-brand-ink); font-size: 16px; font-weight: 800; cursor: pointer; list-style: none; }
.pp-compare summary::-webkit-details-marker { display: none; }
.pp-compare summary::after { content: ''; position: absolute; left: 4px; top: 50%; width: 9px; height: 9px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; translate: 0 -70%; rotate: 45deg; transition: rotate .3s var(--pp-ease), translate .3s var(--pp-ease); }
.pp-compare[open] summary::after { rotate: -135deg; translate: 0 -20%; }
.pp-compare summary:focus-visible { outline: 2px solid var(--pp-brand); outline-offset: 4px; border-radius: 6px; }
.pp-table-wrap { overflow-x: auto; border: 1px solid var(--pp-line); border-radius: 18px; }
.pp-table-wrap:focus-visible { outline: 2px solid var(--pp-brand); outline-offset: 2px; }
.pp-compare table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13.5px; }
.pp-compare th, .pp-compare td { padding: 13px 16px; border-bottom: 1px solid var(--pp-line); text-align: center; }
.pp-compare tbody tr:last-child :is(th, td) { border-bottom: 0; }
.pp-compare thead th { position: sticky; top: 0; background: var(--pp-soft); color: var(--pp-ink); font-weight: 850; }
.pp-compare tbody th { color: var(--pp-ink-2); font-weight: 600; text-align: right; white-space: nowrap; }
.pp-compare td { color: var(--pp-ink); font-weight: 700; font-feature-settings: "tnum"; }
.pp-yes, .pp-no { display: inline-block; width: 18px; height: 18px; overflow: hidden; color: transparent; font-size: 0; vertical-align: middle; }
.pp-yes { border-radius: 50%; background: var(--pp-wash); position: relative; }
.pp-yes::after { content: ''; position: absolute; left: 5px; top: 5px; width: 8px; height: 4px; border-left: 2px solid var(--pp-brand); border-bottom: 2px solid var(--pp-brand); rotate: -45deg; }
.pp-no { width: 12px; height: 2px; border-radius: 2px; background: #c3ccda; }

.pp-stale { margin: 16px 0 0; color: #8a5a00; font-size: 12.5px; }
.pp-unavailable { padding: 32px; border: 1px solid var(--pp-line); border-radius: 18px; text-align: center; }
.pp-unavailable h3 { margin: 0 0 6px; }
.pp-unavailable p { color: var(--pp-muted); }

@media (prefers-reduced-motion: no-preference) {
  .pp-amount.is-ticking { animation: pp-tick .45s var(--pp-ease); }
  @keyframes pp-tick { from { opacity: .2; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
  .pp-card:hover { translate: 0 -3px; }
}

@media (max-width: 1024px) {
  .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pp-wide__copy { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pp-bar { flex-direction: column; align-items: stretch; }
  .pp-switch { display: grid; grid-template-columns: 1fr 1fr; }
  .pp-switch button { justify-content: center; flex-wrap: wrap; }
  .pp-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pp-price { min-height: 0; }
  .pp-wide { grid-template-columns: minmax(0, 1fr); padding: 22px; }
}
