/* ============================================================
   Circi — AI Medicare / MBS Billing Assistant section.
   Adapted from reference; Poppins-consistent. Scoped under .ai.
   Local design tokens defined on .ai so they don't leak.
   ============================================================ */
.ai {
  --cobalt:    #D17556;
  --soft-blue: #5C8275;
  --tint:      #EEF2FF;
  --body:      #4A5775;
  --muted:     #8089A3;
  --hair:      #E4E8F0;
  --hair-soft: #EFF2F7;
  --success:   #0EA572;
  --warning:   #E0633A;
  --navy-deep: #0A0A3A;
  --navy-soft: #2A2D6D;
  --mono: 'Poppins', ui-monospace, monospace;
}

/* Shared section heading (scoped to .ai) — centered to match other sections */
.ai .section-head {
  display: block;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.ai .section-title {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--navy);
  margin: 0 auto;
  max-width: 720px;
  text-wrap: balance;
}
.ai .eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cobalt);
  margin-bottom: 18px;
}
.ai .eyebrow::before {
  content: ""; display: inline-block;
  width: 24px; height: 1px;
  background: var(--cobalt);
}
.ai .eyebrow::after {
  content: ""; display: inline-block;
  width: 24px; height: 1px;
  background: var(--cobalt);
}
.ai .section-aside {
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
  max-width: 540px;
  margin: 14px auto 0;
}


  .ai {
    position: relative;
    padding: 100px 0 80px;
    background: var(--navy-deep);
    color: #fff;
    overflow: hidden;
  }
  /* Subtle starfield dots only — no radial color blooms */
  .ai::before {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 0.5px 0.5px, rgba(255, 255, 255, 0.05) 1px, transparent 1.4px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  }
  .ai::after { content: none; }
  /* Background depth: cobalt glows + faint star/dot grid */
  .ai-skipped-before {
    content: "";
  }

  /* Section-head treatment on dark bg */
  .ai .section-title {
    color: #FFFFFF;
    font-weight: 800;
    text-shadow: 0 0 28px rgba(255, 255, 255, 0.18);
  }
  .ai .section-title .accent { color: var(--soft-blue); }
  .ai .section-aside { color: rgba(255, 255, 255, 0.85); }
  .ai .eyebrow { color: var(--soft-blue); }
  .ai .eyebrow::before { background: var(--soft-blue); }

  .ai-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
    gap: 56px;
    align-items: start;
  }

  /* ---- Left: prompts + capabilities ---- */
  .ai-side { position: relative; padding-top: 4px; }
  .ai-side-label {
    font-family: var(--mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #FFFFFF;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
  }
  .ai-side-label::before {
    content: "";
    width: 18px; height: 1px;
    background: var(--soft-blue);
  }

  .ai-prompts {
    display: flex; flex-direction: column;
    gap: 8px;
    margin-bottom: 36px;
  }
  .ai-prompt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.82);
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, color 0.25s ease, box-shadow 0.25s ease;
    font-family: inherit;
    width: 100%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  .ai-prompt:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
    border-color: rgba(92, 130, 117, 0.30);
    color: #fff;
    transform: translateY(-2px);
  }
  .ai-prompt.active {
    background: linear-gradient(180deg, rgba(92, 130, 117, 0.20), rgba(209, 117, 86, 0.10));
    border-color: rgba(92, 130, 117, 0.50);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 16px -8px rgba(92, 130, 117, 0.40);
  }
  .ai-prompt .arr {
    width: 14px; height: 14px;
    color: rgba(255, 255, 255, 0.40);
    flex-shrink: 0;
    transition: color 0.25s ease, transform 0.2s ease;
  }
  .ai-prompt:hover .arr,
  .ai-prompt.active .arr { color: var(--soft-blue); transform: translateX(2px); }

  .ai-caps {
    display: flex; flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 32px;
  }
  .ai-cap {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 5px 11px;
    border-radius: 999px;
    font-family: var(--mono);
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .ai-cta {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff;
    color: var(--navy);
    padding: 0 24px;
    height: 48px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }
  .ai-cta:hover { background: var(--soft-blue); color: #fff; transform: translateY(-1px); }

  /* ---- Outer chat shell (dark frame around white workspace) ---- */
  .ai-chat {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.025) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 22px;
    overflow: hidden;
    min-height: 540px;
    box-shadow:
      0 40px 80px -32px rgba(0, 0, 0, 0.60),
      inset 0 1px 0 rgba(255, 255, 255, 0.10);
    display: flex; flex-direction: column;
  }
  .ai-chat-head {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
  }
  .ai-chat-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cobalt), var(--soft-blue));
    display: grid; place-items: center;
    position: relative;
    flex-shrink: 0;
  }
  .ai-chat-icon::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 13px;
    border: 1px solid rgba(92, 130, 117, 0.35);
    animation: aiPulse 2.6s ease-in-out infinite;
  }
  @keyframes aiPulse {
    0%, 100% { opacity: 0.30; transform: scale(1); }
    50%      { opacity: 0.85; transform: scale(1.06); }
  }
  .ai-chat-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.005em;
    line-height: 1.2;
  }
  .ai-chat-status {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
    display: inline-flex; align-items: center; gap: 5px;
  }
  .ai-chat-status .live {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--success);
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(14, 165, 114, 0.50);
    animation: pulse 2s infinite;
  }
  .ai-chat-meta {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.40);
    letter-spacing: 0.06em;
  }

  .ai-chat-ctx {
    display: flex; gap: 6px; flex-wrap: wrap;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .ai-ctx-chip {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 4px 10px;
    border-radius: 999px;
    font-family: var(--mono);
    letter-spacing: 0.04em;
  }

  /* Inner workspace — white, sits flush between the dark header/context
     bar above and the dark input bar below. No dark padding frame. */
  .ai-body {
    flex: 1;
    margin: 0;
    padding: 24px 22px 22px;
    background: #FFFFFF;
    border-radius: 0;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
    display: flex; flex-direction: column;
    gap: 12px;
    position: relative;
    min-height: 360px;
    transition: opacity 0.28s ease;
  }
  .ai-body.swapping { opacity: 0; }

  /* User msg — cobalt bubble on white */
  .ai-msg-user {
    align-self: flex-end;
    background: var(--cobalt);
    color: #fff;
    padding: 10px 14px;
    border-radius: 14px 14px 4px 14px;
    font-size: 13.5px;
    max-width: 80%;
    box-shadow: 0 6px 16px rgba(209, 117, 86, 0.25);
    line-height: 1.5;
    opacity: 0;
    transform: translateY(8px);
    animation: msgIn 0.45s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }

  /* Typing — light tinted bubble */
  .ai-typing {
    align-self: flex-start;
    background: var(--bg);
    border: 1px solid var(--hair);
    padding: 12px 16px;
    border-radius: 4px 14px 14px 14px;
    display: inline-flex; gap: 5px;
    opacity: 0;
    animation: msgIn 0.35s 1.2s ease forwards, typingOut 0.3s 2.6s ease forwards;
  }
  .ai-typing span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cobalt);
    animation: dotPulse 1.2s ease infinite;
  }
  .ai-typing span:nth-child(2) { animation-delay: 0.15s; }
  .ai-typing span:nth-child(3) { animation-delay: 0.30s; }
  @keyframes typingOut {
    to { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; border-color: transparent; }
  }

  /* AI answer — structured response, not a bubble. Reads like a result document. */
  .ai-msg-ai {
    align-self: stretch;
    position: relative;
    padding: 4px 0 0 28px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--body);
    opacity: 0;
    transform: translateY(8px);
    animation: msgIn 0.5s 2.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  /* Tiny "AI is speaking" anchor mark on the left */
  .ai-msg-ai::before {
    content: "";
    position: absolute;
    top: 6px; left: 0;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cobalt), var(--soft-blue));
    box-shadow: 0 0 0 4px rgba(209, 117, 86, 0.08);
  }
  .ai-msg-ai::after {
    content: "";
    position: absolute;
    top: 11px; left: 5px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
  }
  .ai-msg-ai .lead {
    color: var(--navy);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 13.5px;
  }
  .ai-msg-ai .code-block {
    background: linear-gradient(135deg, rgba(209, 117, 86, 0.07), rgba(92, 130, 117, 0.04));
    border: 1px solid rgba(209, 117, 86, 0.20);
    border-radius: 10px;
    padding: 12px 14px;
    margin: 10px 0;
    display: flex; align-items: center; gap: 14px;
    animation: codeGlow 3.5s ease-in-out 3.4s infinite;
  }
  @keyframes codeGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(209, 117, 86, 0); }
    50%      { box-shadow: 0 0 0 5px rgba(209, 117, 86, 0.10); }
  }
  .ai-msg-ai .code {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 15px;
    color: var(--cobalt);
    flex-shrink: 0;
  }
  .ai-msg-ai .code-meta {
    flex: 1;
    font-size: 11px;
    color: var(--body);
    line-height: 1.45;
  }
  .ai-msg-ai .code-meta b { color: var(--navy); font-weight: 600; }
  .ai-msg-ai .req {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
  }
  .ai-msg-ai .req li {
    font-size: 12.5px;
    color: var(--body);
    position: relative;
    padding-left: 16px;
    margin-bottom: 5px;
    line-height: 1.5;
  }
  .ai-msg-ai .req li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--cobalt);
    font-family: var(--mono);
  }
  .ai-msg-ai .source {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--hair);
    font-size: 11px;
    color: var(--muted);
    display: flex; align-items: center; gap: 6px;
    font-family: var(--mono);
  }
  .ai-msg-ai .source a {
    color: var(--cobalt);
    font-weight: 500;
  }
  .ai-msg-ai .source a:hover { text-decoration: underline; }

  @keyframes msgIn {
    to { opacity: 1; transform: translateY(0); }
  }

  /* Input bar — stays dark on the shell */
  .ai-chat-input {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.12);
  }
  .ai-chat-input-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    font-family: inherit;
    outline: none;
  }
  .ai-chat-input-field::placeholder { color: rgba(255, 255, 255, 0.42); }
  .ai-chat-send {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--cobalt);
    color: #fff;
    display: grid; place-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(209, 117, 86, 0.35);
  }
  .ai-chat-send:hover { background: var(--soft-blue); }

  /* ===== Variant scaffolding — all three stay visible, labelled ===== */
  .ai-variant { position: relative; }
  .ai-variant + .ai-variant {
    margin-top: 56px;
    padding-top: 56px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
  }
  .ai-variant-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 26px;
  }
  .ai-variant-label b {
    color: #fff;
    font-weight: 700;
  }
  .ai-variant-label::before {
    content: "";
    width: 22px; height: 22px;
    border-radius: 6px;
    background: rgba(209, 117, 86, 0.16);
    border: 1px solid rgba(209, 117, 86, 0.40);
    color: var(--cobalt);
    display: grid; place-items: center;
    font-size: 11px;
    flex-shrink: 0;
  }
  .ai-variant.v1 .ai-variant-label::before { content: "1"; }
  .ai-variant.v2 .ai-variant-label::before { content: "2"; }
  .ai-variant.v3 .ai-variant-label::before { content: "3"; }

  /* ============ Variant 2 — Spotlight ask bar ============ */
  .aiv2 {
    max-width: 940px;
    margin: 0 auto;
    text-align: center;
  }
  .aiv2-headline {
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 14px;
    text-wrap: balance;
  }
  .aiv2-headline .accent { color: var(--cobalt); }
  .aiv2-sub {
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
    margin: 0 auto 32px;
    max-width: 480px;
  }
  /* The ask bar */
  .aiv2-bar {
    display: flex; align-items: center; gap: 10px;
    background: #fff;
    border-radius: 16px;
    padding: 8px 8px 8px 18px;
    box-shadow:
      0 0 0 4px rgba(209, 117, 86, 0.20),
      0 24px 50px -18px rgba(0, 0, 0, 0.55);
    text-align: left;
    margin-bottom: 14px;
  }
  .aiv2-bar-ic { color: var(--cobalt); flex-shrink: 0; }
  .aiv2-typer {
    flex: 1;
    overflow: hidden; white-space: nowrap;
    min-width: 0;
    font-size: 15px;
    color: var(--navy);
    font-weight: 500;
    display: inline-flex; align-items: center;
  }
  .aiv2-typed {
    overflow: hidden; white-space: nowrap;
    display: inline-block;
    width: 0;
    animation: aiv2type 1.3s steps(40, end) 0.2s forwards;
    vertical-align: bottom;
  }
  @keyframes aiv2type { to { width: 100%; } }
  .aiv2-caret {
    width: 2px; height: 18px;
    background: var(--cobalt);
    margin-left: 2px;
    flex-shrink: 0;
    animation: blink 1.05s steps(1) infinite;
  }
  .aiv2-send {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--navy);
    color: #fff;
    border-radius: 11px;
    padding: 0 16px; height: 42px;
    font-size: 13px; font-weight: 600;
  }
  .aiv2-send svg { width: 14px; height: 14px; }
  .aiv2-suggest {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    margin-bottom: 26px;
  }
  .aiv2-chip {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }
  .aiv2-chip:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
  .aiv2-chip.active {
    background: rgba(209, 117, 86, 0.16);
    border-color: rgba(209, 117, 86, 0.45);
    color: #fff;
  }
  /* Answer card (white, streams in) */
  .aiv2-answer {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    text-align: left;
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.50);
    position: relative;
    transition: opacity 0.28s ease;
  }
  .aiv2-answer.swapping { opacity: 0; }
  @keyframes aiv2ansIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
  .aiv2-ans-head {
    display: flex; align-items: center; gap: 9px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--hair-soft);
  }
  .aiv2-ans-badge {
    width: 26px; height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cobalt), var(--soft-blue));
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .aiv2-ans-name { font-size: 13px; font-weight: 700; color: var(--navy); }
  .aiv2-ans-live {
    margin-left: auto;
    font-size: 11px; color: var(--success); font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--mono);
  }
  .aiv2-ans-live::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--success);
  }
  .aiv2-lead {
    font-size: 14px; color: var(--navy); font-weight: 500;
    margin-bottom: 12px; line-height: 1.5;
  }
  .aiv2-code {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, rgba(209, 117, 86, 0.08), rgba(92, 130, 117, 0.05));
    border: 1px solid rgba(209, 117, 86, 0.22);
    border-radius: 10px;
    padding: 12px 14px; margin-bottom: 12px;
  }
  .aiv2-code .c { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--cobalt); flex-shrink: 0; }
  .aiv2-code .m { font-size: 12px; color: var(--body); line-height: 1.45; }
  .aiv2-code .m b { color: var(--navy); font-weight: 600; }
  .aiv2-req { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
  .aiv2-req li {
    font-size: 12.5px; color: var(--body); line-height: 1.5;
    padding-left: 18px; position: relative;
  }
  .aiv2-req li::before { content: "→"; position: absolute; left: 0; color: var(--cobalt); font-family: var(--mono); }
  .aiv2-src {
    margin-top: 14px; padding-top: 12px;
    border-top: 1px dashed var(--hair);
    font-size: 11px; color: var(--muted);
    font-family: var(--mono);
    display: flex; align-items: center; gap: 6px;
  }
  .aiv2-src a { color: var(--cobalt); font-weight: 500; }

  /* ============ Variant 3 — Split-screen full app demo ============ */
  .aiv3 { max-width: 100%; }
  /* Centered heading above the demo */
  .aiv3-intro { text-align: center; max-width: 640px; margin: 0 auto 40px; }
  .aiv3-grid {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
  }
  /* Left copy */
  .aiv3-headline {
    font-size: clamp(34px, 3.8vw, 54px);
    font-weight: 800; line-height: 1.02; letter-spacing: -0.035em;
    color: #fff; margin: 0 0 16px; text-wrap: balance;
  }
  .aiv3-headline .accent { color: var(--cobalt); position: relative; }
  .aiv3-headline .spark {
    display: inline-block; vertical-align: super;
    color: var(--cobalt); margin-left: 4px;
    animation: aiv3spark 3s ease-in-out infinite;
  }
  @keyframes aiv3spark {
    0%, 100% { opacity: 0.5; transform: scale(0.9) rotate(0deg); }
    50%      { opacity: 1;   transform: scale(1.1) rotate(15deg); }
  }
  .aiv3-sub {
    font-size: 16.5px; line-height: 1.55;
    color: rgba(255, 255, 255, 0.66); margin: 0 auto; max-width: 460px;
  }
  .aiv3-features {
    display: flex; flex-direction: column; gap: 26px;
  }
  .aiv3-feat { display: flex; gap: 12px; align-items: flex-start; }
  .aiv3-feat-ic {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(209, 117, 86, 0.14);
    border: 1px solid rgba(209, 117, 86, 0.28);
    color: var(--cobalt); display: grid; place-items: center; flex-shrink: 0;
  }
  .aiv3-feat-t { font-size: 13.5px; font-weight: 700; color: #fff; line-height: 1.3; }
  .aiv3-feat-s { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); line-height: 1.3; margin-top: 2px; display: block; }

  /* Right: app window */
  .aiv3-app {
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr) 206px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 50px 90px -36px rgba(0, 0, 0, 0.60), 0 12px 30px -12px rgba(0, 0, 0, 0.35);
    min-height: 460px;
  }
  /* Sidebar */
  .aiv3-side {
    background: #FAFBFD;
    border-right: 1px solid var(--hair);
    padding: 18px 12px;
    display: flex; flex-direction: column;
  }
  .aiv3-side-brand {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 15px; color: var(--navy);
    padding: 4px 8px 18px;
    letter-spacing: -0.01em;
  }
  .aiv3-side-brand .s { color: var(--cobalt); display: inline-flex; }
  .aiv3-nav, .aiv3-q {
    display: flex; align-items: center; gap: 10px;
    width: 100%; text-align: left; border: 0; background: none;
    font-family: inherit; cursor: pointer;
    padding: 9px 10px; border-radius: 8px;
    font-size: 13px; color: var(--body); font-weight: 500;
    transition: background 0.18s ease, color 0.18s ease;
    margin-bottom: 2px;
  }
  .aiv3-nav:hover, .aiv3-q:hover { background: rgba(18, 19, 88, 0.04); color: var(--navy); }
  .aiv3-nav.active { background: rgba(209, 117, 86, 0.12); color: var(--cobalt); font-weight: 600; }
  .aiv3-nav .ic, .aiv3-q .ic { color: var(--muted); flex-shrink: 0; display: inline-flex; }
  .aiv3-nav.active .ic { color: var(--cobalt); }
  .aiv3-q.active { background: rgba(209, 117, 86, 0.10); color: var(--navy); font-weight: 600; }
  .aiv3-q.active .ic { color: var(--cobalt); }
  .aiv3-side-cap {
    font-family: var(--mono); font-size: 9.5px; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--muted);
    padding: 14px 10px 8px; font-weight: 600;
  }
  .aiv3-side-foot { margin-top: auto; padding-top: 10px; }

  /* Chat column */
  .aiv3-chat {
    padding: 22px 24px;
    display: flex; flex-direction: column;
    transition: opacity 0.26s ease;
    min-width: 0;
  }
  .aiv3-chat.swapping { opacity: 0; }
  .aiv3-u {
    align-self: flex-end; max-width: 80%;
    background: var(--bg); border: 1px solid var(--hair);
    color: var(--navy); font-size: 13px; line-height: 1.5;
    padding: 11px 14px; border-radius: 14px 14px 4px 14px;
    margin-bottom: 18px;
    opacity: 0; animation: aiv3in 0.4s ease 0.2s forwards;
  }
  .aiv3-a { display: flex; gap: 10px; opacity: 0; animation: aiv3in 0.5s ease 0.9s forwards; }
  .aiv3-a-badge {
    width: 26px; height: 26px; border-radius: 50%;
    background: linear-gradient(135deg, var(--cobalt), var(--soft-blue));
    display: grid; place-items: center; flex-shrink: 0;
  }
  .aiv3-a-body { flex: 1; min-width: 0; }
  .aiv3-a-lead { font-size: 13.5px; color: var(--navy); line-height: 1.55; margin-bottom: 12px; }
  .aiv3-a-lead b { color: var(--cobalt); font-weight: 700; }
  .aiv3-reqbox {
    background: var(--bg); border: 1px solid var(--hair);
    border-radius: 10px; padding: 13px 15px;
  }
  .aiv3-reqbox-t { font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
  .aiv3-reqbox ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
  .aiv3-reqbox li { font-size: 12.5px; color: var(--body); padding-left: 14px; position: relative; line-height: 1.5; }
  .aiv3-reqbox li::before { content: "•"; position: absolute; left: 2px; color: var(--cobalt); }
  .aiv3-sources-t { font-size: 12px; font-weight: 700; color: var(--navy); margin: 16px 0 8px; }
  .aiv3-source-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .aiv3-schip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 500; color: var(--body);
    background: #fff; border: 1px solid var(--hair); border-radius: 8px;
    padding: 6px 10px;
  }
  .aiv3-schip .ic { color: var(--cobalt); }
  .aiv3-time { font-size: 11px; color: var(--muted); margin-top: 14px; font-family: var(--mono); }

  /* Detail card column */
  .aiv3-detail {
    border-left: 1px solid var(--hair);
    background: #FBFCFE;
    padding: 22px 20px;
    transition: opacity 0.26s ease;
    display: flex; flex-direction: column;
  }
  .aiv3-detail.swapping { opacity: 0; }
  .aiv3-det-code { font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
  .aiv3-det-desc { font-size: 12.5px; color: var(--body); line-height: 1.5; margin: 8px 0 22px; }
  .aiv3-det-doc {
    width: 60px; height: 74px; margin: 6px auto 18px;
    background: #fff; border: 1px solid var(--hair); border-radius: 8px;
    position: relative;
    display: grid; place-items: center;
    box-shadow: 0 8px 20px -10px rgba(18, 19, 88, 0.18);
  }
  .aiv3-det-doc::after {
    content: "";
    position: absolute; right: -6px; bottom: -6px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--success);
    border: 2px solid #FBFCFE;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 6l2 2 4-4.5' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center;
  }
  .aiv3-det-src { font-size: 12px; color: var(--muted); text-align: center; margin: 0 0 16px; }
  .aiv3-det-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--cobalt); color: #fff; border-radius: 10px;
    padding: 11px; font-size: 13px; font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: auto;
  }
  .aiv3-det-btn:hover { background: #b85a3c; transform: translateY(-1px); }

  @keyframes aiv3in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

  

/* Hide variant scaffolding labels (one variant per page) */
.ai-variant-label { display: none !important; }
.ai-variant + .ai-variant { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
.ai .wrap { max-width: 1480px; }
/* match global section heading sizes already done above */
.ai .section-title { font-weight: 600 !important; }
@media (max-width: 860px) {
  .ai .section-aside { max-width: none; }
}

/* ---- Variant 3 (navy): features on top, app centered ---- */
.ai .section-head { max-width: 1100px; }
.ai .section-title { white-space: nowrap; }
@media (max-width: 760px) {
  .ai .section-title { white-space: normal; }
}
.aiv3-grid {
  display: block !important;
}
.aiv3-features {
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 48px !important;
  max-width: 1180px;
  margin: 0 auto 40px !important;
}
.aiv3-feat { align-items: center !important; }
.aiv3-app {
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .aiv3-features { gap: 16px 24px !important; }
}

/* Chat column wrapper (chat + input bar) */
.aiv3-chatcol { display: flex; flex-direction: column; min-width: 0; }
.aiv3-chatcol .aiv3-chat { flex: 1; }
.aiv3-inputbar {
  display: flex; align-items: center; gap: 8px;
  margin: 0 24px 22px;
  padding: 7px 7px 7px 14px;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 12px;
  box-shadow: 0 6px 16px -10px rgba(18,19,88,0.16);
}
.aiv3-input-ic { color: var(--cobalt); flex-shrink: 0; }
.aiv3-input-field {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 13px; color: var(--navy);
}
.aiv3-input-field::placeholder { color: var(--muted); }
.aiv3-input-send {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border: 0; border-radius: 9px;
  background: var(--navy); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background .15s ease;
}
.aiv3-input-send:hover { background: var(--cobalt); }

/* CTA row beneath the app — link to the full assistant */
.aiv3-cta-row { text-align: center; margin-top: 36px; }
.aiv3-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cobalt); color: #fff;
  height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(209,117,86,0.55);
  transition: background .15s ease, transform .15s ease;
}
.aiv3-cta-btn:hover { background: #b85a3c; transform: translateY(-1px); }
.aiv3-cta-btn svg { transition: transform .2s ease; }
.aiv3-cta-btn:hover svg { transform: translateX(2px); }

/* Remove the variants' own inner headlines — the section-head is the single heading */
.ai .aiv2-headline,
.ai .aiv2-sub,
.ai .aiv3-intro { display: none !important; }
.ai .aiv2 { margin-top: 4px; }

/* Quick-search tab bar (Variant 2 / peach) — chips moved above the ask bar */
.aiv2-quickbar {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px 16px;
  margin: 0 auto 22px;
}
.aiv2-quick-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.aiv2-quick-label svg { color: var(--cobalt); flex-shrink: 0; }
.aiv2-quickbar .aiv2-suggest { margin-bottom: 0; }

/* Variant 2 — interactive ask bar + autocomplete */
.aiv2-askwrap { position: relative; margin-bottom: 18px; }
.aiv2-askwrap .aiv2-bar { margin-bottom: 0; padding-right: 18px; }
.aiv2-input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 15px; color: var(--navy); line-height: 1.4;
  padding: 7px 0;
}
.aiv2-input::placeholder { color: var(--muted); }
.aiv2-ac {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--hair);
  border-radius: 14px;
  box-shadow: 0 26px 54px -22px rgba(18, 19, 88, 0.45);
  z-index: 30; display: none;
  text-align: left;
}
.aiv2-ac.open { display: block; }
.aiv2-ac-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
}
.aiv2-ac-item:hover, .aiv2-ac-item.hl { background: rgba(18, 19, 88, 0.05); }
.aiv2-ac-item .ic { color: var(--muted); flex-shrink: 0; display: inline-flex; }
.aiv2-ac-item .q { flex: 1; font-size: 13.5px; color: var(--body); }
.aiv2-ac-item .q b { color: var(--navy); font-weight: 700; }
.aiv2-ac-item .tag {
  flex-shrink: 0; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--cobalt); background: rgba(209, 117, 86, 0.10);
  padding: 3px 9px; border-radius: 999px;
}

