/* =============================================
   AI statement page (ai/index.html)
   Loaded after site.css. Everything here is scoped to this page's own classes.
   Every animation has a reduced-motion fallback at the bottom of the file.
   ============================================= */

@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin-angle { to { --spin: 360deg; } }
@keyframes ai-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.ai-hero { position: relative; overflow: hidden; background: var(--cyan-black); padding: 148px var(--gutter) 0; }
.ai-field {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 85% 95% at 72% 38%, #000 35%, transparent 88%);
          mask-image: radial-gradient(ellipse 85% 95% at 72% 38%, #000 35%, transparent 88%);
}
.ai-hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 85% 20%, rgba(55,255,183,0.12), transparent 70%),
    radial-gradient(ellipse 55% 60% at 0% 100%, rgba(17,48,171,0.35), transparent 70%),
    linear-gradient(180deg, rgba(4,8,21,0) 70%, rgba(4,8,21,0.9) 100%);
}
.ai-hero-inner {
  position: relative; z-index: 2; max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr); gap: 56px; align-items: center;
}
.ai-h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.06; }
.ai-h1 em { font-style: normal; color: var(--cyan-aqua); }
.ai-hero-copy .hero-sub { max-width: 560px; }
.ai-hero-copy .crumb { display: flex; width: fit-content; }
.ai-hero-meta { margin-top: 28px; font-size: 0.8125rem; color: rgba(245,246,252,0.6); line-height: 1.7; }
.ai-hero-meta strong { color: #FFFFFF; font-weight: 600; }

.ai-commitments {
  position: relative; z-index: 2; list-style: none; max-width: var(--max-w);
  margin: 72px auto 0; padding: 0 0 96px; display: flex; flex-wrap: wrap; gap: 10px 12px;
}
.ai-commitments li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 9999px;
  font-size: 0.8125rem; font-weight: 600; color: rgba(245,246,252,0.9);
  background: rgba(4,8,21,0.6); border: 1px solid rgba(55,255,183,0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: ai-rise 0.7s cubic-bezier(0.22,1,0.36,1) both; animation-delay: calc(0.7s + var(--i) * 0.08s);
}
.ai-commit-tick { width: 16px; height: 16px; color: var(--cyan-aqua); stroke-width: 2.2; }

/* ---------- Hero demo card ---------- */
.ai-demo-card {
  position: relative; border-radius: 20px; overflow: hidden;
  background: rgba(8,13,30,0.82); border: 1px solid rgba(245,246,252,0.1);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.ai-demo-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0 62%, rgba(55,255,183,0.9) 76%, rgba(91,140,255,0.9) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-angle 7s linear infinite;
}
.ai-demo-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(245,246,252,0.08); }
.ai-demo-dots { display: inline-flex; gap: 6px; }
.ai-demo-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(245,246,252,0.18); }
.ai-demo-title { font-family: var(--font-title); font-size: 0.875rem; color: #FFFFFF; }
.ai-demo-caption { margin-left: auto; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,246,252,0.55); padding: 4px 10px; border-radius: 9999px; border: 1px solid rgba(245,246,252,0.14); }
.ai-demo-steps { list-style: none; margin: 0; padding: 18px 20px 20px; }
.demo-step { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding-bottom: 16px; }
.demo-step:last-child { padding-bottom: 0; }
.demo-step:not(:last-child)::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: rgba(245,246,252,0.08); }
.demo-step:not(:last-child)::after {
  content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px;
  background: linear-gradient(180deg, var(--cyan-aqua), #5B8CFF); transform: scaleY(0); transform-origin: top; transition: transform 0.5s ease;
}
.demo-step.is-done:not(:last-child)::after { transform: scaleY(1); }
.demo-node {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(245,246,252,0.18); color: rgba(245,246,252,0.4); background: #080d1e;
  transition: border-color 0.3s, color 0.3s, background 0.3s, box-shadow 0.3s;
}
.demo-icon { width: 18px; height: 18px; }
.demo-step.is-active .demo-node { border-color: var(--cyan-aqua); color: var(--cyan-aqua); box-shadow: 0 0 0 6px rgba(55,255,183,0.12), 0 0 22px rgba(55,255,183,0.35); }
.demo-step.is-done .demo-node { border-color: var(--cyan-aqua); color: var(--cyan-black); background: var(--cyan-aqua); }
.demo-body { min-width: 0; opacity: 0.42; transition: opacity 0.3s; }
.demo-step.is-active .demo-body, .demo-step.is-done .demo-body { opacity: 1; }
.demo-meta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; padding-top: 7px; }
.demo-who { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-aqua); }
.demo-t { font-size: 0.875rem; color: #FFFFFF; font-weight: 600; }
.demo-prompt { min-height: 46px; font-size: 0.8125rem; line-height: 1.5; color: rgba(245,246,252,0.88); background: rgba(255,255,255,0.04); border: 1px solid rgba(245,246,252,0.08); border-radius: 10px; padding: 8px 12px; }
.demo-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--cyan-aqua); opacity: 0; }
.demo-step.is-active .demo-caret { animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 1; } }
.demo-draft { position: relative; min-height: 38px; }
.demo-skel { display: block; height: 7px; border-radius: 4px; margin: 5px 0; width: 100%; background: rgba(245,246,252,0.08); overflow: hidden; position: relative; transition: opacity 0.3s; }
.demo-skel.short { width: 60%; }
.demo-step.is-active .demo-skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(55,255,183,0.55), transparent); animation: shimmer 1.1s ease-in-out infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.demo-draft .demo-d { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; }
.demo-step.is-done .demo-skel { opacity: 0; }
.demo-step.is-done .demo-draft .demo-d { opacity: 1; }
.demo-d { font-size: 0.8125rem; line-height: 1.5; color: rgba(245,246,252,0.78); }
.demo-checks { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.demo-checks li { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: rgba(245,246,252,0.5); transition: color 0.3s; }
.demo-tick { width: 15px; height: 15px; padding: 2px; border-radius: 50%; border: 1.5px solid rgba(245,246,252,0.2); color: transparent; stroke-width: 3; transition: all 0.3s; flex-shrink: 0; }
.demo-checks li.is-on { color: rgba(245,246,252,0.92); }
.demo-checks li.is-on .demo-tick { border-color: var(--cyan-aqua); background: var(--cyan-aqua); color: var(--cyan-black); }
.demo-final { display: flex; flex-direction: column; gap: 8px; }
.demo-final img { width: 210px; height: auto; opacity: 0.25; transform: scale(0.96); transform-origin: left center; transition: opacity 0.4s, transform 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.ai-demo.is-final .demo-final img { opacity: 1; transform: none; }

/* ---------- Shared panel pieces ---------- */
.ai-panel .section-head + * { margin-top: 56px; }
.ai-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px; background: var(--surface-dim); border: 1px solid var(--border-dim); transition: border-color 0.3s, transform 0.3s; }
.ai-card:hover { border-color: rgba(55,255,183,0.25); }
.ai-card p { font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.7; }
.ai-card-title { font-family: var(--font-title); font-size: 1.375rem; font-weight: 400; color: #FFFFFF; }
.ai-chips { margin-top: 4px; }
.ai-emphasis { color: #FFFFFF !important; font-family: var(--font-title); font-size: 1.0625rem !important; padding-left: 14px; border-left: 2px solid var(--cyan-aqua); }
.ai-step-icon { width: 24px; height: 24px; }

/* ---------- Our position ---------- */
.ai-position { max-width: 900px; }
.ai-display { font-family: var(--font-title); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.1; color: #FFFFFF; }
.ai-display em { font-style: normal; color: var(--cyan-aqua); }
.ai-position-sub { margin-top: 22px; font-size: clamp(1.0625rem, 1.6vw, 1.3rem); color: var(--ink-muted); line-height: 1.65; max-width: 760px; }
.ai-flow { margin-top: 64px; display: grid; grid-template-columns: 1fr 64px 1.3fr 64px 1fr; align-items: center; }
.flow-node { text-align: center; padding: 30px 22px; border-radius: 20px; background: var(--surface-dim); border: 1px solid var(--border-dim); }
.flow-node.is-ai { position: relative; padding: 36px 24px; background: linear-gradient(160deg, rgba(55,255,183,0.1), rgba(91,140,255,0.08)); border-color: rgba(55,255,183,0.3); box-shadow: 0 20px 60px rgba(55,255,183,0.08); }
.flow-orb { position: relative; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; border: 1.5px solid rgba(245,246,252,0.25); }
.flow-icon { width: 28px; height: 28px; }
.is-ai .flow-orb { color: var(--cyan-aqua); border-color: transparent; }
.is-ai .flow-orb::before {
  content: ''; position: absolute; inset: -2px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from var(--spin), #37FFB7, #5B8CFF, transparent 70%, #37FFB7);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-angle 3.5s linear infinite;
}
.is-ai .flow-orb::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: radial-gradient(circle, rgba(55,255,183,0.28), transparent 70%); animation: orb-breathe 3s ease-in-out infinite; }
@keyframes orb-breathe { 50% { transform: scale(1.25); opacity: 0.5; } }
.flow-who { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan-aqua); margin-bottom: 6px; }
.flow-t { font-family: var(--font-title); font-size: 1.125rem; color: #FFFFFF; line-height: 1.35; }
.flow-items { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.flow-items li { font-size: 0.75rem; font-weight: 600; color: rgba(245,246,252,0.85); padding: 5px 11px; border-radius: 9999px; border: 1px solid rgba(55,255,183,0.25); background: rgba(4,8,21,0.4); }
.flow-link { position: relative; height: 2px; margin: 0 8px; background: rgba(245,246,252,0.1); overflow: hidden; border-radius: 2px; }
.flow-link i { position: absolute; top: 0; bottom: 0; width: 45%; background: linear-gradient(90deg, transparent, #37FFB7, transparent); animation: flow-x 1.8s linear infinite; }
@keyframes flow-x { from { left: -45%; } to { left: 100%; } }
.ai-quote { margin: 72px 0 0; padding: 4px 0 4px 28px; max-width: 860px; border-left: 3px solid; border-image: linear-gradient(180deg, #37FFB7, #5B8CFF) 1; }
.ai-quote p { font-family: var(--font-title); font-size: clamp(1.35rem, 2.8vw, 2rem); line-height: 1.35; color: #FFFFFF; }

/* ---------- The four controls ---------- */
.ai-journey { display: grid; grid-template-columns: minmax(300px, 0.9fr) 1.1fr; gap: 72px; align-items: start; }
.ai-ring-wrap { position: sticky; top: 150px; }
.ai-ring { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1; margin: 30px auto 0; }
.ai-ring > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ring-track { fill: none; stroke: rgba(245,246,252,0.07); stroke-width: 12; }
.ring-inner { fill: none; stroke: rgba(245,246,252,0.12); stroke-width: 1; stroke-dasharray: 2 7; }
.ring-progress {
  fill: none; stroke: url(#ring-grad); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 0 1000;
  transform: rotate(-90deg); transform-box: view-box; transform-origin: 180px 180px;
  filter: drop-shadow(0 0 10px rgba(55,255,183,0.45));
}
.ring-gate { fill: #070c1c; stroke: rgba(245,246,252,0.25); stroke-width: 2; transition: fill 0.35s, stroke 0.35s; }
.ring-gate.is-on { fill: #37FFB7; stroke: #37FFB7; }
.ring-label { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; fill: rgba(245,246,252,0.35); transition: fill 0.35s; }
.ring-label.is-on { fill: rgba(245,246,252,0.75); }
.ring-label.is-current { fill: #37FFB7; }
.ring-head { fill: #FFFFFF; filter: drop-shadow(0 0 8px #37FFB7) drop-shadow(0 0 3px #37FFB7); transition: opacity 0.2s; }
.ai-ring-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; pointer-events: none; }
.ring-icon-svg { width: 46px; height: 46px; color: var(--cyan-aqua); }
.ai-ring-count { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; color: rgba(245,246,252,0.55); margin-top: 6px; }
.ai-ring-name { font-family: var(--font-title); font-size: clamp(1.5rem, 2.6vw, 2rem); color: #FFFFFF; }
.ai-ring.swap .ai-ring-centre > * { animation: ai-rise 0.45s cubic-bezier(0.22,1,0.36,1) both; }
.ai-steps { list-style: none; margin: 0; padding: 0; }
.ai-step-item { min-height: clamp(280px, 38vh, 400px); display: flex; flex-direction: column; justify-content: center; padding: 24px 0; opacity: 0.35; transition: opacity 0.45s ease; scroll-margin-top: 130px; }
.ai-step-item.is-active { opacity: 1; }
.ai-step-top { display: flex; align-items: center; gap: 14px; }
.ai-step-badge { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--cyan-aqua); border: 1.5px solid rgba(55,255,183,0.45); background: rgba(55,255,183,0.06); }
.ai-step-no { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-aqua); }
.ai-step-title { font-family: var(--font-title); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: #FFFFFF; line-height: 1.2; margin: 20px 0 14px; }
.ai-step-item p { font-size: 1rem; color: var(--ink-muted); line-height: 1.75; max-width: 560px; }
.ai-step-item p + p { margin-top: 12px; }

/* ---------- In practice ---------- */
.ai-practice { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ai-visual { position: relative; height: 210px; border-radius: 14px; overflow: hidden; margin-bottom: 10px; border: 1px solid rgba(245,246,252,0.08); background: radial-gradient(ellipse at 50% 50%, rgba(17,48,171,0.25), transparent 70%), #050a18; }
.ai-radar { display: grid; place-items: center; }
.radar-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(55,255,183,0.16); transform: translate(-50%, -50%); }
.radar-ring.r1 { width: 70px; height: 70px; } .radar-ring.r2 { width: 140px; height: 140px; } .radar-ring.r3 { width: 210px; height: 210px; }
.radar-sweep { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(55,255,183,0.4), rgba(55,255,183,0) 22%, transparent 100%); animation: radar 4.2s linear infinite; }
@keyframes radar { to { transform: rotate(360deg); } }
.radar-blip { position: absolute; left: var(--x); top: var(--y); width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #37FFB7; box-shadow: 0 0 12px #37FFB7; opacity: 0; animation: blip 4.2s ease-out infinite; animation-delay: var(--d); }
@keyframes blip { 0% { opacity: 0; transform: scale(0.4); } 8% { opacity: 1; transform: scale(1.3); } 40% { opacity: 0.7; transform: scale(1); } 70%, 100% { opacity: 0; } }
.radar-core { position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #050a18; border: 1.5px solid rgba(55,255,183,0.55); box-shadow: 0 0 24px rgba(55,255,183,0.25); }
.radar-icon { width: 24px; height: 24px; color: var(--cyan-aqua); }
.ai-queue { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 0 22px; }
.q-row { display: grid; grid-template-columns: 10px 1fr 104px; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,0.035); border: 1px solid rgba(245,246,252,0.06); }
.q-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(245,246,252,0.25); }
.q-lines { display: flex; flex-direction: column; gap: 6px; }
.q-lines i { display: block; height: 6px; border-radius: 3px; background: rgba(245,246,252,0.1); }
.q-lines i.short { width: 55%; }
.q-status { position: relative; height: 24px; }
.q-status b { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 9999px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.02em; opacity: 0; animation: 6.6s infinite; animation-delay: var(--d); }
.q-status .s-new  { color: rgba(245,246,252,0.8); background: rgba(245,246,252,0.08); animation-name: st-1; }
.q-status .s-prog { color: #9DB8FF; background: rgba(91,140,255,0.16); animation-name: st-2; }
.q-status .s-done { color: var(--cyan-black); background: var(--cyan-aqua); animation-name: st-3; }
@keyframes st-1 { 0%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes st-2 { 0%, 32% { opacity: 0; } 36%, 62% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes st-3 { 0%, 64% { opacity: 0; } 68%, 97% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- The label: anatomy ---------- */
.ai-anatomy { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.ai-anatomy-badge { position: relative; padding: 76px 40px; border-radius: 24px; border: 1px solid var(--border-dim); background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(55,255,183,0.12), transparent 70%), #050a18; }
.ai-anatomy-badge::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0 70%, rgba(55,255,183,0.7) 82%, rgba(91,140,255,0.7) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-angle 9s linear infinite;
}
.ai-anatomy-frame { position: relative; }
.ai-anatomy-frame img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.5)); }
.ai-region { position: absolute; left: var(--l); width: var(--w); top: var(--t); height: var(--h); border-radius: 10px; border: 1.5px solid transparent; transition: border-color 0.25s, background 0.25s, box-shadow 0.25s; pointer-events: none; }
.ai-region.is-active { border-color: var(--cyan-aqua); background: rgba(55,255,183,0.08); box-shadow: 0 0 24px rgba(55,255,183,0.35); }
.ai-hotspot {
  position: absolute; left: var(--x); width: 28px; height: 28px; margin-left: -14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; color: var(--cyan-black); background: var(--cyan-aqua);
  box-shadow: 0 0 0 0 rgba(55,255,183,0.55); animation: hotspot 2.6s ease-out infinite; transition: transform 0.25s;
}
.ai-hotspot.top { bottom: calc(100% + 18px); }
.ai-hotspot.bottom { top: calc(100% + 18px); }
.ai-hotspot::after { content: ''; position: absolute; left: 50%; width: 1px; height: 14px; background: rgba(55,255,183,0.6); }
.ai-hotspot.top::after { top: 100%; }
.ai-hotspot.bottom::after { bottom: 100%; }
.ai-hotspot:nth-of-type(2) { animation-delay: 0.4s; } .ai-hotspot:nth-of-type(3) { animation-delay: 0.8s; }
.ai-hotspot.is-active { transform: scale(1.18); }
@keyframes hotspot { 0% { box-shadow: 0 0 0 0 rgba(55,255,183,0.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(55,255,183,0); } }
.ai-anatomy-parts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ai-part { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 18px 18px; border-radius: 14px; border: 1px solid transparent; outline: none; cursor: default; transition: background 0.25s, border-color 0.25s; }
.ai-part.is-active, .ai-part:focus-visible { background: rgba(55,255,183,0.06); border-color: rgba(55,255,183,0.25); }
.ai-part:focus-visible { box-shadow: 0 0 0 2px var(--cyan-aqua); }
.ai-part-no { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.875rem; color: var(--cyan-aqua); border: 1.5px solid var(--cyan-aqua); transition: background 0.25s, color 0.25s; }
.ai-part.is-active .ai-part-no { background: var(--cyan-aqua); color: var(--cyan-black); }
.ai-part h3 { font-family: var(--font-title); font-size: 1.0625rem; font-weight: 400; color: #FFFFFF; margin-bottom: 4px; }
.ai-part p { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.6; }

/* ---------- Responsible use ---------- */
.ai-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ai-card-plain { padding: 36px; gap: 16px; scroll-margin-top: 130px; }
.ai-card-badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--cyan-aqua); background: linear-gradient(145deg, rgba(55,255,183,0.16), rgba(91,140,255,0.12)); border: 1px solid rgba(55,255,183,0.25); }
.ai-card-plain p + p { margin-top: -2px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ai-hero { padding-top: 124px; }
  .ai-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .ai-commitments { margin-top: 48px; padding-bottom: 80px; }
  .ai-flow { grid-template-columns: 1fr; gap: 0; max-width: 460px; }
  .flow-link { height: 36px; width: 2px; margin: 0 auto; }
  .flow-link i { width: 100%; height: 45%; animation-name: flow-y; }
  @keyframes flow-y { from { top: -45%; } to { top: 100%; } }
  .ai-journey { grid-template-columns: 1fr; gap: 0; }
  .ai-ring-wrap { display: none; }
  .ai-step-item { min-height: 0; opacity: 1; padding: 28px 0; border-top: 1px solid var(--border-dim); }
  .ai-practice, .ai-duo, .ai-anatomy { grid-template-columns: 1fr; }
  .ai-anatomy-badge { padding: 64px 20px; }
}
@media (max-width: 560px) {
  .ai-demo-steps { padding: 16px; }
  .ai-card, .ai-card-plain { padding: 24px 20px; }
  .ai-queue { padding: 0 14px; }
  .q-row { grid-template-columns: 8px 1fr 92px; gap: 10px; }
}

/* ---------- Reduced motion: everything settles into its final, readable state ---------- */
@media (prefers-reduced-motion: reduce) {
  .ai-demo-card::before, .is-ai .flow-orb::before, .is-ai .flow-orb::after, .flow-link i,
  .radar-sweep, .radar-blip, .ai-hotspot, .ai-anatomy-badge::before, .demo-skel::after { animation: none !important; }
  .ai-commitments li { animation: none; }
  .radar-blip { opacity: 0.8; }
  .q-status b { animation: none; opacity: 0; }
  .q-status .s-done { opacity: 1; }
  .ai-step-item { opacity: 1; }
  .ai-ring.swap .ai-ring-centre > * { animation: none; }
}

/* Demo card header on narrow phones */
@media (max-width: 480px) {
  .ai-demo-dots { display: none; }
  .ai-demo-title { white-space: nowrap; }
  .ai-demo-caption { font-size: 0.625rem; padding: 3px 8px; white-space: nowrap; }
  .ai-demo-head { padding: 12px 14px; gap: 8px; }
}
