/* ============================================================================
   Solutions Factory — Component Library (brief §7.5, directive 2.2)
   Depends on tokens.css. On-palette and WCAG AA throughout.
   ============================================================================ */

/* --------------------------------------------------------- Layout shell --- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 32px; }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: 32px; }
.section { padding-block: var(--sp-section); }
.section--tight { padding-block: var(--sp-card); }
.section__head { margin-bottom: var(--sp-card); max-width: var(--measure); }
.section__title { font-size: var(--fs-h2); line-height: var(--lh-snug); letter-spacing: -0.018em; margin: 0; max-width: 22ch; }
.section__intro { margin-top: var(--sp-3); color: var(--text-muted); font-size: var(--fs-lead); line-height: 1.55; }
.hairline-rule { border: 0; border-top: 1px solid var(--hairline); margin-block: var(--sp-section); }
@media (max-width: 640px) {
  .container, .container-narrow { padding-inline: 20px; }
  :root { --sp-section: 48px; }
}

/* Skip link — first focusable element on every page. */
.skip-link {
  position: absolute;
  left: 16px; top: -56px;
  z-index: 1000;
  background: var(--text-charcoal);
  color: var(--on-dark);
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top var(--motion-hover) var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ----------------------------------------------------------- Header/nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-ivory);
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-hover) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); }
.nav { display: flex; align-items: center; gap: var(--sp-card); height: var(--nav-h); }
.nav__brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text-charcoal);
  text-decoration: none;
  white-space: nowrap;
}
.nav__brand:hover { text-decoration: none; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  color: var(--text-charcoal);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion-hover) var(--ease-out);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--text-charcoal); font-weight: 600; }

/* Products dropdown — opens on hover and on keyboard focus-within. */
.nav__dropdown { position: relative; }
.nav__dropdown-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: var(--fs-small); font-weight: 500;
  color: var(--text-charcoal);
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.nav__dropdown-toggle svg { width: 12px; height: 12px; transition: transform var(--motion-hover) var(--ease-out); }
.nav__dropdown[data-open="true"] .nav__dropdown-toggle svg { transform: rotate(180deg); }
.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: var(--bg-ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hairline);
  padding: 8px;
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--motion-hover) var(--ease-out),
              transform var(--motion-hover) var(--ease-out),
              visibility var(--motion-hover);
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu,
.nav__dropdown[data-open="true"] .nav__dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__dropdown-link {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-charcoal); text-decoration: none;
}
.nav__dropdown-link:hover { background: var(--gold-tint); text-decoration: none; }
.nav__dropdown-link strong { display: block; font-weight: 600; }
.nav__dropdown-link span { display: block; font-size: var(--fs-small); color: var(--text-muted); }
.nav__cta-group { display: flex; align-items: center; gap: 10px; }
.nav__toggle {
  display: none;
  background: none; border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm); padding: 8px; cursor: pointer;
  color: var(--text-charcoal);
}
.nav__toggle svg { width: 20px; height: 20px; }

/* Mobile drawer */
@media (max-width: 900px) {
  .nav__list, .nav__cta-group--header { display: none; }
  .nav__toggle { display: inline-flex; margin-left: auto; }
  .nav.is-open + .nav__drawer,
  .nav__drawer.is-open { display: block; }
  .nav__drawer {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--bg-ivory);
    border-top: 1px solid var(--hairline);
    padding: var(--sp-card);
    overflow-y: auto;
    z-index: 99;
    animation: drawer-in var(--motion-drawer-in) var(--ease-canonical);
  }
  .nav__drawer .nav__link,
  .nav__drawer .nav__dropdown-link { display: block; padding: 14px 4px; font-size: var(--fs-body); }
  .nav__drawer .nav__link::after { display: none; }
  .nav__drawer-group { margin-bottom: var(--sp-card); }
  .nav__drawer-group h4 { font-size: var(--fs-eyebrow); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
  .nav__drawer .nav__cta-group { flex-direction: column; align-items: stretch; margin-top: var(--sp-card); }
  .nav__drawer .btn { width: 100%; justify-content: center; }
}
@media (min-width: 901px) { .nav__drawer { display: none !important; } }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--motion-hover) var(--ease-out),
              background-color var(--motion-hover) var(--ease-out),
              border-color var(--motion-hover) var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent-gold); color: var(--on-gold); border-color: var(--accent-gold); }
.btn--primary:hover { background: var(--accent-gold-soft); border-color: var(--accent-gold-soft); }
.btn--secondary { background: transparent; color: var(--text-charcoal); border-color: var(--accent-gold); }
.btn--secondary:hover { background: var(--gold-tint); }
.btn--on-dark { background: transparent; color: var(--on-dark); border-color: var(--on-dark-hairline); }
.btn--on-dark:hover { background: rgba(248,244,237,0.08); border-color: var(--accent-gold); }
.btn--lg { padding: 15px 28px; font-size: var(--fs-body); }
.btn--block { display: flex; width: 100%; }

