.sec {
  padding: 80px 0;
}
.h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: -1.5px;
  line-height: 1.15;
}
.h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1.2;
}
.h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.3;
}
.bl {
  font-size: 17px;
  line-height: 1.7;
  color: var(--t2);
  max-width: 640px;
}
.g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.g3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .g2,
  .g3 {
    grid-template-columns: 1fr;
  }
  .ct {
    padding: 0 20px;
  }
  .sec {
    padding: 60px 0;
  }
}
.hero {
  padding: 140px 0 80px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 500px;
  background: linear-gradient(180deg, #edf7fb 0%, var(--bg) 100%);
  z-index: -1;
}
.back-btn {
  font-size: 13px;
  color: var(--t2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.back-btn:hover {
  color: var(--hd);
}
.cd,
.agent-card,
.project-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.cd:hover,
.agent-card:hover,
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
  border-color: var(--hover-ring);
}

/* Performer model specific */
.agent-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 249, 246, 0.96) 100%);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  margin-bottom: 20px;
}
.agent-card-header {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--bd);
  background: linear-gradient(135deg, var(--hi) 0%, var(--sf) 100%);
}
.agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  flex-shrink: 0;
}
.agent-avatar-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sf);
  border: 1.5px solid var(--pr);
  box-shadow:
    0 0 0 6px rgba(255, 179, 186, 0.18),
    0 8px 20px rgba(155, 59, 66, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.agent-avatar-icon img.ri {
  width: 42px;
  height: 42px;
}
.agent-field {
  padding: 16px 28px;
  border-bottom: 1px solid #f0eeea;
}
.agent-field:last-child {
  border-bottom: none;
}
.field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 6px;
}
.field-value {
  font-size: 15px;
  color: var(--tx);
  line-height: 1.6;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  transition:
    border-color 0.5s ease,
    transform 0.5s ease;
}
.status-badge.is-current {
  border-color: currentColor;
  transform: scale(1.04);
}
.status-setup {
  background: #f5f5f3;
  color: #6b7280;
}
.status-shadow {
  background: #fef3c7;
  color: #b45309;
}
.status-active {
  background: #d4e7db;
  color: #2d6b3f;
}
.status-paused {
  background: #ffe4e6;
  color: #9b3b42;
}
.autonomy-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: 8px;
}
.autonomy-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--hd);
  transition: background 0.4s ease;
}
.autonomy-dot.filled {
  background: var(--hd);
}
.autonomy-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg2);
  font-size: 13px;
  color: var(--t3);
  border: 1px solid transparent;
  transition:
    background 0.5s ease,
    color 0.5s ease,
    border-color 0.5s ease;
}
.autonomy-pill .autonomy-sub {
  font-size: 11px;
  color: var(--t3);
  transition: color 0.5s ease;
}
.autonomy-pill.is-current {
  background: var(--am2);
  color: var(--am);
  font-weight: 600;
  border-color: var(--am);
}
.autonomy-pill.is-current .autonomy-sub {
  color: var(--am);
}
.autonomy-caption,
.status-caption {
  transition: opacity 0.3s ease;
}
.autonomy-caption.is-fading,
.status-caption.is-fading {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .status-badge,
  .autonomy-pill,
  .autonomy-dot,
  .autonomy-caption,
  .status-caption {
    transition: none !important;
  }
}
.tool-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: var(--bg2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--t2);
  margin: 3px 4px 3px 0;
}
.tool-rw {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
}
.tool-read {
  background: #d4e7db;
  color: #2d6b3f;
}
.tool-write {
  background: #fef3c7;
  color: #b45309;
}
.trigger-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}
.trigger-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hi);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}
.guardrail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}
.guardrail-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffe4e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}
.task-list {
  list-style: none;
  counter-reset: tasks;
}
.task-list li {
  counter-increment: tasks;
  padding: 10px 0;
  border-bottom: 1px solid #f5f3ef;
  font-size: 14px;
  color: var(--t2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.task-list li:last-child {
  border-bottom: none;
}
.task-list li::before {
  content: counter(tasks, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--t3);
  flex-shrink: 0;
  margin-top: 2px;
}
.project-card {
  background: var(--bg2);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 8px;
}
.project-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.project-card p {
  font-size: 13px;
  color: var(--t2);
}

.performer-example-title {
  font-family: var(--serif, 'Playfair Display', serif);
  font-size: 22px;
  font-weight: 500;
}
.performer-example-team {
  margin-top: 2px;
  color: var(--prd);
  font-size: 13px;
}
.performer-group {
  margin: 24px;
  border: 1px solid #d8e5e9;
  border-top: 2.25px solid var(--hd);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.performer-group-title {
  padding: 18px 28px;
  margin: 0;
  border-bottom: 1px solid #d8e5e9;
  background: #f3f9fb;
  color: #1a5568;
  font-size: 18px;
  font-weight: 600;
}
.performer-note {
  margin-top: 8px;
  color: var(--t2);
  font-size: 13px;
  line-height: 1.6;
}
.performer-email {
  overflow-wrap: anywhere;
  color: var(--hd);
  font-size: 14px;
}
.performer-autonomy-options,
.performer-status-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
button.autonomy-pill {
  font-family: inherit;
  cursor: pointer;
  min-height: 44px;
}
button.autonomy-pill:focus-visible {
  outline: 2px solid var(--hd);
  outline-offset: 3px;
}
.performer-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.performer-report-grid > div {
  padding: 14px;
  border-radius: 10px;
  background: var(--bg2);
}
.performer-report-grid p {
  margin-top: 4px;
  font-size: 14px;
}
@media (max-width: 600px) {
  .performer-group {
    margin: 18px 10px;
  }
  .agent-card-header,
  .agent-field,
  .performer-group-title {
    padding: 16px 18px;
  }
  .agent-card-header > div:last-child {
    min-width: 0;
  }
  .performer-example-title {
    font-size: 19px;
  }
  .performer-report-grid {
    grid-template-columns: 1fr;
  }
}

.performer-tool-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
  margin-right: 4px;
}

/* Solid white card surfaces, consistent with the landing page. */
.agent-card,
.agent-card-header,
.project-card,
.performer-report-grid > div,
.cd {
  background: #fff;
}

.performer-tools-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
}
.performer-tools-list .tool-tag {
  margin: 0;
}
.performer-tool-icon--calendar {
  color: #4285f4;
  fill: #e8f0fe;
}
.performer-tool-icon--ramp {
  color: #587323;
  fill: #e2f4a6;
}
