/* Pricing interaction layout. Typography, neutral backgrounds and pill buttons
   follow the Workhint components registered in __preview/preview-registry.js. */
.pricing-section { padding: 12px 16px 48px; background: #f4f4f4; }
.pricing-intro { margin-bottom: 28px; }
.pricing-intro h1 { margin-top: 20px; }
.pricing-subtitle { margin-top: 16px; }
.pricing-panel { background: #fff; border: 1px solid #e2e8f0; }
.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-card { min-width: 0; display: flex; flex-direction: column; padding: 28px; }
.plan-card + .plan-card { border-left: 1px solid #e2e8f0; }
.plan-heading { min-height: 88px; }
.plan-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-popular { color: #475569; border: 1px solid #cbd5e1; background: #fff; font-size: 9px; line-height: 1.4; border-radius: 9999px; padding: 5px 7px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.plan-tagline { margin-top: 8px; color: #64748b; font-size: 14px; line-height: 1.5; }
.price-details { height: 124px; padding-top: 8px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 50px; }
.price-line { display: flex; align-items: baseline; gap: 3px; min-width: 0; }
[data-price] { color: #171717; font-variant-numeric: tabular-nums; white-space: nowrap; }
[data-price-unit] { color: #525252; font-size: 12px; }
[data-price-state="quote"] [data-price] { font-size: 30px; }
.plan-billing-note, .plan-savings { margin-top: 5px; font-size: 12px; line-height: 16px; color: #64748b; }
.billing-controls { display: flex; justify-content: center; margin-bottom: 32px; }
.billing-switch { width: min(100%, 320px); display: flex; gap: 4px; padding: 4px; height: 44px; background: #f4f4f4; border-radius: 9999px; }
.billing-switch button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; border-radius: 9999px; font-size: 13px; color: #525252; cursor: pointer; transition: background-color 150ms, color 150ms; }
.billing-switch [data-discount-label] { font-size: 10px; line-height: 1.3; white-space: nowrap; }
.billing-switch button[data-active="true"] { background: #fff; color: #171717; box-shadow: 0 1px 3px #0f172a12; }
.worker-selector { width: 100%; margin-top: 14px; }
.worker-selector-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 12px; line-height: 1.5; color: #475569; }
.worker-help { position: relative; display: inline-flex; flex-shrink: 0; }
.worker-help button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 0; background: transparent; cursor: help; font-size: 16px; color: #64748b; }
.worker-help [role="tooltip"] { visibility: hidden; opacity: 0; position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: min(260px, 75vw); padding: 12px; background: #171717; color: #fff; font-size: 12px; line-height: 1.6; border-radius: 8px; transition: opacity 150ms; }
.worker-help:hover [role="tooltip"], .worker-help:focus-within [role="tooltip"] { visibility: visible; opacity: 1; }
.worker-select-wrap { position: relative; }
.worker-select-wrap svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }
[data-worker-selector] { appearance: none; display: block; width: 100%; height: 48px; border: 1px solid #cbd5e1; border-radius: 0; padding: 0 44px 0 14px; background: #fff; color: #171717; font-size: 14px; cursor: pointer; }
[data-worker-selector]:hover { border-color: #64748b; }
:is(.pricing-panel, .billing-controls) :is(button, select, a):focus-visible { outline: 2px solid #171717; outline-offset: 4px; }
.plan-cta { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 44px; margin-top: 16px; border: 1px solid #d4d4d4; border-radius: 9999px; color: #171717; background: #fff; font-size: 14px; transition: background-color 150ms; }
.plan-cta:hover { background: #fafafa; }
[data-plan="growth"] .plan-cta { border-color: #171717; background: #171717; color: #fff; }
[data-plan="growth"] .plan-cta:hover { background: #262626; }
.plan-cta svg { flex-shrink: 0; }
.plan-inclusions { flex: 1; margin-top: 24px; padding-top: 24px; border-top: 1px solid #e2e8f0; background: #fff; }
.plan-inclusions h3 { color: #171717; font-size: 16px; line-height: 1.5; font-weight: 400; }
.plan-description { min-height: 84px; margin-top: 10px; color: #64748b; font-size: 14px; line-height: 1.625; }
.plan-features { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.plan-features li { display: flex; align-items: start; gap: 10px; font-size: 14px; line-height: 1.5; color: #334155; }
.plan-features li::before { content: '✓'; flex-shrink: 0; color: #171717; }
@keyframes price-in { from { opacity: .5; } to { opacity: 1; } }
.price-details.is-updating { animation: price-in 180ms ease-out; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .plan-card { padding: 24px; }
  .price-row { gap: 6px; }
}
@media (max-width: 1023px) {
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 24px; }
  .plan-card + .plan-card { border-left: 0; border-top: 1px solid #e2e8f0; }
  .plan-heading { min-height: 78px; }
  .plan-description { min-height: 0; }
}
@media (max-width: 639px) {
  .pricing-section { padding: 10px 16px 32px; }
  .pricing-intro { margin-bottom: 28px; }
  .plan-card { padding: 24px; }
  .price-row { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .price-details.is-updating { animation: none; }
  .pricing-panel *, .pricing-panel *::before { transition: none; }
}
