/* Pricing: the estimate under the hero, the plans table, a night card on what counts, and the feature table.
   Hooks kept for site.js: [data-billing] buttons, #seats, [data-seats-step], [data-price] .amt, [data-period], .plan-sub. */


/* ------------------------------------------------ the estimate (stage) */
.estimate { max-width: 1040px; margin: 0 auto; }
.estimate h2 { color: var(--ink); }
.est-field { display: flex; flex-direction: column; gap: 0.6rem; }
.est-field > label, .est-field > span { font-size: 1rem; font-weight: 500; }
.estimate .seg { grid-template-columns: auto auto; }
.estimate .seg button { padding: 0 1rem; font-size: 1rem; }
.stepper { display: inline-grid; grid-template-columns: 48px 5.5rem 48px; align-self: start; gap: 3px; padding: 3px; border-radius: 12px; background: var(--bg-2); }
.stepper button { min-height: 44px; border-radius: 9px; font-size: 1.25rem; font-weight: 500; color: var(--ink); transition: background-color var(--t-hover); }
.stepper button:hover { background: var(--surface); }
.stepper button:active { transform: scale(0.97); }
.stepper input { min-width: 0; height: 44px; border: 0; border-radius: 9px; background: var(--surface); text-align: center; font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 0; }
.est-note { font-size: 1rem; }

.est-out { justify-content: center; padding: clamp(0.75rem, 2vw, 1.25rem); }
.est-out { gap: 6px; }
.est-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1.25rem; align-items: baseline; padding: 1.1rem 1.25rem; border-radius: 16px; background: rgba(255, 255, 255, 0.05); }
.est-row dt { font-size: var(--step-sub); font-weight: 600; letter-spacing: -0.025em; color: var(--night-ink); }
.est-row dd { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; text-align: right; }
.est-row dd > span:first-child, .est-row dd > b { font-variant-numeric: tabular-nums; }
.est-row .amt, .est-row dd > b { font-size: var(--step-sub); font-weight: 600; letter-spacing: -0.03em; line-height: 1.18; color: #f0d79d; }
.est-row [data-period], .est-row dd > b + span { font-size: 1rem; color: var(--night-muted); }
.est-row .plan-sub { font-size: 1rem; color: var(--night-muted); font-variant-numeric: tabular-nums; }
.est-row:last-child .amt, .est-row:last-child dd > b { color: var(--night-ink); }

/* ------------------------------------------------ plans: bring the small type up to 16px */
.plans th, .plans td { font-size: 1rem; }
.plan-sub, .plan-price small { font-size: 1rem; }
.plan-card dl div { font-size: 1rem; }
.plan-card dt { flex-shrink: 0; }
.plans thead th .plan-sub { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ what counts as an investigation (night card) */
.inv-card { padding: clamp(1.5rem, 5vw, 4.5rem); border-radius: 36px; }
.inv-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.inv-card .head { color: var(--night-ink); }
.inv-card .lead { color: rgba(255, 244, 225, 0.9); }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.counts li { padding: 1.4rem; border-radius: 18px; background: rgba(255, 255, 255, 0.06); }
.counts b { display: block; font-size: 1.1875rem; letter-spacing: -0.02em; color: var(--gold-2); }
.counts span { display: block; margin-top: 0.5rem; font-size: 1rem; color: var(--night-muted); }
.shot { padding: 6px; border-radius: 22px; background: rgba(255, 255, 255, 0.08); }
.shot img { width: 100%; border-radius: 16px; }
.inv-shot { margin-top: clamp(2rem, 4vw, 3rem); }
.inv-shot figcaption { padding: 0.9rem 0.6rem 0.4rem; font-size: 1rem; color: var(--night-muted); }
.inv-spend { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.spend-copy { margin-top: 1.25rem; font-size: var(--step-lead); line-height: 1.5; color: var(--night-muted); }
.spend-shots { display: grid; gap: 1rem; }

/* ------------------------------------------------ every feature, side by side */
.compare-wrap { background: var(--surface); }
.features { margin-top: 0; min-width: 44rem; font-size: 1rem; }
.features thead th { font-size: 1rem; color: var(--ink); background: var(--surface); padding-block: 1.1rem; }
.features thead th:not(:first-child), .features td { width: 13%; }
.features tbody th { font-size: 1rem; font-weight: 400; color: var(--ink); background: var(--surface); text-align: left; padding: 0.8rem 1rem; border-top: 1px solid var(--hair); }
.features td { color: var(--ink-2); }
.features .grp th { padding-top: 1.6rem; background: var(--surface-2); border-top: 0; font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.features td.yes { color: var(--ink); font-weight: 500; }
.features td.no { color: var(--muted); }
.features thead th:nth-child(3), .features td:nth-child(3) { background: #fffaf0; }

@media (max-width: 56em) {
  .inv-row { grid-template-columns: minmax(0, 1fr); }
  .counts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40em) {
  /* the feature names stay pinned while the plan columns scroll under them */
  .features { min-width: 38rem; }
  .features thead th:first-child, .features tbody tr:not(.grp) th { position: sticky; left: 0; z-index: 1; width: 10.5rem; min-width: 10.5rem; }
  .features thead th:first-child { background: var(--surface); }
  .est-row { grid-template-columns: minmax(0, 1fr); }
  .est-row dd { align-items: flex-start; text-align: left; }
}
@media (max-width: 30em) {
  .estimate .seg { grid-template-columns: minmax(0, 1fr); width: 100%; }
}
