/* Pricing shares the site's neutral surfaces, type, controls, and theme tokens. */
.pricing-page { padding-bottom: 96px; }
.pricing-page [hidden] { display: none !important; }
/* Nov 2026: left-aligned like the other pages; less room under the top bar (88 → 56px) */
.pricing-hero { max-width: 900px; margin-inline: 0; padding: var(--tv-page-top, 56px) 0 72px; text-align: left; }   /* --tv-page-top: site-chrome.css */
/* tighter leading like the Support title; size from the shared scale (site-chrome.css) */
body .pricing-hero h1 { line-height: .92; }
.pricing-hero h1 { margin-top: 22px; font-size: clamp(38px, 5.2vw, 64px); font-weight: 500; line-height: 1.08; letter-spacing: -.055em; text-wrap: balance; }
/* lead = the homepage lead under "Describe a flow. Generate a test." */
.pricing-lede { max-width: 620px; margin: 24px 0 0; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: var(--tv-muted); text-wrap: pretty; }
@media (min-width: 1024px) { .pricing-lede { max-width: none; } }   /* one line on desktop (Nov 2026) */
.pricing-availability { margin-top: 20px; font-size: 13px; color: var(--gray-600); }
.pricing-availability a, .pricing-text-link, .pricing-faq a { text-decoration: underline; text-underline-offset: 3px; }
.pricing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 31px; }   /* 24 + the 7px the title gives back */
.pricing-toolbar h2 { font-size: 20px; font-weight: 500; letter-spacing: -.025em; }
/* "Cloud plans" = homepage "Get product updates" (Nov 2026): H3 = H2 ÷ 1.618 (+2px), wave fill (blue → teal → green).
   padding-bottom lets the fill cover the descenders; `body` beats the h2 rules of site-chrome.css */
