/* Pricing tabs (Mid-Size B2B, Enterprise, Local) on /pricing.php.
   Progressive: without the script, the tab list is hidden and all three panels
   are shown in order, each with its own heading. Brand teal, no purple.
   Text colors are at least 4.5 to 1 on their surfaces (tests/test-pricing-segments.php). */

.pricing-page {
  --seg-teal: #003737;
  --seg-teal-2: #0a5c56;
  --seg-tint: #e8f6f3;
  --seg-line: #cfdcd9;
  --seg-ink: #0f172a;
  --seg-body: #1e293b;
  --seg-soft: #334155;
  --seg-white: #ffffff;
  --seg-surface: #f8fafc;
}

.seg-tablist { display: none; }
.seg-panel { margin: 0 0 40px; }
.seg-panel:last-child { margin-bottom: 0; }
.seg-title { margin: 0 0 10px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 700; line-height: 1.2; color: var(--seg-ink); }
.seg-title--local { margin-bottom: 8px; }
.seg-local-intro { max-width: 76ch; margin: 0 0 22px; color: var(--seg-body); line-height: 1.7; }

/* Enhanced tabs */
.seg-enhanced .seg-tablist { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0 0 24px; padding: 6px; border: 1px solid var(--seg-line); border-radius: 18px; background: var(--seg-surface); }
@media (min-width: 640px) { .seg-enhanced .seg-tablist { grid-template-columns: repeat(3, 1fr); } }
.seg-tab { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; border: 0; border-radius: 14px; background: transparent; color: var(--seg-ink); text-align: left; cursor: pointer; font: inherit; }
.seg-tab .bi { flex: 0 0 auto; font-size: 26px; color: var(--seg-teal); }
.seg-tab-text { display: grid; gap: 2px; }
.seg-tab-text strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.02rem; font-weight: 700; color: inherit; }
.seg-tab-text span { font-size: .9531rem; color: var(--seg-soft); }
.seg-tab:hover { background: var(--seg-white); }
.seg-tab[aria-selected="true"] { background: var(--seg-teal); color: var(--seg-white); box-shadow: 0 8px 22px rgba(0, 55, 55, .18); }
.seg-tab[aria-selected="true"] .bi,
.seg-tab[aria-selected="true"] .seg-tab-text span { color: var(--seg-white); }
.seg-tab:focus-visible { outline: 3px solid var(--seg-teal); outline-offset: 3px; }
.seg-enhanced .seg-panel[hidden] { display: none; }
.seg-enhanced .seg-panel { margin-bottom: 0; }

/* B2B and Enterprise: the same package card as the local plans, beside a
   panel that explains what sets the price inside the published range. */
.seg-program { display: grid; gap: 20px; align-items: start; }
.seg-program > * { min-width: 0; }
@media (min-width: 900px) { .seg-program { grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 32px; } }
.package-grid.package-grid--single { grid-template-columns: minmax(0, 1fr); }
.package-price .package-price-from { padding-bottom: 7px; color: var(--seg-soft); font-weight: 700; font-size: .9688rem; }
.package-range { margin: 0 0 4px; color: var(--seg-body); font-size: .9219rem; line-height: 1.5; }
.seg-cta { width: 100%; justify-content: center; }
@media (min-width: 600px) { .seg-cta { width: auto; } }
.seg-fit { margin: 14px 0 0; color: var(--seg-soft); font-size: .9531rem; }
.seg-fit a, .seg-list a { color: var(--seg-teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.seg-fit a:hover, .seg-list a:hover { color: var(--seg-teal-2); }
.seg-range { margin: 0 0 18px; color: var(--seg-body); font-size: .9688rem; line-height: 1.6; }
.seg-side { padding: 22px; border-radius: 16px; background: var(--seg-surface); border: 1px solid var(--seg-line); }
.seg-list-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: 'Space Grotesk', sans-serif; font-size: 1.02rem; font-weight: 700; color: var(--seg-ink); }
.seg-list-title .bi { color: var(--seg-teal); font-size: 20px; }
.seg-inherit { margin: 0 0 10px; color: var(--seg-body); font-size: .9688rem; }
.seg-list { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.seg-list:last-child { margin-bottom: 0; }
.seg-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--seg-body); font-size: .9688rem; line-height: 1.55; }
.seg-list .bi { font-size: 20px; color: var(--seg-teal); }
.seg-list a { display: inline; }

