/* AI Solver API: the front page (/) and the price page (/pricing).
   The shared look (fonts, tokens, ground, header, buttons, planes, price cards) is in /docs/assets/site.css, and the
   pieces these pages share with the documentation (code panels, the solved spot, the big figures, closed blocks) are in
   /docs/assets/docs.css. This file holds what only these two pages have. */

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap:focus { outline: none; }
.band { padding: 56px 0 0; }
.band-head { display: grid; justify-items: center; gap: 8px; margin: 0 0 28px; text-align: center; }
.band-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; }
.band-head p { margin: 0; max-width: 62ch; font-size: 1.05rem; line-height: 1.55; color: var(--text-2); }
.band-foot { margin: 18px 0 0; max-width: none; text-align: center; font-size: 15px; color: var(--text-faint); }
.band-foot a { color: var(--text-2); }

/* ---------------------------------------------------------------- hero: one headline, one sentence, two buttons */
.hero { display: grid; justify-items: center; gap: 20px; padding: 72px 0 8px; text-align: center; }
.hero h1 { margin: 0; max-width: 16ch; font-size: clamp(2.3rem, 5.6vw, 3.7rem); line-height: 1.05; letter-spacing: -0.035em; }
.hero .lead { margin: 0; max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; }
.btn-big { min-height: 48px; padding: 0 24px; font-size: 15.5px; }
.hero-link { max-width: none; margin: 0; font-size: 15px; color: var(--text-faint); }
.hero-link a { color: var(--text-2); }
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: 100%; max-width: 860px; margin: 20px 0 0; padding: 0; border-radius: var(--r-card); background-image: var(--plane-inset); box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 0 var(--edge-top); }
.facts li { display: grid; gap: 4px; padding: 16px 18px 17px; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--text-faint); }
.facts li + li { box-shadow: inset 1px 0 0 0 var(--edge); }
.facts b { font: 600 1.5rem/1.15 var(--display); letter-spacing: -0.02em; color: var(--heading); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------------------------------------------------------------- how it works: three cards, then one sample */
.how3 { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; counter-reset: how; }
.how3 li { counter-increment: how; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: start; align-content: start; padding: 18px 20px; border-radius: var(--r-card); background-image: var(--plane-inset); box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 0 var(--edge-top); font-size: 15px; line-height: 1.5; color: var(--text-2); }
.how3 li::before { content: counter(how); grid-row: span 2; display: grid; place-content: center; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--edge-strong); font: 500 13px/1 var(--mono); color: var(--text); }
.how3 b { font: 600 17px/1.3 var(--display); letter-spacing: -0.01em; color: var(--heading); }
.how3 span { grid-column: 2; }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 14px; }
.demo > * { min-width: 0; margin: 0; }
.demo .code { height: 100%; }
.demo pre { max-height: 430px; }
.demo .spot { height: 100%; }

/* ---------------------------------------------------------------- speed and accuracy: the six numbers side by side */
.front .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 0; }
.front .figure-title { margin: 0; max-width: none; font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }

/* ---------------------------------------------------------------- questions and the blocks to look things up */
.lookup { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.lookup details.more > summary { min-height: 52px; font-size: 16px; }
.lookup .more-body { padding-bottom: 18px; }
.lookup .more-body p, .lookup .more-body li { font-size: 15.5px; }
.lookup .more-body > p { max-width: none; }
.lookup .table { margin-top: 4px; }

/* ---------------------------------------------------------------- the two buttons again */
.cta { display: grid; justify-items: center; gap: 18px; margin-top: 56px; padding: 40px 24px; border-radius: var(--r-sheet); background-image: var(--plane); box-shadow: var(--plane-shadow); text-align: center; }
.cta h2 { margin: 0; font-size: clamp(1.5rem, 2.8vw, 1.9rem); line-height: 1.2; }
.cta p { margin: 0; max-width: 52ch; color: var(--text-2); }
.site-foot { margin-top: 56px; padding-bottom: 48px; }

/* ---------------------------------------------------------------- the price page */
.price-top { display: grid; gap: 10px; padding: 36px 0 22px; }
.price-top h1 { margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.1; }
.price-top .lead { margin: 0; max-width: none; font-size: 1.08rem; line-height: 1.5; color: var(--text-2); }
.plans-foot { margin: 16px 0 0; max-width: none; font-size: 14.5px; line-height: 1.55; color: var(--text-faint); }
.plans-foot a { color: var(--text-2); }

@media (max-width: 859px) {
  .hero { padding-top: 48px; }
  .how3, .demo, .front .figures { grid-template-columns: minmax(0, 1fr); }
  .demo pre { max-height: 320px; }
  .band { padding-top: 44px; }
}
@media (max-width: 599px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 36px; gap: 16px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 150px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; padding: 11px 16px; text-align: left; }
  .facts li + li { box-shadow: inset 0 1px 0 0 var(--edge); }
  .facts b { order: 2; font-size: 1.2rem; }
  .price-top { padding: 22px 0 16px; gap: 6px; }
  .price-top .lead { font-size: 1rem; }
  .cta { margin-top: 44px; padding: 30px 18px; }
  .cta .hero-actions .btn { flex: 1 1 150px; }
}
