﻿.sf-demo-tour {
    --sf-demo-bg: #f7f9fc;
    --sf-demo-surface: rgba(255, 255, 255, 0.96);
    --sf-demo-surface-soft: #eef3fb;
    --sf-demo-border: rgba(26, 35, 70, 0.1);
    --sf-demo-border-strong: rgba(26, 35, 70, 0.16);
    --sf-demo-text: #1a2346;
    --sf-demo-muted: #6d7590;
    --sf-demo-primary: #203d77;
    --sf-demo-accent: #cf4e9f;
    --sf-demo-accent-strong: #b5418a;
    --sf-demo-success: #29ad6e;
    --sf-demo-danger: #de3f45;
    --sf-demo-shadow: 0 28px 54px rgba(18, 27, 56, 0.14);
    --sf-demo-shadow-soft: 0 14px 28px rgba(18, 27, 56, 0.08);
    --sf-demo-transition-duration: 460ms;
    color: var(--sf-demo-text);
    font-size: clamp(11px, 1vw, 14px);
    margin-left: auto;
    max-width: 39rem;
    position: relative;
    width: 100%;
}

.sf-demo-tour,
.sf-demo-tour * {
    box-sizing: border-box;
}

.sf-demo-tour__shell {
    background:
        radial-gradient(circle at 85% 12%, rgba(207, 78, 159, 0.16), transparent 24%),
        radial-gradient(circle at 14% 88%, rgba(32, 61, 119, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 247, 252, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 2.1em;
    box-shadow: var(--sf-demo-shadow);
    position: relative;
    width: 100%;
}

.sf-demo-tour__controls {
    display: flex;
    gap: 0.45em;
    position: absolute;
    right: 0.95em;
    top: 0.88em;
    z-index: 5;
}

.sf-demo-tour__control {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(26, 35, 70, 0.08);
    border-radius: 999px;
    box-shadow: 0 0.8em 1.6em rgba(18, 27, 56, 0.08);
    color: var(--sf-demo-primary);
    cursor: pointer;
    display: inline-flex;
    height: 2.25em;
    justify-content: center;
    padding: 0;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    width: 2.25em;
}

.sf-demo-tour__control:hover,
.sf-demo-tour__control:focus-visible {
    border-color: rgba(207, 78, 159, 0.2);
    box-shadow: 0 1em 1.9em rgba(207, 78, 159, 0.12);
    outline: none;
    transform: translateY(-0.06em);
}

.sf-demo-tour__control span {
    font-size: 1.05em;
    font-weight: 900;
    line-height: 1;
}

.sf-demo-tour__viewport {
    padding: 0.72em;
}

.sf-demo-tour__stage {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(241, 245, 251, 0.92));
    border-radius: 1.8em;
    min-height: clamp(30.9em, 39vw, 34.1em);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.sf-demo-tour__scene {
    inset: 0;
    opacity: 0;
    padding: 0.95em 1.05em 1.05em;
    position: absolute;
    transform: translateY(1em) scale(0.975);
    transition:
        opacity var(--sf-demo-transition-duration) ease,
        transform var(--sf-demo-transition-duration) ease,
        visibility var(--sf-demo-transition-duration) ease;
    visibility: hidden;
    z-index: 0;
}

.sf-demo-tour__scene.is-current {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    z-index: 1;
}

.sf-demo-tour__panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 252, 0.98));
    border: 1px solid var(--sf-demo-border);
    border-radius: 1.55em;
    box-shadow: var(--sf-demo-shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.58em;
    height: 100%;
    overflow: hidden;
    padding: 0.98em 1.04em 0.92em;
    position: relative;
}

.sf-demo-tour__panel--invoice {
    background:
        radial-gradient(circle at 82% 14%, rgba(255, 200, 86, 0.16), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 248, 252, 0.99));
    gap: 0.58em;
}