/* Variant 2 — search-results-in-chat stage */
.aiv2-stage { min-height: 120px; }

.aiv2-hint {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; padding: 40px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 16px;
}
.aiv2-hint svg { color: var(--cobalt); }
.aiv2-hint p { margin: 0; font-size: 14px; color: rgba(255,255,255,0.78); max-width: 360px; line-height: 1.5; }

.aiv2-empty {
  padding: 28px 24px; text-align: center;
  font-size: 14px; color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.18); border-radius: 16px;
}

.aiv2-res-head {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin: 0 2px 12px;
}
.aiv2-res-list { display: flex; flex-direction: column; gap: 10px; }
.aiv2-res-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 15px 18px; cursor: pointer;
  background: #fff; border: 1px solid var(--hair); border-radius: 14px;
  box-shadow: 0 8px 20px -16px rgba(18,19,88,0.4);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  font-family: 'Hanken Grotesk', sans-serif;
}
.aiv2-res-card:hover {
  transform: translateY(-2px);
  border-color: var(--cobalt);
  box-shadow: 0 16px 30px -18px rgba(18,19,88,0.5);
}
.aiv2-res-ic {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(209,117,86,0.12); color: var(--cobalt);
}
.aiv2-res-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aiv2-res-q { font-size: 14.5px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.aiv2-res-q b { color: var(--cobalt); font-weight: 700; }
.aiv2-res-meta { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.aiv2-res-tag {
  flex-shrink: 0; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--cobalt); background: rgba(209,117,86,0.10);
  padding: 4px 10px; border-radius: 999px;
}
.aiv2-res-arrow { flex-shrink: 0; color: var(--muted); }

.aiv2-back {
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 14px; padding: 7px 14px 7px 11px;
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.20); border-radius: 999px;
  font-family: 'Hanken Grotesk', sans-serif; font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.aiv2-back:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.32); }
.aiv2-back svg { color: var(--cobalt); }
