/* ============================================================
   agent.css — Wrapar Agent landing page
   Layers on top of styles.css (shared tokens + components).
   Only holds pieces unique to the Agent page.
   ============================================================ */

/* brand wordmark accent (wrapar·agent) */
.brand-accent { color: var(--accent); }

/* small "new" flag next to the eyebrow in the hero */
.hero-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-wash);
  border: 1px solid rgba(218, 100, 42, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-flag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- hero conversation visual ---------- */

.agent-chat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.ac-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}
.ac-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.ac-dot:nth-child(1) { background: #e6b8a3; }
.ac-title {
  margin-left: 8px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.76rem;
  color: var(--ink-soft);
}
.ac-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.ac-msg {
  font-size: 0.9rem;
  line-height: 1.55;
  padding: 12px 15px;
  border-radius: 14px;
  max-width: 92%;
}
.ac-user {
  align-self: flex-end;
  background: var(--ink);
  color: rgba(250, 245, 236, 0.94);
  border-bottom-right-radius: 5px;
}
.ac-agent {
  align-self: flex-start;
  background: var(--paper-deep);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.ac-agent ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); }
.ac-agent li { font-size: 0.86rem; margin: 3px 0; }
.ac-gen { max-width: 100%; width: 100%; }
.ac-plan {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.ac-plan span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-wash);
  padding: 3px 9px;
  border-radius: 7px;
}
.ac-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.ac-table th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--line);
}
.ac-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.ac-table td.num { font-variant-numeric: tabular-nums; color: var(--accent-deep); font-weight: 600; }
.ac-table tr:last-child td { border-bottom: none; }
.ac-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.ac-spark {
  width: 15px; height: 15px; flex: none;
  background: var(--accent);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

/* ---------- model layer band ---------- */

.modellayer { padding: 30px 32px 8px; }
.ml-inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.ml-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 18px;
}
.ml-label span { color: var(--accent); }
.ml-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ml-chips span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px 20px;
  box-shadow: var(--shadow-soft);
}
.ml-chips span.muted { color: var(--ink-soft); box-shadow: none; }

/* ---------- how it works (agent steps) ---------- */

.agent-steps { padding: 24px 32px 60px; }
.steps-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent);
  background: var(--accent-wash);
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  margin-bottom: 7px;
}
.step-card p { font-size: 0.9rem; color: var(--ink-soft); }

@media (max-width: 1020px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
  .ml-chips span { font-size: 0.84rem; padding: 9px 15px; }
}