.sf-demo-tour__kicker,
.sf-demo-tour__field label,
.sf-demo-tour__config-item label,
.sf-demo-tour__invoice-meta span,
.sf-demo-tour__invoice-head span,
.sf-demo-tour__invoice-totals span {
    color: var(--sf-demo-muted);
    font-size: 0.66em;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sf-demo-tour__title {
    color: var(--sf-demo-text);
    font-size: 1.48em;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.95;
    margin: 0;
}

.sf-demo-tour__title--success {
    font-size: 1.64em;
}

.sf-demo-tour__copy {
    color: var(--sf-demo-muted);
    font-size: 0.8em;
    font-weight: 700;
    margin: 0;
}

.sf-demo-tour__button {
    align-items: center;
    background: linear-gradient(135deg, var(--sf-demo-accent), #ef6abb);
    border-radius: 1em;
    box-shadow: 0 1em 1.6em rgba(207, 78, 159, 0.18);
    color: #ffffff;
    display: inline-flex;
    font-size: 0.8em;
    font-weight: 900;
    justify-content: center;
    letter-spacing: 0.04em;
    min-height: 3em;
    min-width: 6.5em;
    padding: 0 1.15em;
    position: relative;
    text-transform: uppercase;
}

.sf-demo-tour__button--ok {
    background: linear-gradient(135deg, var(--sf-demo-primary), #2f63c7);
    box-shadow: 0 1em 1.6em rgba(32, 61, 119, 0.18);
}

.sf-demo-tour__button::after,
.sf-demo-tour__plan-option--selected::after {
    border: 1px solid rgba(207, 78, 159, 0.24);
    border-radius: 999px;
    content: "";
    opacity: 0;
    position: absolute;
}

.sf-demo-tour__button::after {
    inset: -0.28em;
    transform: scale(0.84);
}

.sf-demo-tour__success-chip {
    align-items: center;
    background: rgba(41, 173, 110, 0.14);
    border: 1px solid rgba(41, 173, 110, 0.18);
    border-radius: 999px;
    color: var(--sf-demo-success);
    display: inline-flex;
    font-size: 0.72em;
    font-weight: 900;
    min-height: 2.3em;
    opacity: 0;
    padding: 0 0.9em;
    text-transform: uppercase;
    transform: translateY(0.45em);
}

.sf-demo-tour__plan-stack {
    display: grid;
    gap: 0.62em;
    margin-top: 0.12em;
    width: 100%;
}

.sf-demo-tour__plan-option {
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--sf-demo-border-strong);
    border-radius: 1.08em;
    box-shadow: 0 0.8em 1.35em rgba(18, 27, 56, 0.06);
    display: grid;
    gap: 0.85em;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 3.72em;
    padding: 0.72em 0.98em;
    position: relative;
}

.sf-demo-tour__plan-option--selected {
    border-color: rgba(207, 78, 159, 0.24);
}

.sf-demo-tour__plan-option--selected::after {
    inset: -0.14em;
}

.sf-demo-tour__plan-name {
    color: var(--sf-demo-text);
    font-size: 0.9em;
    font-weight: 900;
    min-width: 0;
}

.sf-demo-tour__plan-meta {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    font-size: 0.72em;
    font-weight: 800;
    gap: 0.12em;
    line-height: 1.15;
    text-align: right;
}

.sf-demo-tour__plan-meta strong {
    color: var(--sf-demo-primary);
    font-size: 1em;
    font-weight: 900;
}

.sf-demo-tour__plan-meta span {
    color: var(--sf-demo-muted);
}

.sf-demo-tour__plan-badge {
    color: var(--sf-demo-accent-strong);
    display: none;
    font-size: 0.62em;
    font-weight: 900;
    letter-spacing: 0.08em;
    opacity: 0;
    position: absolute;
    right: 1.05em;
    top: 0.7em;
    text-transform: uppercase;
    transform: translateY(0.28em);
}

.sf-demo-tour__plan-confirm {
    align-items: flex-start;
    display: flex;
    justify-content: center;
    margin-top: auto;
    min-height: 4.2em;
    overflow: hidden;
    padding-top: 0.05em;
    width: 100%;
}

.sf-demo-tour__contracted {
    align-items: center;
    background: linear-gradient(135deg, var(--sf-demo-success), #79dbaa);
    border-radius: 1.2em;
    box-shadow: 0 1.15em 2em rgba(41, 173, 110, 0.24);
    color: #ffffff;
    display: inline-flex;
    font-size: 1.02em;
    font-weight: 900;
    justify-content: center;
    letter-spacing: 0.08em;
    min-height: 3.55em;
    min-width: 13.2em;
    opacity: 0;
    padding: 0 1.25em;
    text-transform: uppercase;
    transform: translateY(1.75em) scale(0.95);
}

.sf-demo-tour__card,
.sf-demo-tour__invoice-sheet {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--sf-demo-border);
    border-radius: 1.35em;
    box-shadow: 0 1em 1.8em rgba(18, 27, 56, 0.08);
}

.sf-demo-tour__card {
    display: flex;
    flex-direction: column;
    gap: 0.84em;
    margin-top: 0.08em;
    padding: 1em;
}

.sf-demo-tour__scene--configure .sf-demo-tour__panel {
    gap: 0.5em;
}

.sf-demo-tour__scene--configure .sf-demo-tour__card {
    margin-top: 0;
}

.sf-demo-tour__login-brand {
    align-items: center;
    display: inline-flex;
    min-height: 2.2em;
}

.sf-demo-tour__login-brand img {
    display: block;
    height: auto;
    max-width: 9.9em;
    width: 100%;
}

.sf-demo-tour__field,
.sf-demo-tour__config-item {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
}

.sf-demo-tour__input,
.sf-demo-tour__config-value,
.sf-demo-tour__issue-input {
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--sf-demo-border-strong);
    border-radius: 1.05em;
    box-shadow: 0 0.8em 1.35em rgba(18, 27, 56, 0.06);
    display: flex;
    min-height: 3.1em;
    overflow: hidden;
    padding: 0 0.95em;
    position: relative;
}

.sf-demo-tour__input::after,
.sf-demo-tour__config-value::after,
.sf-demo-tour__issue-input::after {
    background: linear-gradient(90deg, rgba(207, 78, 159, 0.12), rgba(32, 61, 119, 0.08));
    content: "";
    inset: 0 auto 0 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left center;
    width: 100%;
}

.sf-demo-tour__input-value,
.sf-demo-tour__config-text,
.sf-demo-tour__issue-value {
    clip-path: inset(0 100% 0 0);
    color: var(--sf-demo-text);
    font-size: 0.87em;
    font-weight: 900;
    position: relative;
    white-space: nowrap;
    z-index: 1;
}

.sf-demo-tour__footer {
    align-items: center;
    display: flex;
    gap: 0.65em;
    justify-content: space-between;
}

.sf-demo-tour__config-grid {
    display: grid;
    gap: 0.75em;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sf-demo-tour__config-item--wide {
    grid-column: 1 / -1;
}

.sf-demo-tour__issue-form {
    display: grid;
    gap: 0.78em;
}

.sf-demo-tour__issue-choice {
    display: flex;
    gap: 0.72em;
}

.sf-demo-tour__issue-radio {
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--sf-demo-border-strong);
    border-radius: 999px;
    box-shadow: 0 0.7em 1.25em rgba(18, 27, 56, 0.05);
    color: var(--sf-demo-text);
    display: inline-flex;
    font-size: 0.86em;
    font-weight: 900;
    gap: 0.72em;
    min-height: 3.45em;
    padding: 0 1.34em;
    position: relative;
}

.sf-demo-tour__issue-dot {
    background: #ffffff;
    border: 1px solid var(--sf-demo-border-strong);
    border-radius: 999px;
    height: 1.18em;
    position: relative;
    width: 1.18em;
}

.sf-demo-tour__issue-dot::after {
    background: linear-gradient(135deg, var(--sf-demo-accent), #ef6abb);
    border-radius: 999px;
    content: "";
    inset: 0.22em;
    opacity: 0;
    position: absolute;
    transform: scale(0.45);
}

.sf-demo-tour__issue-total {
    color: var(--sf-demo-primary);
    font-size: 0.84em;
    font-weight: 900;
}

.sf-demo-tour__invoice-sheet {
    display: flex;
    flex-direction: column;
    gap: 0.76em;
    padding: 0.96em;
    transform: translateY(0.85em) scale(0.98);
}

.sf-demo-tour__invoice-header,
.sf-demo-tour__invoice-footer {
    align-items: flex-start;
    display: flex;
    gap: 0.6em;
    justify-content: space-between;
}

.sf-demo-tour__invoice-brand {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 0.7em;
    min-width: 0;
}

.sf-demo-tour__invoice-logo img {
    display: block;
    max-height: 1.65em;
    width: auto;
}

.sf-demo-tour__invoice-stamp {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 0.28em;
    width: 10.6em;
}

.sf-demo-tour__invoice-box {
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 0.16em solid var(--sf-demo-danger);
    border-radius: 0.78em;
    color: var(--sf-demo-danger);
    display: inline-flex;
    flex-direction: column;
    gap: 0.22em;
    justify-content: center;
    min-height: 5.25em;
    min-width: 10.6em;
    padding: 0.55em 1.05em 0.58em;
    text-transform: uppercase;
    width: 100%;
}

.sf-demo-tour__invoice-rut,
.sf-demo-tour__invoice-doc,
.sf-demo-tour__invoice-number span {
    font-weight: 900;
    line-height: 1;
}

.sf-demo-tour__invoice-rut {
    font-size: 0.64em;
    letter-spacing: 0.06em;
}

.sf-demo-tour__invoice-doc {
    display: block;
    font-size: 0.74em;
    letter-spacing: 0.05em;
    text-align: center;
    width: 100%;
}

.sf-demo-tour__invoice-number {
    align-items: baseline;
    display: inline-flex;
    gap: 0.16em;
}

.sf-demo-tour__invoice-number span {
    font-size: 0.82em;
    letter-spacing: 0.03em;
}

.sf-demo-tour__invoice-number strong {
    color: var(--sf-demo-danger);
    font-size: 0.82em;
    font-weight: 900;
    letter-spacing: 0.03em;
    line-height: 1;
}

.sf-demo-tour__invoice-office {
    color: var(--sf-demo-danger);
    display: block;
    font-size: 0.62em;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
}

.sf-demo-tour__invoice-meta {
    display: grid;
    gap: 0.5em;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sf-demo-tour__invoice-meta--compact {
    gap: 0.34em 1em;
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: start;
}

.sf-demo-tour__invoice-meta-item {
    align-items: baseline;
    display: flex;
    flex-direction: row;
    gap: 0.32em;
    justify-content: space-between;
    min-width: 0;
    white-space: nowrap;
}

.sf-demo-tour__invoice-meta-item--wide {
    grid-column: 1 / -1;
}

.sf-demo-tour__invoice-meta-item--right {
    align-items: baseline;
    text-align: right;
}

.sf-demo-tour__invoice-meta strong,
.sf-demo-tour__invoice-row span,
.sf-demo-tour__invoice-totals strong {
    color: var(--sf-demo-text);
    font-size: 0.77em;
    font-weight: 900;
}

.sf-demo-tour__invoice-items {
    border: 1px solid var(--sf-demo-border);
    border-radius: 1em;
    overflow: hidden;
}

.sf-demo-tour__invoice-head,
.sf-demo-tour__invoice-row {
    align-items: center;
    display: grid;
    gap: 0.55em;
    grid-template-columns: 1.45fr 0.42fr 0.75fr;
    padding: 0.62em 0.75em;
}

.sf-demo-tour__invoice-head {
    background: var(--sf-demo-bg);
}

.sf-demo-tour__invoice-row + .sf-demo-tour__invoice-row {
    border-top: 1px solid var(--sf-demo-border);
}

.sf-demo-tour__invoice-head span:nth-child(2),
.sf-demo-tour__invoice-head span:nth-child(3),
.sf-demo-tour__invoice-row span:nth-child(2),
.sf-demo-tour__invoice-row span:nth-child(3) {
    text-align: right;
}

.sf-demo-tour__pdf417 {
    align-items: center;
    background: linear-gradient(180deg, #fbfdff, #eef3fb);
    border: 1px solid rgba(26, 35, 70, 0.1);
    border-radius: 0.95em;
    display: flex;
    flex: 1 1 0;
    height: 6.35em;
    justify-content: center;
    overflow: hidden;
    padding: 0.45em 0;
    position: relative;
}

.sf-demo-tour__pdf417-image {
    display: block;
    height: 100%;
    object-fit: fill;
    position: relative;
    transform: scaleX(1.8);
    transform-origin: center;
    width: 100%;
    z-index: 1;
}

.sf-demo-tour__pdf417::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    content: "";
    inset: 0;
    position: absolute;
    transform: translateX(-120%);
}

.sf-demo-tour__invoice-totals {
    background: var(--sf-demo-bg);
    border-radius: 1em;
    display: flex;
    flex: 0 0 8.2em;
    flex-direction: column;
    gap: 0.35em;
    padding: 0.75em;
}

.sf-demo-tour__scene--plan.is-current .sf-demo-tour__plan-option--selected {
    animation: sfDemoPlanSelect 1.55s ease both;
}

.sf-demo-tour__scene--plan.is-current .sf-demo-tour__plan-option--selected::after {
    animation: sfDemoPulse 0.58s 0.92s ease both;
}

.sf-demo-tour__scene--plan.is-current .sf-demo-tour__contracted {
    animation: sfDemoContractedRise 0.78s 1.08s cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.sf-demo-tour__scene--login.is-current .sf-demo-tour__field:nth-of-type(1) .sf-demo-tour__input::after {
    animation: sfDemoInputFill 0.82s 0.18s ease both;
}

.sf-demo-tour__scene--login.is-current .sf-demo-tour__field:nth-of-type(1) .sf-demo-tour__input-value {
    animation: sfDemoRevealText 0.76s 0.28s steps(18, end) both;
}

.sf-demo-tour__scene--login.is-current .sf-demo-tour__field:nth-of-type(2) .sf-demo-tour__input::after {
    animation: sfDemoInputFill 0.82s 0.92s ease both;
}

.sf-demo-tour__scene--login.is-current .sf-demo-tour__field:nth-of-type(2) .sf-demo-tour__input-value {
    animation: sfDemoRevealText 0.76s 1.02s steps(8, end) both;
}

.sf-demo-tour__scene--login.is-current .sf-demo-tour__footer .sf-demo-tour__button {
    animation: sfDemoButtonSuccess 3.35s ease both;
}

.sf-demo-tour__scene--login.is-current .sf-demo-tour__footer .sf-demo-tour__button::after {
    animation: sfDemoButtonPulse 0.82s 2.42s ease both;
}

.sf-demo-tour__scene--configure.is-current .sf-demo-tour__config-item:nth-child(1) .sf-demo-tour__config-value::after {
    animation: sfDemoInputFill 0.4s 0.1s ease both;
}

.sf-demo-tour__scene--configure.is-current .sf-demo-tour__config-item:nth-child(1) .sf-demo-tour__config-text {
    animation: sfDemoRevealText 0.34s 0.16s steps(12, end) both;
}

.sf-demo-tour__scene--configure.is-current .sf-demo-tour__config-item:nth-child(2) .sf-demo-tour__config-value::after {
    animation: sfDemoInputFill 0.4s 0.34s ease both;
}

.sf-demo-tour__scene--configure.is-current .sf-demo-tour__config-item:nth-child(2) .sf-demo-tour__config-text {
    animation: sfDemoRevealText 0.34s 0.42s steps(16, end) both;
}

.sf-demo-tour__scene--configure.is-current .sf-demo-tour__config-item:nth-child(3) .sf-demo-tour__config-value::after {
    animation: sfDemoInputFill 0.42s 0.58s ease both;
}

.sf-demo-tour__scene--configure.is-current .sf-demo-tour__config-item:nth-child(3) .sf-demo-tour__config-text {
    animation: sfDemoRevealText 0.36s 0.66s steps(22, end) both;
}

.sf-demo-tour__scene--configure.is-current .sf-demo-tour__config-item:nth-child(4) .sf-demo-tour__config-value::after {
    animation: sfDemoInputFill 0.38s 0.82s ease both;
}

.sf-demo-tour__scene--configure.is-current .sf-demo-tour__config-item:nth-child(4) .sf-demo-tour__config-text {
    animation: sfDemoRevealText 0.3s 0.88s steps(10, end) both;
}

.sf-demo-tour__scene--configure.is-current .sf-demo-tour__config-item:nth-child(5) .sf-demo-tour__config-value::after {
    animation: sfDemoInputFill 0.38s 1.02s ease both;
}

.sf-demo-tour__scene--configure.is-current .sf-demo-tour__config-item:nth-child(5) .sf-demo-tour__config-text {
    animation: sfDemoRevealText 0.3s 1.08s steps(10, end) both;
}

.sf-demo-tour__scene--configure.is-current .sf-demo-tour__footer .sf-demo-tour__button--ok {
    animation: sfDemoButtonSuccess 3.1s ease both;
}

.sf-demo-tour__scene--configure.is-current .sf-demo-tour__footer .sf-demo-tour__button--ok::after {
    animation: sfDemoButtonPulse 0.86s 2.12s ease both;
}

.sf-demo-tour__scene--configure.is-current .sf-demo-tour__success-chip {
    animation: sfDemoFadeUp 0.36s 2.32s ease forwards;
}

.sf-demo-tour__scene--issue.is-current .sf-demo-tour__field:nth-of-type(1) .sf-demo-tour__issue-input::after {
    animation: sfDemoInputFill 0.9s 0.2s ease both;
}

.sf-demo-tour__scene--issue.is-current .sf-demo-tour__field:nth-of-type(1) .sf-demo-tour__issue-value {
    animation: sfDemoRevealText 0.82s 0.3s steps(20, end) both;
}

.sf-demo-tour__scene--issue.is-current .sf-demo-tour__field:nth-of-type(2) .sf-demo-tour__issue-input::after {
    animation: sfDemoInputFill 0.9s 0.92s ease both;
}

.sf-demo-tour__scene--issue.is-current .sf-demo-tour__field:nth-of-type(2) .sf-demo-tour__issue-value {
    animation: sfDemoRevealText 0.82s 1.02s steps(18, end) both;
}

.sf-demo-tour__scene--issue.is-current .sf-demo-tour__issue-radio--factura {
    animation: sfDemoRadioSelect 4.1s ease both;
}

.sf-demo-tour__scene--issue.is-current .sf-demo-tour__issue-radio--factura .sf-demo-tour__issue-dot::after {
    animation: sfDemoRadioDot 4.1s ease both;
}

.sf-demo-tour__scene--issue.is-current .sf-demo-tour__footer .sf-demo-tour__button--ok {
    animation: sfDemoButtonSuccess 4.1s ease both;
}

.sf-demo-tour__scene--issue.is-current .sf-demo-tour__footer .sf-demo-tour__button--ok::after {
    animation: sfDemoButtonPulse 0.88s 3.02s ease both;
}

.sf-demo-tour__scene--issue.is-current .sf-demo-tour__success-chip {
    animation: sfDemoFadeUp 0.36s 3.22s ease forwards;
}

.sf-demo-tour__scene--invoice.is-current .sf-demo-tour__invoice-sheet {
    animation: sfDemoInvoiceIn 3.2s ease both;
}

.sf-demo-tour__scene--invoice.is-current .sf-demo-tour__pdf417::after {
    animation: sfDemoBarcode 2.1s 0.62s ease both;
}

@keyframes sfDemoPlanSelect {
    0%, 30% {
        border-color: var(--sf-demo-border-strong);
        box-shadow: 0 0.8em 1.35em rgba(18, 27, 56, 0.06);
        transform: translateY(0) scale(1);
    }
    44% {
        transform: translateY(0.06em) scale(0.985);
    }
    56%, 100% {
        background: linear-gradient(180deg, rgba(255, 247, 252, 0.98), rgba(255, 255, 255, 0.97));
        border-color: rgba(207, 78, 159, 0.28);
        box-shadow: 0 1em 1.6em rgba(207, 78, 159, 0.12);
        transform: translateY(0) scale(1.01);
    }
}

@keyframes sfDemoRevealBadge {
    0%, 52% { opacity: 0; transform: translateY(0.28em); }
    62%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes sfDemoContractedRise {
    0% {
        opacity: 0;
        transform: translateY(2.2em) scale(0.94);
    }
    72% {
        opacity: 1;
        transform: translateY(-0.08em) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes sfDemoPulse {
    0%, 25% { opacity: 0; transform: scale(0.72); }
    34% { opacity: 0.8; transform: scale(1); }
    55%, 100% { opacity: 0; transform: scale(1.28); }
}

@keyframes sfDemoInputFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes sfDemoRevealText {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes sfDemoButtonSuccess {
    0%, 72% {
        transform: scale(1);
    }
    80% {
        transform: scale(0.96);
    }
    90%, 100% {
        background: linear-gradient(135deg, var(--sf-demo-success), #55c98d);
        box-shadow: 0 1em 1.8em rgba(41, 173, 110, 0.22);
        transform: scale(1);
    }
}

@keyframes sfDemoButtonPulse {
    0%, 20% { opacity: 0; transform: scale(0.84); }
    38% { opacity: 0.82; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.34); }
}

@keyframes sfDemoFadeUp {
    from { opacity: 0; transform: translateY(0.45em); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes sfDemoRadioSelect {
    0%, 42% {
        border-color: var(--sf-demo-border-strong);
        box-shadow: 0 0.7em 1.25em rgba(18, 27, 56, 0.05);
        transform: translateY(0);
    }
    50% {
        transform: translateY(0.06em) scale(0.985);
    }
    66%, 100% {
        background: linear-gradient(180deg, rgba(255, 248, 252, 0.98), rgba(255, 255, 255, 0.97));
        border-color: rgba(207, 78, 159, 0.24);
        box-shadow: 0 0.95em 1.6em rgba(207, 78, 159, 0.1);
        transform: translateY(0);
    }
}

@keyframes sfDemoRadioDot {
    0%, 58% { opacity: 0; transform: scale(0.45); }
    70%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes sfDemoInvoiceIn {
    0% { opacity: 0; transform: translateY(0.9em) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sfDemoBarcode {
    from { transform: translateX(-120%); }
    to { transform: translateX(120%); }
}
@media (max-width: 767.98px) {
    .sf-demo-tour {
        font-size: clamp(11px, 2.7vw, 14px);
    }

    .sf-demo-tour__stage {
        min-height: 28em;
    }

    .sf-demo-tour__scene {
        padding: 0.85em;
    }

    .sf-demo-tour__config-grid,
    .sf-demo-tour__invoice-meta,
    .sf-demo-tour__invoice-head,
    .sf-demo-tour__invoice-row,
    .sf-demo-tour__invoice-footer {
        grid-template-columns: 1fr;
    }

    .sf-demo-tour__invoice-footer {
        display: grid;
    }

    .sf-demo-tour__plan-option {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .sf-demo-tour__plan-meta {
        align-items: flex-start;
        text-align: left;
    }

    .sf-demo-tour__plan-badge {
        right: 1em;
        top: 0.72em;
    }
}
