/* TGI live walkthrough: animated stage, chat + log, auto-advancing tabs. Additive; remove the <link>, <script> and section to roll back. */
.sc { background: var(--bg); padding-block: 40px; }
@media (min-width: 1000px) { .sc { padding-block: 64px; } }
.sc-head { margin: 0 0 24px; }
@media (min-width: 1000px) { .sc-head { margin-bottom: 40px; } }
.sc-head h2 { font: 300 clamp(2rem, 1.2rem + 2.2vw, 3rem)/1.1 "Newsreader", Georgia, serif; letter-spacing: -0.03em; color: var(--ink); margin: 0; }
/* Fin layout: stage with the testimonial inside, tabs flush underneath */
.sc-main { display: block; }

/* stage */
/* stage: stacked on phones, 2:1 banner with testimonial on the right at desktop */
.sc-stage { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 20px; min-width: 0; padding: 24px 16px; overflow: hidden; background: #e8a23a; border: 1px solid var(--line-strong); isolation: isolate; }
.sc-art { position: absolute; left: -10%; top: -10%; width: 120%; max-width: none; height: 120%; z-index: -1; }
.sc-art path { fill: none; stroke-linecap: round; }
.sc-r1 { animation: sc-drift1 16s ease-in-out infinite alternate; }
.sc-r2 { animation: sc-drift2 20s ease-in-out infinite alternate; }
.sc-r3 { animation: sc-drift1 24s ease-in-out infinite alternate-reverse; }
@keyframes sc-drift1 { to { transform: translate(5%, 3%) rotate(2deg); } }
@keyframes sc-drift2 { to { transform: translate(-4%, 4%) rotate(-2deg); } }

@media (min-width: 1000px) { .sc-stage { display: block; aspect-ratio: 2 / 1; min-height: 400px; padding: 32px; } }

/* chat card */
.sc-chat { position: relative; width: 100%; max-width: 420px; max-height: 300px; margin-inline: auto; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(34,23,51,.45); display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 1000px) { .sc-chat { position: absolute; left: 30%; top: 12%; transform: translateX(-50%); width: min(420px, 38%); max-width: none; max-height: 58%; margin: 0; } }
.sc-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); flex: none; }
.sc-av { width: 28px; height: 28px; border-radius: 8px; background: #151517; color: #e8c520; display: grid; place-items: center; font: 600 11px/1 var(--mono); }
.sc-bar span:last-child { margin-left: auto; color: var(--ink-3); letter-spacing: 2px; }
.sc-msgs { display: flex; flex-direction: column; gap: 10px; padding: 14px; overflow: hidden; justify-content: flex-end; min-height: 0; flex: 1; }
.sc-m { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; opacity: 0; transform: translateY(8px); animation: sc-in .35s var(--ease) forwards; }
.sc-m--bot { background: #f1f0ec; color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.sc-m--bot b { display: block; font-size: 12px; margin-bottom: 4px; }
.sc-m--me { background: #5f4a8b; color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.sc-dots { display: inline-flex; gap: 4px; padding: 12px 14px; background: #f1f0ec; border-radius: 16px; align-self: flex-start; opacity: 0; animation: sc-in .2s forwards; }
.sc-dots i { width: 6px; height: 6px; border-radius: 50%; background: #9a98a3; animation: sc-bounce 1s infinite; }
.sc-dots i:nth-child(2) { animation-delay: .15s; } .sc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes sc-in { to { opacity: 1; transform: none; } }
@keyframes sc-bounce { 50% { transform: translateY(-4px); opacity: .5; } }

/* log */
.sc-log { position: relative; width: 100%; max-width: 420px; margin: 0 auto; padding: 10px 14px; list-style: none; background: rgba(255,255,255,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 12px; font: 400 12px/1.7 var(--mono); color: var(--ink); min-height: 4.2em; }
@media (min-width: 1000px) { .sc-log { position: absolute; left: 30%; bottom: 7%; transform: translateX(-50%); width: min(420px, 38%); max-width: none; margin: 0; } }
.sc-log li { opacity: 0; animation: sc-in .25s forwards; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-log li.cur::after { content: "_"; animation: sc-blink 1s steps(1) infinite; }
@keyframes sc-blink { 50% { opacity: 0; } }

/* tabs */
.sc-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
@media (min-width: 1000px) { .sc-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sc-tab { position: relative; display: grid; gap: 8px; align-content: start; text-align: left; padding: 24px 24px 24px 48px; background: transparent; border: 0; cursor: pointer; font: inherit; color: var(--ink); opacity: .6; transition: opacity .2s, background-color .2s; overflow: hidden; }
.sc-tab:hover { opacity: .8; }
@media (min-width: 1000px) { .sc-tab { padding-left: 56px; } }
.sc-tab i { position: absolute; left: 24px; top: 31px; width: 8px; height: 8px; background: #e8a23a; }
.sc-tab strong { font: 300 clamp(1.125rem, 1rem + .4vw, 1.375rem)/1.25 var(--font); color: var(--ink); }
.sc-tab span { font-size: 16px; line-height: 1.45; color: var(--ink-2); max-width: 26ch; }
.sc-tab[aria-selected="true"] { background: rgba(0,0,0,.03); opacity: 1; }
.sc-tab[aria-selected="true"] i { background: #d9541e; }
.sc-tab em { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: #d9541e; }
.sc-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* quote (inside the stage, like Fin's testimonial) */
.sc-quote { position: relative; margin: 0; display: grid; gap: 16px; padding: 8px 0 0; color: var(--ink); }
.sc-quote .sc-brand { font: 600 14px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; }
.sc-quote p { margin: 0; font: 400 clamp(1.125rem, 1rem + .6vw, 1.5rem)/1.2 var(--font); text-wrap: balance; }
@media (min-width: 1000px) { .sc-quote { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); width: min(30%, 360px); padding: 0; } }

@media (prefers-reduced-motion: reduce) {
  .sc-r1, .sc-r2, .sc-r3, .sc-dots i, .sc-log li.cur::after { animation: none; }
  .sc-m, .sc-log li { animation-duration: .01s; }
}
