/* /feature/agent-friendly — dark, single-column page on a black/purple gradient.
   The site header (white floating card) and footer come from shared includes. */

.ag-page {
  --ag-bg: #07060c;
  --ag-fg: #f5f3ff;
  --ag-muted: #a1a1b5;
  --ag-dim: #71718a;
  --ag-line: rgba(255, 255, 255, .09);
  --ag-line-strong: rgba(255, 255, 255, .18);
  --ag-card: rgba(255, 255, 255, .035);
  --ag-card-hover: rgba(255, 255, 255, .06);
  --ag-purple: #a855f7;
  --ag-violet: #7c3aed;
  --ag-grad: linear-gradient(90deg, #ae5dd7 0%, #7c3aed 50%, #0d6efd 100%);
  --ag-radius: 16px;
  background: var(--ag-bg);
}

/* Black → purple "AI" backdrop: soft glows layered over near-black */
.ag-bg {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 50% -120px, rgba(124, 58, 237, .55), transparent 70%),
    radial-gradient(700px 500px at 100% 18%, rgba(174, 93, 215, .22), transparent 70%),
    radial-gradient(800px 600px at 0% 48%, rgba(91, 33, 182, .22), transparent 70%),
    radial-gradient(900px 600px at 80% 85%, rgba(13, 110, 253, .12), transparent 70%),
    linear-gradient(180deg, #0c0716 0%, #07060c 40%, #0a0714 100%);
}

.ag {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 120px;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ag-fg);
  -webkit-font-smoothing: antialiased;
}
.ag *, .ag *::before, .ag *::after { box-sizing: border-box; }
.ag-mono, .ag code, .ag pre { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.ag-muted { color: var(--ag-muted); }
.ag a { color: inherit; }

/* ---------- Reveal on scroll (only with JS) ---------- */
.ag-js .ag-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.ag-js .ag-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ag-js .ag-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Hero ---------- */
.ag-hero { padding-top: clamp(150px, 22vh, 220px); text-align: center; }
.ag-eyebrow-wrap { margin-bottom: 28px; }
.ag-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(168, 85, 247, .45); background: rgba(124, 58, 237, .14);
  font: 600 12px/1 "Geist", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #e9d5ff;
}
.ag-eyebrow:hover { background: rgba(124, 58, 237, .24); }
.ag-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #c084fc; box-shadow: 0 0 10px #c084fc; }
.ag-eyebrow-menu { margin-top: 10px; }
.ag-h1 {
  font-family: inherit; font-size: clamp(40px, 7vw, 64px); font-weight: 600;
  letter-spacing: -0.04em; line-height: 1.05; margin: 0 auto; max-width: 760px;
  background: linear-gradient(180deg, #ffffff 30%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ag-sub { font-size: 19px; line-height: 1.55; color: var(--ag-muted); margin: 24px auto 0; max-width: 580px; }

/* ---------- Buttons ---------- */
.ag-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.ag-btn {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px;
  padding: 13px 22px; font: 500 16px/1 "Geist", sans-serif; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.ag-btn--ghost { background: rgba(255,255,255,.04); color: var(--ag-fg); border-color: var(--ag-line-strong); }
.ag-btn--ghost:hover { background: rgba(255,255,255,.09); }
.ag-btn:focus-visible, .ag-item:focus-visible, .ag-tab:focus-visible, .ag-copy:focus-visible, .ag summary:focus-visible, .ag-eyebrow:focus-visible {
  outline: 2px solid #c084fc; outline-offset: 2px;
}
.ag-btn-icon { width: 18px; height: 18px; }

/* Split button: main half adds to Claude, chevron half opens the menu */
.ag-split {
  display: inline-flex; align-items: stretch; border-radius: 999px; overflow: hidden;
  background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 8px 30px rgba(168, 85, 247, .35);
}
.ag-split-main, .ag-split-toggle {
  display: inline-flex; align-items: center; gap: 10px; border: 0; background: none;
  color: #0b0712 !important; font: 500 16px/1 "Geist", sans-serif; cursor: pointer; text-decoration: none !important;
}
.ag-split-main { padding: 13px 18px 13px 20px; }
.ag-split-toggle { padding: 0 16px; border-left: 1px solid #e4e0ec; }
.ag-split-main:hover, .ag-split-toggle:hover, .ag-split-toggle[aria-expanded="true"] { background: #f3e8ff; }
.ag-split-main:focus-visible, .ag-split-toggle:focus-visible { outline: 2px solid #c084fc; outline-offset: -2px; }

/* ---------- Add-to-Claude dropdown (dark) ---------- */
.ag-dd { position: relative; }
.ag-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 60;
  width: 300px; max-height: min(70vh, 620px); overflow-y: auto; text-align: left;
  background: #120d1d; border: 1px solid rgba(168, 85, 247, .28); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03);
  padding: 6px;
}
.ag-menu[hidden] { display: none; }
.ag-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 10px; border: 0; background: none; cursor: pointer;
  color: var(--ag-fg); text-decoration: none !important; font: inherit;
}
.ag-item:hover, .ag-item:focus { background: rgba(168, 85, 247, .14); color: var(--ag-fg); outline: none; }
.ag-item img { width: 22px; height: 22px; flex: none; }
.ag-icon-mono { filter: invert(1); }
.ag-item-name { flex: 1; font-size: 16px; font-weight: 500; }
.ag-item-kind { flex: none; font-size: 13px; color: var(--ag-dim); }

/* ---------- "Works with" marquee ---------- */
.ag-works { margin-top: 72px; }
.ag-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #c084fc; margin: 0 0 14px;
}
.ag-works .ag-kicker { color: var(--ag-dim); }
.ag-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.ag-marquee-track { display: flex; width: max-content; animation: ag-scroll 40s linear infinite; }
.ag-marquee:hover .ag-marquee-track { animation-play-state: paused; }
@keyframes ag-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ag-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } }
.ag-agent { display: inline-flex; align-items: center; gap: 8px; margin-right: 34px; padding: 10px 0; font-size: 15px; font-weight: 500; color: #d4d4e0; white-space: nowrap; }
.ag-agent img { width: 22px; height: 22px; }
.ag-agent img.ag-icon-mono { opacity: .9; }

/* ---------- Divider ---------- */
/* Section divider: a single fading hairline, same spacing as before (96px + 18px + 96px) */
.ag-divider { display: flex; align-items: center; width: 240px; max-width: 60%; height: 18px; margin: 96px auto; }
.ag-divider::before { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--ag-line-strong), transparent); }

