/* ==========================================================================================
   BarcoderX website: pricing page layer. Author: P4 Software.
   Two edition cards, the editor add-on row, the one-license-per-developer note and the price tables that live inside
   the collapsed "more options" list. No scripts, no switches: everything is plain HTML and CSS.
   Tokens only: every colour, space, radius and type size comes from /brand/tokens.css through site.css.
   Light theme only. Mobile first. Breakpoints: 40rem (640), 48rem (768).
   Page-level layout (hero, section heads, note, accordion, CTA) comes from site.css, inner.css and faq.css.
   ========================================================================================== */

/* ============================== FIRST SCREEN ==============================
   Buyers come to this page for the number. The hero is tighter than on other inner pages (less padding, a smaller gap between its lines) and the
   edition section starts closer to it, so at 1280x800 the first edition price sits inside the first screen instead of below the fold. */
.p-hero { padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1rem, 0.5rem + 1.5vw, 1.5rem); }
.p-hero-copy { gap: var(--bx-space-3); }
.p-hero .cap { margin-top: 0; }
.p-hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.25rem); }
#editions { padding-block: var(--bx-space-8) var(--section-y); }
#editions .sec-head { margin-bottom: var(--bx-space-5); gap: var(--bx-space-2); }
#editions .sec-head h2 { font-size: var(--bx-text-2xl); max-width: none; }
.ed { gap: var(--bx-space-4); padding: var(--bx-space-5) var(--bx-space-6); }

/* ============================== EDITION CARDS ============================== */
.eds { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bx-space-4); }
.ed { display: grid; gap: var(--bx-space-5); align-content: start; min-width: 0; padding: var(--bx-space-6); background: var(--bx-surface); border: 1px solid var(--bx-border-strong); border-top: var(--rule); }
.ed h3 { font-size: var(--bx-text-xl); }
/* Ultimate is the recommended card: a full ink border instead of a hairline. The badge carries the page's lime dot. */
.ed-rec { border-color: var(--bx-ink); box-shadow: inset 0 0 0 1px var(--bx-ink); }
.ed-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--bx-space-2) var(--bx-space-3); }
.ed-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--bx-space-1) var(--bx-space-3); max-width: none; }
.price { font: 700 var(--bx-text-4xl)/1 var(--bx-font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--bx-ink); }
.price-s { font-size: var(--bx-text-3xl); }
.ed-per { font: 500 var(--bx-text-xs)/1.4 var(--bx-font-mono); color: var(--bx-gray-600); }
/* A clarifying caption inside a card (Basic: what "Label design" means). The card grid already supplies the gap, so drop the caption's own top margin. */
.ed .cap { margin-top: 0; }
@media (min-width: 48rem) { .eds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--bx-space-5); } }

/* Editor add-on: one ruled row under the cards, copy on the left and the price on the right once there is room. */
.addon { display: grid; gap: var(--bx-space-4) var(--bx-space-8); align-items: center; margin-top: var(--bx-space-8); padding-block: var(--bx-space-6); border-top: var(--rule); border-bottom: var(--hair); }
.addon-copy { display: grid; gap: var(--bx-space-1); }
.addon-copy p { color: var(--bx-text-muted); }
@media (min-width: 48rem) { .addon { grid-template-columns: minmax(0, 1fr) auto; } }

/* ============================== PRICE TABLES ==============================
   Sized to fit a 360px screen with no scrolling: the size columns carry only a number or one short word, and the
   unit ("Developers") sits in a spanning header. The wrapper scrolls only as a safety net (large text, odd zoom). */
