/* Sage page. Shares the Chat page grid, hero, buttons, results panel, and FAQ bubbles. */
.sg-hero-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(145deg,#ff94db,#ff8a3d); color: #fff; box-shadow: inset 0 1px 0 #ffffff59; }
.sg-hero-mark svg { width: 12px; height: 12px; }

/* ---------- Hero demo ---------- */
.sg-console { margin-top: 64px; }
.sg-console-tabs.rc-feature-tabs { grid-template-columns: 76px repeat(3,minmax(0,210px)) 26px; }
.sg-console-tabs button img { flex: none; width: 16px; height: 16px; object-fit: contain; }
.sg-console .lead-browser-window > [data-sage-panel] { position: relative; grid-area: 3 / 1; background: #111114; }
.sg-console .sg-panel-entering { z-index: 1; }
.sg-panel:focus-visible { outline: 2px solid #ba82ed; outline-offset: -3px; }
.sg-stage { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,1fr); height: 470px; color: #edeef0; }
.sg-thread { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid #2a2930; }
.sg-thread-head,.sg-trace-head { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 22px; border-bottom: 1px solid #2a2930; }
.sg-thread-head img { flex: none; width: 20px; height: 20px; object-fit: contain; }
.sg-thread-head b,.sg-trace-head b { display: block; font-size: 14px; font-weight: 500; }
.sg-thread-head small,.sg-trace-head small { display: block; color: #8d8b97; font-size: 12px; }
.sg-live { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 4px 10px; border-radius: 99px; background: #2a1f33; color: #e2c4ff; font-size: 12px; white-space: nowrap; }
.sg-live i { width: 6px; height: 6px; border-radius: 50%; background: #c58bff; box-shadow: 0 0 0 0 #c58bff80; animation: sg-ping 1.8s ease-out infinite; }
.sg-messages { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 26px 28px; overflow: hidden; }
.sg-message { max-width: 74%; padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.sg-message-in { align-self: flex-start; border-bottom-left-radius: 4px; background: #26272c; }
.sg-message-out { align-self: flex-end; border-bottom-right-radius: 4px; background: linear-gradient(135deg,#5a2c87,#3f1f66); }
.sg-message-from { display: block; margin-bottom: 3px; color: #e7c9ff; font-size: 11px; font-weight: 600; letter-spacing: .2px; }
.sg-message-in .sg-wave { margin-bottom: 8px; }
.sg-typing { align-self: flex-end; display: flex; align-items: center; gap: 8px; color: #a5a2b0; font-size: 12px; }
.sg-typing span { letter-spacing: 2px; animation: sg-blink 1.2s ease-in-out infinite; }
.sg-trace { display: flex; flex-direction: column; min-width: 0; background: radial-gradient(ellipse at 100% 0,#2c1840 0%,transparent 60%),#151519; }
.sg-orb { flex: none; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%,#fff 0%,#ffb3e6 18%,#c062ff 52%,#5b22a8 100%); box-shadow: 0 0 18px #b45cff80; animation: sg-breathe 3.2s ease-in-out infinite; }
.sg-trace ol { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 18px 18px 18px 18px; list-style: none; }
.sg-trace-step { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 9px 10px; border-radius: 10px; }
.sg-trace-step:not(:last-child)::after { content: ''; position: absolute; left: 23px; top: 38px; bottom: -8px; width: 1px; background: #34323b; }
.sg-trace-step i { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: #26252c; color: #d8c2f2; }
.sg-trace-step b { display: block; font-size: 13px; font-weight: 500; line-height: 1.4; }
.sg-trace-step small { display: block; color: #8d8b97; font-size: 12px; line-height: 1.45; }
.sg-trace-step.is-current { background: #ffffff08; }
.sg-trace-step.is-current i { color: #fff; background: #6c35a3; box-shadow: 0 0 0 4px #6c35a333; }
.sg-kind-respond i { background: #1d3a2b; color: #83e3a9; }
.sg-kind-handoff i { background: #3d2b16; color: #ffc77a; }
.sg-kind-check i { background: #20304a; color: #9cc3ff; }
.sg-wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.sg-wave i { display: block; flex: none; width: 3px; height: 100%; border-radius: 3px; background: currentColor; opacity: .75; transform: scaleY(calc(.25 + .75 * var(--level,.5))); animation: sg-wave 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -97ms); }
.sg-wave i:nth-child(3n) { --level: .9; }.sg-wave i:nth-child(3n+1) { --level: .45; }.sg-wave i:nth-child(4n+2) { --level: .7; }

/* ---------- How Sage works ---------- */
.sg-how { position: relative; isolation: isolate; padding: 112px 0 104px; overflow: hidden; background: #0b0c0d; color: #eee; }
.sg-how-glow { position: absolute; z-index: -1; left: 50%; top: -240px; width: 900px; height: 620px; transform: translateX(-50%); background: radial-gradient(ellipse,#7a2fc455 0%,#ff7ad222 38%,transparent 70%); filter: blur(10px); animation: sg-glow 9s ease-in-out infinite alternate; pointer-events: none; }
.sg-how .rc-eyebrow { color: #bf8de0; }
.sg-how-heading { text-align: center; }
.sg-how-heading > p { max-width: 600px; margin-inline: auto; color: #999; }
.sg-pipeline { position: relative; margin-top: 64px; padding: 34px 34px 64px; border: 1px solid #ffffff0d; border-radius: 22px; background: radial-gradient(ellipse at top,#16171a,#0e0f10); }
.sg-track { position: relative; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); }
.sg-track-line { position: absolute; top: 25px; left: calc(100% / 12); right: calc(100% / 12); height: 2px; border-radius: 2px; background: #26272b; overflow: hidden; }
.sg-track-fill { position: absolute; inset: 0; background: linear-gradient(90deg,#b46cf0,#ff8fd8); transform-origin: left center; transform: scaleX(0); box-shadow: 0 0 12px #c47cff; }
.sg-track button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 6px; border: 0; background: none; color: #8f8d98; text-align: center; transition: color 200ms ease; }
.sg-node { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #2c2d32; border-radius: 16px; background: #151619; color: #9d9aa7; transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease, box-shadow 300ms ease, transform 300ms var(--ruut-ease-out); }
.sg-node svg { width: 20px; height: 20px; }
.sg-node-label { display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 500; line-height: 1.3; }
.sg-node-label small { color: #5f5d68; font-size: 11px; font-weight: 600; letter-spacing: .6px; }
.sg-track button.is-past .sg-node { border-color: #5b3c7a; color: #d4b3f3; }
.sg-track button[aria-selected="true"] { color: #fff; }
.sg-track button[aria-selected="true"] .sg-node { border-color: transparent; background: linear-gradient(145deg,#b46cf0,#6c2db0); color: #fff; box-shadow: 0 0 0 6px #8b46d02e,0 10px 30px #8b46d066; transform: translateY(-2px); }
.sg-track button:focus-visible { outline: none; }
.sg-track button:focus-visible .sg-node { outline: 2px solid #ba82ed; outline-offset: 4px; }
.sg-stage-panels { display: grid; margin-top: 46px; }
.sg-stage-panel { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); align-items: center; gap: 56px; }
.sg-stage-copy { max-width: 470px; padding-left: 10px; }
.sg-stage-number { color: #bf8de0; font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.ruut-chat-page .sg-stage-copy h3 { margin: 12px 0 0; color: #f2f2f2; font-size: 34px; font-weight: 500; line-height: 1.15; letter-spacing: -1.1px; }
.sg-stage-copy p { margin-top: 16px; color: #a3a3a3; font-size: 16px; line-height: 1.65; }
.sg-stage-copy ul { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.sg-stage-copy li { display: flex; align-items: center; gap: 10px; color: #d6d6d6; font-size: 14px; }
.sg-stage-copy li::before { content: ''; flex: none; width: 16px; height: 16px; border-radius: 50%; background: #8b46d033 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m5 8.2 2 2 4-4.4' fill='none' stroke='%23d9b8ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.sg-stage-art { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 330px; padding: 28px; border-radius: 18px; background: radial-gradient(ellipse at 70% 20%,#2a1840 0%,transparent 60%),#121316; overflow: hidden; }
.sg-stage-art::before { content: ''; position: absolute; z-index: -1; inset: 0; background: url('/theme-assets/github-1-a17babd1cf4fdb2d10437f85aca5077f36e10c69/images/chat/original/dot-grid.svg') left top/24px; opacity: .06; filter: invert(1); mask-image: radial-gradient(ellipse,#000,transparent 75%); }
/* Hidden steps keep their space, so the section stays the height of the tallest step. */
.sg-stage-panels > .sg-stage-panel[hidden] { display: grid !important; visibility: hidden; }
.sg-pipeline-playback { position: absolute; bottom: 18px; right: 18px; min-height: 28px; padding: 4px 10px; border: 1px solid #ffffff14; border-radius: 7px; background: #ffffff08; color: #a9a6b3; font-size: 12px; }
.sg-pipeline-playback:focus-visible { outline: 2px solid #ba82ed; outline-offset: 2px; }

/* Stage illustrations */
.sg-art-card { width: 100%; max-width: 420px; padding: 20px; border: 1px solid #ffffff12; border-radius: 14px; background: #1b1c20; box-shadow: 0 20px 50px #0007; color: #e9e9ec; font-size: 14px; }
.sg-art-card > small { display: block; margin-bottom: 12px; color: #8d8b97; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.sg-art-card p { color: #e9e9ec; font-size: 15px; line-height: 1.55; }
.sg-art-listen { display: grid; grid-template-columns: auto 60px minmax(0,1fr); align-items: center; width: 100%; max-width: 540px; }
.sg-art-sources { display: grid; gap: 10px; }
.sg-art-sources span { display: flex; align-items: center; gap: 9px; padding: 8px 12px 8px 9px; border: 1px solid #ffffff12; border-radius: 10px; background: #1b1c20; color: #d8d8dc; font-size: 13px; white-space: nowrap; }
.sg-art-sources img { width: 18px; height: 18px; object-fit: contain; }
.sg-art-arrow { position: relative; height: 2px; margin: 0 8px; background: linear-gradient(90deg,#ffffff1a,#b46cf0); }
.sg-art-arrow::after { content: ''; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #e2b8ff; box-shadow: 0 0 10px #c47cff; animation: sg-travel 1.8s var(--ruut-ease-out) infinite; }
.sg-art-listen .sg-art-card { color: #c58bff; }
.sg-art-listen .sg-wave { height: 44px; gap: 4px; margin-bottom: 14px; }
.sg-art-listen .sg-wave i { width: 4px; }
.sg-art-understand mark { padding: 1px 5px; border-radius: 5px; background: #8b46d040; color: #f1dcff; }
.sg-art-understand ul,.sg-art-check ul,.sg-art-retrieve ul { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.sg-art-understand ul { grid-template-columns: 1fr 1fr; }
.sg-art-understand li { padding: 9px 11px; border-radius: 9px; background: #25262b; }
.sg-art-understand li span { display: block; color: #8d8b97; font-size: 11px; }
.sg-art-understand li b { font-size: 13px; font-weight: 500; }
.sg-art-search { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid #8b46d066; border-radius: 10px; background: #14151a; color: #c9c7d0; font-size: 13px; }
.sg-art-search svg { color: #c58bff; }
.sg-art-retrieve li { display: grid; grid-template-columns: minmax(0,1fr) 80px 36px; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; }
.sg-art-retrieve li.is-match { border-color: #8b46d055; background: #8b46d01a; }
.sg-art-retrieve li b { display: block; font-size: 13px; font-weight: 500; }
.sg-art-retrieve li small { color: #8d8b97; font-size: 11px; }
.sg-art-retrieve em { color: #a9a6b3; font-size: 12px; font-style: normal; text-align: right; }
.sg-score { display: block; height: 5px; border-radius: 5px; background: #2b2c31; overflow: hidden; }
.sg-score i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#9b5de5,#ff8fd8); }
.sg-art-tool { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; background: #25262b; }
.sg-art-tool img { width: 22px; height: 22px; }
.sg-art-tool b { display: block; font-size: 13px; font-weight: 500; }
.sg-art-tool small { color: #8d8b97; font-size: 11px; }
.sg-ok { margin-left: auto; padding: 3px 8px; border-radius: 6px; background: #1d3a2b; color: #83e3a9; font-size: 11px; font-weight: 600; }
.sg-art-act pre { margin: 12px 0 0; padding: 14px 16px; border-radius: 10px; background: #111216; color: #cfe8d9; font: 12.5px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace !important; white-space: pre-wrap; }
.sg-art-act pre code { font: inherit !important; }
.sg-art-tools { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: #8d8b97; font-size: 12px; }
.sg-art-tools img { width: 20px; height: 20px; padding: 4px; box-sizing: content-box; border-radius: 7px; background: #fff; }
.sg-art-check li { display: flex; align-items: center; gap: 10px; color: #dcdce0; font-size: 14px; }
.sg-art-check li i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #1d3a2b; color: #83e3a9; font-size: 11px; font-style: normal; }
.sg-confidence { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed #ffffff14; color: #a9a6b3; font-size: 12px; }
.sg-confidence b { color: #fff; font-size: 14px; font-weight: 600; }
.sg-art-respond { display: grid; gap: 14px; justify-items: end; width: 100%; max-width: 420px; }
.sg-art-reply { max-width: 88%; padding: 13px 16px; border-radius: 16px 16px 4px 16px; background: linear-gradient(135deg,#5a2c87,#3f1f66); box-shadow: 0 16px 40px #0006; }
.sg-art-reply p { font-size: 14px; line-height: 1.55; }
.sg-art-or { justify-self: center; color: #6d6b76; font-size: 12px; }
.sg-art-handoff { display: flex; align-items: flex-start; gap: 12px; color: #ffc77a; }
.sg-art-handoff svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.sg-art-handoff b { display: block; color: #fff; font-size: 14px; font-weight: 500; }
.sg-art-handoff small { display: block; margin-top: 3px; color: #a9a6b3; font-size: 12.5px; line-height: 1.5; }

/* ---------- Set-up ---------- */
.sg-setup { position: relative; isolation: isolate; padding: 112px 0; background: #fff; }
.sg-setup-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: center; gap: 64px; }
.sg-setup-copy > p { margin-top: 18px; color: #807489; font-size: 17px; }
.sg-setup-steps { display: grid; gap: 4px; margin: 34px 0; padding: 0; list-style: none; counter-reset: none; }
.sg-setup-steps li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid #ece8f1; }
.sg-setup-steps li:last-child { border-bottom: 1px solid #ece8f1; }
.sg-setup-number { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; background: #f4ecfb; color: #7a3fb0; font-size: 13px; font-weight: 600; }
.sg-setup-steps b { display: block; font-size: 15px; font-weight: 600; }
.sg-setup-steps small { display: block; margin-top: 3px; color: #807489; font-size: 14px; line-height: 1.55; }
.sg-setup-visual { display: grid; place-items: center; min-height: 520px; padding: 56px 40px; border-radius: 26px; background: url('/theme-assets/github-1-a17babd1cf4fdb2d10437f85aca5077f36e10c69/images/chat/feature-cloud-hills.png') center 70%/cover no-repeat; overflow: hidden; }
.sg-setup-window { width: 100%; border-bottom: 1px solid #484750; border-radius: 16px; box-shadow: 0 30px 80px #2a1a4455; }
.sg-setup-window > img { display: block; width: 100%; height: auto; }

/* ---------- Capabilities ---------- */
.sg-capabilities { background: #fff; padding-top: 24px; }
.sg-cap-heading { text-align: center; }
.sg-cap-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.sg-cap { --sg-tint: #f3e8fd; --sg-edge: #ead9fa; padding: 28px; border: 1px solid var(--sg-edge); border-radius: 22px; background: linear-gradient(180deg,var(--sg-tint) 0%,#fff 72%); transition: transform 600ms var(--ruut-ease-soft), box-shadow 600ms var(--ruut-ease-soft), border-color 300ms ease; }
.sg-cap-channels { --sg-tint: #e6f0fd; --sg-edge: #d8e6fa; }
.sg-cap-language { --sg-tint: #e2f6ef; --sg-edge: #d0eee3; }
.sg-cap-grounded { --sg-tint: #fdeee5; --sg-edge: #f8dfd0; }
.sg-cap-handoff { --sg-tint: #fdf3df; --sg-edge: #f6e6c4; }
.sg-cap-rules { --sg-tint: #e3f4fa; --sg-edge: #d1ebf4; }
.sg-cap-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(145deg,#be7aef,#7627b4); color: #fff; box-shadow: inset 0 1px 0 #ffffff4d,0 6px 14px #7627b433; }
.sg-cap-icon svg { width: 20px; height: 20px; }
.sg-cap-channels .sg-cap-icon { background: linear-gradient(145deg,#6caff0,#3265bb); box-shadow: inset 0 1px 0 #ffffff4d,0 6px 14px #3265bb33; }
.sg-cap-language .sg-cap-icon { background: linear-gradient(145deg,#58c9a7,#259777); box-shadow: inset 0 1px 0 #ffffff4d,0 6px 14px #25977733; }
.sg-cap-grounded .sg-cap-icon { background: linear-gradient(145deg,#f59b6c,#d55e36); box-shadow: inset 0 1px 0 #ffffff4d,0 6px 14px #d55e3633; }
.sg-cap-handoff .sg-cap-icon { background: linear-gradient(145deg,#ffc95c,#e08a12); box-shadow: inset 0 1px 0 #ffffff4d,0 6px 14px #e08a1233; }
.sg-cap-rules .sg-cap-icon { background: linear-gradient(145deg,#66c2e5,#2d8cac); box-shadow: inset 0 1px 0 #ffffff4d,0 6px 14px #2d8cac33; }
.ruut-chat-page .sg-cap h3 { margin-top: 22px; font-size: 21px; font-weight: 500; line-height: 1.3; letter-spacing: -.5px; }
.sg-cap p { margin-top: 10px; color: #807489; font-size: 15px; line-height: 1.6; }
.sg-faq { padding-top: 96px; }

@keyframes sg-ping { 70% { box-shadow: 0 0 0 7px #c58bff00; } 100% { box-shadow: 0 0 0 0 #c58bff00; } }
@keyframes sg-blink { 50% { opacity: .35; } }
@keyframes sg-breathe { 50% { transform: scale(1.08); box-shadow: 0 0 26px #b45cffb0; } }
@keyframes sg-wave { 50% { transform: scaleY(calc(.15 + .85 * (1 - var(--level,.5)))); } }
@keyframes sg-glow { to { transform: translateX(-46%) scale(1.08); opacity: .8; } }
@keyframes sg-travel { from { left: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }

@media (hover: hover) and (pointer: fine) {
  .sg-track button:not([aria-selected="true"]):hover { color: #d6d4dc; }
  .sg-track button:not([aria-selected="true"]):hover .sg-node { border-color: #4a3a5c; color: #e0c8f7; }
  .sg-pipeline-playback:hover { color: #fff; }
  .sg-cap:hover { transform: translateY(-6px); box-shadow: 0 22px 44px #3d1f6614; }
}
@media (max-width: 1100px) {
  .sg-console-tabs.rc-feature-tabs { grid-template-columns: 44px repeat(3,minmax(0,1fr)); }
  .sg-stage { grid-template-columns: minmax(0,1.2fr) minmax(260px,1fr); }
  .sg-stage-panel { gap: 32px; }
  .sg-setup-layout { grid-template-columns: 1fr; gap: 48px; }
  .sg-setup-copy { max-width: 640px; }
  .sg-cap-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .sg-console { margin-top: 36px; }
  .sg-stage { grid-template-columns: 1fr; grid-template-rows: 330px 300px; height: auto; }
  .sg-thread { border-right: 0; border-bottom: 1px solid #2a2930; }
  .sg-thread-head,.sg-trace-head { min-height: 52px; padding: 10px 14px; }
  .sg-live { padding: 3px 8px; font-size: 10px; }
  .sg-messages { gap: 10px; padding: 16px 14px; }
  .sg-message { max-width: 88%; padding: 9px 12px; font-size: 13px; }
  .sg-trace ol { gap: 2px; padding: 10px; }
  .sg-trace-step { padding: 6px 8px; }
  .sg-trace-step:not(:last-child)::after { top: 34px; left: 21px; }
  .sg-trace-step b { font-size: 12px; }
  .sg-trace-step small { font-size: 11px; }
  .sg-how { padding: 72px 0; }
  .sg-pipeline { margin-top: 40px; padding: 24px 14px 60px; }
  .sg-track { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .sg-node { width: 40px; height: 40px; border-radius: 12px; }
  .sg-node svg { width: 17px; height: 17px; }
  .sg-track-line { top: 19px; }
  .sg-node-label { display: none; }
  .sg-pipeline-playback { bottom: 14px; right: 14px; }
  .sg-stage-panels { margin-top: 28px; }
  .sg-stage-panel { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .sg-stage-copy { padding-left: 0; }
  .ruut-chat-page .sg-stage-copy h3 { font-size: 27px; }
  .sg-stage-copy p { font-size: 15px; }
  .sg-stage-art { min-height: 300px; padding: 18px 12px; }
  .sg-art-listen { grid-template-columns: 1fr; gap: 0; justify-items: center; }
  .sg-art-sources { grid-template-columns: 1fr 1fr; width: 100%; }
  .sg-art-arrow { width: 2px; height: 34px; margin: 8px 0; background: linear-gradient(#ffffff1a,#b46cf0); }
  .sg-art-arrow::after { display: none; }
  .sg-art-retrieve li { grid-template-columns: minmax(0,1fr) 50px 32px; gap: 8px; }
  .sg-setup { padding: 72px 0; }
  .sg-setup-copy > p { font-size: 15px; }
  .sg-setup-visual { min-height: 0; padding: 32px 14px; border-radius: 20px; }
  .sg-cap-grid { grid-template-columns: 1fr; gap: 14px; }
  .sg-cap { padding: 22px; }
  .sg-faq { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-live i,.sg-typing span,.sg-orb,.sg-wave i,.sg-how-glow,.sg-art-arrow::after { animation: none !important; }
  .sg-node,.sg-cap,.sg-track button { transition-duration: 0s; }
  .sg-cap:hover { transform: none; }
}

/* ---------- Two-tone headings ---------- */
.ruut-sage-page :is(.sg-how,.sg-setup,.sg-rows,.sg-capabilities) h2 > span { color: #9a91a5; }
.ruut-sage-page .sg-how h2 > span { color: #77757e; }

/* ---------- Floating chips around the set-up screenshot ---------- */
.sg-setup-visual { position: relative; }
.sg-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border: 1px solid #ffffffb3; border-radius: 14px; background: #ffffffd9; box-shadow: 0 12px 30px #2a1a4422; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #17121f; animation: sg-float 7s ease-in-out infinite; }
.sg-float img { flex: none; width: 18px; height: 18px; object-fit: contain; }
.sg-float b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.sg-float small { display: block; color: #6f6878; font-size: 11.5px; line-height: 1.3; }
.sg-float i { width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 3px #2fbf7126; }
.sg-float-1 { top: 22px; left: 22px; }
.sg-float-2 { top: 44%; right: 16px; animation-delay: -2.3s; }
.sg-float-3 { bottom: 24px; left: 12%; animation-delay: -4.6s; }

/* ---------- Handoff and voice rows ---------- */
.sg-rows { display: grid; gap: 40px; padding: 24px 0 72px; background: #fff; }
.sg-row { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); align-items: center; gap: 80px; }
.sg-row-reverse .sg-row-art { order: 2; }
.sg-row-copy { max-width: 520px; }
.ruut-chat-page .sg-row-copy h2 { font-size: 40px; }
.sg-row-copy > p { margin-top: 20px; color: #807489; font-size: 17px; line-height: 1.65; }
.sg-row-copy .rc-button { margin-top: 30px; }
.sg-row-art { display: grid; place-items: center; min-height: 520px; padding: 48px 32px; }
/* Slow-moving colour field behind the floating cards. */
.sg-fluid { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; background: linear-gradient(135deg,#e7cffd,#ffd9c7); }
.sg-fluid::before,.sg-fluid::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(48px); will-change: transform; }
.sg-fluid::before { width: 80%; height: 90%; left: -18%; top: -22%; background: radial-gradient(circle,#a64cf0 0%,#b46cf000 70%); animation: sg-drift-a 16s ease-in-out infinite alternate; }
.sg-fluid::after { width: 85%; height: 95%; right: -22%; bottom: -30%; background: radial-gradient(circle,#ff7a2e 0%,#ff6fc8bb 40%,#ff8fd800 72%); animation: sg-drift-b 19s ease-in-out infinite alternate; }
.sg-fluid-cool { background: linear-gradient(135deg,#d6e6ff,#efd8ff); }
.sg-fluid-cool::before { background: radial-gradient(circle,#4f93ff 0%,#7fb2ff00 70%); }
.sg-fluid-cool::after { background: radial-gradient(circle,#a64cf0 0%,#ff6fc899 42%,#ff8fd800 72%); }
.sg-handoff-card,.sg-call-card { width: 100%; max-width: 400px; padding: 20px; border: 1px solid #ffffffcc; border-radius: 20px; background: #ffffffeb; box-shadow: 0 30px 70px #3a1d6033; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: #17121f; }
.sg-handoff-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sg-handoff-from { display: inline-flex; align-items: center; gap: 8px; color: #6f6878; font-size: 12.5px; }
.sg-handoff-from .sg-orb,.sg-call-avatar .sg-orb { width: 18px; height: 18px; box-shadow: 0 0 10px #b45cff66; }
.sg-handoff-tag { padding: 3px 9px; border-radius: 99px; background: #fdf0dc; color: #a8640a; font-size: 11.5px; font-weight: 600; }
.sg-handoff-title { display: block; margin-top: 16px; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.2px; }
.sg-handoff-card p { margin-top: 8px; color: #6f6878; font-size: 13.5px; line-height: 1.55; }
.sg-handoff-card ul { display: grid; gap: 8px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed #e7e1ee; list-style: none; font-size: 13px; color: #3d3646; }
.sg-handoff-card li { display: flex; align-items: center; gap: 9px; }
.sg-handoff-card li i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #e3f6ec; color: #23985a; font-size: 10px; font-style: normal; }
.sg-handoff-actions,.sg-call-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.sg-handoff-actions span,.sg-call-actions span { padding: 8px 13px; border: 1px solid #e6e1ec; border-radius: 10px; background: #fff; font-size: 12.5px; font-weight: 500; }
.sg-handoff-actions .is-primary { border-color: #17121f; background: #17121f; color: #fff; }
.sg-call-head { display: flex; align-items: center; gap: 12px; }
.sg-call-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #f3e8fd; }
.sg-call-head b { display: block; font-size: 14px; font-weight: 600; }
.sg-call-head small { display: block; color: #6f6878; font-size: 12px; }
.sg-call-live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 3px 9px; border-radius: 99px; background: #fde7ea; color: #c4243e; font-size: 11.5px; font-weight: 600; }
.sg-call-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: sg-blink 1.4s ease-in-out infinite; }
.sg-call-card .sg-wave { height: 46px; gap: 4px; margin: 18px 0 6px; color: #9b5de5; }
.sg-call-card .sg-wave i { width: 4px; }
.sg-call-lines { display: grid; gap: 10px; margin-top: 12px; }
.sg-call-lines p { padding: 10px 12px; border-radius: 12px; background: #f5f3f8; font-size: 13.5px; line-height: 1.5; }
.sg-call-lines p.is-sage { background: #f3e8fd; }
.sg-call-lines small { display: block; margin-bottom: 2px; color: #8b8395; font-size: 11px; font-weight: 600; }
.sg-call-actions { justify-content: flex-start; }

@keyframes sg-float { 50% { transform: translateY(-8px); } }
@keyframes sg-drift-a { to { transform: translate(28%,22%) scale(1.15) rotate(20deg); } }
@keyframes sg-drift-b { to { transform: translate(-30%,-18%) scale(1.1) rotate(-15deg); } }

@media (max-width: 1100px) {
  .sg-row { grid-template-columns: 1fr; gap: 40px; }
  .sg-row-reverse .sg-row-art { order: 0; }
  .sg-float-2 { right: 10px; }
}
@media (max-width: 760px) {
  .sg-rows { gap: 56px; padding-bottom: 40px; }
  .sg-row-art { min-height: 0; padding: 36px 14px; border-radius: 22px; }
  .sg-row-copy > p { font-size: 15px; }
  .ruut-chat-page .sg-row-copy h2 { font-size: 33px; }
  .sg-float { padding: 7px 10px 7px 8px; gap: 7px; border-radius: 11px; }
  .sg-float b { font-size: 11.5px; }
  .sg-float small { display: none; }
  .sg-float-1 { top: 10px; left: 10px; }
  .sg-float-2 { display: none; }
  .sg-float-3 { bottom: 10px; left: auto; right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-float,.sg-fluid::before,.sg-fluid::after,.sg-call-live::before { animation: none !important; }
}