/* ---------- Section type ---------- */
.ag-h2 { font-family: inherit; font-size: clamp(30px, 4.6vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; margin: 0 0 28px; color: var(--ag-fg); }
.ag-h3 { font-family: inherit; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--ag-fg); }
.ag-h3--lg { font-size: 24px; margin-bottom: 8px; }
.ag-p, .ag-lead { font-size: 16px; line-height: 1.6; color: var(--ag-muted); margin: 0; }
.ag-lead { margin: -14px 0 32px; font-size: 17px; }
.ag-more { margin: 20px 0 0; font-size: 14px; font-weight: 500; }
.ag-more a { text-decoration: none; color: #d8b4fe; border-bottom: 1px solid rgba(216, 180, 254, .35); }
.ag-more a:hover { color: #fff; border-color: #fff; text-decoration: none; }

/* ---------- How it works ---------- */
.ag-steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.ag-step { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--ag-line); border-radius: var(--ag-radius); background: var(--ag-card); }
.ag-step-num {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid #fff; color: #fff; font-weight: 600; font-size: 14px;
}

/* ---------- GIF slots ---------- */
.ag-media { margin: 24px 0; border-radius: var(--ag-radius); padding: 10px; background: linear-gradient(140deg, rgba(168,85,247,.25), rgba(13,110,253,.12)); }
.ag-media img, .ag-media video { display: block; width: 100%; height: auto; border-radius: 10px; }
.ag-gif-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 24px; border-radius: 10px; text-align: center;
  border: 1.5px dashed rgba(216, 180, 254, .35); background: rgba(7, 6, 12, .75);
}
.ag-gif-badge { padding: 4px 12px; border-radius: 999px; background: var(--ag-grad); color: #fff; font: 700 11px/1.4 "Geist Mono", monospace; letter-spacing: .14em; }
.ag-gif-note { max-width: 440px; font-size: 14px; line-height: 1.5; color: var(--ag-muted); }

/* ---------- Tabs ---------- */
.ag-tablist { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.ag-tab { border: 1px solid var(--ag-line-strong); background: rgba(255,255,255,.03); color: var(--ag-muted); border-radius: 999px; padding: 8px 15px; font: 500 14px/1.2 "Geist", sans-serif; cursor: pointer; transition: all .15s; }
.ag-tab:hover { color: var(--ag-fg); border-color: rgba(255,255,255,.3); }
.ag-tab[aria-selected="true"] { background: #fff; border-color: #fff; color: #0b0712; }
.ag-panel { animation: ag-fade .6s cubic-bezier(.16,1,.3,1); }
@keyframes ag-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Prompt chat bubbles ---------- */
.ag-chat {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  margin-top: 8px; padding: 16px; border-radius: var(--ag-radius);
  border: 1px solid rgba(168, 85, 247, .25); background: rgba(124, 58, 237, .08);
}
.ag-chat--inline { display: inline-flex; max-width: 100%; margin-top: 14px; padding: 12px; align-items: flex-start; }
.ag-chat-label {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 2px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #d8b4fe;
}
.ag-chat-label--plain { display: flex; margin: 20px 0 8px; color: var(--ag-dim); }
.ag-bubble {
  position: relative; max-width: 90%;
  padding: 10px 16px; border-radius: 18px 18px 4px 18px;
  background: linear-gradient(135deg, #ae5dd7 0%, #7c3aed 55%, #4f46e5 100%); color: #fff;
  font-size: 15px; font-weight: 500; line-height: 1.45;
  box-shadow: 0 8px 24px rgba(124, 58, 237, .3);
}
.ag-bubble::after {
  content: ""; position: absolute; right: -5px; bottom: 0; width: 11px; height: 11px;
  background: #4f46e5; clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.ag-chat--inline .ag-bubble { font-size: 14px; }

/* ---------- Code ---------- */
.ag-code { background: rgba(0,0,0,.45); border: 1px solid var(--ag-line); border-radius: 10px; padding: 14px 16px; font-size: 13px; line-height: 1.6; color: #e9e7f5; margin: 0; white-space: pre-wrap; word-break: break-word; }

/* ---------- Ways in ---------- */
.ag-ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ag-way { min-width: 0; border: 1px solid var(--ag-line); border-radius: var(--ag-radius); padding: 24px; background: var(--ag-card); transition: background .2s, border-color .2s; }
.ag-way:hover { background: var(--ag-card-hover); border-color: rgba(168, 85, 247, .3); }
.ag-way-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ag-way-head .ag-h3 { margin: 0; }
.ag-way .ag-p { margin: 8px 0 16px; }
.ag-pill { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 3px 9px; color: #d8b4fe; background: rgba(168, 85, 247, .14); white-space: nowrap; }
.ag-codebox { position: relative; }
.ag-codebox .ag-code { padding-right: 72px; }
.ag-copy { position: absolute; top: 8px; right: 8px; border: 1px solid var(--ag-line-strong); background: rgba(255,255,255,.06); border-radius: 6px; font: 500 12px/1 "Geist", sans-serif; padding: 6px 10px; cursor: pointer; color: var(--ag-fg); }
.ag-copy:hover { background: rgba(255,255,255,.12); }

/* ---------- Social proof ---------- */
.ag-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; margin-bottom: 40px; }
.ag-logos img { width: auto; filter: grayscale(1) brightness(0) invert(1); opacity: .55; }
.ag-quotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ag-tcard { margin: 0; border: 1px solid var(--ag-line); background: var(--ag-card); border-radius: var(--ag-radius); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.ag-tcard blockquote { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ag-fg); }
.ag-tcard figcaption { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ag-tcard figcaption > span { display: flex; flex-direction: column; }
.ag-tcard figcaption img, .ag-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.ag-avatar { background: var(--ag-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }

/* ---------- FAQ ---------- */
.ag-faq details { border-bottom: 1px solid var(--ag-line); }
.ag-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 17px; font-weight: 500; cursor: pointer; color: var(--ag-fg); }
.ag-faq summary::-webkit-details-marker { display: none; }
.ag-plus { font-size: 20px; font-weight: 300; color: var(--ag-muted); transition: transform .2s; }
.ag-faq details[open] .ag-plus { transform: rotate(45deg); color: #d8b4fe; }
.ag-faq p { margin: 0 0 18px; font-size: 15px; line-height: 1.65; color: var(--ag-muted); }

/* ---------- End CTA ---------- */
.ag-end { text-align: center; padding: 56px 24px; border-radius: 24px; border: 1px solid rgba(168, 85, 247, .25);
  background: radial-gradient(600px 300px at 50% 0%, rgba(124, 58, 237, .35), transparent 70%), rgba(255,255,255,.02); }
.ag-end .ag-h2 { margin-bottom: 0; }
.ag-end .ag-menu { top: auto; bottom: calc(100% + 10px); }

/* ---------- Toast ---------- */
.ag-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000;
  background: #fff; color: #0b0712; border-radius: 12px; padding: 12px 18px;
  font: 500 14px/1.4 "Geist", sans-serif; max-width: calc(100vw - 32px); text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.ag-toast[hidden] { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .ag { padding: 0 16px 80px; }
  .ag-hero { padding-top: 130px; }
  .ag-divider { margin: 64px auto; }
  .ag-actions { flex-direction: column; align-items: stretch; }
  .ag-dd, .ag-btn { width: 100%; justify-content: center; }
  .ag-split { display: flex; width: 100%; }
  .ag-split-main { flex: 1; justify-content: center; }
  .ag-menu { width: 100%; left: 0; transform: none; }
  .ag-sub { font-size: 16px; }
  .ag-bubble { max-width: 100%; }
  .ag-end { padding: 40px 16px; }
}

/* Related links strip (shared include) on the dark background */
.ag-related { position: relative; padding-bottom: 64px; }
.ag-related .related-link { background: rgba(255,255,255,.06); color: #c4c4d4; }
.ag-related .related-link:hover { background: rgba(168, 85, 247, .2); color: #fff; }
.ag-related h2, .ag-related h3, .ag-related p { color: #a1a1b5; }

/* Social proof line under the CTAs */
.ag-proof { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; }
.ag-avatars { display: inline-flex; }
.ag-avatars img {
  width: 20px; height: 20px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid #0c0716; opacity: .85;
}
.ag-avatars img + img { margin-left: -6px; }
.ag-proof-text { font-size: 13px; color: var(--ag-dim); }

/* Agent reply bubble (How it works, step 3) */
.ag-chat--reply { align-items: stretch; }
.ag-reply { display: flex; align-items: flex-end; gap: 8px; }
.ag-reply-avatar {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #1c1528; border: 1px solid var(--ag-line-strong);
}
.ag-reply-avatar img { width: 15px; height: 15px; }
.ag-reply-bubble {
  max-width: 90%; padding: 10px 14px; border-radius: 18px 18px 18px 4px;
  background: #1c1528; border: 1px solid var(--ag-line-strong);
}
.ag-reply-bubble p { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: var(--ag-fg); }
.ag-link-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 5px 10px; border-radius: 8px;
  background: rgba(168, 85, 247, .16); border: 1px solid rgba(168, 85, 247, .35);
  color: #e9d5ff; font-size: 13px;
}
.ag-link-chip .ag-mono { font-size: 13px; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(233, 213, 255, .4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
