/* plaingraph placeholder site — sits on the design system tokens.
   Iterate here; tokens stay in design-system/colors_and_type.css. */
@import url("colors_and_type.css");

html, body { margin: 0; padding: 0; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.grow { flex: 1; }
code { color: var(--fg-strong); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg-canvas) 92%, transparent);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: var(--container-wide); margin: 0 auto;
  height: 60px; padding: 0 var(--space-6);
  display: flex; align-items: center; gap: var(--space-6);
}
.brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; }
.brand .mark { color: var(--fg-strong); flex-shrink: 0; }
.wordmark {
  font-family: var(--font-sans); font-weight: var(--weight-semibold);
  font-size: 16px; letter-spacing: var(--tracking-snug);
}
.wordmark .loud { color: var(--fg-strong); }
.wordmark .quiet { color: var(--ink-300); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: var(--space-4); }
.status {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--fg-muted);
}
.status .dot {
  width: 6px; height: 6px; border-radius: var(--radius-full);
  background: var(--match-500);
}

/* ---------- Buttons ---------- */
.btn {
  font: var(--weight-medium) 13px/1 var(--font-sans);
  padding: 9px 15px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.btn.primary { background: var(--accent-600); color: var(--fg-on-accent); }
.btn.primary:hover { background: var(--accent-700); }
.btn.secondary { background: var(--bg-surface); color: var(--fg-strong); border-color: var(--border-default); }
.btn.secondary:hover { background: var(--bg-hover); }

/* ---------- Hero ---------- */
.hero {
  position: relative; flex: 1;
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--ink-100) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink-100) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 18%, #000 30%, transparent 80%);
  opacity: 0.55; pointer-events: none;
}
.hero-grid {
  position: relative; max-width: var(--container-wide);
  margin: 0 auto; padding: 0 var(--space-6);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.eyebrow {
  font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--fg-muted); margin: 0;
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: var(--radius-xs); background: var(--accent-500);
  vertical-align: 1px; margin-right: var(--space-2);
}
.hero h1 {
  margin: 14px 0 18px; font-size: 52px; line-height: 1.05;
  letter-spacing: -0.035em; color: var(--fg-strong);
  font-weight: var(--weight-semibold);
}
.lead {
  font-size: var(--text-lg); line-height: var(--leading-loose);
  color: var(--fg-muted); max-width: 560px; margin: 0 0 16px;
}
.lead code {
  font-family: var(--font-mono); font-size: 0.9em;
  background: var(--bg-sunken); border: 1px solid var(--border-subtle);
  padding: 1px 5px; border-radius: var(--radius-xs);
}
.note {
  font-size: var(--text-sm); line-height: var(--leading-normal);
  color: var(--fg-subtle); max-width: 540px; margin: 0 0 24px;
}
.ctas { display: flex; gap: var(--space-3); align-items: center; }
.meta {
  margin: 28px 0 0; font-family: var(--font-mono);
  font-size: var(--text-xs); color: var(--fg-subtle);
}

