/* ==========================================================================
   09 PRICING (Olsaar edition): the owner's price list (2026-11-05). Scope every rule under .pricing.
   Layout, top to bottom:
     head        H2 left, lead right (like #contact)
     count bar   "How many phones?" stepper + slider (shown by js/pricing.js; hidden without JS)
     plans       Hosted phones (the featured card: an abyss island, so the nav ignores it) and
                 Self-hosted, side by side; each lights the tier that applies and shows the month
     includes    what every phone gets, once for both plans ("Hosted only" on the phone + SIM)
     posting only  the lowest-cost plan (no phones): a pink-tinted card with its own account count,
                 tiers left, what's included right, the official-API note in small print
     done-for-you  one wide card: the pitch left, the four packages right, what's included under
     terms       four short lines on a hairline
   Tier cells: paper on the light card, the abyss surface on the dark one; the lit tier is the brand
   pink with ink text (5.8:1).
   ========================================================================== */

.pricing {
  --pr-gap: clamp(0.875rem, 1.4vw, 1.25rem);
  --pr-pad: clamp(1.5rem, 2.8vw, 2.5rem);
  --pr-rad: var(--r-4);
}

/* ---------- Head ---------- */
.pricing .pr-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: end;
}
.pricing .pr-head-main { grid-column: 1 / span 7; }
.pricing .pr-title { margin-top: 1.625rem; }
.pricing .pr-lead {
  grid-column: 8 / -1;
  max-width: 27.5rem;
  margin-left: auto;
  padding-bottom: 0.375rem;
}

/* ---------- Phone count ---------- */
.pricing .pr-count {
  display: flex;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 0.75rem 1.75rem 0.75rem 1.75rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pricing .pr-count[hidden] { display: none; }
.pricing .pr-count-label {
  flex: none;
  font-size: 1.0625rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.pricing .pr-stepper {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: var(--r-pill);
  background: var(--bg);
}
.pricing .pr-step {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--ghost-sh);
  cursor: pointer;
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease, transform var(--dur-1) ease;
}
.pricing .pr-step:hover { background: var(--fg); color: var(--surface); }
.pricing .pr-step:active { transform: scale(0.94); }
.pricing .pr-step .i { width: 1rem; height: 1rem; stroke-width: 2.25; }
.pricing .pr-count-n {
  min-width: 3.25rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 660;
  font-stretch: 112%;
  color: var(--fg);
}

/* the slider: a thin track, pink up to the thumb (--p is set by js/pricing.js) */
.pricing .pr-range {
  --p: 6%;
  flex: 1 1 auto;
  min-width: 0;
  height: 1.75rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.pricing .pr-range::-webkit-slider-runnable-track {
  height: 0.375rem;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--flood) var(--p), var(--line-2) var(--p));
}
.pricing .pr-range::-moz-range-track {
  height: 0.375rem;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--flood) var(--p), var(--line-2) var(--p));
}
.pricing .pr-range::-webkit-slider-thumb {
  width: 1.375rem;
  height: 1.375rem;
  margin-top: -0.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 0 0.25rem var(--surface), 0 0.25rem 0.75rem rgba(10, 10, 11, 0.25);
  -webkit-appearance: none;
  appearance: none;
}
.pricing .pr-range::-moz-range-thumb {
  width: 1.375rem;
  height: 1.375rem;
  border: 0;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 0 0.25rem var(--surface), 0 0.25rem 0.75rem rgba(10, 10, 11, 0.25);
}
.pricing .pr-range:focus-visible { outline: none; }
.pricing .pr-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 0.25rem var(--surface), 0 0 0 0.4375rem var(--flood); }
.pricing .pr-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 0.25rem var(--surface), 0 0 0 0.4375rem var(--flood); }

/* ---------- Cards (shared) ---------- */
.pricing .pr-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--pr-gap);
  margin-top: var(--pr-gap);
}
.pricing .pr-card,
.pricing .pr-incl,
.pricing .pr-dfy {
  border-radius: var(--pr-rad);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pricing .pr-card {
  --tier-bg: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--pr-pad);
}
/* the featured plan: an abyss island (data-theme + data-island), so its tokens are the dark ones */
.pricing .pr-card[data-theme="abyss"] {
  --tier-bg: var(--surface);
  background: var(--bg);
  box-shadow: 0 1.75rem 3.5rem -1.75rem rgba(11, 13, 16, 0.45);
}

