/* Agora-specific content and board previews. Shared chrome is in vendor/design.css. */
:root {
  /* Agora's own tints, derived from Stoa roles rather than invented. */
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 34%, transparent);
  --destructive-soft: color-mix(in srgb, var(--status-danger) 12%, transparent);
  --destructive-line: color-mix(in srgb, var(--status-danger) 38%, transparent);
  --destructive-text: var(--status-danger);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* A grid item's automatic minimum size is its content's min-content width, and
 * the min-content width of a <pre> is its longest line — so without this every
 * column containing a code block would push the page wider than the viewport.
 * The blocks scroll inside themselves instead. */
.split > *,
.grid-2 > * {
  min-width: 0;
}

/* ------------------------------------------------------------------ pieces */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--text-micro);
  line-height: var(--text-micro--line-height);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  white-space: nowrap;
}

.pill-caution {
  border-color: color-mix(in srgb, var(--status-caution) 32%, transparent);
  background: color-mix(in srgb, var(--status-caution) 12%, transparent);
  color: var(--status-caution);
}

.pill-caution::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: currentColor;
}

.pill-done {
  border-color: color-mix(in srgb, var(--status-success) 32%, transparent);
  background: color-mix(in srgb, var(--status-success) 12%, transparent);
  color: var(--status-success);
  text-transform: none;
  letter-spacing: 0.02em;
}

/* -------------------------------------------------------------------- code */

.code {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 45%, var(--card));
}

.code-label {
  font-family: var(--font-code);
  font-size: var(--text-micro);
  line-height: var(--text-micro--line-height);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.copy-btn {
  font-family: var(--font-code);
  font-size: var(--text-micro);
  line-height: var(--text-micro--line-height);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--muted-foreground);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.15rem 0.45rem;
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--foreground);
  border-color: var(--border);
}

.code pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
  tab-size: 2;
}

.code code {
  font-size: inherit;
}

.c-cmd {
  color: var(--foreground);
  font-weight: 500;
}

.c-op,
.c-comment {
  color: var(--muted-foreground);
}

.j-key {
  color: var(--accent);
}

.j-str {
  color: var(--foreground);
}

.j-num,
.j-bool {
  color: var(--muted-foreground);
  font-style: italic;
}

.j-punc {
  color: var(--muted-foreground);
}

.board-band {
  padding-bottom: 4rem;
}

/* ---------------------------------------------------------------- sections */

.sub-title {
  font-size: var(--text-title);
  line-height: var(--text-title--line-height);
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}

.prose {
  max-width: 66ch;
  color: var(--reading);
  margin-bottom: 1rem;
}

.prose:last-child {
  margin-bottom: 0;
}

.note {
  max-width: 70ch;
  margin-top: 1.5rem;
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
  color: var(--muted-foreground);
}

.grid-2 {
  display: grid;
  gap: 2rem 3rem;
  margin-top: 2rem;
}

@media (min-width: 46rem) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.point h3 {
  font-size: var(--text-title);
  line-height: var(--text-title--line-height);
  margin-bottom: 0.5rem;
}

.point p {
  color: var(--muted-foreground);
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
  max-width: 52ch;
}

.point code,
.note code,
.prose code,
.table code,
.callout code {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.05em 0.32em;
  font-size: 0.85em;
  white-space: nowrap;
}

.split {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.split-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.note-tight {
  margin-top: 1.25rem;
  max-width: none;
}

@media (min-width: 64rem) {
  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

/* ------------------------------------------------------------------- table */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body);
  text-align: left;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-weight: 400;
}

.table thead th {
  font-family: var(--font-body);
  font-size: var(--text-micro);
  line-height: var(--text-micro--line-height);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--muted-foreground);
  font-weight: 500;
}

.table tbody tr:last-child th,
.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody th {
  white-space: nowrap;
}

.table td {
  color: var(--muted-foreground);
}