/* ---------- Hero code panel ---------- */
.hero-code {
  background: #0F141B; border: 1px solid #1B2230;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px -24px rgba(15, 20, 27, 0.25);
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6;
  color: #E2E6EC; overflow: hidden;
}
.hero-code header {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 10px 14px; border-bottom: 1px solid #1B2230; background: #11161E;
}
.hero-code .lights { display: flex; gap: 5px; }
.hero-code .lights span { width: 9px; height: 9px; border-radius: 50%; background: #232B3B; }
.hero-code .file { font-size: 11px; color: #93A0B0; }
.hero-code pre { margin: 0; padding: 16px 18px; overflow-x: auto; white-space: pre-wrap; }
.hero-code .s { color: #34C77A; }
.hero-code .n { color: #E7A53A; }
.hero-code .p { color: #93A0B0; }
.hero-code .key { color: #93A6FA; }
.hero-code .response {
  border-top: 1px solid #1B2230; padding: 14px 18px; background: #0B0F15;
}
.hero-code .rh {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: 11px; color: #6E7B8C; margin-bottom: 8px;
}
.hero-code .rh .badge {
  font-size: 10px; padding: 1px 6px; border-radius: 3px;
  background: rgba(31, 164, 91, 0.16); color: #34C77A;
}

/* ---------- Promise strip ---------- */
.promise { background: var(--bg-canvas); border-bottom: 1px solid var(--border-subtle); }
.promise-inner {
  max-width: var(--container-wide); margin: 0 auto;
  padding: 56px var(--space-6);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
}
.promise .item {
  padding: 22px 22px; border: 1px solid var(--border-default);
  border-radius: var(--radius-md); background: var(--bg-surface);
}
.promise .item h3 {
  margin: 0 0 6px; font-size: var(--text-lg);
  color: var(--fg-strong); font-weight: var(--weight-semibold);
}
.promise .item p {
  margin: 0; font-size: var(--text-sm);
  color: var(--fg-muted); line-height: var(--leading-loose);
}
.promise-roadmap {
  max-width: var(--container-wide);
  margin: 0 auto; padding: 0 var(--space-6) 56px;
  text-align: center;
}

/* ---------- FAQ (also feeds FAQPage structured data) ---------- */
.faq { background: var(--bg-canvas); border-bottom: 1px solid var(--border-subtle); }
.faq-inner {
  max-width: var(--container-wide); margin: 0 auto;
  padding: 56px var(--space-6);
}
.faq-inner > h2 {
  margin: 0 0 var(--space-5); font-size: var(--text-xl);
  color: var(--fg-strong); font-weight: var(--weight-semibold);
}
.faq-item { margin: 0 0 var(--space-5); max-width: 720px; }
.faq-item h3 {
  margin: 0 0 6px; font-size: var(--text-md);
  color: var(--fg-strong); font-weight: var(--weight-semibold);
}
.faq-item p {
  margin: 0; font-size: var(--text-sm);
  color: var(--fg-muted); line-height: var(--leading-loose);
}
.faq-item code {
  font-family: var(--font-mono); font-size: 0.9em;
  background: var(--bg-sunken); border: 1px solid var(--border-subtle);
  padding: 1px 5px; border-radius: var(--radius-xs);
}

/* ---------- Footer ---------- */
.footer { background: var(--bg-canvas); }
.footer-inner {
  max-width: var(--container-wide); margin: 0 auto;
  padding: 28px var(--space-6); display: flex; align-items: center;
  gap: var(--space-5); font-size: var(--text-sm); color: var(--fg-muted);
  flex-wrap: wrap;
}
.footer-inner .link {
  color: var(--fg-link); text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--fg-link) 30%, transparent);
  text-underline-offset: 2px;
}
.footer-inner .link:hover { text-decoration-color: var(--fg-link); }

.footer-legal {
  max-width: var(--container-wide); margin: 0 auto;
  padding: 14px var(--space-6) 28px;
  display: flex; align-items: center; gap: var(--space-4);
  font-size: var(--text-xs); color: var(--fg-subtle);
  flex-wrap: wrap;
}
.footer-legal .link {
  color: var(--fg-muted); text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--fg-muted) 30%, transparent);
  text-underline-offset: 2px;
}
.footer-legal .link:hover { text-decoration-color: var(--fg-muted); }
.footer-legal .link-button {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
}

/* ---------- Cookie consent banner ---------- *
 * Accept and reject are given equal visual weight — no dark patterns. */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--bg-surface); border-top: 1px solid var(--border-default);
  padding: var(--space-4) var(--space-6);
}
.consent-inner {
  max-width: var(--container-wide); margin: 0 auto;
  display: flex; align-items: center; gap: var(--space-4);
  flex-wrap: wrap;
}
.consent p {
  margin: 0; flex: 1 1 320px;
  font-size: var(--text-sm); color: var(--fg-default);
}
.consent .consent-actions { display: flex; gap: var(--space-3); }
.consent .btn { font-size: var(--text-sm); }