body .pricing-toolbar h2 {
  margin: 0 0 -.16em; padding-bottom: .16em;   /* negative margin: the box is centred on the capitals, so the switch lines up with them */
  font-family: var(--tv-font); font-size: calc(var(--tv-fs-h2) / 1.618 + 2px); font-weight: 600; line-height: 1.1; letter-spacing: -.015em;
  color: transparent; background: url("/assets/wave-label-teal.svg") center / 100% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
/* billing switch: 50px high, 15px text, selected option in the green of "Cloud plans" in both themes;
   on four columns it is as wide as the Business column (grid gap 14px) */
body .billing-toggle { padding: 3px; gap: 3px; }
body .billing-toggle span { min-height: 42px; padding: 6px 14px; gap: 7px; justify-content: center; font-size: 15px; white-space: nowrap; }
body .billing-toggle b { font-size: 12px; }
/* selected option: solid green, the last colour of the "Cloud plans" wave fill (wave-label-teal.svg), white text */
body .billing-toggle input:checked + span { background: #009806; color: #fff; font-weight: 600; }
body .billing-toggle input:checked:hover + span { filter: brightness(.94); }
@media (min-width: 1051px) {
  .pricing-toolbar .billing-toggle { flex: 0 0 calc((100% - 3 * 14px) / 4); box-sizing: border-box; }
  .pricing-toolbar .billing-toggle label { flex: 1 1 auto; }
}
.billing-toggle { display: flex; border: 1px solid var(--line-3); border-radius: var(--radius-pill); padding: 4px; gap: 4px; }
.billing-toggle label { position: relative; cursor: pointer; }
.billing-toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pricing-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.billing-toggle span { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 16px; border-radius: var(--radius-pill); font-size: 13px; color: var(--gray-700); }
.billing-toggle b { font-size: 11px; font-weight: 500; }
.billing-toggle input:checked + span { background: var(--primary); color: var(--on-primary); }
.billing-toggle input:focus-visible + span { outline: 2px solid var(--gray-900); outline-offset: 3px; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan-card { padding: 24px 20px; border: 1px solid var(--line-3); border-radius: var(--radius-card); background: var(--card); min-width: 0; }
.plan-featured { border-color: var(--primary); background: var(--primary-soft); }
.plan-card h3, .enterprise-plan h3 { font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.plan-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-badge { background: var(--primary); color: var(--on-primary); border-radius: var(--radius-pill); padding: 3px 9px; font-size: 10px; }
.plan-description { margin-top: 8px; min-height: 44px; font-size: 13px; line-height: 1.6; color: var(--gray-600); }
.plan-price { margin-top: 28px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price strong { font-size: clamp(28px, 2.8vw, 38px); font-weight: 500; line-height: 1.2; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 12px; color: var(--gray-600); }
.plan-billing { min-height: 42px; margin-top: 10px; font-size: 12px; color: var(--gray-600); }
.plan-card .btn { width: 100%; min-height: 44px; padding-inline: 12px; font-size: 13px; margin-top: 12px; }
.plan-features { list-style: none; border-top: 1px solid var(--line-1); margin-top: 24px; padding-top: 16px; font-size: 13px; }
.plan-features li { padding: 6px 0; }
.plan-features strong { font-weight: 600; }
.plan-features .plan-capacity { padding: 8px 0 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line-1); }
.plan-capacity span, .plan-capacity small { display: block; }
.plan-capacity-row { position: relative; display: flex; align-items: center; gap: 4px; font-size: 12px; }
.plan-capacity-row > span { min-width: 0; text-wrap: pretty; }
.estimate-info { flex: 0 0 auto; }
.estimate-info summary { display: grid; place-items: center; width: 24px; height: 24px; list-style: none; cursor: pointer; border-radius: 50%; color: var(--gray-600); }
.estimate-info summary::-webkit-details-marker { display: none; }
.estimate-info summary:hover, .estimate-info[open] summary { color: var(--gray-900); background: var(--hover); }
.estimate-info svg { width: 16px; height: 16px; }
.estimate-info:not([open]) p { display: none; }
.estimate-info p { position: absolute; z-index: 3; right: 0; top: calc(100% + 6px); width: min(250px, 70vw); padding: 14px; border: 1px solid var(--line-3); border-radius: var(--radius-tile); background: var(--card); box-shadow: var(--shadow-pop); color: var(--gray-700); font-size: 12px; line-height: 1.6; }
.plan-capacity small { margin-top: 6px; color: var(--gray-600); font-size: 11px; }
.plan-note { font-size: 12px; color: var(--gray-600); margin-top: 18px; }
.pricing-footnote { margin: 20px 0 28px; color: var(--gray-600); font-size: 12px; }
.pricing-estimate-note { margin: -12px 0 28px; color: var(--gray-600); font-size: 12px; max-width: 900px; }
.pricing-estimate-note strong { color: var(--gray-900); font-weight: 500; }
.enterprise-plan { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 32px; align-items: center; border: 1px solid var(--line-3); border-radius: var(--radius-card); padding: 28px; }
.enterprise-plan p { color: var(--gray-600); font-size: 14px; max-width: 300px; margin-top: 8px; }
.enterprise-plan .enterprise-eyebrow { margin: 0 0 10px; color: var(--primary); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.enterprise-onprem { margin-bottom: 10px; }
.enterprise-onprem strong { color: var(--primary); font-weight: 600; }
.enterprise-onprem small { display: block; color: var(--gray-600); font-size: 12px; }
.enterprise-plan ul { list-style: none; font-size: 13px; line-height: 2; }
.enterprise-action { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.enterprise-action strong { font-size: 14px; font-weight: 500; }
.enterprise-action .btn { min-height: 44px; }
.pricing-explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 88px 0; margin-top: 64px; border-top: 1px solid transparent; /* rule removed, same distances (Nov 2026) */ }
.pricing-explainer h2, .pricing-faq h2 { font-size: clamp(28px, 3.2vw, 36px); font-weight: 500; line-height: 1.2; letter-spacing: -.045em; text-wrap: balance; }
/* "Understanding credits": label like the page header, title = section H2 (H2 ÷ 1.618) (Nov 2026) */
body .pricing-explainer .eyebrow { font-family: var(--tv-font); font-size: 16px; font-weight: 500; letter-spacing: .05em; text-transform: capitalize; color: var(--tv-eyebrow); }
body .pricing-explainer h2 { margin-top: 14px; font-size: calc(var(--tv-fs-h2) / 1.618); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; color: var(--tv-fg); text-wrap: initial; }
/* two columns: the label sits above the row, so the top of the title's capitals lines up with the top of the
   text on the right (Albert Sans: cap top = line-height/2 - 0.357em; label 25.6px + 14px gap, text 15/24px) */
@media (min-width: 641px) {
  .pricing-explainer > div:first-child { margin-top: calc(-32.95px - var(--tv-fs-h2) * 0.1255); }
}
.pricing-copy p { color: var(--gray-600); margin-bottom: 20px; font-size: 15px; }
.pricing-text-link { font-size: 14px; }
/* "A few things to know.": no rule above it; title = section H2 (H2 ÷ 1.618), then Q&A cards (Nov 2026) */
.pricing-faq { padding: 0 0 clamp(32px, 4vw, 56px); }
body .pricing-faq h2 { margin: 0 0 clamp(28px, 3.5vw, 44px); font-size: calc(var(--tv-fs-h2) / 1.618); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; color: var(--tv-fg); }
/* "Your next release, with more confidence." = homepage "A little more confidence. Start with Free." (#get-access):
   no grey panel, centred H2 with the full wave fill, homepage body text, purple "Start free" button (Nov 2026) */
.pricing-close { padding: clamp(32px, 4vw, 56px) 0 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pricing-close .tv-h2 {
  margin: 0 0 calc(30px - .16em); padding-bottom: .16em;
  color: transparent; background: url("/assets/wave-label-full.svg") center / 100% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
[data-theme="dark"] .pricing-close .tv-h2 { background-image: url("/assets/wave-label-full-dark.svg"); }
.pricing-close .tv-body-lg { margin: 0 0 30px; max-width: 560px; font-size: max(17px, calc(var(--tv-fs-body-lg) * .88)); line-height: 1.5; }   /* a little smaller than the homepage, never under the 17px body text */
.pricing-close .tv-btn { text-decoration: none; }
@media (max-width: 1050px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-price strong { font-size: 38px; }
}
@media (max-width: 640px) {
  .pricing-page { padding-bottom: 64px; }
  .pricing-hero { padding: var(--tv-page-top, 52px) 0 48px; }
  .pricing-toolbar { flex-direction: column; align-items: flex-start; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 24px; }
  .plan-description { min-height: 0; }
  .plan-price { margin-top: 20px; }
  .plan-billing { min-height: 0; }
  .plan-card .btn { margin-top: 24px; }
  .enterprise-plan, .pricing-explainer { grid-template-columns: 1fr; gap: 28px; }
  .enterprise-action { align-items: flex-start; }
  .pricing-explainer { margin-top: 48px; padding: 48px 0; }
  .pricing-faq { padding: 40px 0 32px; }
}
