.t3-demo {
    --demo-ink: #1c2030;
    --demo-muted: #56596a;
    --demo-purple: #5731b7;
    --demo-line: #e4e3eb;
    box-sizing: border-box;
    container: trainer-story / inline-size;
    width: 100%;
    max-width: 555px;
    min-width: 0;
    margin-inline: auto;
    border: 1px solid #dcdce7;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 42px -24px #423b6960;
    color: var(--demo-ink);
    font: 400 14px/1.4 "Inter Tight", Inter, Arial, sans-serif;
    text-align: left;
    scroll-margin-top: 100px;
}
.t3-demo *, .t3-demo *::before, .t3-demo *::after { box-sizing: border-box; }
.t3-demo p, .t3-demo h2, .t3-demo h3, .t3-demo ol, .t3-demo dl, .t3-demo dd { margin: 0; }
.t3-demo__card { min-width: 0; }
.t3-demo__head {
    position: static;
    padding: 18px 22px 15px;
    border-radius: 21px 21px 0 0;
    background: #28283c;
    color: #fff;
}
.t3-demo__masthead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.t3-demo .t3-demo__eyeline { color: var(--demo-purple); font-size: 13px; font-weight: 650; line-height: 1.35; }
.t3-demo__head .t3-demo__eyeline { color: #dfd6fa; }
.t3-demo__head h2 { margin-top: 3px; color: #fff; font-size: clamp(21px, 5.5cqi, 29px); line-height: 1.12; font-weight: 600; letter-spacing: -.026em; overflow-wrap: anywhere; }
.t3-demo__playback {
    display: none;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -6px;
    padding: 0;
    appearance: none;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.t3-demo__playback svg {
    display: block;
    width: 32px;
    height: 32px;
    padding: 6px;
    border: 1px solid #76748b;
    border-radius: 50%;
}
.t3-demo__playback:hover svg { background: #49465d; border-color: #b7adce; }
.t3-demo__playback:focus-visible { outline: 2px solid #d9ff8c; outline-offset: -2px; }
.t3-demo__playback [data-story-play-icon],
.t3-demo[data-story-paused] [data-story-pause-icon] { display: none; }
.t3-demo[data-story-paused] [data-story-play-icon] { display: block; }
.t3-demo__timeline { display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-top: 16px; }
.t3-demo__timeline [data-story-segment] { display: block; height: 3px; border-radius: 3px; background: #646176; overflow: hidden; }
.t3-demo__timeline [data-story-fill] {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #d7ff83;
    transform: scaleX(var(--story-progress, 0));
    transform-origin: left center;
}
.t3-demo__arrow { display: none; }
.t3-demo__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.t3-demo[data-story-navigation] .t3-demo__head { padding-bottom: 0; }
.t3-demo[data-story-navigation] .t3-demo__rail {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    margin-inline: -6px;
}
.t3-demo[data-story-navigation] .t3-demo__timeline { margin-top: 0; }
.t3-demo[data-story-navigation] .t3-demo__arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    appearance: none;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.t3-demo__arrow svg {
    display: block;
    width: 30px;
    height: 30px;
    padding: 5px;
    border: 1px solid #838095;
    border-radius: 50%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.t3-demo__arrow:hover svg { background: #49465d; border-color: #b7adce; }
.t3-demo__arrow:focus-visible { outline: 2px solid #d9ff8c; outline-offset: -2px; }
.t3-demo[data-story-navigation] .t3-demo__panels { touch-action: pan-y pinch-zoom; }
.t3-demo__scene { min-width: 0; padding: 17px 20px 21px; overflow-wrap: anywhere; }
.t3-demo__scene + .t3-demo__scene { border-top: 1px solid var(--demo-line); }
.t3-demo .t3-demo__stage {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: 0 0 15px;
    color: #332b4c;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -.015em;
}
.t3-demo__count {
    flex: none;
    padding: 2px 6px;
    border-radius: 5px;
    background: #f0ebfb;
    color: var(--demo-purple);
    font-size: 12px;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}
.t3-demo[data-story-ready] .t3-demo__card { display: grid; grid-template-rows: auto 1fr; }
.t3-demo[data-story-ready] .t3-demo__playback { display: inline-flex; }
.t3-demo[data-story-ready] .t3-demo__timeline { display: grid; }
.t3-demo[data-story-ready] .t3-demo__panels { display: grid; min-width: 0; }
.t3-demo[data-story-ready] .t3-demo__scene {
    grid-area: 1 / 1;
    align-self: start;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    border-top: 0;
}
.t3-demo[data-story-ready] .t3-demo__scene[data-story-current] { visibility: visible; opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: no-preference) {
    .t3-demo[data-story-transition] .t3-demo__scene {
        transition: opacity .14s ease-out, visibility 0s linear .14s;
    }
    .t3-demo[data-story-transition] .t3-demo__scene[data-story-current] {
        transition: opacity .24s ease-out .1s, visibility 0s linear;
    }
}
.t3-demo__chat { display: grid; gap: 8px; padding: 0; list-style: none; }
.t3-demo__bubble { width: fit-content; max-width: 92%; padding: 9px 13px; border-radius: 13px; }
.t3-demo__bubble--author { justify-self: end; border-bottom-right-radius: 3px; background: #efeafa; }
.t3-demo__bubble--trainer, .t3-demo__bubble--buyer { justify-self: start; border-bottom-left-radius: 3px; background: #f0f3f5; }
.t3-demo .t3-demo__speaker, .t3-demo__review dt { color: var(--demo-muted); font-weight: 650; font-size: 12px; line-height: 1.35; }
.t3-demo .t3-demo__bubble--author .t3-demo__speaker { color: #6747a5; }
.t3-demo__bubble p { padding-top: 2px; color: var(--demo-ink); font-size: 14px; line-height: 1.38; }
.t3-demo .t3-demo__objective { margin: 5px 0 16px; color: var(--demo-ink); font-size: 19px; line-height: 1.22; font-weight: 550; letter-spacing: -.015em; }
.t3-demo__route { display: grid; padding: 0; list-style: none; }
.t3-demo__route li { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; }
.t3-demo__route li + li { border-top: 1px solid var(--demo-line); }
.t3-demo__route-num { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-weight: 650; width: 25px; height: 25px; color: #4a3b6a; background: #eeebf7; font-size: 12px; }
.t3-demo__route strong { font-weight: 650; }
.t3-demo__route p { margin-top: 1px; color: var(--demo-muted); }
.t3-demo .t3-demo__voice-note {
    margin-bottom: 12px;
    color: var(--demo-muted);
    font-size: 13px;
    line-height: 1.4;
}
.t3-demo__voice-speaker {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.t3-demo__voice-speaker svg { flex: none; }
.t3-demo__review { display: grid; gap: 10px; }
.t3-demo__review > div:first-child { padding: 10px 12px; background: #f0f5e9; border-radius: 11px; }
.t3-demo__review > div:first-child dd { font-weight: 650; }
.t3-demo__review dd { margin-top: 2px; line-height: 1.36; }
.t3-demo__review > div:last-child dd { color: #503284; }
@container trainer-story (max-width: 390px) {
    .t3-demo__head { padding: 15px 15px 12px; }
    .t3-demo__timeline { margin-top: 13px; }
    .t3-demo__scene { padding: 14px; }
    .t3-demo__bubble { max-width: 96%; }
    .t3-demo .t3-demo__stage { margin-bottom: 12px; }
}

/* Reserve space for the tallest complete scene, including the translated header.
   The grid can still expand when text is enlarged or custom fonts are used. */
.t3-demo[data-story-ready] .t3-demo__card { min-block-size: calc(var(--story-height, 680px) + var(--story-nav-space, 0px)); }
@container trainer-story (min-width: 269px) { .t3-demo__card { --story-height: 632px; } }
@container trainer-story (min-width: 300px) { .t3-demo__card { --story-height: 592px; } }
@container trainer-story (min-width: 306px) { .t3-demo__card { --story-height: 578px; } }
@container trainer-story (min-width: 402px) { .t3-demo__card { --story-height: 556px; } }
@container trainer-story (min-width: 425px) { .t3-demo__card { --story-height: 536px; } }
@container trainer-story (min-width: 431px) { .t3-demo__card { --story-height: 530px; } }
@container trainer-story (min-width: 476px) { .t3-demo__card { --story-height: 516px; } }
@container trainer-story (min-width: 551px) { .t3-demo__card { --story-height: 504px; } }

/* The 44px navigation row replaces the previous progress strip and its spacing. */
.t3-demo[data-story-navigation] .t3-demo__card { --story-nav-space: 10px; }
@container trainer-story (max-width: 390px) {
    .t3-demo[data-story-navigation] .t3-demo__card { --story-nav-space: 16px; }
}