/* Text link with gold underline — the §12 "Read the manifesto" treatment. */
.link-text {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: var(--fs-small);
  color: var(--text-charcoal);
  text-decoration: underline; text-decoration-color: var(--accent-gold);
  text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.link-text svg { width: 14px; height: 14px; transition: transform var(--motion-hover) var(--ease-out); }
.link-text:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------- Hero --- */
.hero { padding-top: calc(var(--sp-section) * 1.35); padding-bottom: var(--sp-section); }
.hero__title {
  font-size: clamp(2.25rem, 5.2vw, var(--fs-display));
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 16ch;
}
.hero__subhead { margin-top: var(--sp-3); max-width: 54ch; font-size: var(--fs-lead); color: var(--text-muted); line-height: 1.5; }
.hero__cta-group { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--sp-card); }

/* Page header (interior pages) */
.page-header { padding-top: var(--sp-section); padding-bottom: var(--sp-card); }
.page-header__title { font-size: clamp(2rem, 4vw, var(--fs-h1)); letter-spacing: -0.02em; margin: 0; max-width: 20ch; }
.page-header__intro { margin-top: var(--sp-3); max-width: 60ch; font-size: var(--fs-lead); color: var(--text-muted); line-height: 1.5; }

/* Breadcrumb */
.breadcrumb { font-size: var(--fs-small); color: var(--text-muted); margin-bottom: var(--sp-3); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-charcoal); text-decoration: underline; text-decoration-color: var(--accent-gold); }
.breadcrumb__sep { margin: 0 8px; color: var(--text-faint); }

/* --------------------------------------------------------------- Grid --- */
.grid { display: grid; gap: var(--sp-card); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- Card --- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--sp-card);
  box-shadow: var(--shadow-hairline);
}
.card--tight { padding: var(--sp-card-tight); }
.card--link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color var(--motion-hover) var(--ease-out), transform var(--motion-hover) var(--ease-out); }
.card--link:hover { border-color: var(--accent-gold); transform: translateY(-2px); text-decoration: none; }
.card__eyebrow { margin-bottom: var(--sp-2); }
.card__title { font-family: var(--font-serif); font-size: var(--fs-h3); margin: 0 0 var(--sp-2); }
.card__body { color: var(--text-muted); margin: 0; flex: 1; }
.card__footer { margin-top: var(--sp-3); }
.card__meta { font-size: var(--fs-small); color: var(--text-muted); }

/* Product card (home grid) */
.product-card .card__title { font-size: var(--fs-h4); line-height: 1.3; }
.product-card__tag { font-size: var(--fs-small); color: var(--text-muted); margin: 0 0 var(--sp-3); }

/* ---------------------------------------------------------- KPI strip --- */
.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.kpi { background: var(--bg-ivory); padding: var(--sp-card); }
.kpi__value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; font-size: clamp(1.6rem, 3.5vw, 2.25rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--text-charcoal); }
.kpi__label { margin-top: 10px; font-size: var(--fs-small); color: var(--text-muted); line-height: 1.4; }
@media (max-width: 860px) { .kpi-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .kpi-strip { grid-template-columns: 1fr; } }

/* ------------------------------------------------------ Comparison cols --- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-card); }
.compare__col { padding: var(--sp-card); border: 1px solid var(--hairline); border-radius: var(--radius); }
.compare__col--sf { border-color: var(--accent-gold); background: var(--gold-tint-soft); }
.compare__title { font-family: var(--font-serif); font-size: var(--fs-h4); margin: 0 0 var(--sp-3); }
.compare__list { list-style: none; padding: 0; margin: 0; }
.compare__list li { position: relative; padding-left: 22px; margin-bottom: var(--sp-3); color: var(--text-muted); }
.compare__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; }
.compare__col--norm .compare__list li::before { background: var(--hairline-strong); }
.compare__col--sf .compare__list li::before { background: var(--accent-gold); }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- Table --- */
.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); }
.table thead th { background: var(--gold-tint); font-weight: 600; color: var(--text-charcoal); border-bottom-color: var(--hairline-strong); }
.table tbody tr:last-child td { border-bottom: 0; }
.table th[scope="row"] { font-weight: 600; white-space: nowrap; color: var(--text-charcoal); }
.table td { color: var(--text-muted); }
.table .yes { color: var(--text-charcoal); font-weight: 600; }
.table .no { color: var(--text-faint); }

