/* ==========================================================================
   archivers.ai — pricing-only additions to the v2 system.
   Loaded via `extra_css` on /pricing/ only. Same tokens, no !important.
   Blocks: hero trim · tier extras (5 across) · estimator · data tables ·
   disclosure · pilot band.
   ========================================================================== */

/* ------------------------------------------------------- 1. hero, trimmed */
/* The pricing hero carries no plate, so it needs its own bottom edge. */
.hero--flat { padding-bottom: clamp(36px, 4vw, 48px); }
.hero--flat .hero__sub { max-width: 44rem; }

/* The tier section runs straight on from the hero, so it drops its top pad. */
.section--flush { padding-top: 0; }

/* -------------------------------------------------------- 2. tier extras */
.pricing-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.pricing-controls .billing-toggle { margin-bottom: 0; }
.pricing-controls { margin-bottom: 28px; }

.tier__who {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-3);
}
.tier__credits {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.tier--featured .tier__credits { border-top-color: var(--gold-tint); }
.tier__alt a { text-decoration: underline; text-underline-offset: 2px; }
.tier__alt a:hover { color: var(--gold-hover); }

.price-note {
  margin: 24px 0 0;
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* Five tiers need a narrower card than the four-up canon grid, so the
   padding and bullet size step down with the column count. */
.tier-grid--5 .tier { padding: 24px; }
@media (min-width: 1040px) {
  .tier-grid--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1140px) {
  .tier-grid--5 { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .tier-grid--5 .tier { padding: 24px 18px; }
  .tier-grid--5 .tier__price { font-size: 1.875rem; }
  .tier-grid--5 .tier__name { min-height: 2.7em; }
  .tier-grid--5 .tier__who { min-height: 2.9em; }
  .tier-grid--5 .ticks li { font-size: 0.875rem; padding-left: 22px; }
  /* A five-up column is too narrow for one line of button text, so the
     button wraps to two centred lines rather than overflowing. */
  .tier-grid--5 .btn {
    min-height: 56px;
    padding: 11px 10px;
    font-size: 0.875rem;
    line-height: 1.25;
    text-align: center;
  }
}

/* --------------------------------------------------------- 3. estimator */
.estimator {
  display: grid;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 32px);
}
.estimator__label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}
.estimator__input {
  width: 100%;
  max-width: 15rem;
  min-height: 46px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
}
.estimator__input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.estimator__hint { margin: 10px 0 0; font-size: 0.8125rem; color: var(--ink-3); }

.estimator__out {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.estimator__figure {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.estimator__line { margin: 14px 0 0; font-size: 0.9375rem; color: var(--ink-2); }
.estimator__line strong { color: var(--ink); font-weight: 600; }

@media (min-width: 760px) {
  .estimator { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
  .estimator__out { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 40px; }
}

/* ------------------------------------------------------- 4. data tables */
.table-wrap { overflow-x: auto; }
.ptable {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.ptable th,
.ptable td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.ptable thead th {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom-color: var(--line-strong);
  white-space: nowrap;
}
.ptable tbody th { font-weight: 600; color: var(--ink); }
.ptable td { color: var(--ink-2); }
.ptable tbody tr:last-child th,
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable .num { font-family: var(--font-mono); font-size: 0.8125rem; white-space: nowrap; }
.ptable .yes { color: var(--ink); font-weight: 600; }
.ptable .strong { color: var(--ink); font-weight: 600; }
.ptable .no { color: var(--ink-3); }
.ptable__note {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-3);
}

/* Four columns of short values look stranded across the full grid, so the
   packs ledger sets its own measure. */
.ptable--packs { max-width: 48rem; }

/* On a phone the price ladder matters more than the use-case column, so the
   fourth column drops out and the table fits without sideways scrolling. */
@media (max-width: 639px) {
  .ptable--packs { min-width: 0; }
  .ptable--packs .col-note { display: none; }
  .ptable--packs th,
  .ptable--packs td { padding: 12px 10px; }
  .ptable--packs th:first-child,
  .ptable--packs td:first-child { padding-left: 0; }
}

/* --------------------------------------------------- 5. disclosure block */
.disclose {
  margin-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.disclose > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 20px 32px 20px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 12px; height: 2px;
  margin-top: -1px;
  background: var(--gold);
}
.disclose > summary::before {
  content: "";
  position: absolute;
  right: 9px; top: 50%;
  width: 2px; height: 12px;
  margin-top: -6px;
  background: var(--gold);
  transition: opacity .16s ease;
}
.disclose[open] > summary::before { opacity: 0; }
.disclose__body { padding: 0 0 24px; }

/* ------------------------------------------------------- 6. pilot band */
.pilot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(28px, 4vw, 44px);
}
.pilot h2 { margin: 10px 0 0; }
.pilot__line {
  margin: 16px 0 0;
  font-size: 1.0625rem;
  color: var(--ink-2);
  max-width: 46rem;
}
.pilot .ticks { margin-top: 22px; }
.pilot__aside { margin-top: 28px; }
.pilot .btn-pair { margin-top: 24px; }

@media (min-width: 900px) {
  .pilot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
  .pilot__aside { margin-top: 0; }
  .pilot .btn-pair { margin-top: 22px; }
}
