/* /pricing/ (scripts/build-pricing-page.mjs). Text colours on light backgrounds use darkened golds
   (#7A5A17, #8A6416) so small text clears WCAG AA 4.5:1; the brand golds stay for large text and fills. */
.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; }

.pr-hero .pr-micro { margin-top: 14px; color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.pr-compare-link { color: var(--gold-light); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; min-height: 44px; align-items: center; }

.pr-main { background: var(--ice); padding: 48px 0 0; }

/* Tabs: horizontal, scroll on small screens, 44px targets */
.pr-tabs { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px; margin: 0 auto 28px; background: var(--white); border: 1px solid rgba(10,22,40,0.08); border-radius: 14px; width: max-content; max-width: 100%; }
.pr-tabs::-webkit-scrollbar { display: none; }
.pr-tabs [role="tab"] { flex: 0 0 auto; min-height: 44px; padding: 10px 22px; border: 0; border-radius: 10px; background: none; font: inherit; font-weight: 600; font-size: 1rem; color: var(--slate); cursor: pointer; white-space: nowrap; }
.pr-tabs [role="tab"][aria-selected="true"] { background: var(--navy); color: var(--white); }
.pr-tabs [role="tab"]:hover:not([aria-selected="true"]) { color: var(--navy); background: rgba(10,22,40,0.05); }

.pr-panel { outline: none; }
.pr-panel + .pr-panel { margin-top: 48px; } /* no-JS: all panels stacked */
.js-tabs .pr-panel[data-inactive] { display: none; }
.js-tabs .pr-panel + .pr-panel { margin-top: 0; }
.pr-panel-title { font-size: 1.6rem; color: var(--navy); margin-bottom: 4px; }
.js-tabs .pr-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pr-tab-micro { color: var(--slate); text-align: center; margin-bottom: 24px; }
.pr-tab-micro-end { margin: 18px 0 0; }
.pr-group { font-family: 'Space Mono', monospace; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #7A5A17; margin: 30px 0 12px; }
.pr-platform-line { max-width: 820px; margin: 0 auto 22px; text-align: center; color: var(--navy); font-size: 1.05rem; }

/* Cards: grid that stacks on mobile; no horizontal scroll */
.pr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.pr-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid rgba(10,22,40,0.1); border-radius: 18px; padding: 30px 24px 24px; box-shadow: 0 4px 20px rgba(10,22,40,0.05); }
.pr-featured { border: 2px solid var(--gold); box-shadow: 0 14px 40px rgba(10,22,40,0.12); }
.pr-free-card { border: 2px dashed rgba(168,122,32,0.6); }
.pr-badge { position: absolute; top: -12px; left: 22px; background: var(--navy); color: var(--gold-light); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.pr-featured .pr-badge { background: var(--gold); color: var(--navy-dark); }
.pr-badge-free { background: #7A5A17; color: #fff; }
.pr-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 6px; }
.pr-seats { color: var(--slate); font-size: 0.9rem; margin-bottom: 10px; }
.pr-list { color: var(--slate); font-size: 0.85rem; text-decoration: line-through; }
.pr-price { display: flex; align-items: baseline; gap: 6px; margin: 2px 0; }
.pr-amt { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 2.3rem; color: var(--navy); line-height: 1.1; }
.pr-per { color: var(--slate); font-size: 0.95rem; }
.pr-price-contact { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--navy); margin: 6px 0 4px; }
.pr-founding { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #7A5A17; margin-bottom: 8px; }
.pr-status { font-size: 0.85rem; font-weight: 600; color: #7A5A17; margin-bottom: 6px; }
.pr-topline { color: var(--charcoal); font-size: 0.95rem; margin: 8px 0 4px; }
.pr-incl { font-weight: 700; color: var(--navy); font-size: 0.9rem; margin-top: 6px; }
.pr-features { list-style: none; margin: 10px 0 20px; padding: 0; flex: 1; }
.pr-features li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 0.93rem; color: var(--charcoal); border-bottom: 1px solid rgba(10,22,40,0.06); }
.pr-ck { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #8A6416; }
.pr-btn { width: 100%; justify-content: center; min-height: 48px; padding-left: 16px; padding-right: 16px; text-align: center; }
.pr-xlink { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 6px; font-size: 0.88rem; font-weight: 600; color: #7A5A17; }


.pr-footnote { max-width: 900px; margin: 34px auto 0; padding-bottom: 56px; text-align: center; font-size: 0.85rem; color: var(--slate); }

/* DevTraq comparison: a table on desktop, stacked cards on mobile (no horizontal scroll) */
.pr-compare { background: var(--white); padding: 80px 0; }
.pr-compare h2, .pr-free h2, .pr-faq h2 { text-align: center; color: var(--navy); font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 10px; }
.pr-compare-sub { text-align: center; color: var(--slate); margin-bottom: 28px; }
.pr-compare-sub a { color: #7A5A17; font-weight: 600; }
.pr-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.pr-table th, .pr-table td { padding: 12px 14px; border-bottom: 1px solid rgba(10,22,40,0.08); text-align: center; }
.pr-table thead th { font-family: 'Archivo', sans-serif; color: var(--navy); background: var(--ice); }
.pr-table tbody th { text-align: left; font-weight: 500; color: var(--charcoal); }
.pr-table td { color: var(--slate); }
.pr-table .pr-ck { margin: 0 auto; }
@media (max-width: 720px) {
  .pr-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pr-table, .pr-table tbody, .pr-table tr, .pr-table th, .pr-table td { display: block; width: 100%; }
  .pr-table tr { border: 1px solid rgba(10,22,40,0.1); border-radius: 12px; margin-bottom: 12px; padding: 6px 0; }
  .pr-table tbody th { border-bottom: 1px solid rgba(10,22,40,0.08); font-weight: 700; color: var(--navy); }
  .pr-table td { display: flex; justify-content: space-between; align-items: center; text-align: right; border-bottom: 0; padding: 6px 14px; }
  .pr-table td::before { content: attr(data-label); color: var(--slate); text-align: left; font-size: 0.85rem; }
  .pr-table td .pr-ck { margin: 0; }
}

.pr-free { background: var(--ice); padding: 70px 0; }
.pr-free-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 20px 0 0; padding: 0; }
.pr-free-list li { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid rgba(10,22,40,0.08); border-radius: 999px; padding: 10px 18px; color: var(--navy); font-weight: 600; font-size: 0.92rem; }

.pr-faq { background: var(--white); padding: 80px 0; }
.faq-list { max-width: 820px; margin: 24px auto 0; }
.faq-list details { background: var(--ice); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
.faq-list summary { font-family: 'Archivo', sans-serif; font-weight: 600; color: var(--navy); cursor: pointer; min-height: 28px; }
.faq-list details p { color: var(--slate); margin-top: 10px; font-size: 0.95rem; }

.pr-cta { background: linear-gradient(165deg, var(--navy-dark) 0%, var(--navy) 100%); padding: 90px 0; text-align: center; }
.pr-cta h2 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.pr-cta p { color: rgba(255,255,255,0.75); }
.pr-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px; margin-top: 28px; }

@media (max-width: 560px) {
  .pr-tabs { width: 100%; }
}
