/* Nevian — /pricing only (public/pricing.html), on top of site.css (tokens, header, footer, buttons, dark scheme of
   .document-page). Ticket 03 of .scratch/nevian-whop-billing (13/11/2026).
   The two radio groups pick what shows: [data-cur] (usd | brl) and [data-int] (month | year). Pure CSS (:has), so the
   switches work without JavaScript; pricing.js only picks reais for Brazilian browsers. One accent blue, no green. */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* what the switches hide */
.pricing:has(#currency-usd:checked) [data-cur="brl"],
.pricing:has(#currency-brl:checked) [data-cur="usd"],
.pricing:has(#interval-month:checked) [data-int="year"],
.pricing:has(#interval-year:checked) [data-int="month"] { display: none; }

.pricing { padding: clamp(48px, 7vw, 96px) 0 clamp(80px, 10vw, 136px); }

.pricing-head { display: grid; gap: 18px; justify-items: center; text-align: center; }
.pricing-head h1 {
  font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600;
  text-wrap: balance;
}
.pricing-head .lead { max-width: 52ch; }

/* ------------------------------------------------------------------ SWITCHES (segmented, radios inside) */
.pricing-switches { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 36px 0 40px; }
.seg {
  position: relative; display: inline-flex; margin: 0; padding: 4px; min-width: 0;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
}
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg label {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px;
  border-radius: var(--radius-pill); font: 500 14px/1 var(--font); color: var(--text-2);
  cursor: pointer; user-select: none; transition: background-color .2s, color .2s;
}
.seg label:hover { color: var(--text); }
.seg input:checked + label { background: var(--text); color: var(--bg); }
.seg input:focus-visible + label { outline: 2px solid var(--text); outline-offset: 2px; }
/* "save ~25%" is a label, not a button: neutral, in the switch's own text color (inverted once Yearly is picked) */
.seg-save {
  padding: 3px 8px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; font-size: 12px; font-weight: 600;
}

/* ------------------------------------------------------------------ PLAN CARDS */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan {
  display: flex; flex-direction: column; gap: 6px;
  padding: 28px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg);
}
.plan h2 { font-size: 20px; line-height: 1.2; letter-spacing: -.01em; font-weight: 600; }
.plan-for { min-height: 3em; color: var(--text-3); font-size: 14px; }
.plan-price, .plan-question {
  margin-top: 18px; font-size: 44px; line-height: 1.05; letter-spacing: -.035em; font-weight: 600;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.plan-per { font-size: 15px; letter-spacing: 0; font-weight: 400; color: var(--text-3); }
.plan-question { font-size: 32px; white-space: normal; text-wrap: balance; }
.plan-billing { min-height: 1.5em; color: var(--text-3); font-size: 13px; }
.plan .btn { margin: 18px 0 6px; width: 100%; height: 44px; }
.plan-limits {
  display: grid; gap: 10px; margin: 16px 0 0; padding: 18px 0 0; list-style: none;
  border-top: 1px solid var(--border); font-size: 14px; color: var(--text-2);
}
.plan-limits strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-unlocked {
  margin-top: auto; padding-top: 18px; font-size: 13px; line-height: 1.5; color: var(--text-3);
}
.plan-unlocked::before {
  content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%;
  background: var(--blue);
}
.plan-enterprise { background: var(--raised); border-color: transparent; }

@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-for, .plan-billing { min-height: 0; }
  .pricing-switches { margin: 28px 0 32px; }
}

/* ------------------------------------------------------------------ NOTES */
.pricing-notes { max-width: 860px; margin: clamp(64px, 8vw, 104px) auto 0; }
.pricing-notes h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; margin-bottom: 8px; }
.pricing-notes dl { margin: 0; }
.pricing-notes dl > div {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 24px;
  padding: 18px 0; border-top: 1px solid var(--border);
}
.pricing-notes dl > div:first-child { border-top: 0; }
.pricing-notes dt {
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase;
  line-height: 2.2; color: var(--text-3);
}
.pricing-notes dd { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-2); }
.pricing-notes a {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--blue);
  text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
@media (max-width: 640px) { .pricing-notes dl > div { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { .seg label { transition: none; } }