.pricing .pr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg-3);
}
.pricing .pr-name {
  margin-top: 0.875rem;
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 640;
  font-stretch: 125%;
  letter-spacing: -0.035em;
  line-height: 1;
}
.pricing .pr-desc {
  max-width: 34rem;
  margin-top: 0.875rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--fg-2);
  text-wrap: pretty;
}

.pricing .pr-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.625rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.pricing .pr-from { font-size: 1rem; font-weight: 600; color: var(--fg-3); }
.pricing .pr-from[hidden] { display: none; }
.pricing .pr-amt {
  font-size: clamp(3rem, 5.2vw, 4.75rem);
  font-weight: 660;
  font-stretch: 125%;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--fg);
}
.pricing .pr-per { font-size: 1rem; font-weight: 520; color: var(--fg-3); }
.pricing .pr-total {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--fg-2);
}
.pricing .pr-total[hidden] { display: none; }
.pricing .pr-total b { font-weight: 660; color: var(--fg); }

/* the tiers: one row of cells; the one that applies is lit */
.pricing .pr-tiers {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: 0.375rem;
  align-self: stretch;
  margin: clamp(1.5rem, 2.4vw, 2rem) 0 0;
  padding: 0;
  list-style: none;
}
.pricing .pr-tiers li {
  display: grid;
  gap: 0.375rem;
  padding: 0.875rem 1rem 0.9375rem;
  border-radius: var(--r-2);
  background: var(--tier-bg);
  transition: background-color 0.35s var(--ease-out);
}
.pricing .pr-tier-n { font-size: 0.875rem; font-weight: 560; color: var(--fg-3); white-space: nowrap; }
.pricing .pr-tier-p {
  font-size: 1.375rem;
  font-weight: 660;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg);
}
.pricing .pr-tiers li.is-on { background: var(--flood); }
.pricing .pr-tiers li.is-on .pr-tier-n,
.pricing .pr-tiers li.is-on .pr-tier-p { color: #0a0a0b; }

.pricing .pr-note {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--fg-3);
}
/* the CTA sits on the card's floor, whatever the other card's height */
.pricing .pr-card .pr-cta { margin-top: auto; }
.pricing .pr-card .pr-floor { flex: 1 1 auto; min-height: 2rem; }

/* ---------- What every phone includes (both plans) ---------- */
.pricing .pr-incl {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.5rem 2.5rem;
  margin-top: var(--pr-gap);
  padding: var(--pr-pad);
}
.pricing .pr-inc-t {
  font-size: 1.25rem;
  font-weight: 640;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.pricing .pr-incl-sub {
  max-width: 22rem;
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--fg-3);
}

.pricing .pr-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pricing .pr-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--fg-2);
}
.pricing .pr-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1875rem;
  width: 1.0625rem;
  height: 1.0625rem;
  background: var(--flood);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pricing .pr-tag {
  display: inline-block;
  margin-left: 0.375rem;
  padding: 0.1875rem 0.5rem;
  border-radius: var(--r-pill);
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 620;
  line-height: 1.2;
  color: var(--fg-2);
  vertical-align: 0.0625rem;
  white-space: nowrap;
}

