/* /products and /products/apichatbot — layout glue only. Atoms come from
   tokens.css and components.css. */

/* ── product hero ─────────────────────────────────────────────────────── */
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 860px) { .product-hero { grid-template-columns: 1fr; } }
.product-title { max-width: 18ch; }
.product-hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.product-facts {
  margin-top: 8px;
  padding: 20px 24px;
  border: 1px solid var(--rule);
  background: var(--bg-deep);
}

/* ── grids ────────────────────────────────────────────────────────────── */
.product-grid-3,
.product-grid-4 {
  display: grid;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--rule);
}
.product-grid-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .product-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .product-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 600px)  { .product-grid-4 { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--paper);
  padding: clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.feature-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
}

/* ── dashboard (dark) ─────────────────────────────────────────────────── */
.product-dashboard { max-width: 860px; }
.kv-list-dark dt { color: var(--brand); }
.kv-list-dark dd { color: #c9c9c9; }
.kv-list-dark > div { border-color: #262626; }

/* read-only dashboard demo callout — a light card on the dark section so it
   reads as the section's call to action, not as more dark copy. */
.dashboard-demo {
  max-width: 860px;
  margin-top: 40px;
  padding: 28px 32px 30px;
  background: var(--paper);
  color: var(--ink);
  border-top: 4px solid var(--brand);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dashboard-demo .eyebrow { margin: 0; }
.dashboard-demo-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.dashboard-demo-text { margin: 0 0 6px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; max-width: 60ch; }
.dashboard-demo-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.dashboard-demo-creds {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  padding: 9px 12px;
  border: 1px dashed var(--ink-4);
  background: var(--bg-deep);
}
.dashboard-demo-creds b { color: var(--ink); font-weight: 700; }

/* ── pricing fine print + CTA ─────────────────────────────────────────── */
.product-fine {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.02em;
  margin: 16px 0 0;
}
.product-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}
.product-cta .section-lede { text-align: center; }
.product-cta-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── /goatcheese: animated console session ───────────────────────────── */
.gc-term {
  margin: 0 0 40px;
  background: #0f1110;
  border: 1px solid #262626;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  font-family: var(--mono);
}
.gc-term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #262626;
  color: #8a8a8a;
  font-size: 12px;
}
.gc-term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3a; display: inline-block; }
.gc-term-bar i:nth-child(1) { background: #ff5f57; }
.gc-term-bar i:nth-child(2) { background: #febc2e; }
.gc-term-bar i:nth-child(3) { background: #28c840; }
.gc-term-bar .gc-term-title { margin-left: 8px; }
.gc-term-replay {
  margin-left: auto;
  background: none;
  border: 1px solid #3a3a3a;
  color: #c9c9c9;
  font: inherit;
  padding: 3px 10px;
  cursor: pointer;
}
.gc-term-replay:hover { border-color: var(--brand); color: var(--brand); }
.gc-term-screen {
  height: 420px;
  overflow-y: auto;
  padding: 18px 20px 22px;
  font-size: 13px;
  line-height: 1.6;
  color: #d6d6d6;
  white-space: pre;
  overflow-x: auto;
}
@media (max-width: 600px) { .gc-term-screen { height: 340px; font-size: 12px; } }
.gc-line .p   { color: var(--brand); }
.gc-line .cmd { color: #ffffff; font-weight: 600; }
.gc-line.g    { color: var(--brand); font-weight: 600; }
.gc-line.w    { color: #ffffff; font-weight: 600; }
.gc-line.d, .gc-line .d { color: #7d7d7d; }
.gc-line.k, .gc-line .k { color: #9fe3a6; }
.gc-line b    { color: #ffffff; }
.gc-line.f    { color: #b8b8b8; }
.gc-line .add { color: #9fe3a6; background: rgba(45, 202, 61, .12); display: inline-block; width: 100%; }
.gc-line u    { text-decoration: none; border-bottom: 1px dotted #7d7d7d; }
.gc-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  vertical-align: -2px;
  background: var(--brand);
  animation: gc-blink 1s steps(1) infinite;
}
@keyframes gc-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gc-cursor { animation: none; } }
.gc-app-link { margin-top: auto; padding-top: 12px; font-size: 13px; }
.gc-more { grid-column: 1 / -1; }
.gc-term-note { margin: -28px 0 40px; }
