/* Approved homepage Agent Chat Demo Deck, reused on Analytics. */
  .hero-ai {
    width: 100%;
    min-width: 0;
    margin: 0;
    position: relative;
    z-index: 0;
  }

  .hero-ai::after {
    content: "";
    width: 92%;
    height: 54px;
    position: absolute;
    z-index: -1;
    right: 2%;
    bottom: 6px;
    background: radial-gradient(ellipse at center, rgba(36,39,45,0.13), rgba(36,39,45,0.035) 54%, transparent 75%);
    filter: blur(11px);
  }

  .hero-ai-deck {
    width: 100%;
    height: 510px;
    margin: 0 auto;
    position: relative;
  }

  .hero-ai-card {
    width: calc(100% - 72px);
    height: 476px;
    min-height: 0;
    position: absolute;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .hero-ai-card:not(.hero-ai-card-front)::after {
    content: "";
    height: 1px;
    position: absolute;
    top: 55px;
    right: 0;
    left: 0;
    background: var(--line-soft);
  }

  .hero-ai-card-copilot {
    z-index: 1;
    top: 0;
    left: 72px;
    box-shadow: 0 8px 20px rgba(11,13,16,0.03);
  }

  .hero-ai-card-gemini {
    z-index: 2;
    top: 8px;
    left: 48px;
    box-shadow: 0 8px 20px rgba(11,13,16,0.03);
  }

  .hero-ai-card-claude {
    z-index: 3;
    top: 16px;
    left: 24px;
    box-shadow: 0 8px 20px rgba(11,13,16,0.03);
  }

  .hero-ai-card-front {
    z-index: 4;
    top: 24px;
    left: 0;
    border-color: var(--line-dark);
    background: #FFFFFF;
    box-shadow: 0 24px 54px rgba(11,13,16,0.09);
  }

  .hero-deck-card {
    will-change: top, left, transform, opacity, box-shadow;
    transition:
      top 760ms cubic-bezier(.22,.78,.24,1),
      left 760ms cubic-bezier(.22,.78,.24,1),
      transform 760ms cubic-bezier(.22,.78,.24,1),
      opacity 420ms ease,
      box-shadow 760ms cubic-bezier(.22,.78,.24,1),
      border-color 760ms ease;
  }

  .hero-deck-card[data-deck-position="front"] {
    z-index: 4;
    top: 24px;
    left: 0;
    border-color: var(--line-dark);
    box-shadow: 0 24px 54px rgba(11,13,16,0.09);
    transform: translate3d(0, 0, 0) rotate(0);
    opacity: 1;
  }

  .hero-deck-card[data-deck-position="queued"] {
    z-index: 3;
    top: 16px;
    left: 24px;
    border-color: var(--line);
    box-shadow: 0 8px 20px rgba(11,13,16,0.03);
    transform: translate3d(0, 0, 0) rotate(0);
    opacity: 1;
  }

  .hero-deck-card[data-deck-position="back"] {
    z-index: 2;
    top: 8px;
    left: 48px;
    border-color: var(--line);
    box-shadow: 0 8px 20px rgba(11,13,16,0.025);
    transform: translate3d(0, 0, 0) rotate(0);
    opacity: 1;
  }

  .hero-deck-card.is-deck-leaving {
    z-index: 6;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 32px 66px rgba(11,13,16,0.13);
    transform: translate3d(-20%, 32px, 0) rotate(-1.25deg);
  }

  .hero-deck-card.is-deck-resetting {
    transition: none !important;
    opacity: 0;
  }

  .hero-deck-card[data-deck-position="front"]::after {
    display: none;
  }

  .hero-deck-peek {
    width: 22px;
    height: 22px;
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 12px;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
  }

  .hero-deck-peek img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
  }

  .hero-deck-card[data-deck-position="queued"] .hero-deck-peek,
  .hero-deck-card[data-deck-position="back"] .hero-deck-peek {
    opacity: 1;
  }

  .hero-claude-card .ai-provider-card__body {
    background: #F7F6F2;
  }

  .hero-claude-card .ai-provider-card__prompt {
    font-size: 15px;
  }

  .hero-claude-card .ai-provider-card__tool-heading {
    gap: 5px 6px;
  }

  .hero-claude-card .ai-provider-card__source-chip,
  .hero-claude-card .ai-provider-card__connector {
    min-height: 27px;
  }

  .hero-grok-card .ai-provider-card__body {
    padding: 16px 18px 18px;
    gap: 9px;
    background: #F8F8F7;
  }

  .hero-grok-card .ai-provider-card__prompt {
    font-size: 14px;
  }

  .hero-grok-card .ai-provider-card__assistant-copy p {
    font-size: 13.5px;
  }

  .hero-grok-card .ai-provider-card__tool-run {
    margin-right: 30px;
    padding: 10px 12px 11px;
  }

  .hero-grok-card .ai-provider-card__tool-heading {
    gap: 5px 6px;
  }

  .hero-grok-card .ai-provider-card__connector,
  .hero-grok-card .ai-provider-card__source-chip {
    min-height: 26px;
  }

  .hero-grok-card .ai-provider-card__step-label {
    font-size: 13px;
  }

  .hero-grok-card .ai-provider-card__step-detail {
    font-size: 11.5px;
  }

  .hero-grok-card .ai-provider-card__response {
    margin-right: 30px;
  }

  .hero-grok-card .ai-provider-card__response-title {
    font-size: 17px;
  }

  .hero-grok-card .ai-provider-card__artifacts {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grok-card .ai-provider-card__response-detail {
    font-size: 12.5px;
  }

  .hero-provider-mark {
    width: 22px;
    height: 22px;
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 12px;
    display: grid;
    place-items: center;
  }

  .hero-provider-mark svg {
    width: 22px;
    height: 22px;
    display: block;
    overflow: visible;
  }

  .hero-claude-mark {
    fill: none;
    stroke: #D97745;
    stroke-linecap: round;
    stroke-width: 2.35;
  }

  .hero-chat-header {
    height: 56px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line-soft);
  }

  .hero-chat-brand {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .hero-chat-brand svg {
    width: 26px;
    height: 26px;
    display: block;
    flex: 0 0 auto;
  }

  .hero-chat-brand span {
    color: var(--ink);
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.035em;
  }

  .hero-chat-conversation {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .hero-chat-prompt {
    min-height: 54px;
    margin-left: 36px;
    padding: 11px 18px;
    display: flex;
    align-items: center;
    border: 0;
    border-radius: 26px;
    background: #E7F2FF;
    color: #123153;
    font-size: 15px;
    font-weight: 450;
    line-height: 1.42;
    letter-spacing: -0.01em;
  }

  .hero-chat-intro {
    display: block;
    padding: 1px 2px 2px;
  }

  .hero-chat-intro .ai-provider-card__assistant-copy {
    padding: 0;
  }

  .hero-chat-intro .ai-provider-card__assistant-copy p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.42;
  }

  .hero-wick-run {
    margin-right: 36px;
    padding: 11px 14px 12px;
    border: 1px solid #E1E1DF;
    border-radius: 8px;
    background: #F7F7F7;
  }

  .hero-connector-sentence {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    color: var(--ink-soft);
    font-size: 13.5px;
    font-weight: 525;
    line-height: 1.35;
    letter-spacing: -0.012em;
  }

  .hero-connector-sentence > strong {
    color: var(--ink);
    font-weight: 750;
  }

  .hero-connector-pill {
    --connector-mark-size: 20px;
    height: 30px;
    padding: 4px 9px 4px 5px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    border: 1px solid #B9D5D1;
    border-radius: 999px;
    background: #F5FAF8;
    color: var(--ink);
  }

  .hero-connector-pill img {
    width: var(--connector-mark-size);
    height: var(--connector-mark-size);
    display: block;
    border-radius: 50%;
  }

  .hero-connector-pill span {
    font-size: 12.2px;
    font-weight: 750;
    letter-spacing: -0.01em;
  }

  .hero-workflow {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
  }

  .hero-workflow-step {
    min-height: 42px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
  }

  .hero-workflow-marker {
    width: 20px;
    height: 100%;
    min-height: 42px;
    position: relative;
    display: grid;
    place-items: start center;
  }

  .hero-workflow-marker::after {
    content: "";
    width: 1px;
    position: absolute;
    top: 18px;
    bottom: 0;
    left: 9px;
    background: #A9D4CE;
  }

  .hero-workflow-step:last-child .hero-workflow-marker::after {
    display: none;
  }

  .hero-workflow-check {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    border: 1px solid var(--technical);
    border-radius: 50%;
    background: #FFFFFF;
  }

  .hero-workflow-check svg {
    width: 9px;
    height: 9px;
    display: block;
    fill: none;
    stroke: var(--technical-dark);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .hero-workflow-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .hero-workflow-label {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 575;
    line-height: 1.22;
    letter-spacing: -0.014em;
  }

  .hero-workflow-detail {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.008em;
  }

  .hero-chat-answer {
    max-width: none;
    margin-right: 36px;
  }

  .hero-chat-answer-title {
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.03em;
  }

  .hero-chat-answer-detail {
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: 14.2px;
    font-weight: 500;
    line-height: 1.36;
    letter-spacing: -0.018em;
  }

  .hero-chat-answer-detail strong {
    color: var(--ink);
    font-weight: 750;
  }

  .hero-file-card {
    width: min(420px, 100%);
    min-height: 48px;
    margin-top: 10px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    border: 1px solid #C7D8D4;
    border-radius: 7px;
    background: #FFFFFF;
  }

  .hero-file-badge {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 5px;
    background: #D8E1E5;
    color: #4D6572;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.08em;
  }

  .hero-file-copy {
    min-width: 0;
    margin-left: 9px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .hero-file-name {
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  .hero-file-meta {
    overflow: hidden;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-file-download {
    width: 28px;
    height: 28px;
    margin-left: 6px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--technical-dark);
  }

  .hero-file-download svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
  }


/* Section placement; app internals keep their provider styling. */
.agent-section-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(40px,5vw,80px); align-items:center; }
.ai-section { --surface:#FFFFFF; --line:#C8BAA7; --line-soft:#E9E1D5; --line-dark:#0B0D10; --ink-soft:#24272D; --muted:#555960; --technical:#68B8AD; --technical-dark:#255F58; }
.ai-section .hero-ai::after { display:none; }
.ai-section .hero-ai-deck { height:660px; }
.ai-section .hero-ai-card { height:620px; border-radius:8px; box-shadow:none; }
.ai-section .hero-deck-card[data-deck-position],.ai-section .hero-deck-card.is-deck-leaving { box-shadow:none; }
.ai-section .hero-deck-card[data-deck-position="front"] { border:1.5px solid #0B0D10; }
.ai-section .ai-provider-card__header { height:52px; min-height:52px; }
.ai-section .ai-provider-card__body { padding:16px; gap:12px; }
.analytics-page .ai-section .ai-provider-card__assistant-copy p { font-size:14px; line-height:1.45; }
.ai-section .hero-chat-intro .ai-provider-card__assistant-copy { padding:0; }
.ai-section .ai-provider-card__prompt { font-size:15px; }
.ai-section .ai-provider-card__tool-run,.ai-section .ai-provider-card__response { margin-right:0; }
.ai-section .hero-chat-answer-title { font-size:18px; }
.ai-section .section-heading>p { font-size:18px; }
.ai-section .assistant-list { gap:18px 24px; }
.ai-section .assistant-list img { width:34px; height:34px; }
.ai-section .agent-actions { grid-template-columns:1fr; gap:25px; padding-top:28px; margin-top:28px; }
.agent-action { display:grid; grid-template-columns:58px minmax(0,1fr); gap:19px; align-items:start; }
.agent-action>img { width:58px; height:58px; }
.ai-section .agent-actions h3 { margin-bottom:6px; }
.ai-section .agent-actions p { max-width:45ch; }
@media(max-width:1100px) {
 .agent-section-layout { grid-template-columns:1fr; gap:38px; }
 .ai-section .hero-ai { width:min(100%,680px); margin-inline:auto; }
 .agent-section-copy { max-width:760px; }
}
@media(max-width:760px) {
 .ai-section .hero-ai { padding-right:2px; }
 .ai-section .hero-ai-deck { height:660px; }
 .ai-section .hero-ai-card { width:calc(100% - 24px); height:auto; min-height:0; }
 .ai-section .hero-ai-card-copilot { top:0; left:24px; }
 .ai-section .hero-ai-card-gemini { top:6px; left:16px; }
 .ai-section .hero-deck-card[data-deck-position="queued"] { top:12px; left:8px; }
 .ai-section .hero-deck-card[data-deck-position="back"] { top:6px; left:16px; }
 .ai-section .hero-deck-card[data-deck-position="front"] { top:18px; left:0; }
 .ai-section .hero-deck-card.is-deck-leaving { transform:translate3d(-10%,24px,0); }
 .ai-section .ai-provider-card__body { padding:14px; }
 .ai-section .hero-connector-sentence { font-size:13px; }
 .ai-section .hero-connector-pill { gap:5px; }
 .ai-section .hero-connector-pill span { font-size:11px; }
 .ai-section .hero-ai { order:2; }
 .agent-section-copy { order:1; }
}
@media(prefers-reduced-motion:reduce) { .ai-section .hero-deck-card { transition:none; } }

.ai-section .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
