/* Humanlike Chat model page. Loads after home.css and reuses its chrome
 * (header, footer, buttons, bands, FAQ). Token names come from ani-tokens.css. */

.m-eyebrow {
  margin-bottom: 18px;
  color: var(--ani-menu-accent);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.hero-grid.m-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  padding-top: 24px;
}

.m-hero-copy {
  position: sticky;
  top: 108px;
}

.m-hero h1 {
  max-width: 13ch;
}

.m-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 22px;
}

.m-tag {
  padding: 5px 11px;
  border: 1px solid var(--ani-line);
  border-radius: var(--ani-radius-pill);
  color: var(--ani-muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* Side-by-side comparison */

.m-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--ani-line);
  border-radius: var(--ani-radius-panel);
  background: var(--ani-panel);
  overflow: hidden;
}

.m-compare-prompt {
  grid-column: 1 / -1;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ani-line);
}

.m-compare-prompt .k {
  margin-bottom: 8px;
}

.m-compare-prompt .v {
  font-size: 15px;
}

.m-col {
  padding: 18px 22px 22px;
}

.m-col + .m-col {
  border-left: 1px solid var(--ani-line);
}

.m-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ani-line);
  color: var(--ani-muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.m-col-ours .m-col-head {
  color: var(--ani-progress);
}

.m-turn {
  margin: 0;
  color: var(--ani-text);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
}

.m-col-base .m-turn {
  color: var(--ani-muted);
}

.m-col-base .m-turn em {
  font-style: italic;
}

.m-fade {
  position: relative;
  max-height: 210px;
  overflow: hidden;
}

.m-fade::after {
  position: absolute;
  inset: auto 0 0;
  height: 72px;
  background: linear-gradient(to bottom, transparent, var(--ani-panel));
  content: "";
}

.m-compare figcaption {
  grid-column: 1 / -1;
  padding: 14px 22px;
  border-top: 1px solid var(--ani-line);
  color: var(--ani-muted);
  font-size: 12px;
}

.m-compare-thread .m-compare-prompt {
  padding: 10px 16px;
}

.m-compare-thread .m-compare-prompt .k {
  margin: 0;
}

.m-lane-heads {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.m-lane-heads .m-col-head {
  margin: 0;
  padding: 8px 16px;
  border-bottom: 1px solid var(--ani-line);
}

.m-lane-heads .m-col-head:last-child {
  border-left: 1px solid var(--ani-line);
  color: var(--ani-progress);
}

.m-beat {
  display: contents;
}

.m-beat-human {
  grid-column: 1 / -1;
  margin: 0;
  padding: 7px 16px 3px;
  border-top: 1px solid var(--ani-line);
  background: var(--ani-hover);
  color: var(--ani-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.m-lane-heads + .m-beat .m-beat-human {
  border-top: 0;
}

.m-compare-thread .m-col {
  padding: 8px 16px 10px;
}

.m-compare-thread .m-col + .m-col {
  border-left: 0;
}

.m-compare-thread .m-col-ours {
  border-left: 1px solid var(--ani-line);
}

.m-compare-thread .m-turn {
  font-size: 13px;
  line-height: 1.4;
}

.m-compare-thread figcaption {
  padding: 8px 16px;
}

/* Traction figures */

.m-figs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--ani-line);
  border-bottom: 1px solid var(--ani-line);
  list-style: none;
}

.m-figs li {
  padding: 24px 24px 24px 0;
}

.m-figs li + li {
  padding-left: 24px;
  border-left: 1px solid var(--ani-line);
}

.m-fig {
  display: block;
  color: var(--ani-text);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: clamp(26px, 3vw, 34px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.m-fig-label {
  display: block;
  margin-top: 10px;
  color: var(--ani-muted);
  font-size: 13px;
}

/* Reddit comments as social proof — thread artifacts, not SaaS cards */

.m-quotes {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1px;
  margin: 32px 0 0;
  padding: 0;
  border: 1px solid var(--ani-line);
  border-radius: var(--ani-radius-panel);
  background: var(--ani-line);
  overflow: hidden;
  list-style: none;
}

.m-quotes > li {
  min-width: 0;
}

.m-quotes > li:first-child {
  grid-column: 1 / -1;
}

.m-quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  height: 100%;
  margin: 0;
  padding: 22px 24px 18px;
  background: var(--ani-panel);
}

.m-quote figcaption {
  margin: 0;
}

.m-quote blockquote {
  margin: 0;
}

.m-quote p {
  max-width: 48ch;
  color: var(--ani-text);
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.m-quotes > li:first-child .m-quote p {
  max-width: 62ch;
  font-size: 18px;
}

.m-quote cite {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  color: var(--ani-muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.03em;
}

.m-quote cite a {
  color: var(--ani-menu-accent);
  text-decoration: none;
}

.m-quote cite a:hover {
  text-decoration: underline;
}

.m-quote-src {
  margin-top: 14px;
  color: var(--ani-muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.m-quote-src a {
  color: var(--ani-muted);
}

/* Generic two-column card grids */

.m-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.m-card {
  padding: 20px;
  border: 1px solid var(--ani-line);
  border-radius: var(--ani-radius-field);
  background: var(--ani-panel);
}

.m-card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.m-card p {
  margin-top: 8px;
  color: var(--ani-muted);
  font-size: 14px;
}

/* Measured results table */

.m-table {
  width: 100%;
  margin-top: 32px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.m-table caption {
  margin-bottom: 16px;
  color: var(--ani-muted);
  font-size: 13px;
  text-align: left;
}

.m-table th,
.m-table td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--ani-line);
  vertical-align: top;
}

.m-table thead th {
  border-bottom-color: var(--ani-control-border);
  color: var(--ani-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.m-table tbody th {
  font-weight: 500;
}

.m-table td {
  color: var(--ani-muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.m-table .m-num-ours {
  color: var(--ani-progress);
}

.m-table .m-num-down {
  color: var(--ani-error-text);
}

/* Lineage chain */

.m-lineage {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  counter-reset: link;
  list-style: none;
}

.m-lineage li {
  position: relative;
  padding: 0 0 22px 32px;
  counter-increment: link;
}

.m-lineage li::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ani-control-border-hover);
  border-radius: 50%;
  background: var(--ani-canvas);
  content: "";
}

.m-lineage li:last-child::before {
  border-color: var(--ani-progress);
  background: var(--ani-progress);
}

.m-lineage li:not(:last-child)::after {
  position: absolute;
  top: 18px;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: var(--ani-line);
  content: "";
}

.m-lineage li:last-child {
  padding-bottom: 0;
}

.m-lineage code {
  color: var(--ani-text);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
}

.m-lineage span {
  display: block;
  margin-top: 4px;
  color: var(--ani-muted);
  font-size: 13px;
}

/* Specification list */

.m-spec {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--ani-line);
}

.m-spec dt {
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--ani-line);
  color: var(--ani-muted);
  font-size: 13px;
}

.m-spec dd {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--ani-line);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Plain bordered lists (limitations, behaviour traits) */

.m-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.m-list li {
  padding: 14px 0;
  border-top: 1px solid var(--ani-line);
  color: var(--ani-muted);
  font-size: 14px;
  max-width: 76ch;
}

.m-list li:last-child {
  border-bottom: 1px solid var(--ani-line);
}

.m-list strong {
  color: var(--ani-text);
  font-weight: 500;
}

/* Code block */

.m-code {
  margin: 24px 0 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--ani-line);
  border-radius: var(--ani-radius-field);
  background: var(--ani-panel);
  color: var(--ani-text);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.m-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.m-aside {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--ani-line);
  border-left: 2px solid var(--ani-progress);
  border-radius: 0 var(--ani-radius-field) var(--ani-radius-field) 0;
  background: color-mix(in srgb, var(--ani-progress) 5%, transparent);
  color: var(--ani-muted);
  font-size: 14px;
  max-width: 72ch;
}

.m-aside strong {
  color: var(--ani-text);
  font-weight: 500;
}

/* Homepage enterprise band */

.m-uses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.m-uses li {
  padding: 14px 0;
  border-top: 1px solid var(--ani-line);
  color: var(--ani-muted);
  font-size: 14px;
}

.m-uses strong {
  display: block;
  color: var(--ani-text);
  font-weight: 500;
}

@media (max-width: 1023px) {
  .hero-grid.m-hero {
    grid-template-columns: 1fr;
  }

  .m-hero-copy {
    position: static;
  }

  .m-hero h1 {
    max-width: none;
  }

  .m-figs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .m-figs li {
    padding: 20px 16px 20px 0;
  }

  .m-figs li:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .m-figs li:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid var(--ani-line);
  }

  .m-figs li:nth-child(n + 3) {
    border-top: 1px solid var(--ani-line);
  }

  .m-quotes {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .m-quotes {
    grid-template-columns: 1fr;
  }

  .m-quotes > li:first-child {
    grid-column: auto;
  }

  .m-quote {
    padding: 20px 18px 16px;
  }

  .m-quote p,
  .m-quotes > li:first-child .m-quote p {
    max-width: none;
    font-size: 15px;
  }

  .m-compare {
    grid-template-columns: 1fr;
  }

  .m-col + .m-col {
    border-top: 1px solid var(--ani-line);
    border-left: 0;
  }

  .m-lane-heads {
    display: none;
  }

  .m-compare-thread .m-col::before {
    display: block;
    margin-bottom: 6px;
    color: var(--ani-muted);
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 11px;
    content: "Qwen 3.8 27B base";
  }

  .m-compare-thread .m-col-ours::before {
    color: var(--ani-progress);
    content: "Humanlike Chat";
  }

  .m-compare-thread .m-col-ours {
    border-left: 0;
    border-top: 1px solid var(--ani-line);
  }

  .m-spec {
    grid-template-columns: 1fr;
  }

  .m-spec dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .m-table th,
  .m-table td {
    padding-right: 10px;
  }
}
