/* ==== PRICING PAGE (page-specific; shared components live in /teleconvo/styles.css) ==== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==== HERO ==== */

.pricing-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 158px 0 54px;
}

.pricing-hero h1 {
  max-width: 16ch;
  margin: 18px 0 22px;
  font-size: 3.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.pricing-hero-lede {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.72;
}

/* ==== BILLING TOGGLE ==== */

.billing-toggle {
  display: inline-flex;
  gap: 3px;
  margin-top: 34px;
  padding: 3px;
  border: 1px solid color-mix(in oklch, var(--line), transparent 12%);
  border-radius: 8px;
  background: color-mix(in oklch, var(--panel), transparent 16%);
}

.toggle-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 560;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.toggle-option:hover {
  color: var(--ink);
}

.toggle-option[aria-pressed="true"] {
  background: var(--panel-strong);
  color: var(--ink);
}

.toggle-save {
  color: var(--green);
  font-size: 0.72rem;
}

/* ==== RATE SECTIONS (minutes, add-ons, setup, compare, faq) ==== */

.rate-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 0;
}

.rate-section h2 {
  max-width: 24ch;
  margin: 16px 0 34px;
  font-size: 2.2rem;
  font-weight: 680;
  line-height: 1.08;
}

/* ==== MINUTES METER STRIP ==== */

.meter-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--line), transparent 12%);
  border-radius: 8px;
  background: linear-gradient(180deg, color-mix(in oklch, var(--panel-strong), transparent 2%), color-mix(in oklch, var(--panel), transparent 6%));
}

.meter-step {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px 22px 26px;
}

.meter-step + .meter-step {
  border-left: 1px solid color-mix(in oklch, var(--line), transparent 12%);
}

.meter-step span {
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.meter-step h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 650;
}

.meter-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.meter-guard {
  background: color-mix(in oklch, var(--green), transparent 95%);
}

.meter-guard span,
.meter-guard strong {
  color: var(--green);
}

/* ==== RATE TABLE (add-ons, setup) ==== */

.rate-table {
  display: grid;
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--line), transparent 12%);
  border-radius: 8px;
  background: linear-gradient(180deg, color-mix(in oklch, var(--panel-strong), transparent 2%), color-mix(in oklch, var(--panel), transparent 6%));
}

.rate-table > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 26px;
  padding: 17px 24px;
}

.rate-table > div + div {
  border-top: 1px solid color-mix(in oklch, var(--line), transparent 24%);
}

.rate-table dt {
  display: grid;
  gap: 4px;
  font-weight: 560;
}

.rate-table dt small {
  color: var(--soft);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.5;
}

.rate-table dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 600;
  white-space: nowrap;
}

.rate-table dd span {
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 400;
}

/* ==== COMPARE TABLE ==== */

.compare-wrap {
  overflow-x: auto;
  border: 1px solid color-mix(in oklch, var(--line), transparent 12%);
  border-radius: 8px;
  background: linear-gradient(180deg, color-mix(in oklch, var(--panel-strong), transparent 2%), color-mix(in oklch, var(--panel), transparent 6%));
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compare-table thead th {
  padding: 16px 20px;
  border-bottom: 1px solid color-mix(in oklch, var(--line), transparent 12%);
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 560;
  text-align: left;
  text-transform: uppercase;
}

.compare-table tbody th {
  padding: 13px 20px;
  color: var(--muted);
  font-weight: 480;
  text-align: left;
}

.compare-table tbody td {
  padding: 13px 20px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.compare-table tbody tr + tr th,
.compare-table tbody tr + tr td {
  border-top: 1px solid color-mix(in oklch, var(--line), transparent 36%);
}

.compare-table thead th:nth-child(3),
.compare-table tbody tr:not(.compare-group) td:nth-child(3) {
  background: color-mix(in oklch, var(--cyan), transparent 95%);
}

.compare-table thead th:nth-child(3) {
  color: var(--cyan);
}

.compare-group td {
  padding: 22px 20px 8px;
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 560;
  text-transform: uppercase;
}

.c-yes {
  color: var(--green);
}

.c-dim {
  color: var(--soft);
}

/* ==== FAQ ==== */

.faq-list {
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--line), transparent 12%);
  border-radius: 8px;
  background: linear-gradient(180deg, color-mix(in oklch, var(--panel-strong), transparent 2%), color-mix(in oklch, var(--panel), transparent 6%));
}

.faq-item + .faq-item {
  border-top: 1px solid color-mix(in oklch, var(--line), transparent 24%);
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
  padding: 19px 24px;
  font-weight: 560;
  cursor: pointer;
  list-style: none;
  transition: background 180ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  color: var(--soft);
  font-family: var(--font-mono);
  content: "+";
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: color-mix(in oklch, var(--ink), transparent 96%);
}

.faq-item p {
  max-width: 72ch;
  margin: 0;
  padding: 0 24px 20px;
  color: var(--muted);
  line-height: 1.68;
}

/* ==== PAGE RHYTHM ==== */

.pricing-hero + .pricing-section {
  padding-top: 0;
}

.cta-section {
  padding-top: 128px;
}

/* ==== RESPONSIVE ==== */

@media (max-width: 980px) {
  .pricing-hero h1 {
    font-size: 3rem;
  }

  .meter-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meter-step + .meter-step {
    border-left: 0;
  }

  .meter-step:nth-child(2n) {
    border-left: 1px solid color-mix(in oklch, var(--line), transparent 12%);
  }

  .meter-step:nth-child(n + 3) {
    border-top: 1px solid color-mix(in oklch, var(--line), transparent 12%);
  }
}

@media (max-width: 640px) {
  .pricing-hero {
    width: min(100% - 24px, 1180px);
    padding: 128px 0 40px;
  }

  .pricing-hero h1 {
    font-size: 2.45rem;
    line-height: 1.04;
  }

  .pricing-hero-lede {
    font-size: 1rem;
  }

  .rate-section {
    width: min(100% - 24px, 1180px);
    padding-top: 66px;
  }

  .rate-section h2 {
    font-size: 1.8rem;
  }

  .meter-strip {
    grid-template-columns: 1fr;
  }

  .meter-step:nth-child(2n) {
    border-left: 0;
  }

  .meter-step + .meter-step {
    border-top: 1px solid color-mix(in oklch, var(--line), transparent 12%);
  }

  .rate-table > div {
    flex-direction: column;
    gap: 8px;
  }

  .faq-item summary {
    padding: 16px 18px;
  }

  .faq-item p {
    padding: 0 18px 18px;
  }
}