.tbl { overflow-x: auto; }
.tbl:focus-visible { outline-offset: -3px; }
.ptable { width: 100%; border-collapse: collapse; border-top: var(--rule); font-size: var(--bx-text-sm); }
.ptable caption { caption-side: top; padding-bottom: var(--bx-space-3); text-align: left; font: 600 var(--bx-text-xs)/1.5 var(--bx-font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bx-gray-600); }
.ptable th, .ptable td { padding: var(--bx-space-4) var(--bx-space-2); text-align: right; vertical-align: middle; }
.ptable thead th { padding-block: var(--bx-space-3); font: 600 var(--bx-text-xs)/1.3 var(--bx-font-sans); color: var(--bx-gray-600); vertical-align: bottom; }
/* Only the spanning first header is left-aligned; the size headers in row two sit over their right-aligned prices. */
.ptable thead th[rowspan] { text-align: left; padding-left: 0; }
.ptable thead th[colspan] { text-align: center; font-family: var(--bx-font-mono); letter-spacing: 0.1em; text-transform: uppercase; border-bottom: var(--hair); }
.ptable tbody tr { border-top: var(--hair); }
.ptable tbody th { padding-left: 0; text-align: left; font: 600 var(--bx-text-sm)/1.3 var(--bx-font-sans); color: var(--bx-ink); }
.ptable td { font: 600 var(--bx-text-sm)/1.2 var(--bx-font-mono); font-variant-numeric: tabular-nums; color: var(--bx-ink); white-space: nowrap; }
.ptable td:last-child, .ptable thead th:last-child { padding-right: 0; }
/* Phones: the Spanish OEM table ("$10,785" in three columns beside a long row name) was 7px wider than a 343px screen, so the number columns give up some side padding. */
@media (max-width: 39.99rem) { .ptable td, .ptable thead th:not([rowspan]) { padding-inline: var(--bx-space-1); } .ptable td:last-child, .ptable thead th:last-child { padding-right: 0; } }
/* Single-column tables (renewal and bundle, one price per developer): there is no spanning header, so left-align the first header like the row names. */
.ptable-solo thead th:first-child { text-align: left; padding-left: 0; }
/* Edition tag under a row name ("Ultimate" under "SDK licence"). Edition names are not translated. */
.rh-ed { display: block; margin-top: var(--bx-space-1); font: 500 var(--bx-text-xs)/1.3 var(--bx-font-mono); color: var(--bx-gray-600); }
@media (min-width: 40rem) {
  .ptable td, .ptable tbody th { font-size: var(--bx-text-md); }
  .ptable th, .ptable td { padding-inline: var(--bx-space-4); }
  .ptable tbody th { padding-left: 0; }
  .ptable td:last-child, .ptable thead th:last-child { padding-right: 0; }
}

/* ============================== EDITION COVERAGE ==============================
   One compact table: which barcode families each edition covers. The tick and dash are decorative (aria-hidden); a visually hidden word says
   "Included" or "Not included" for screen readers. Example symbologies sit under each row name in the same small mono type as the edition tags. */
.cov-table td { text-align: center; width: 5.5rem; }
.cov-table thead th:not(:first-child) { text-align: center; }
.cov-table thead th:first-child { text-align: left; padding-left: 0; }
.cov-table .yes { font: 700 var(--bx-text-lg)/1 var(--bx-font-sans); color: var(--bx-green-600); }
.cov-table .no { font: 500 var(--bx-text-lg)/1 var(--bx-font-sans); color: var(--bx-gray-400); }
.cov-table td:last-child, .cov-table thead th:last-child { padding-right: var(--bx-space-2); }
.cov .cap { max-width: none; }
@media (min-width: 40rem) { .cov-table td { width: 8rem; } .cov-table td:last-child, .cov-table thead th:last-child { padding-right: var(--bx-space-4); } }

/* ============================== COLLAPSED OPTIONS ============================== */
/* Panels that hold tables: a short sentence, then the tables, with room before the next summary.
   The selector is two classes deep so it beats the accordion's own paragraph padding in faq.css. */
/* The accordions on this page run the full content width, like the tables and cards above them. faq.css caps .faq at 56rem for
   the text-only FAQ page; here the two-class-plus-id selector wins and removes the cap. */
#more .faq, #questions .faq { max-width: none; }
.fold-body { display: grid; gap: var(--bx-space-6); padding-bottom: var(--bx-space-6); }
.faq .fold-body p { padding-bottom: 0; }
