/* Hero */
.hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.5vw, 3.125rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero-copy h1 em {
  font-style: italic;
}

.lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.experts-cta,
.teams-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-panel {
  background: var(--bg-dark);
  color: #e8e6e1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 0;
}

.panel-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 0.75rem;
  color: #8a8680;
  border-bottom: 1px solid var(--border-dark);
  gap: 12px;
}

.panel-status {
  color: #7cb87c;
  flex-shrink: 0;
}

.panel-body {
  padding: 16px;
  font-size: 0.8125rem;
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  line-height: 1.75;
}

.capture-line {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  align-items: flex-start;
}

.capture-line > span:last-child {
  min-width: 0;
  word-break: break-word;
}

.capture-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7cb87c;
  margin-top: 8px;
  flex-shrink: 0;
}

.capture-dot.muted {
  background: #5a5650;
}

.muted {
  color: #6e6a64;
}

.capture-output {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-dark);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  align-items: center;
}

.output-label {
  grid-column: 1 / -1;
  color: #8a8680;
  font-family: var(--sans);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.capture-output code {
  grid-column: 1;
  background: #2e2c28;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.output-earn {
  grid-column: 2;
  justify-self: end;
  font-family: var(--sans);
  color: #d4a574;
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* Expert name + Proven badge + connects line in the hero panel output. */
.output-expert {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.proven-tag {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #7cb87c;
  background: rgba(124, 184, 124, 0.14);
  border: 1px solid rgba(124, 184, 124, 0.32);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.output-connects {
  grid-column: 1 / -1;
  font-family: var(--sans);
  font-size: 0.6875rem;
  color: #6e6a64;
}

/* Live capture line — a decision being captured right now. */
.capture-ts {
  margin-left: auto;
  padding-left: 10px;
  color: #6e6a64;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.capture-dot.live {
  background: #d4a574;
  animation: dot-pulse 1.5s ease-in-out infinite;
}
.caret {
  display: inline-block;
  color: #d4a574;
  animation: caret-blink 1.05s step-end infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.5); }
  50% { box-shadow: 0 0 0 4px rgba(212, 165, 116, 0); }
}
@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  /* Drop the decorative pulse ring, but keep the blinking caret — a benign
     text-cursor that conveys "capturing now" without vestibular motion. */
  .capture-dot.live { animation: none; }
}

/* Hero panel use-case: a connected agent asking the expert and getting a call. */
.panel-body[data-hero-demo] {
  min-height: 296px;
  transition: opacity 0.4s ease;
}
.panel-body[data-hero-demo].fade-out { opacity: 0; }
.xchg {
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.xchg.in { opacity: 1; transform: none; }
.xchg:last-child {
  margin-bottom: 0;
}
.xchg-who {
  display: block;
  font-family: var(--sans);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a8680;
  margin-bottom: 4px;
}
.xchg-msg {
  display: block;
  color: #e8e6e1;
}
.xchg.expert {
  border-left: 2px solid rgba(212, 165, 116, 0.55);
  padding-left: 13px;
  margin-left: 1px;
}
.xchg.expert .xchg-who {
  color: #d4a574;
}
.xchg-proof {
  display: block;
  margin-top: 7px;
  font-family: var(--sans);
  font-size: 0.6875rem;
  line-height: 1.5;
  color: #7cb87c;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.xchg-proof.in { opacity: 1; }

/* Thesis */
.thesis {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.thesis-inner p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 42em;
}

.thesis-inner strong {
  color: var(--text);
  font-weight: 500;
}

/* Local-first trust strip */
.local-first {
  padding: 56px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.local-first-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.local-first h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.local-first-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.local-first-points h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.local-first-points p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Marketplace teaser */
.market-teaser {
  padding: 80px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.teaser-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-width: 0;
}

.teaser-card:hover {
  border-color: #b8b2a6;
  box-shadow: var(--shadow);
}

.teaser-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.teaser-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.tag {
  font-size: 0.6875rem;
  padding: 3px 7px;
  background: var(--accent-soft);
  border-radius: 3px;
  color: var(--accent-hover);
  white-space: nowrap;
  flex-shrink: 0;
}

.teaser-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.teaser-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.teaser-foot .price {
  font-weight: 600;
}

.teaser-foot span:last-child {
  color: var(--text-light);
}

.teaser-more {
  margin-top: 20px;
  text-align: center;
}

.teaser-more a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.teaser-more a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Experts */
.experts {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.experts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.experts-copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.experts-copy > p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.65;
}

.plain-list {
  list-style: none;
}

.plain-list li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

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

.earnings-panel {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 0;
}

.earnings-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: #f0ede6;
}

.earnings-period {
  color: var(--text-muted);
  font-weight: 500;
}

.earnings-total {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}

.earnings-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.earnings-amount {
  display: block;
  font-family: var(--serif);
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.earnings-sub {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.earnings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  table-layout: fixed;
}

.earnings-table th,
.earnings-table td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-table th {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.earnings-table th:first-child,
.earnings-table td:first-child {
  width: 44%;
}

.earnings-table th:nth-child(2),
.earnings-table td:nth-child(2) {
  width: 28%;
}

.earnings-table td:last-child {
  font-weight: 600;
  text-align: right;
}

/* How */
.how {
  padding: 80px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}

.how-index {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.how-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.how-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Teams */
.teams {
  padding: 80px 0;
}

.teams-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.teams-copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.teams-copy p {
  color: var(--text-muted);
  line-height: 1.65;
}

.verifier-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  min-width: 0;
}

.verifier-row {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.verifier-row:last-child {
  border-bottom: none;
}

.verifier-role {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 6px;
}

.verifier-row p {
  font-size: 0.875rem;
  line-height: 1.5;
}

.verifier-row.mcp-call {
  background: #f0ede6;
}

.verifier-row.mcp-call .verifier-role {
  color: var(--accent);
}

/* Contrast */
.contrast {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.contrast h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 28px;
}

.contrast-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
}

.contrast-list dt {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.contrast-list dd {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Final CTA */
.cta-final {
  padding: 80px 0 96px;
  background: var(--bg-dark);
  color: #e8e6e1;
}

.cta-final h2 {
  font-family: var(--serif);
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.cta-final > .container > p {
  color: #a39e94;
  margin-bottom: 32px;
  font-size: 0.9375rem;
  max-width: 40em;
}

.cta-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 720px;
}

.cta-card {
  display: block;
  padding: 24px;
  background: #242220;
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.cta-card:hover {
  border-color: #4a463f;
  background: #2a2825;
}

.cta-card .eyebrow {
  color: #d4a574;
  margin-bottom: 8px;
}

.cta-card h3 {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.cta-card p {
  font-size: 0.875rem;
  color: #a39e94;
  line-height: 1.55;
  margin-bottom: 16px;
}

.cta-card-action {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e8e6e1;
}

.cta-signin {
  margin-top: 24px;
  font-size: 0.875rem;
  color: #a39e94;
}

.cta-signin a {
  color: #d4a574;
}

@media (max-width: 960px) {
  .hero-grid,
  .experts-grid,
  .teams-inner,
  .local-first-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .local-first-points {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .teaser-grid {
    grid-template-columns: 1fr;
  }

  .how-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contrast-list,
  .cta-cards {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .capture-output {
    grid-template-columns: 1fr;
  }

  .output-earn {
    grid-column: 1;
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .capture-output code {
    white-space: normal;
    word-break: break-all;
  }
}