@media (prefers-reduced-motion: no-preference) {
  .seg-tab { transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
}

/* Fit check pointer above the tabs. */
.seg-help { display: flex; gap: 10px; align-items: flex-start; max-width: 900px; margin: 0 auto 18px; padding: 12px 16px; border: 1px solid var(--seg-line); border-radius: 12px; background: var(--seg-white); color: var(--seg-body); font-size: .9688rem; line-height: 1.6; }
.seg-help .bi { color: var(--seg-teal); font-size: 22px; }
.seg-help a { color: var(--seg-teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* All five plans side by side. Scrolls inside its own region on a phone, with
   the plan name kept in view, so the page itself never scrolls sideways. */
.plan-table-block { margin-top: 48px; }
.plan-table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--seg-line); border-radius: 16px; background: var(--seg-white); }
.plan-table-wrap:focus-visible { outline: 3px solid var(--seg-teal); outline-offset: 3px; }
.plan-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .9688rem; line-height: 1.5; }
.plan-table caption { caption-side: top; text-align: left; padding: 14px 18px; color: var(--seg-ink); font-weight: 700; background: var(--seg-surface); border-bottom: 1px solid var(--seg-line); }
.plan-table thead th { text-align: left; padding: 12px 16px; background: var(--seg-teal); color: var(--seg-white); font-weight: 700; white-space: nowrap; }
.plan-table tbody th, .plan-table td { padding: 14px 16px; border-top: 1px solid var(--seg-line); vertical-align: top; color: var(--seg-body); text-align: left; }
.plan-table tbody th { color: var(--seg-ink); font-weight: 700; position: sticky; left: 0; background: var(--seg-white); min-width: 190px; box-shadow: 1px 0 0 var(--seg-line); }
.plan-table tbody tr:nth-child(even) td, .plan-table tbody tr:nth-child(even) th { background: var(--seg-surface); }
.plan-table-price { white-space: nowrap; font-weight: 700; color: var(--seg-teal); }
.plan-table-price span { display: block; font-weight: 500; font-size: .9375rem; color: var(--seg-soft); white-space: normal; }
.plan-table-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--seg-teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.plan-table-link .bi { font-size: 18px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Larger touch targets for the service chips on every plan card (all tabs). */
.pricing-page .package-services-list a, .pricing-page .package-services-list .package-service-static { display: inline-flex; align-items: center; min-height: 36px; }

/* What sets the price: a short label and one full sentence for each driver. */
.seg-drivers { display: grid; gap: 10px; margin: 0 0 18px; }
.seg-driver { padding: 10px 14px; border-left: 3px solid var(--seg-teal); border-radius: 10px; background: var(--seg-white); }
.seg-driver dt { margin: 0 0 2px; color: var(--seg-ink); font-weight: 700; font-size: .9688rem; }
.seg-driver dd { margin: 0; color: var(--seg-body); font-size: .9688rem; line-height: 1.55; }

/* What happens after a buyer asks, inside the program panel. */
.seg-list-title--next { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--seg-line); }
.seg-steps { margin: 0; padding: 0; list-style: none; counter-reset: seg-step; display: grid; gap: 12px; }
.seg-steps li { counter-increment: seg-step; display: grid; grid-template-columns: 30px 1fr; gap: 10px; color: var(--seg-body); font-size: .9688rem; line-height: 1.55; }
.seg-steps li::before { content: counter(seg-step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--seg-teal); color: var(--seg-white); font-weight: 700; font-size: .9531rem; }
.seg-steps strong { color: var(--seg-ink); }
