/* ==========================================================================
   ADPOS — Pricing (/pricing). Builds on site.css + features.css.
   ========================================================================== */
html:has(.page-pricing) { scroll-padding-top: var(--header-h); }

/* ---------- Hero ---------- */
.px-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 30px; }
.px-trust li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--charcoal); font-size: .95rem; }
.px-trust li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4 6.8 11 12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Plans ---------- */
.px-plans { padding-top: clamp(24px, 3vw, 40px); }
.page-pricing .px-plans { scroll-margin-top: 0; }
.px-plans__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.px-plans__head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.px-toggle { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--stone); border: 1px solid var(--line); }
.px-toggle button {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: .95rem; color: var(--muted);
  border: 0; background: none; padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s;
}
.px-toggle button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -6px rgba(18, 20, 22, .35); }
.px-toggle__save { font-size: .7rem; font-weight: 800; letter-spacing: .04em; color: var(--teal); background: #E5F1EF; padding: 3px 8px; border-radius: 999px; }

.px-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.px-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(24px, 2.6vw, 34px); transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.px-card:hover { box-shadow: 0 30px 60px -44px rgba(18, 20, 22, .5); transform: translateY(-3px); }
.px-card--pro { border: 2px solid var(--orange); box-shadow: 0 30px 60px -44px rgba(226, 126, 20, .6); }
.px-card h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.px-card__for { margin-top: 6px; color: var(--muted); min-height: 3em; }
.px-price { margin: 22px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.px-price__main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; color: var(--ink); }
.px-price__cur { font-weight: 700; font-size: 1rem; color: var(--muted); }
.px-price__main strong { font-size: clamp(2.2rem, 3.4vw, 2.9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; transition: opacity .2s; }
.px-price__main span[data-unit] { color: var(--muted); font-weight: 600; }
.px-price__alt { margin-top: 8px; font-size: .92rem; color: var(--muted); }
.px-price.is-swapping strong { opacity: 0; }
.px-card__cta { width: 100%; padding: 14px 20px; font-size: 1rem; }
.px-card__label { margin-top: 26px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.px-limits { display: grid; gap: 8px; margin-top: 12px; }
.px-limits li { display: flex; gap: 6px; align-items: baseline; padding: 10px 14px; border-radius: 10px; background: var(--stone); color: var(--body); font-size: .95rem; }
.px-limits strong { color: var(--ink); }
.px-feats { margin-top: 12px; gap: 12px; }
.px-feats li { align-items: flex-start; font-weight: 600; line-height: 1.45; font-size: .95rem; }
.px-feats li::before { margin-top: 1px; }
.px-note { margin-top: 22px; text-align: center; color: var(--muted); font-size: .92rem; }

/* ---------- Comparison table (stacks into per-row cards on mobile) ---------- */
.px-table { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.px-table table { width: 100%; border-collapse: collapse; }
.px-table th, .px-table td { text-align: left; padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.px-table thead th { border-top: 0; background: var(--ink); color: #fff; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.px-table thead th:nth-child(3) { background: var(--orange-600); }
.px-table tbody th { font-weight: 700; color: var(--ink); width: 22%; }
.px-table td { color: var(--body); width: 26%; }
.px-table tbody tr:hover { background: var(--cream); }

/* ---------- Value: three plan steps ---------- */
.px-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); counter-reset: s; }
.px-steps li { padding: 30px 28px 8px 0; display: grid; gap: 10px; align-content: start; }
.px-steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.px-steps__plan { justify-self: start; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-600); background: var(--orange-50); padding: 5px 10px; border-radius: 6px; }
.px-steps h3 { font-size: 1.2rem; margin-top: 6px; }
.px-steps p { color: var(--muted); font-size: .96rem; }

/* ---------- Free trial ---------- */
.px-trial { display: flex; align-items: center; justify-content: space-between; gap: 32px; border-radius: 24px; background: #fff; border: 1px solid var(--line); padding: clamp(28px, 4vw, 52px); }
.px-trial h2 { max-width: 14ch; }

.px-cta__eyebrow { color: #F7B267; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .px-cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .px-card__for { min-height: 0; }
  .px-plans__head { justify-content: center; text-align: center; }
}
@media (max-width: 899px) {
  .px-steps { grid-template-columns: 1fr; }
  .px-steps li, .px-steps li + li { padding: 24px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .px-steps li:first-child { border-top: 0; }
  .px-trial { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
  .px-table thead { display: none; }
  .px-table, .px-table table, .px-table tbody, .px-table tr { display: block; }
  .px-table tr { padding: 16px 18px; border-top: 1px solid var(--line); }
  .px-table tr:first-child { border-top: 0; }
  .px-table tbody th { display: block; width: auto; padding: 0 0 10px; border: 0; }
  .px-table td { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; width: auto; padding: 6px 0; border: 0; font-size: .94rem; }
  .px-table td::before { content: attr(data-label); font-weight: 700; color: var(--ink); }
}
@media (max-width: 420px) {
  .px-toggle button { padding: 9px 14px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .px-card:hover { transform: none; }
}
