/* Site-wide layout polish. Keep commercial terms and walkthrough behavior intact. */
.button > span[aria-hidden="true"],
.text-link > span[aria-hidden="true"] { flex-shrink: 0; }

/* Quote status is secondary to the package name and operating scope. */
.plan-choice input { flex: 0 0 18px; }
.plan-choice > span { min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.plan-choice small,
.plan-choice strong,
.plan-choice span > span,
.plan-choice b { grid-column: 1; grid-row: auto; }
.plan-choice b {
  justify-self: start;
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px solid #17171520;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  color: #67567b;
}
.plan-choice span > span { font-size: 14px; line-height: 1.6; }
.addon-card label > span,
.summary-addons li > span { min-width: 0; overflow-wrap: anywhere; }
.summary-addons > strong { gap: 12px; }
.summary-addons > strong > span {
  flex-shrink: 0;
  min-width: 28px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.summary-addons button { flex-shrink: 0; min-width: 44px; min-height: 44px; }
.summary-content dl > div { align-items: baseline; }
.summary-content dd { min-width: 0; overflow-wrap: anywhere; }

/* Use shared tracks so the operating-model rows align across all three tiers. */
@media (min-width: 801px) {
  .scope-packages.package-grid { grid-template-rows: repeat(9, auto); }
  .scope-packages .package { grid-row: span 9; }
  .scope-package .scope-service {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 14px;
  }
  .scope-service > .scope-label { margin: 0 !important; }
  .scope-service > .scope-list { display: contents; }
}

/* Money needs normal tracking, stable digits and room for the full amount. */
.currency-input input,
.custom-calc-rate input,
.calc-output dd,
.statement strong,
.summary-content dd {
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0;
}
.calc-output { min-width: 0; container-type: inline-size; }
.calc-output dl > div { align-items: baseline; gap: 12px 20px; }
.calc-output dt { min-width: 0; line-height: 1.5; }
.calc-output dd { flex-shrink: 0; line-height: 1.2; white-space: nowrap; }
.calc-upfront { align-items: baseline; gap: 10px 20px; flex-wrap: wrap; line-height: 1.5; }
.calc-upfront strong { font-size: 17px; line-height: 1.5; letter-spacing: 0; }
.custom-calc-rate #rate-help { margin-top: 14px; }
.calc-output .quiet { margin-top: 18px; }
.credits-details > summary { align-items: center; padding-right: 6px; }
.credits-details > summary > span {
  flex: 0 0 20px; width: 20px; height: 20px; line-height: 1;
  display: grid; place-items: center;
}
.faq-list summary, .buyer-questions summary { padding-right: 8px; }
.faq-list summary > span, .buyer-questions summary > span {
  flex: 0 0 24px; width: 24px; height: 24px; line-height: 1;
  display: grid; place-items: center;
}
.verified-label { margin-top: 14px; line-height: 1.6; }
.product-capture + p { max-width: 76ch; color: var(--gray); font-size: 16px; line-height: 1.75; }
.proof-split .check-list + p { margin-top: 24px; }
.brand-story-contact h2 + p { margin-top: 12px; line-height: 1.6; }
.discovery-card .optional-answer { margin-top: 22px; border-block: 1px solid #dedbd3; }
.discovery-card .optional-answer summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding-block: 14px; list-style: none;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.discovery-card .optional-answer summary::-webkit-details-marker { display: none; }
.discovery-card .optional-answer summary > span { color: var(--purple); font-size: 20px; flex-shrink: 0; }
.discovery-card .optional-answer[open] { padding-bottom: 20px; }
.discovery-card .field-help { margin-top: 14px; margin-bottom: 20px; }
.discovery-card .consent-label { font-weight: 400; }
.discovery-card .text-link { line-height: 1.6; }
@container (max-width: 400px) {
  .calc-output dl > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .calc-output dd { text-align: left; font-size: clamp(23px, 8cqw, 30px); }
  .calc-output .calc-total dd { font-size: clamp(26px, 9cqw, 36px); }
  .calc-output dt small { max-width: 32ch; }
}

@media (max-width: 620px) {
  .plan-choice { gap: 12px; }
  .plan-choice strong { font-size: 24px; }
  .plan-choice b { font-size: 12px; }
  .comparison-table td { font-size: 13px; line-height: 1.5; padding: 12px 6px; }
  .comparison-table td::before { font-size: 10px; line-height: 1.5; margin-bottom: 6px; }
}
@media (max-width: 480px) {
  .page-subnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding-top: 4px; padding-bottom: 4px; }
  .page-subnav a { display: flex; align-items: center; min-height: 40px; font-size: 12px; line-height: 1.4; }
  html:has(.page-subnav) { scroll-padding-top: 184px; }
}
/* Keep the calculator's empty prompt readable without oversized placeholder text. */
.custom-calc-rate input::placeholder{font-size:16px;letter-spacing:0;opacity:1;color:#70677b}