/* Fact sheet (definition grid on product pages) */
.factsheet { border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.factsheet__row { display: grid; grid-template-columns: 200px 1fr; gap: var(--sp-card); padding: 14px 18px; border-bottom: 1px solid var(--hairline); }
.factsheet__row:last-child { border-bottom: 0; }
.factsheet__row dt { font-weight: 600; color: var(--text-charcoal); margin: 0; }
.factsheet__row dd { margin: 0; color: var(--text-muted); }
@media (max-width: 560px) { .factsheet__row { grid-template-columns: 1fr; gap: 4px; } }

/* --------------------------------------------------------- Pricing tiers --- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-card); align-items: start; }
.pricing__tier { display: flex; flex-direction: column; height: 100%; padding: var(--sp-card); border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--bg-ivory); box-shadow: var(--shadow-hairline); }
.pricing__tier--feature { border-color: var(--accent-gold); background: var(--gold-tint-soft); }
.pricing__name { font-family: var(--font-serif); font-size: var(--fs-h3); margin: 0 0 6px; }
.pricing__price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.5rem; letter-spacing: -0.01em; margin: 0 0 4px; }
.pricing__price small { display: block; font-family: var(--font-sans); font-size: var(--fs-small); color: var(--text-muted); font-variant-numeric: normal; margin-top: 4px; }
.pricing__best { font-size: var(--fs-small); color: var(--text-muted); margin: 0 0 var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--hairline); }
.pricing__what { color: var(--text-muted); margin: 0 0 var(--sp-card); flex: 1; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

/* ------------------------------------------------------ Code / terminal --- */
.code-block {
  background: var(--surface-dark); color: var(--on-dark);
  padding: 20px 22px; border-radius: var(--radius);
  overflow-x: auto; font-family: var(--font-mono);
  font-size: var(--fs-small); line-height: 1.6;
}
.terminal {
  background: var(--surface-dark); color: var(--on-dark);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-hairline);
  font-family: var(--font-mono); font-size: var(--fs-small);
}
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--on-dark-hairline); }
.terminal__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(248,244,237,0.22); }
.terminal__title { margin-left: 8px; font-size: 12px; color: var(--on-dark-muted); }
.terminal__body { padding: 18px 20px; line-height: 1.7; overflow-x: auto; white-space: pre; margin: 0; }
.terminal__prompt { color: var(--accent-gold-soft); }
.terminal__comment { color: var(--on-dark-muted); }
.terminal__out { color: var(--on-dark-muted); }

/* ---------------------------------------------------------- Blockquote --- */
.blockquote { margin: var(--sp-card) 0; padding: 18px 26px; border-left: 3px solid var(--accent-gold); background: var(--gold-tint-soft); font-style: italic; color: var(--text-muted); }
.pull-quote { font-family: var(--font-serif); font-style: normal; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; letter-spacing: -0.015em; color: var(--text-charcoal); border: 0; padding: 0; margin: var(--sp-section) 0; max-width: 24ch; }

/* ------------------------------------------------------------ CTA band --- */
.cta-band { background: var(--surface-dark); color: var(--on-dark); border-radius: var(--radius-lg); padding: var(--sp-section) var(--sp-card); text-align: center; }
.cta-band h2 { color: var(--on-dark); max-width: 22ch; margin-inline: auto; }
.cta-band .eyebrow { color: var(--on-dark-muted); justify-content: center; }
.cta-band p { color: var(--on-dark-muted); max-width: 52ch; margin-inline: auto; }
.cta-band .hero__cta-group { justify-content: center; }

/* --------------------------------------------------- Lists / features --- */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { position: relative; padding-left: 28px; margin-bottom: var(--sp-3); color: var(--text-muted); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 2px; background: var(--accent-gold); }
.feature-list strong { color: var(--text-charcoal); }
.agent-list { display: grid; gap: var(--sp-card-tight); }
.agent-list__item { padding: var(--sp-card-tight); border: 1px solid var(--hairline); border-radius: var(--radius); }
.agent-list__item h4 { margin: 0 0 6px; font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 600; }
.agent-list__item p { margin: 0; color: var(--text-muted); font-size: var(--fs-small); }

/* Long-form prose (manifesto, docs) */
.prose { max-width: var(--measure); }
.prose > p { margin: 0 0 var(--sp-3); }
.prose h2 { margin-top: var(--sp-section); border-top: 1px solid var(--hairline); padding-top: var(--sp-card); }
.prose h3 { margin-top: var(--sp-card); }
.prose ul, .prose ol { margin-bottom: var(--sp-3); }

