/* ai.xodns.net — pearl-aqua skin over ui/xcr9.css plus this page's own header, hero and components.
   Loaded after xcr9.css. Only tokens and ai-* classes: nothing here can reach the other sites,
   which never load this file. Accent: pearl aqua #6fc3c0 (dark); a deeper aqua in light mode for contrast. */

:root {
  --bg: #f2f7f6;
  --surface: #ffffff;
  --surface-2: #e7f0ef;
  --line: rgba(10, 40, 38, 0.09);
  --line-strong: rgba(10, 40, 38, 0.17);
  --text: #0f1b1a;
  --muted: #5b6d6b;
  --faint: #93a3a1;
  --accent: #1b7c78;
  --accent-ink: #effffd;
  --accent-soft: rgba(27, 124, 120, 0.11);
  --pearl: #6fc3c0;
  --pearl-2: #a9e1dd;
  --pearl-3: #e4f6f4;
  --dot: rgba(10, 50, 48, 0.1);
  --glow: rgba(111, 195, 192, 0.24);
  --ai-glass: rgba(255, 255, 255, 0.72);
  --ai-node: 27, 124, 120;          /* rgb for the hero field (ui/ai.js reads it) */
  --ai-chat-bg: #ffffff;
  --ai-err: #c2410c;
  --app-pill: #6fc3c0;
  --app-pill-ink: #032220;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081110;
    --surface: #0e1918;
    --surface-2: #132120;
    --line: rgba(190, 255, 250, 0.07);
    --line-strong: rgba(190, 255, 250, 0.14);
    --text: #e8f3f2;
    --muted: #86a09d;
    --faint: #557370;
    --accent: #6fc3c0;
    --accent-ink: #032220;
    --accent-soft: rgba(111, 195, 192, 0.13);
    --dot: rgba(200, 255, 250, 0.06);
    --glow: rgba(111, 195, 192, 0.17);
    --ai-glass: rgba(12, 24, 23, 0.7);
    --ai-node: 111, 195, 192;
    --ai-chat-bg: #0b1615;
    --ai-err: #ff9b85;
  }
}
:root[data-theme="dark"] {
  --bg: #081110;
  --surface: #0e1918;
  --surface-2: #132120;
  --line: rgba(190, 255, 250, 0.07);
  --line-strong: rgba(190, 255, 250, 0.14);
  --text: #e8f3f2;
  --muted: #86a09d;
  --faint: #557370;
  --accent: #6fc3c0;
  --accent-ink: #032220;
  --accent-soft: rgba(111, 195, 192, 0.13);
  --dot: rgba(200, 255, 250, 0.06);
  --glow: rgba(111, 195, 192, 0.17);
  --ai-glass: rgba(12, 24, 23, 0.7);
  --ai-node: 111, 195, 192;
  --ai-chat-bg: #0b1615;
  --ai-err: #ff9b85;
}
[id] { scroll-margin-top: 96px; }

/* ================= header: a floating capsule (not the full-width bar of the other sites) ================= */
.ai-top { position: sticky; top: 0; z-index: 20; padding: 12px 0 0; }
.ai-cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 60px; padding: 0 8px 0 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--ai-glass);
  backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px);
  transition: border-color .25s, box-shadow .25s; }
.ai-top.scrolled .ai-cap { border-color: var(--line-strong); box-shadow: 0 14px 40px -24px rgba(0, 30, 28, .55); }
.ai-brand { display: flex; align-items: center; gap: 10px; padding-inline-start: 4px; font-weight: 700; }
.ai-glyph { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 35% 30%, var(--pearl-3), var(--pearl-2) 38%, var(--pearl) 70%, #3f9f9b);
  box-shadow: inset 0 -3px 6px rgba(0, 60, 56, .25), 0 0 0 1px rgba(111, 195, 192, .35); }
.ai-glyph svg { width: 18px; height: 18px; color: #053331; }
.ai-glyph::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--pearl); opacity: 0;
  animation: ai-ring 4.5s ease-out infinite; }