/* ----------------------------------------------------------------- callout */

.callout {
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-line);
  border-radius: var(--radius-xl);
  background: var(--card);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

/* ----------------------------------------------------------------- roadmap */

.roadmap {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  max-width: 46rem;
}

.roadmap li {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: baseline;
  gap: 0.5rem 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
  color: var(--muted-foreground);
}

.roadmap li:last-child {
  border-bottom: 0;
}

.rm-mark {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--muted-foreground);
  align-self: center;
}

.roadmap .done .rm-mark {
  background: var(--status-success);
  border-color: var(--status-success);
}

.roadmap .done {
  color: var(--foreground);
}

.rm-phase {
  font-family: var(--font-code);
  font-size: var(--text-micro);
  line-height: var(--text-micro--line-height);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.rm-text {
  min-width: 0;
}

.roadmap .pill {
  grid-column: 3;
  justify-self: start;
}

@media (min-width: 46rem) {
  .roadmap li {
    grid-template-columns: auto 5.5rem minmax(0, 1fr) auto;
  }

  .roadmap .pill {
    grid-column: auto;
    justify-self: end;
  }
}


.quick-start { max-width: 48rem; margin: 0 auto 3rem; }
.quick-start .code { margin: 0; }
.hero-status { margin-top: 1.5rem; }

/* Product overview and demo share Stoa's navigation, typography, and tokens. */
.product-preview { padding-bottom: 4rem; }
.preview-caption { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; margin-bottom: 1.5rem; }
.preview-caption h2 { margin-top: .5rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.preview-window { position: relative; display: block; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card); overflow: hidden; color: var(--foreground); }
.preview-window-bar { display: flex; align-items: center; gap: 1rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); font-size: var(--text-micro); color: var(--muted-foreground); }
.preview-dots { letter-spacing: .2em; opacity: .5; }
.preview-live { margin-left: auto; }
.preview-window iframe { display: block; width: 100%; height: 560px; border: 0; pointer-events: none; }
.preview-open { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: var(--foreground); color: var(--background); padding: .75rem 1.25rem; border-radius: var(--radius-lg); font-size: var(--text-body); white-space: nowrap; box-shadow: 0 4px 24px #0003; }
.preview-window:hover { border-color: var(--accent); }
/* Reserve the navbar height before the demo introduction. */
.demo-site-header { position: relative; }
.demo-intro { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 3rem; padding-bottom: 2rem; }
.demo-intro h1 { font-size: clamp(2rem, 4vw, 3rem); margin: .7rem 0; }
.demo-intro p:not(.text-eyebrow), .demo-foot { color: var(--muted-foreground); font-size: var(--text-body); }
.demo-intro .btn { flex-shrink: 0; }
.demo-frame { margin: 0 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; background: var(--card); }
.demo-frame iframe { display: block; width: 100%; height: max(760px, calc(100dvh - 200px)); border: 0; }
.demo-foot { display: flex; gap: 1rem; justify-content: space-between; padding-top: 1.25rem; padding-bottom: 3rem; }
@media (max-width: 46rem) {
  .preview-caption, .demo-intro, .demo-foot { align-items: start; flex-direction: column; }
  .preview-window iframe { width: 1100px; height: 520px; }
  .preview-live { display: none; }
  .demo-frame { margin: 0 .75rem; }
  .demo-intro { padding-top: 2rem; }
}
.agora-site-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--foreground); text-decoration: none; font-family: var(--font-body); font-size: var(--text-lead); font-weight: 500; line-height: var(--text-lead--line-height); letter-spacing: normal; }
.agora-site-brand svg { flex-shrink: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2rem; }
.feature-number { display: block; margin-bottom: 1.25rem; color: var(--muted-foreground); font: .7rem var(--font-code); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 46rem) { .feature-grid { grid-template-columns: 1fr; } }

.site-footer .agora-site-brand svg{width:24px;height:24px}