/* --------------------------------------------------------------- Form --- */
.form { max-width: 580px; }
.form__field { margin-bottom: var(--sp-3); }
.form__label { display: block; font-size: var(--fs-small); font-weight: 600; margin-bottom: 6px; }
.form__hint { font-weight: 400; color: var(--text-muted); }
.form__input, .form__textarea, .form__select {
  width: 100%;
  font-family: inherit; font-size: var(--fs-body); color: var(--text-charcoal);
  background: var(--bg-ivory);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color var(--motion-hover) var(--ease-out), box-shadow var(--motion-hover) var(--ease-out);
}
.form__textarea { min-height: 140px; resize: vertical; }
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--gold-tint-strong);
}
.form__input[aria-invalid="true"], .form__textarea[aria-invalid="true"] {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--gold-tint-strong);
}
.form__error { display: none; margin-top: 6px; font-size: var(--fs-small); color: var(--text-charcoal); font-weight: 600; }
.form__error::before { content: "↳ "; color: var(--accent-gold); }
.form__field.has-error .form__error { display: block; }
.form__status { margin-top: var(--sp-3); padding: 14px 16px; border: 1px solid var(--accent-gold); background: var(--gold-tint-soft); border-radius: var(--radius); display: none; }
.form__status.is-visible { display: block; }

/* Empty state (brief §10.4 microcopy pattern) */
.empty-state { border: 1px dashed var(--hairline-strong); border-radius: var(--radius); padding: var(--sp-card); color: var(--text-muted); text-align: center; }

/* ------------------------------------------------------------- Footer --- */
.site-footer { border-top: 1px solid var(--hairline); margin-top: var(--sp-section); padding-block: var(--sp-section); }
.footer__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: var(--sp-gutter); }
.footer__brand .nav__brand { font-size: 1.15rem; }
.footer__tag { margin-top: var(--sp-2); color: var(--text-muted); font-size: var(--fs-small); max-width: 30ch; }
.footer__col h4 { font-family: var(--font-sans); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 var(--sp-2); }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 6px; }
.footer__col a { color: var(--text-charcoal); text-decoration: none; font-size: var(--fs-small); }
.footer__col a:hover { color: var(--text-charcoal); text-decoration: underline; text-decoration-color: var(--accent-gold); text-underline-offset: 3px; }
.footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-section); padding-top: var(--sp-card); border-top: 1px solid var(--hairline); font-size: var(--fs-small); color: var(--text-muted); }
.footer__meta a { color: var(--text-muted); }
@media (max-width: 760px) { .footer__cols { grid-template-columns: 1fr 1fr; gap: var(--sp-card); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 440px) { .footer__cols { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------- Utilities --- */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-section { margin-top: var(--sp-section); }
.mt-card { margin-top: var(--sp-card); }
.mb-0 { margin-bottom: 0; }
.maxw-prose { max-width: var(--measure); }
.dashboard-shot { width: 100%; border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow-hairline); background: var(--bg-ivory); }
.figure { margin: var(--sp-card) 0; }
.figure figcaption { margin-top: var(--sp-2); font-size: var(--fs-small); color: var(--text-muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: var(--fs-small); color: var(--text-muted); border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 4px 10px; }

/* ------------------------------------ Itemized inference bill (v2) --- */
/* Electricity-bill aesthetic for /infrastructure Tier 1. */
.bill { max-width: 560px; background: var(--bg-ivory); border: 1px solid var(--hairline-strong); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hairline); }
.bill__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--hairline); }
.bill__head h4 { margin: 0; font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.bill__head span { font-size: var(--fs-small); color: var(--text-faint); }
.bill__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--hairline); font-size: var(--fs-small); }
.bill__row span:first-child { color: var(--text-muted); }
.bill__amt { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-charcoal); white-space: nowrap; }
.bill__total { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; background: var(--gold-tint); font-weight: 600; }
.bill__total .bill__amt { font-size: 1.1rem; }
.bill__note { padding: 12px 20px; font-size: var(--fs-small); color: var(--text-muted); border-top: 1px solid var(--hairline); }

/* ------------------------------------ Pricing matrix (v2) --- */
/* Software-license rows × infrastructure-tier columns. */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius); }
.matrix { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 680px; }
.matrix th, .matrix td { border: 1px solid var(--hairline); padding: 16px; vertical-align: top; text-align: left; }
.matrix thead th { background: var(--gold-tint); font-weight: 600; color: var(--text-charcoal); }
.matrix th[scope="row"] { background: var(--gold-tint-soft); font-weight: 600; white-space: nowrap; width: 150px; }
.matrix td strong { display: block; margin-bottom: 4px; color: var(--text-charcoal); }
.matrix td { color: var(--text-muted); }
.matrix__price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-charcoal); }

/* ------------------------------------ Tier footer (v2, product pages) --- */
.tier-footer { border: 1px solid var(--hairline); border-left: 3px solid var(--accent-gold); border-radius: var(--radius); padding: var(--sp-card-tight); font-size: var(--fs-small); color: var(--text-muted); }
.tier-footer strong { color: var(--text-charcoal); }
.tier-footer a { font-weight: 600; }
