/* Vergelijkingspagina: klassieke bot naast AI-chatbot. Bouwt op de tokens en .at-*-klassen uit styles.css. */
.demo-hero, .duel { width: min(100%, calc(var(--max) + 2 * var(--pad))); margin: auto; padding-inline: var(--pad); }
.demo-hero { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.demo-hero h1 { max-width: none; font-size: clamp(2.9rem, 7vw, 6.4rem); line-height: .92; }
.demo-hero .hero-intro { margin-bottom: 0; }

.duel { padding-bottom: clamp(5rem, 9vw, 8rem); }
.duel-tries { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: 1.6rem; }
.duel-tries-label { margin-right: .4rem; color: var(--muted); font: 500 .66rem "DM Mono", monospace; letter-spacing: .12em; }
.try { padding: .55rem .9rem; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 600 .8rem "Manrope", sans-serif; text-align: left; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.try:hover { background: var(--acid); transform: translateY(-2px); }
.try:disabled, .duel-input button:disabled { opacity: .45; cursor: wait; transform: none; }

.duel-stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); background: var(--paper); }
.bot { display: flex; flex-direction: column; min-width: 0; height: clamp(24rem, 58vh, 34rem); }
.bot-classic { border-right: 1px solid var(--ink); }
.bot-head { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.bot-badge { flex: none; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font: 500 .8rem "DM Mono", monospace; }
.bot-id h2 { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.03em; }
.bot-id span { display: block; margin-top: .2rem; color: var(--muted); font: 500 .6rem "DM Mono", monospace; letter-spacing: .1em; }
.bot-classic .bot-head { padding-right: 2.4rem; }
.bot-ai .bot-head { padding-left: 2.6rem; color: var(--paper); background: var(--ink); border-bottom-color: var(--ink); }
.bot-score { margin-left: auto; padding: .3rem .7rem; border: 1px solid currentColor; border-radius: 999px; font: 500 .95rem "DM Mono", monospace; letter-spacing: .04em; white-space: nowrap; }
.bot-score[hidden] { display: none; }
.bot-ai .bot-score { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.bot-ai .bot-badge { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.bot-ai .bot-id span { color: #c7c8bd; }
.bot .at-log { scroll-behavior: auto; }
.bot .at-msg { white-space: pre-wrap; }
.bot-ai .at-bot { background: #fbfaf6; border: 1px solid var(--line); }
.msg-meta { align-self: flex-start; margin: -.2rem 0 .2rem .2rem; color: var(--muted); font: 400 .58rem "DM Mono", monospace; letter-spacing: .08em; }

.duel-vs { position: absolute; left: 50%; top: 1.05rem; z-index: 2; width: 2.9rem; height: 2.9rem; display: grid; place-items: center; transform: translateX(-50%) rotate(-8deg); border: 1px solid var(--ink); border-radius: 50%; background: var(--orange); color: var(--ink); font: 500 .7rem "DM Mono", monospace; letter-spacing: .08em; }

.duel-input { display: flex; gap: 0; border: 1px solid var(--ink); border-top: 0; background: #fbfaf6; }
.duel-input input { flex: 1; min-width: 0; padding: 1.15rem 1.3rem; border: 0; background: transparent; color: var(--ink); font: 500 1rem "Manrope", sans-serif; }
.duel-input input:focus { outline: 2px solid var(--ink); outline-offset: -2px; }
.duel-input button { flex: none; padding: 0 1.6rem; border: 0; background: var(--ink); color: var(--paper); font: 700 .78rem "Manrope", sans-serif; cursor: pointer; transition: background .2s ease; }
.duel-input button:hover { background: #30312e; }
.duel-input button span { margin-left: .6rem; color: var(--acid); }

.demo-diff { padding-top: 0; padding-bottom: clamp(4rem, 7vw, 6rem); }
.demo-how { padding-top: 0; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--ink); }
.flow li { position: relative; padding: 2rem 1.6rem 2.2rem; border-right: 1px solid var(--line); }
.flow li:first-child { padding-left: 0; }
.flow li:last-child { border-right: 0; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -.75rem; top: 1.75rem; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--acid); font-size: .8rem; }
.flow b { display: block; margin-bottom: 1.4rem; color: var(--orange); font: 400 .65rem "DM Mono", monospace; letter-spacing: .12em; }
.flow h3 { margin: 0 0 .7rem; font-size: 1.3rem; font-weight: 600; letter-spacing: -.03em; }
.flow p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }

.demo-cta { padding: clamp(4.5rem, 9vw, 8rem) max(var(--pad), calc((100vw - var(--max)) / 2)); color: var(--paper); background: var(--ink); }
.demo-cta h2 { max-width: 900px; margin: 0 0 1.6rem; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .95; letter-spacing: -.06em; font-weight: 600; }
.demo-cta h2 em { font-family: inherit; font-style: normal; font-weight: 700; color: var(--acid); }
.demo-cta > p:not(.eyebrow) { max-width: 560px; margin: 0 0 2.4rem; color: #c7c8bd; line-height: 1.75; }
.demo-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(2) { border-right: 0; }
  .flow li:nth-child(odd) { padding-left: 0; }
  .flow li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .flow li:nth-child(2)::after { display: none; }
}
@media (max-width: 760px) {
  .duel-stage { grid-template-columns: 1fr; }
  .bot { height: 21rem; }
  .bot-classic { border-right: 0; border-bottom: 1px solid var(--ink); }
  .bot-classic .bot-head, .bot-ai .bot-head { padding-inline: 1.2rem; }
  .duel-vs { top: 21rem; transform: translate(-50%, -50%) rotate(-8deg); }
  .duel-input { position: sticky; bottom: 0; z-index: 5; border-top: 1px solid var(--ink); }
  .duel-input button { padding: 0 1rem; }
}
@media (max-width: 520px) {
  .flow { grid-template-columns: 1fr; }
  .flow li { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .flow li:last-child { border-bottom: 0; }
  .flow li::after { display: none !important; }
  .try { font-size: .76rem; }
}