@keyframes ai-ring { 0% { opacity: .55; transform: scale(.85); } 70%, 100% { opacity: 0; transform: scale(1.35); } }
.ai-name { font-family: var(--mono); font-size: 15px; letter-spacing: .02em; }
.ai-tagname { font-family: var(--mono); font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; direction: ltr;
  color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.ai-nav { display: none; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.ai-nav a { font-size: 13.5px; color: var(--muted); padding: 7px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.ai-nav a:hover { color: var(--text); background: var(--surface); }
.ai-nav a.nav-app { background: var(--app-pill); color: var(--app-pill-ink); font-weight: 700; }
.ai-nav a.nav-app:hover { filter: brightness(1.06); }
.ai-nav a.out { color: var(--faint); }
.ai-top .bar-actions .icon-btn, .ai-top .btn-sm { border-radius: 999px; }
.ai-top .user-chip { border-radius: 999px; }
.ai-top .user-chip .avatar { border-radius: 50%; }
@media (min-width: 1000px) { .ai-nav { display: flex; } .ai-top .menu-btn { display: none !important; } }
@media (max-width: 420px) { .ai-tagname { display: none; } }
.ai-top .drawer { top: 80px; border-radius: 22px; }
.ai-top .drawer > a.nav-app { background: var(--app-pill); color: var(--app-pill-ink); font-weight: 700; }

/* ================= hero ================= */
.ai-hero { position: relative; isolation: isolate; padding: 56px 0 24px; overflow: hidden; }
#aiField { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 40%, transparent 100%); }
.ai-grid { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .ai-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 46px; } .ai-hero { padding-top: 76px; } }
.ai-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px;
  padding: 6px 12px 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.ai-kicker b { color: var(--text); font-weight: 500; }
.ai-h1 { margin: 0; font-size: clamp(38px, 7.4vw, 74px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.ai-h1 .pearl { background: linear-gradient(100deg, var(--accent) 0%, var(--pearl) 35%, var(--pearl-2) 50%, var(--pearl) 65%, var(--accent) 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: ai-sheen 6s ease-in-out infinite; }
@keyframes ai-sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.ai-h1 .no { position: relative; color: var(--faint); white-space: nowrap; font-size: .36em; font-weight: 500; letter-spacing: 0; display: inline-block; margin-top: .35em; }
.ai-h1 .no::after { content: ""; position: absolute; inset-inline: -3%; top: 55%; height: .1em; background: var(--accent); border-radius: 2px;
  transform-origin: right; transform: scaleX(0); animation: strike .9s .5s cubic-bezier(.7,0,.2,1) forwards; }
.ai-lede { margin: 20px 0 0; max-width: 560px; font-size: clamp(16px, 2.1vw, 18.5px); color: var(--muted); line-height: 1.9; }
.ai-tools-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.ai-tools-row span { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent); direction: ltr; color: var(--muted); }
.ai-hero .console { margin-top: 30px; }
@media (min-width: 720px) { .ai-hero .console { grid-template-columns: 1.25fr 1fr; } }
@media (min-width: 1100px) { .ai-hero .console { grid-template-columns: minmax(0, 1fr); } }

/* chat window demo (ui/ai.js) */
.ai-chat { position: relative; display: none; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--ai-chat-bg);
  box-shadow: 0 40px 80px -40px rgba(0, 40, 38, .55), 0 0 0 6px color-mix(in srgb, var(--pearl) 7%, transparent); overflow: hidden; }
@media (min-width: 720px) { .ai-chat { display: block; } }
@media (min-width: 1100px) { .ai-chat { margin-top: 6px; } }
.ai-chat-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ai-dots { display: flex; gap: 6px; direction: ltr; }
.ai-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.ai-tabs { display: flex; gap: 4px; margin-inline-start: auto; direction: ltr; overflow: hidden; }
.ai-tab { font-family: var(--mono); font-size: 11.5px; padding: 4px 10px; border-radius: 999px; color: var(--faint); border: 1px solid transparent; transition: all .35s; white-space: nowrap; }
.ai-tab.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }
.ai-chat-body { height: 330px; padding: 18px 16px 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; overflow: hidden; }
.ai-msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.85; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.ai-msg.in { opacity: 1; transform: none; }
.ai-msg.me { align-self: flex-start; background: var(--surface-2); border-end-start-radius: 6px; }
.ai-msg.bot { align-self: flex-end; border: 1px solid var(--line); border-end-end-radius: 6px; background: color-mix(in srgb, var(--pearl) 6%, transparent); }
.ai-msg.bot .who { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--accent); margin-bottom: 4px; direction: ltr; justify-content: flex-end; }
.ai-msg.err { align-self: center; max-width: 100%; text-align: center; font-family: var(--mono); font-size: 12.5px; direction: ltr; color: var(--ai-err);
  border: 1px dashed color-mix(in srgb, var(--ai-err) 50%, transparent); background: color-mix(in srgb, var(--ai-err) 7%, transparent); }
.ai-msg.sys { align-self: center; max-width: 100%; font-family: var(--mono); font-size: 12px; direction: ltr; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 6px 14px; }
.ai-caret { display: inline-block; width: 7px; height: 1.05em; vertical-align: -2px; margin-inline-start: 2px; background: var(--accent); border-radius: 2px; animation: ai-blink 1s steps(2) infinite; }
@keyframes ai-blink { 50% { opacity: 0; } }
.ai-chat-input { display: flex; align-items: center; gap: 10px; margin: 0 12px 12px; padding: 10px 10px 10px 14px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); }
.ai-chat-input .ph { flex: 1; font-size: 13.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-send { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); flex: none; }
.ai-send svg { width: 15px; height: 15px; }
.ai-chat-foot { display: flex; justify-content: space-between; gap: 8px; padding: 0 16px 12px; font-size: 11.5px; color: var(--faint); }
.ai-chat-foot .st { font-family: var(--mono); direction: ltr; }
.ai-chat-foot .st.ok { color: var(--accent); }
.ai-chat-foot .st.bad { color: var(--ai-err); }