/* ---------- Posting only: the lowest-cost plan, pink-tinted so it reads as its own option ---------- */
.pricing .pr-post {
  --tier-bg: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem 3rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: var(--pr-pad);
  border-radius: var(--pr-rad);
  background: #ffe9ef;
  box-shadow: inset 0 0 0 1px rgba(255, 61, 113, 0.28);
}
.pricing .pr-post-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.pricing .pr-badge {
  display: inline-block;
  margin-left: 0.625rem;
  padding: 0.4em 0.75em;
  border-radius: var(--r-pill);
  background: var(--flood);
  font-size: 0.875rem;
  font-weight: 660;
  font-stretch: 100%;
  letter-spacing: 0;
  line-height: 1;
  color: #0a0a0b;
  vertical-align: 0.35em;
  white-space: nowrap;
}
/* its count bar sits inside the card */
.pricing .pr-count--in {
  align-self: stretch;
  margin-top: 1.5rem;
  padding: 0.5rem 1.25rem;
  box-shadow: none;
}
.pricing .pr-count--in .pr-count-label { font-size: 1rem; }
.pricing .pr-post .pr-cta { margin-top: 2rem; }
.pricing .pr-post-inc {
  align-self: start;
  padding: clamp(1.5rem, 2.4vw, 2rem);
  border-radius: var(--r-3);
  background: #ffffff;
}
.pricing .pr-post-inc .pr-inc-t { margin-bottom: 1.25rem; }
.pricing .pr-list--1 { grid-template-columns: minmax(0, 1fr); }
/* the small print */
.pricing .pr-fine {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--fg-3);
}

/* ---------- Done-for-you ---------- */
.pricing .pr-dfy {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2rem 2.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: var(--pr-pad);
}
.pricing .pr-dfy-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.pricing .pr-dfy-main .pr-cta { margin-top: 2rem; }

.pricing .pr-packs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pricing .pr-packs li {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.375rem;
  border-radius: var(--r-3);
  background: var(--bg);
}
.pricing .pr-pack-name {
  font-size: 1rem;
  font-weight: 640;
  font-stretch: 112%;
  color: var(--fg);
}
.pricing .pr-pack-acc { margin-top: 0.25rem; font-size: 0.9375rem; color: var(--fg-3); }
.pricing .pr-pack-price {
  margin-top: auto;
  padding-top: 1.75rem;
  font-size: 0.9375rem;
  color: var(--fg-3);
}
.pricing .pr-pack-price b {
  display: block;
  margin-bottom: 0.25rem;
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  font-weight: 660;
  font-stretch: 125%;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--fg);
}
.pricing .pr-pack-setup {
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--fg-2);
}
.pricing .pr-pack-setup b { font-weight: 640; color: var(--fg); }

.pricing .pr-dfy-inc {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.5rem 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.pricing .pr-dfy-inc .pr-note { max-width: 22rem; margin-top: 0.625rem; }

/* ---------- Terms ---------- */
.pricing .pr-terms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: clamp(2.5rem, 4.5vw, 3.5rem) 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-2);
}
.pricing .pr-terms dt {
  font-size: 0.9375rem;
  font-weight: 640;
  color: var(--fg);
}
.pricing .pr-terms dd {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--fg-2);
  text-wrap: pretty;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* side by side, the two plans' prices line up: both descriptions get three lines */
@media (min-width: 861px) {
  .pricing .pr-plans .pr-desc { min-height: 4.5em; }
}

@media (max-width: 1180px) {
  .pricing .pr-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .pricing .pr-head-main,
  .pricing .pr-lead { grid-column: 1 / -1; }
  .pricing .pr-lead { max-width: 32.5rem; margin-left: 0; padding-bottom: 0; }
  .pricing .pr-incl,
  .pricing .pr-post,
  .pricing .pr-dfy,
  .pricing .pr-dfy-inc { grid-template-columns: minmax(0, 1fr); }
  .pricing .pr-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .pricing .pr-plans { grid-template-columns: minmax(0, 1fr); }
  .pricing .pr-card .pr-floor { flex: none; min-height: 2rem; }
}

@media (max-width: 760px) {
  .pricing .pr-count {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 1rem 1.25rem 1.125rem;
    border-radius: var(--r-3);
  }
  .pricing .pr-count-label { flex: 1 1 auto; }
  .pricing .pr-range { flex: 1 1 100%; }
  .pricing .pr-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .pricing .pr-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing .pr-tiers--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pricing .pr-tiers li { padding: 0.75rem 0.875rem 0.8125rem; }
  .pricing .pr-tier-u { display: none; }
  .pricing .pr-packs { grid-template-columns: minmax(0, 1fr); }
  .pricing .pr-pack-price { padding-top: 1.125rem; }
  .pricing .pr-terms { grid-template-columns: minmax(0, 1fr); }
}