/* ---------- Hero chat demo ---------- */
.chat-demo .cd-body {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 16px 18px;
}
.chat-demo .cd-msg {
  border: 1px solid #1B2230; border-radius: var(--radius-md);
  padding: 10px 12px; background: #11161E;
}
.chat-demo .cd-agent { background: #0F141B; border-left: 2px solid var(--accent-500); }
.chat-demo .cd-role {
  display: block; font-size: 10px; letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: #6E7B8C; margin-bottom: 4px;
}
.chat-demo .cd-msg p {
  margin: 0; font-family: var(--font-sans); font-size: 13px;
  line-height: 1.55; color: #E2E6EC;
}
.chat-demo .cd-num { font-family: var(--font-mono); color: #E7A53A; }
.chat-demo .cd-tool {
  font-size: 11.5px; color: #93A0B0; padding: 2px 2px;
  white-space: pre-wrap; word-break: break-word;
}
.chat-demo .cd-result {
  border: 1px solid #1B2230; border-radius: var(--radius-md);
  background: #0B0F15; padding: 12px 14px;
}
.chat-demo .cd-result pre { padding: 0; margin: 6px 0 0; }
.chat-demo .band-match { color: #34C77A; }
.chat-demo .cd-typing { display: none; gap: 5px; padding: 4px 4px; }
.chat-demo .cd-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #46505E;
  animation: cd-blink 1s var(--ease-in-out) infinite;
}
.chat-demo .cd-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-demo .cd-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes cd-blink {
  0%, 60%, 100% { opacity: 0.35; }
  30% { opacity: 1; }
}
/* No-JS / default: everything visible, no typing dots. */
.chat-demo .cd-step { opacity: 1; }
/* JS-driven staged reveal. */
.chat-demo.is-js .cd-step { opacity: 0; transform: translateY(4px); }
.chat-demo.is-js .cd-step.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.chat-demo.is-js .cd-typing.is-in { display: flex; }
@media (prefers-reduced-motion: reduce) {
  .chat-demo.is-js .cd-step { opacity: 1; transform: none; }
  .chat-demo .cd-typing { display: none !important; }
  .chat-demo .cd-typing span { animation: none; }
}

/* ---------- Legal pages ---------- */
.legal {
  flex: 1; max-width: var(--container-narrow);
  margin: 0 auto; padding: 56px var(--space-6) 72px;
}
.legal-draft {
  font-size: var(--text-sm); line-height: var(--leading-normal);
  color: var(--review-700); background: var(--review-50);
  border: 1px solid var(--review-200); border-radius: var(--radius-md);
  padding: 12px 14px; margin: 0 0 var(--space-8);
}
.legal h1 {
  font-size: var(--text-3xl); line-height: var(--leading-tight);
  letter-spacing: var(--tracking-snug); color: var(--fg-strong);
  font-weight: var(--weight-semibold); margin: 0 0 var(--space-2);
}
.legal .legal-updated {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--fg-subtle); margin: 0 0 var(--space-8);
}
.legal h2 {
  font-size: var(--text-xl); color: var(--fg-strong);
  font-weight: var(--weight-semibold); margin: var(--space-8) 0 var(--space-3);
}
.legal p, .legal li {
  font-size: var(--text-md); line-height: var(--leading-loose);
  color: var(--fg-default);
}
.legal-table {
  width: 100%; border-collapse: collapse; margin: var(--space-4) 0;
  font-size: var(--text-sm);
}
.legal-table th, .legal-table td {
  border: 1px solid var(--border-default);
  padding: var(--space-2) var(--space-3); text-align: left;
  vertical-align: top; color: var(--fg-default);
}
.legal-table th {
  background: var(--bg-surface); color: var(--fg-strong);
  font-weight: var(--weight-semibold);
}
.legal ul { padding-left: var(--space-5); margin: var(--space-3) 0; }
.legal li { margin: var(--space-2) 0; }
.legal .legal-entity {
  font-size: var(--text-sm); line-height: var(--leading-loose);
  color: var(--fg-muted); background: var(--bg-sunken);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: var(--space-4); margin: var(--space-6) 0;
}
.legal a { color: var(--fg-link); }
.legal .legal-back {
  display: inline-block; margin-top: var(--space-10);
  font-size: var(--text-sm);
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 40px; }
  .promise-inner { grid-template-columns: 1fr; }
  .footer-inner { gap: var(--space-3); }
}