/* ================= sections ================= */
.ai-sec { padding: 64px 0; }
.ai-head { margin-bottom: 26px; }
.ai-head h2 { margin: 6px 0 0; font-size: clamp(26px, 4.4vw, 38px); line-height: 1.25; letter-spacing: -.01em; }
.ai-head p { margin: 8px 0 0; color: var(--muted); max-width: 600px; line-height: 1.9; }
.ai-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; direction: ltr; }
.ai-eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }

/* who it is for */
.ai-who { display: grid; gap: 14px; }
@media (min-width: 880px) { .ai-who { grid-template-columns: repeat(3, 1fr); } }
.ai-persona { position: relative; padding: 24px 22px 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s; }
.ai-persona:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-2px); }
.ai-persona::before { content: ""; position: absolute; width: 180px; height: 180px; inset-inline-end: -60px; top: -70px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pearl) 26%, transparent), transparent 70%); pointer-events: none; }
.ai-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ai-ico svg { width: 22px; height: 22px; }
.ai-persona h3 { margin: 0; font-size: 19px; }
.ai-persona p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.ai-persona ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.ai-persona li { display: flex; gap: 8px; align-items: baseline; }
.ai-persona li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pearl); flex: none; transform: translateY(-2px); }
.ai-persona .more { margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--accent); font-weight: 600; }

/* tools: filterable tiles */
.ai-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.ai-filter button { height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font: inherit; font-size: 14px; transition: all .15s; }
.ai-filter button:hover { color: var(--text); }
.ai-filter button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 700; }
.ai-tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .ai-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .ai-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ai-tile { padding: 14px 15px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: opacity .25s, transform .25s, border-color .2s; }
.ai-tile:hover { border-color: var(--line-strong); }
.ai-tile b { font-size: 15px; direction: ltr; text-align: right; font-weight: 600; }
.ai-tile span { font-size: 12.5px; color: var(--muted); }
.ai-tile[hidden] { display: none; }
.ai-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); font-size: 14px; line-height: 1.85; color: var(--text); }
.ai-note .dot { margin-top: 9px; }

