/* styles/sections/agent-session.css
 * /return-on-tokens/ hero figure: a transcribed agent session (role="img" with a full text
 * alternative) in which Brief blocks a plan that conflicts with a team decision. A product
 * shot, so its type sizes are the shot's own. Steps fade in one after another; reduced motion
 * shows them at once. Under 620px (the page's own query) the speaker labels stack. */
@layer sections {
  .rot-demo {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
  }

  .rot-demo-caption {
    order: 1;
    margin-top: var(--space-16);
    color: var(--ink-55);
    font-weight: 400;
    text-align: center;
  }

  .rot-demo-window {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--term-bg);
    box-shadow: var(--elevation-app);
    color: var(--term-ink);
    font-size: 14px;
    line-height: 1.5;
  }

  .rot-demo-bar {
    display: flex;
    align-items: center;
    gap: var(--space-16);
    padding: var(--space-10) var(--space-16);
    border-bottom: 1px solid var(--white-12);
    background: var(--term-raised);
    color: var(--term-dim);
    font-family: var(--font-mono);
    font-size: 12px;
  }

  .rot-demo-dots {
    display: flex;
    flex: none;
    gap: 6px;
  }

  .rot-demo-dots span {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-pill);
    background: var(--white-20);
  }

  .rot-demo-title {
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rot-demo-status {
    display: flex;
    flex: none;
    align-items: center;
    gap: 6px;
  }

  .rot-demo-status-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-pill);
    background: var(--success-on-inverse);
  }

  .rot-demo-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-14);
    padding: var(--space-24);
  }

  .rot-demo-msg {
    display: grid;
    grid-template-columns: 3.75rem minmax(0, 1fr);
    gap: var(--space-8);
  }

  .rot-demo-who {
    padding-top: 2px;
    color: var(--term-dim);
    font-family: var(--font-mono);
    font-size: 12px;
  }

  .rot-demo-who--agent,
  .rot-demo .tk-f {
    color: var(--term-accent);
  }

  .rot-demo-mono {
    padding: 0 var(--space-4);
    border-radius: var(--radius-sm);
    background: var(--white-15);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 13px;
  }

  .rot-demo-call,
  .rot-demo-flag,
  .rot-demo-done {
    margin-left: calc(3.75rem + var(--space-8));
  }

  .rot-demo-call {
    color: var(--term-ink);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .rot-demo-call-arrow {
    color: var(--term-dim);
  }

  .rot-demo .tk-s,
  .rot-demo-done {
    color: var(--mint-ink);
  }

  .rot-demo-flag {
    padding: var(--space-16);
    border-left: 4px solid var(--orange);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--elevation-floating);
    color: var(--ink);
  }

  .rot-demo-flag-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-8);
  }

  .rot-demo-logo {
    width: auto;
    height: 12px;
  }

  .rot-demo-pill {
    padding: 2px var(--space-8);
    border-radius: var(--radius-pill);
    background: var(--orange-tint);
    color: var(--orange-ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .rot-demo-flag-lead {
    color: var(--ink-2);
    font-size: 12px;
  }

  .rot-demo-flag-quote {
    margin: var(--space-4) 0 6px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
  }

  .rot-demo-flag-meta {
    color: var(--ink-55);
    font-size: 12px;
  }

  .rot-demo-done {
    font-family: var(--font-mono);
    font-size: 12px;
  }

  @keyframes rot-step-in {
    from {
      opacity: 0;
      transform: translateY(6px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  @media (prefers-reduced-motion: no-preference) {
    .rot-demo-step {
      animation: rot-step-in 0.45s ease-out both;
    }

    .rot-demo-step:nth-child(1) {
      animation-delay: 0.2s;
    }

    .rot-demo-step:nth-child(2) {
      animation-delay: 0.7s;
    }

    .rot-demo-step:nth-child(3) {
      animation-delay: 1.4s;
    }

    .rot-demo-step:nth-child(4) {
      animation-delay: 2.1s;
    }

    .rot-demo-step:nth-child(5) {
      animation-delay: 3.1s;
    }

    .rot-demo-step:nth-child(6) {
      animation-delay: 3.6s;
    }
  }

  @media (width <= 620px) {
    .rot-demo-body {
      padding: var(--space-16);
    }

    .rot-demo-msg {
      grid-template-columns: 1fr;
      gap: 2px;
    }

    .rot-demo-call,
    .rot-demo-flag,
    .rot-demo-done {
      margin-left: 0;
    }

    .rot-demo-status {
      display: none;
    }
  }
}
