/* The home page: a title block with the line check figure, then four numbered questions. */

.hero { display: flex; flex-direction: column; gap: 24px; }
.hero .title h1 { font-size: 46px; }
.hero .note { margin-top: -8px; }

/* ------------------------------------------------------------------ 1.0 what does it cost? */
/* The price of a page, large, in serif: the one number to see at a glance. */
.rates { margin: 0; display: grid; gap: 10px; }
.rate { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0 4px; border-top: 2px solid var(--ink); }
.rate dt { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--muted); }
.rate dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.rate-price { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.1; letter-spacing: -.02em;
  font-variant-numeric: lining-nums tabular-nums; }
.rate-unit { font-family: var(--sans); font-size: 15px; color: var(--ink-soft); }
.rate.loading dd { font-family: var(--sans); font-size: 15px; color: var(--muted); }
/* Two lanes, regular and batch, side by side. The bar is a day: a short accent fill for results in minutes, a full
   light fill for results within 24 hours. */
.rates.two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 24px; }
/* ".rate .rate-use" and ".rate .rate-time": more specific than ".rate dd", which would make them flex rows. */
.rate .rate-use { margin: 4px 0 0; font-family: var(--sans); font-size: 15px; color: var(--ink-soft); }
.rate .rate-time { margin: 8px 0 0; display: grid; gap: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rate-time .bar { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--surface-alt); overflow: hidden; }
.rate-time .bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 6%; border-radius: 3px; background: var(--accent); }
.rate-time.batch .bar::after { width: 100%; background: var(--chip-line); }
.calc-line { display: block; }

.packs { background: var(--surface); border: 1px solid var(--frame); border-radius: 12px; overflow: hidden; }
.pack { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "credits price" "unit unit" "buy buy";
  gap: 4px 16px; padding: 16px 18px; align-items: baseline; }
.pack + .pack { border-top: 1px solid var(--rule); }
.pack-credits { grid-area: credits; font-family: var(--sans); font-weight: 600; font-size: 19px; line-height: 1.35; }
.pack-price { grid-area: price; font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.1; letter-spacing: -.02em;
  font-variant-numeric: lining-nums tabular-nums; }
.pack-unit { grid-area: unit; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.pack .btn { grid-area: buy; justify-self: start; margin-top: 8px; }
.pack.loading, .packs > .note { display: block; padding: 16px 18px; font-family: var(--sans); font-size: 15px; color: var(--muted); }
.packs > .note.error { display: grid; margin: 0; border: 0; border-radius: 0; }
@media (min-width: 620px) {
  .pack { grid-template-columns: 1fr auto auto; grid-template-areas: "credits price buy" "unit price buy"; }
  .pack .btn { margin-top: 0; align-self: center; }
}

/* The page calculator: one field, one answer. The field sits next to its label, and the answer wraps to its own line
   on the same left edge. A flex row, so that the length of the answer never moves the field. */
.calc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 18px;
  background: var(--accent-tint); border-radius: 12px; font-family: var(--sans); font-size: 15px; }
.calc label { font-weight: 600; }
.calc-input { flex: none; min-height: var(--control); width: 9em; padding: 0 12px; border: 1px solid var(--muted); border-radius: 8px;
  background: var(--surface); font-family: var(--sans); font-size: 16px; font-variant-numeric: tabular-nums; }
.calc-input:focus-visible { outline-offset: 1px; border-color: var(--accent); }
.calc output { flex-basis: 100%; color: var(--ink); line-height: 1.5; }

.price-notes { padding-left: 22px; margin-bottom: 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--serif);
  font-size: 16px; color: var(--ink-soft); }

/* ------------------------------------------------------------------ 2.0 and 3.0 */
.plain-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.plain-list strong { font-family: var(--sans); font-size: .93em; }

.facts { margin: 0; background: var(--surface); border: 1px solid var(--frame); border-radius: 12px; overflow: hidden; }
.facts > div { position: relative; display: grid; gap: 4px; padding: 14px 18px 14px 62px; }
.facts > div + div { border-top: 1px solid var(--rule); }
.facts dt .num { position: absolute; left: 18px; top: 18px; font-size: 13px; }
.facts dt { font-family: var(--sans); font-weight: 600; font-size: 17px; line-height: 1.4; }
.facts dd { margin: 0; font-size: 17px; color: var(--ink-soft); }

/* ------------------------------------------------------------------ 4.0 agents */
.prompt pre { margin: 10px 0 0; padding: 14px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px;
  overflow-x: auto; font-size: 13px; line-height: 1.6; color: var(--ink); }

@media (max-width: 640px) {
  .hero .title h1 { font-size: 32px; }
  .rate-price { font-size: 34px; }
  .calc { padding: 14px; }
}
