/* /demo/* — model trial pages */

.demo-hero {
  padding: 56px 0 28px;
  background: linear-gradient(180deg, var(--c-brand-soft) 0%, transparent 100%);
}
.demo-hero h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  margin: 8px 0 14px;
  font-weight: 800;
}
.demo-hero-lede {
  font-size: 1.05rem;
  color: var(--c-text-soft);
  max-width: 780px;
  margin: 0;
  line-height: 1.6;
}
.demo-hero-lede a {
  color: var(--c-brand);
  font-weight: 600;
}

.section-tag {
  font-size: 12px; font-weight: 700;
  color: var(--c-brand);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 6px;
}

/* ── three entry cards ─────────────────────────────── */
.demo-cards { padding: 40px 0 32px; }
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.demo-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 26px 24px 20px;
  text-decoration: none;
  color: var(--c-text);
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  border-top: 3px solid var(--c-brand);
}
.demo-card.chat { border-top-color: #2c6a3a; }
.demo-card.compare { border-top-color: var(--c-warm, #a4731c); }
.demo-card.api { border-top-color: #5c2c70; }
.demo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(15,23,42,.08);
  text-decoration: none;
}
.demo-card-icon { font-size: 1.8rem; margin-bottom: 6px; }
.demo-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
}
.demo-card > p {
  color: var(--c-text-soft);
  font-size: 0.92rem;
  margin: 0 0 14px;
  line-height: 1.55;
}
.demo-card-feat {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  flex: 1;
}
.demo-card-feat li {
  font-size: 0.84rem;
  color: var(--c-text-soft);
  padding: 5px 0 5px 18px;
  position: relative;
}
.demo-card-feat li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--c-brand);
  font-weight: 700;
}
.demo-card-feat code {
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.demo-card-cta {
  color: var(--c-brand);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ── quota ─────────────────────────────────────────── */
.demo-quota { padding: 32px 0; }
.quota-card {
  background: var(--c-section-alt, #f1f5f9);
  border-radius: 10px;
  padding: 28px 28px;
}
.quota-card h3 {
  margin: 0 0 18px;
  font-size: 1.1rem;
  font-weight: 700;
}
.quota-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.quota-label {
  font-size: 12px;
  color: var(--c-text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}
.quota-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-navy, #0b1f3a);
  margin-bottom: 4px;
}
.quota-hint {
  color: var(--c-text-soft);
  font-size: 0.86rem;
}

/* ── faq ────────────────────────────────────────────── */
.demo-faq { padding: 40px 0 56px; }
.demo-faq .section-title {
  font-size: 1.4rem;
  margin: 0 0 18px;
}
.demo-faq details {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.demo-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--c-text);
}
.demo-faq p {
  margin: 12px 0 0;
  color: var(--c-text-soft);
  font-size: 0.93rem;
  line-height: 1.6;
}
.demo-faq code {
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.86em;
}

/* ── sub-hero shared (mirrors atlas.css) ─────────────── */
.sub-hero {
  padding: 36px 0 24px;
  background: linear-gradient(180deg, var(--c-brand-soft) 0%, transparent 100%);
}
.sub-hero h1 {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin: 4px 0 10px;
  font-weight: 700;
}
.sub-lede {
  font-size: 0.98rem;
  color: var(--c-text-soft);
  margin: 0;
}
.sub-lede code, .sub-lede a {
  background: white;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--c-border);
  font-size: 0.86em;
  color: var(--c-brand);
  text-decoration: none;
}
.sub-lede a code { padding: 0; border: 0; background: transparent; }
.crumbs {
  font-size: 13px;
  color: var(--c-text-mute);
  margin-bottom: 8px;
}
.crumbs a { color: var(--c-text-soft); text-decoration: none; }
.container.narrow { max-width: 820px; }

/* ── coming-soon block (mirror atlas.css) ───────────── */
.coming-soon {
  background: white;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent, #f59e0b);
  border-radius: 8px;
  padding: 18px 22px;
  margin-top: 16px;
  display: flex;
  gap: 18px;
}
.coming-soon.big { padding: 28px 28px; margin-top: 32px; }
.cs-icon { font-size: 1.8rem; }
.coming-soon strong {
  display: block;
  color: var(--c-text);
  margin-bottom: 6px;
}
.coming-soon p {
  margin: 0 0 8px;
  color: var(--c-text-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}
.coming-soon ul { margin: 8px 0 0; padding-left: 20px; color: var(--c-text-soft); }
.coming-soon ul li { margin-bottom: 4px; font-size: 0.94rem; }

/* ── chat page ──────────────────────────────────────── */
.chat-page { padding: 24px 0 56px; }
.chat-app {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 70vh;
  min-height: 480px;
}
.chat-toolbar {
  display: flex; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--c-border);
  align-items: center;
  font-size: 0.85rem;
}
.chat-toolbar label {
  display: flex; gap: 6px; align-items: center;
  color: var(--c-text-soft);
}
.chat-toolbar select, .chat-toolbar input[type=number] {
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  border: 1px solid var(--c-border);
  border-radius: 4px;
}
.chat-toolbar input[type=number] { width: 80px; }
.chat-toolbar button { margin-left: auto; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8fafc;
}
.chat-empty {
  text-align: center;
  color: var(--c-text-mute);
  padding: 40px 20px;
}
.chat-empty ul {
  display: inline-block;
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.chat-empty li { padding: 6px 0; }
.chat-empty a {
  color: var(--c-brand);
  text-decoration: none;
  font-size: 0.93rem;
}
.chat-empty a:hover { text-decoration: underline; }

.chat-msg {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.chat-msg.user {
  background: var(--c-brand-soft);
  border-color: #c8deeb;
  margin-left: 12%;
}
.chat-msg.assistant { margin-right: 12%; }
.chat-msg.pending .chat-content em { color: var(--c-text-mute); }
.chat-role {
  font-size: 12px;
  color: var(--c-text-mute);
  font-weight: 600;
  margin-bottom: 4px;
}
.chat-content {
  font-size: 0.94rem;
  color: var(--c-text);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-err {
  color: #b91c1c;
  font-size: 0.88rem;
}

.chat-form {
  display: flex; gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--c-border);
  background: white;
}
.chat-form textarea {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  font-family: var(--font-sys);
  font-size: 0.94rem;
  resize: vertical;
  min-height: 60px;
}
.chat-form textarea:focus { outline: none; border-color: var(--c-brand); }
.chat-form button { align-self: stretch; }
.chat-meta {
  padding: 8px 16px 12px;
  background: white;
  font-size: 11.5px;
  color: var(--c-text-mute);
  border-top: 1px dashed var(--c-border);
}
.chat-meta code {
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
}

/* ── API page ───────────────────────────────────────── */
.api-page { padding: 32px 0 56px; }
.api-page h2 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  font-weight: 700;
}
.api-page h3 {
  font-size: 0.96rem;
  margin: 18px 0 8px;
  color: var(--c-text-mute);
  letter-spacing: 0.04em;
}
.api-page > p, .api-page .narrow > p {
  color: var(--c-text-soft);
}

.code-block {
  background: #0f1419;
  color: #d8dee4;
  border-radius: 6px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
  margin: 8px 0 16px;
}
.code-block .cm { color: #6b7280; }
.code-block .kw { color: #c084fc; }
.code-block .str { color: #a5d6a7; }
.code-block .num { color: #f6c177; }
.code-block .key { color: #7dd3fc; }

.api-endpoint {
  background: #f8fafc;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 10px 0;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.api-method {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.api-method.post { background: #1e40af; color: white; }
.api-endpoint code {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--c-brand);
}
.api-endpoint p {
  margin: 0;
  flex-basis: 100%;
  color: var(--c-text-soft);
  font-size: 0.88rem;
}

.api-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.api-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--c-border);
  color: var(--c-text-soft);
}
.api-list code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 3px;
  color: var(--c-brand);
}