/* how it works: a path with a travelling bead */
.ai-flow { position: relative; display: grid; gap: 12px; grid-template-columns: 1fr; padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 820px) { .ai-flow { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.ai-hop { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.ai-hop b { font-size: 15px; }
.ai-hop small { font-family: var(--mono); font-size: 11.5px; color: var(--faint); direction: ltr; text-align: right; }
.ai-hop i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); background: var(--surface); margin-bottom: 8px; }
.ai-hop.lit i { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
@media (min-width: 820px) {
  .ai-flow::before { content: ""; position: absolute; top: 42px; inset-inline: 46px; height: 2px; background: linear-gradient(to left, var(--accent), var(--line-strong)); opacity: .5; }
  .ai-flow::after { content: ""; position: absolute; top: 38px; inset-inline-start: 46px; width: 10px; height: 10px; border-radius: 50%; background: var(--pearl); box-shadow: 0 0 14px var(--pearl); animation: ai-bead 4.8s cubic-bezier(.6,0,.4,1) infinite; }
}
@keyframes ai-bead { 0% { inset-inline-start: 46px; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { inset-inline-start: calc(100% - 56px); opacity: 0; } }
.ai-flow-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); line-height: 1.85; }
.ai-live { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ai-live a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; }
.ai-live a b { font-family: var(--mono); font-weight: 500; direction: ltr; }
.ai-live .ms { font-family: var(--mono); font-size: 12px; color: var(--muted); direction: ltr; display: inline-flex; align-items: center; gap: 6px; }

/* steps as a numbered timeline */
.ai-steps { display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 820px) { .ai-steps { grid-template-columns: repeat(3, 1fr); } }
.ai-step { position: relative; padding: 22px 20px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.ai-step .n { font-family: var(--mono); font-size: 13px; font-weight: 700; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--pearl-2), var(--pearl)); color: #053331; margin-bottom: 14px; }
.ai-step h3 { margin: 0 0 6px; font-size: 17.5px; }
.ai-step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.85; }

/* students band */
.ai-study { position: relative; overflow: hidden; display: grid; gap: 22px; padding: 30px 26px; border-radius: 26px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--pearl) 16%, transparent), transparent 55%), var(--surface); }
@media (min-width: 880px) { .ai-study { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 38px 36px; } }
.ai-study h2 { margin: 0; font-size: clamp(24px, 3.8vw, 34px); line-height: 1.3; }
.ai-study p { margin: 10px 0 0; color: var(--muted); line-height: 1.9; }
.ai-perks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ai-perks li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--surface-2) 75%, transparent); font-size: 14.5px; line-height: 1.75; }
.ai-perks li b { display: block; font-size: 15px; }
.ai-perks .k { font-family: var(--mono); font-size: 12px; color: var(--accent); min-width: 30px; padding-top: 2px; }
.ai-study .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* FAQ */
.ai-faq { display: grid; gap: 10px; }
.ai-faq details { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); padding: 0 18px; transition: border-color .2s; }
.ai-faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.ai-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-weight: 600; font-size: 15.5px; }
.ai-faq summary::-webkit-details-marker { display: none; }
.ai-faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--accent); transition: transform .2s; }
.ai-faq details[open] summary::after { transform: rotate(45deg); }
.ai-faq details p { margin: 0 0 16px; color: var(--muted); line-height: 1.95; font-size: 14.5px; }

.ai-cta { padding: 30px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-radius: 24px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--pearl) 20%, var(--surface)), var(--surface) 60%); border: 1px solid var(--line); }
.ai-cta h2 { margin: 0; font-size: 22px; }
.ai-cta p { margin: 6px 0 0; color: var(--muted); }

/* footer brand mark */
.foot .ai-brand { padding: 0; }

@media (prefers-reduced-motion: reduce) {
  .ai-h1 .pearl, .ai-glyph::after, .ai-flow::after, .ai-caret { animation: none; }
}
