/* =====================================================
   SEO LANDING PAGES: animated demos, chips, timeline, reveal (owner 08.10.2026)
   Markup _includes/seo_demo.cfm and _includes/seo_page.cfm, sequence js/seo-demos.js.
   Tokens of mapresto_b.css (--ink, --gold, --gold-2, --cream, --line).
   ===================================================== */

/* ---------- section layout with a demo ---------- */

.seo-split-demo > * {
    min-width: 0;
}

@media (min-width: 901px) {
    .seo-split-demo {
        grid-template-columns: 1fr 1.05fr;
    }

    .seo-flip > :first-child {
        order: 2;
    }
}

.seo-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.seo-chips li {
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #2d2926;
    font-size: 14px;
}

.seo-chips li::before {
    content: "✓ ";
    color: var(--gold);
    font-weight: 700;
}

/* ---------- reveal and timeline ---------- */

.seo-js [data-seo-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.seo-js [data-seo-reveal].is-in {
    opacity: 1;
    transform: none;
}

.seo-timeline {
    position: relative;
    padding-left: 34px;
    --seo-progress: 0;
}

.seo-timeline::before,
.seo-timeline::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 9px;
    width: 3px;
    border-radius: 3px;
}

.seo-timeline::before {
    bottom: 10px;
    background: var(--line);
}

.seo-timeline::after {
    height: calc((100% - 20px) * var(--seo-progress));
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
}

.seo-timeline .kos-step {
    position: relative;
}

.seo-timeline .kos-step::before {
    content: "";
    position: absolute;
    top: 34px;
    left: -31px;
    width: 13px;
    height: 13px;
    border: 3px solid var(--line);
    border-radius: 50%;
    background: #fff;
    transition: border-color .4s ease, background .4s ease;
}

.seo-timeline .kos-step.is-in::before {
    border-color: var(--gold);
    background: var(--gold-2);
}

/* ---------- demo base ---------- */

.seo-demo {
    position: relative;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(41, 38, 34, .10);
    color: var(--ink);
    font-size: 15px;
    transition: opacity .45s ease;
}

.seo-demo.is-fading {
    opacity: 0;
}

.seo-demo [data-step] {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .45s ease, transform .45s ease;
}

.seo-demo [data-step].on {
    opacity: 1;
    transform: none;
}

@keyframes sdPop {
    from { opacity: 0; transform: translateY(10px) scale(.96); }
    to { opacity: 1; transform: none; }
}

@keyframes sdTap {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 144, 46, 0); }
    45% { transform: scale(.93); box-shadow: 0 0 0 6px rgba(201, 144, 46, .45); }
}

/* ---------- import ---------- */

.sdi-file {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--cream);
    font-weight: 600;
}

.seo-demo .sdi-file:not(.on) {
    transform: translateX(-24px);
}

.sdi-file-icon {
    padding: 6px 8px;
    border-radius: 6px;
    background: #1d6f42;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.sdi-detect {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 12px;
    color: #5f5952;
    font-size: 14px;
}

.sdi-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--line);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: sdSpin .8s linear infinite;
}

@keyframes sdSpin {
    to { transform: rotate(360deg); }
}

.sdi-buckets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sdi-bucket {
    padding: 14px 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--cream);
    text-align: center;
}

.seo-demo .sdi-bucket:not(.on) {
    transform: scale(.8);
}

.sdi-bucket strong {
    display: block;
    color: var(--ink);
    font-size: 26px;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.sdi-bucket span {
    display: block;
    margin-top: 4px;
    color: #5f5952;
    font-size: 13px;
    font-weight: 600;
}

.sdi-bucket small {
    display: block;
    margin-top: 2px;
    color: #a27b34;
    font-size: 11px;
}

.sdi-bucket-extra {
    border-style: dashed;
    background: #fff;
}

.sdi-dup {
    padding: 8px 12px;
    border-radius: 12px;
    background: #fff4e0;
    color: #87581a;
    font-size: 14px;
    font-weight: 600;
}

.sdi-ready {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.sdi-button {
    margin-left: auto;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.sdi-ready.on .sdi-button {
    animation: sdTap .5s ease 1.4s both;
}

/* ---------- whatsapp chat ---------- */

.seo-demo-chat {
    padding: 0;
    overflow: hidden;
}

.sdc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #0d5c4f;
    color: #fff;
}

.sdc-head small {
    display: block;
    opacity: .75;
    font-size: 12px;
}

.sdc-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    font-weight: 700;
}

.sdc-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 300px;
    padding: 18px 16px;
    background: #efe7dc;
}

.seo-demo .sdc-body [data-step]:not(.on) {
    display: none;
}

.seo-demo .sdc-body [data-step].on {
    animation: sdPop .4s ease both;
}

.sdc-msg {
    max-width: 82%;
    padding: 9px 12px;
    border-radius: 14px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
    line-height: 1.4;
}

.sdc-msg small {
    float: right;
    margin: 6px 0 0 10px;
    color: #8b847b;
    font-size: 11px;
}

.sdc-in {
    align-self: flex-start;
    border-top-left-radius: 4px;
    background: #fff;
}

.sdc-out {
    align-self: flex-end;
    border-top-right-radius: 4px;
    background: #d9fdd3;
}

.sdc-typing {
    align-self: flex-end;
    display: flex;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #d9fdd3;
}

.sdc-typing i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6c8f6a;
    animation: sdDot 1s ease-in-out infinite;
}

.sdc-typing i:nth-child(2) { animation-delay: .15s; }
.sdc-typing i:nth-child(3) { animation-delay: .3s; }

@keyframes sdDot {
    0%, 100% { opacity: .3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}

/* ---------- online booking ---------- */

.seo-demo-booking {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 16px;
}

.sdb-phone {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 14px 12px;
    border: 6px solid #1d1f22;
    border-radius: 26px;
    background: #fff;
    overflow: hidden;
    min-height: 330px;
    align-content: start;
}

.sdb-top {
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.sdb-svc {
    position: relative;
    display: grid;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 13px;
}

.sdb-svc small {
    color: #8b847b;
    font-size: 11px;
}

.seo-demo .sdb-sel {
    position: absolute;
    inset: -1px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    border: 2px solid var(--gold);
    border-radius: 10px;
    background: rgba(225, 180, 95, .12);
    color: var(--gold);
    font-weight: 700;
    transform: none;
}

.sdb-slots {
    display: grid;
    gap: 6px;
}

.sdb-slots small {
    color: #8b847b;
    font-size: 11px;
    font-weight: 700;
}

.sdb-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.sdb-slot {
    position: relative;
    padding: 6px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.seo-demo .sdb-slot-on {
    position: absolute;
    inset: -1px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--gold);
    color: #fff;
    font-style: normal;
    transform: none;
}

.sdb-book {
    margin-top: 2px;
    padding: 8px 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.seo-demo-booking[data-phase="3"] .sdb-book {
    animation: sdTap .5s ease 1.1s both;
}

.seo-demo .sdb-done {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1f9d55;
    color: #fff;
    text-align: center;
    transform: none;
}

.sdb-done small {
    opacity: .85;
    font-size: 11px;
}

.sdb-cal {
    display: grid;
    gap: 6px;
}

.sdb-cal > strong {
    margin-bottom: 4px;
    font-size: 14px;
}

.sdb-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.sdb-row > span {
    color: #8b847b;
    font-variant-numeric: tabular-nums;
}

.sdb-row em {
    position: relative;
    padding: 7px 10px;
    border-left: 4px solid #6f948d;
    border-radius: 8px;
    background: #eef3f2;
    font-style: normal;
    font-weight: 600;
}

.sdb-row em.sdb-new {
    border-left-color: var(--gold);
    background: #fbf1de;
}

.sdb-new b {
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--gold);
    color: #fff;
    font-size: 10px;
}

.sdb-new.on {
    animation: sdPop .5s ease both, sdGlow 1.6s ease .5s 2;
}

@keyframes sdGlow {
    50% { box-shadow: 0 0 0 5px rgba(201, 144, 46, .25); }
}

/* ---------- team ---------- */

.sdm-head {
    margin-bottom: 10px;
    font-size: 14px;
}

.sdm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.sdm-person {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
}

.sdm-person span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--c);
    color: #fff;
    font-size: 11px;
}

.sdm-lane {
    position: relative;
    height: 220px;
    border-radius: 12px;
    background: repeating-linear-gradient(180deg, #faf7f0 0 43px, #f1ece3 43px 44px);
}

.sdm-ev {
    position: absolute;
    left: 4px;
    right: 4px;
    padding: 5px 7px;
    border-left: 4px solid var(--c);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(41, 38, 34, .08);
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
}

.sdm-ev-new {
    background: #fbf1de;
}

.sdm-ev-new.on {
    animation: sdGlow 1.6s ease .4s 2;
}

.sdm-booking,
.sdm-push {
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 13px;
}

.sdm-booking {
    border: 1px dashed var(--gold-2);
    background: #fff;
}

.sdm-booking small {
    display: block;
    color: #a27b34;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.sdm-push {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: #fff;
}

.sdm-push b {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    font-size: 12px;
}

@media (max-width: 560px) {
    .seo-demo-booking {
        gap: 10px;
    }

    .sdb-phone {
        min-height: 300px;
        padding: 10px 8px;
        border-width: 5px;
    }

    .sdm-lane {
        height: 190px;
    }
}

/* ---------- studio concierge ---------- */

.seo-demo-studio {
    padding: 0;
    overflow: hidden;
}

.sdo-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.sdo-head .sdc-avatar {
    color: #fff;
}

.sdo-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 310px;
    padding: 18px 16px;
    background: var(--cream);
}

.seo-demo .sdo-body [data-step]:not(.on) {
    display: none;
}

.seo-demo .sdo-body [data-step].on {
    animation: sdPop .4s ease both;
}

.sdo-rec {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 78%;
    padding: 10px 14px;
    border-radius: 18px;
    background: #fff;
}

.sdo-rec .sdv-mic {
    flex-basis: 36px;
    height: 36px;
}

.sdo-rec .sdv-wave {
    height: 26px;
}

.sdo-msg {
    align-self: flex-end;
    max-width: 82%;
    padding: 10px 13px;
    border-radius: 14px;
    border-top-right-radius: 4px;
    background: var(--ink);
    color: #fff;
    line-height: 1.4;
}

.sdo-typing {
    align-self: flex-start;
    background: #fff;
}

.sdo-card {
    align-self: flex-start;
    display: grid;
    gap: 6px;
    width: 86%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.sdo-card small {
    color: #a27b34;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sdo-move {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
}

.sdo-move s {
    color: #8b847b;
}

.sdo-move b {
    color: var(--gold);
}

.sdo-move em {
    font-style: normal;
    font-weight: 700;
}

.sdo-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

.sdo-cancel,
.sdo-confirm {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.sdo-cancel {
    border: 1px solid var(--line);
}

.sdo-confirm {
    background: var(--ink);
    color: #fff;
}

.seo-demo-studio[data-phase="4"] .sdo-confirm {
    animation: sdTap .5s ease 1.3s both;
}

.sdo-done {
    align-self: flex-start;
    padding: 10px 13px;
    border-radius: 14px;
    background: #e3f5ea;
    color: #1b6b3e;
    font-weight: 600;
}

/* ---------- voice note ---------- */

.sdv-rec {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--cream);
}

.sdv-mic {
    position: relative;
    flex: 0 0 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0453a;
}

.sdv-mic::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 18px;
    border-radius: 6px;
    background: #fff;
    transform: translate(-50%, -60%);
}

.sdv-mic::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #e0453a;
    opacity: 0;
}

.seo-demo-voice[data-phase="1"] .sdv-mic::after,
.seo-demo-studio[data-phase="1"] .sdv-mic::after {
    animation: sdRing 1.2s ease-out infinite;
}

@keyframes sdRing {
    from { opacity: .8; transform: scale(1); }
    to { opacity: 0; transform: scale(1.7); }
}

.sdv-wave {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 3px;
    height: 34px;
}

.sdv-wave i {
    flex: 1;
    height: var(--h);
    border-radius: 3px;
    background: #d8b678;
}

.seo-demo-voice[data-phase="1"] .sdv-wave i,
.seo-demo-studio[data-phase="1"] .sdv-wave i {
    animation: sdWave .8s ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * -.09s);
}

@keyframes sdWave {
    from { height: 15%; }
    to { height: 100%; }
}

.sdv-time {
    min-width: 40px;
    color: #5f5952;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.sdv-note {
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.sdv-note-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}

.sdv-note-head span {
    color: #8b847b;
}

.seo-demo .sdv-line {
    margin: 8px 0 0;
    color: #2d2926;
    font-size: 15px;
    line-height: 1.45;
}

.sdv-line b {
    color: #a27b34;
}

/* ---------- twint scene ---------- */

.seo-demo-twint {
    display: grid;
    grid-template-columns: 1fr 128px;
    align-items: center;
    gap: 16px;
    padding: 18px;
}

.sdt-scene {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7f1e6 0%, #fbf8f2 100%);
}

.sdt-owner {
    position: absolute;
    left: 3%;
    bottom: 56px;
    width: 30%;
}

.sdt-counter {
    position: absolute;
    left: 0;
    right: 30%;
    bottom: 0;
    height: 62px;
    border-top: 6px solid #c7ae86;
    background: #dcc9a8;
}

.sdt-till {
    position: absolute;
    left: 31%;
    bottom: 60px;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 3px;
    width: 33%;
    padding: 7px 6px;
    border: 5px solid #1d1f22;
    border-radius: 11px;
    background: #fff;
    overflow: hidden;
}

.sdt-label {
    color: #8b847b;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sdt-amount {
    font-size: 13px;
}

.sdt-qr {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 48px;
    aspect-ratio: 1;
    padding: 3px;
    background: #fff;
}

.sdt-qr i.b {
    background: var(--ink);
}

.seo-demo .sdt-paid {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: #1f9d55;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    transform: none;
}

.sdt-flash {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
}

.seo-demo-twint[data-phase="1"] .sdt-flash {
    animation: sdFlash .5s ease .5s;
}

@keyframes sdFlash {
    30% { opacity: .95; }
    100% { opacity: 0; }
}

.sdt-client {
    position: absolute;
    right: 1%;
    bottom: 0;
    z-index: 2;
    width: 28%;
}

.sdt-client-body {
    display: block;
    width: 100%;
}

.sdt-arm {
    /* pivot = shoulder: body viewBox 100x160 shoulder (37,75); arm viewBox 70x44 shoulder (62,10) */
    position: absolute;
    top: 40.4%;
    left: -26.8%;
    width: 72%;
    transform-origin: 88.6% 22.7%;
    transform: rotate(-72deg);
    transition: transform .8s cubic-bezier(.3, .7, .3, 1);
}

.seo-demo-twint[data-phase="1"] .sdt-arm {
    transform: rotate(8deg);
}

.seo-demo-twint[data-phase="2"] .sdt-arm,
.seo-demo-twint[data-phase="3"] .sdt-arm,
.seo-demo-twint[data-phase="4"] .sdt-arm {
    transform: rotate(-22deg);
}

.sdt-phone {
    position: relative;
    height: 240px;
    overflow: hidden;
    border: 6px solid #1d1f22;
    border-radius: 24px;
    background: #f3f0ea;
}

.seo-demo .sdt-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    text-align: center;
    transform: scale(.97);
}

.seo-demo .sdt-screen.on {
    transform: none;
}

.sdt-screen small {
    font-size: 10px;
    line-height: 1.3;
}

.sdt-camera {
    background: #2a2c2f;
    color: #fff;
}

.sdt-frame {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 2px solid #ffd60a;
    border-radius: 10px;
}

.sdt-qr-small {
    width: 52px;
}

.sdt-link {
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 10px;
    font-weight: 700;
}

.sdt-camera small {
    opacity: .75;
}

.sdt-stripe {
    background: #fff;
}

.sdt-stripe small {
    color: #8b847b;
}

.sdt-stripe strong,
.sdt-app strong {
    font-size: 18px;
}

.sdt-pay {
    width: 100%;
    padding: 7px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.sdt-pay-twint {
    border-color: #000;
    background: #000;
    color: #fff;
}

.seo-demo-twint[data-phase="2"] .sdt-pay-twint,
.seo-demo-twint[data-phase="3"] .sdt-confirm {
    animation: sdTap .5s ease 1.2s both;
}

.sdt-app {
    background: #111;
    color: #fff;
}

.sdt-app-logo {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .08em;
}

.sdt-confirm {
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 12px;
    font-weight: 700;
}

.sdt-done {
    background: #1f9d55;
    color: #fff;
}

.sdt-done-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 3px solid #fff;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
}

/* ---------- switzerland tiles ---------- */

.seo-demo-swiss {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sds-tile {
    padding: 16px 10px;
    border-radius: 18px;
    background: var(--cream);
    text-align: center;
}

.seo-demo .sds-tile:not(.on) {
    transform: scale(.85);
}

.sds-icon {
    display: grid;
    place-items: center;
    min-width: 46px;
    width: max-content;
    height: 46px;
    margin: 0 auto 8px;
    padding: 0 9px;
    border-radius: 13px;
    background: #fff;
    color: #a27b34;
    font-size: 14px;
    font-weight: 800;
}

.sds-icon svg {
    width: 34px;
    height: 34px;
}

.sds-tile strong {
    display: block;
    font-size: 14px;
    line-height: 1.3;
}

/* ---------- small screens ---------- */

@media (max-width: 560px) {
    .seo-demo {
        padding: 16px;
    }

    .seo-demo-chat {
        padding: 0;
    }

    .seo-demo-twint {
        grid-template-columns: 1fr 104px;
        gap: 10px;
        padding: 12px;
    }

    .sdt-scene {
        height: 210px;
    }

    .sdt-phone {
        height: 200px;
        border-width: 5px;
        border-radius: 20px;
    }

    .sdt-qr {
        width: 40px;
    }

    .sdt-qr-small {
        width: 44px;
    }

    .sdt-frame {
        width: 64px;
        height: 64px;
    }

    .seo-demo-swiss,
    .sdi-buckets {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-timeline {
        padding-left: 26px;
    }

    .seo-timeline::before,
    .seo-timeline::after {
        left: 5px;
    }

    .seo-timeline .kos-step::before {
        left: -27px;
    }
}

/* ---------- cartoon life: breathing and blinking ---------- */

.sdt-owner,
.sdt-client-body {
    animation: sdBreathe 3.2s ease-in-out infinite;
    transform-origin: 50% 100%;
}

.sdt-client-body {
    animation-delay: -1.4s;
}

@keyframes sdBreathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.sdt-eyes {
    transform-box: fill-box;
    transform-origin: center;
    animation: sdBlink 4.2s infinite;
}

.sdt-client .sdt-eyes {
    animation-delay: -1.7s;
}

@keyframes sdBlink {
    0%, 92%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(.1); }
}

/* the owner smiles a bit wider once the payment arrived */
.seo-demo-twint[data-phase="5"] .sdt-owner {
    animation: sdHop .6s ease 2;
}

@keyframes sdHop {
    50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
    .sdt-owner,
    .sdt-client-body,
    .sdt-eyes {
        animation: none;
    }
}

.seo-demo-plan {
    margin-top: 10px;
    text-align: right;
}

/* ---------- checklist (generic comparison) ---------- */

.seo-checklist-section .kos-head {
    margin-bottom: 28px;
}

.seo-checklist {
    max-width: 860px;
    margin: 0 auto;
    padding: 10px 22px 22px;
}

.sck-head,
.sck-row {
    display: grid;
    grid-template-columns: 1fr 150px 110px;
    align-items: center;
    gap: 12px;
}

.sck-head {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: #8b847b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sck-head span:not(:first-child) {
    text-align: center;
}

.sck-row {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.sck-text {
    color: #2d2926;
    font-size: 15px;
}

.sck-mapresto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.sck-mapresto b {
    color: #1f9d55;
    font-size: 20px;
}

.sck-mapresto .kos-badge {
    margin-top: 0;
    padding: 1px 8px;
    font-size: 11px;
}

.sck-yours {
    justify-self: center;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.sck-yours[aria-pressed="true"] {
    border-color: var(--gold);
    background: var(--gold-2);
}

.sck-yours[aria-pressed="true"] i::before {
    content: "✓";
    color: #fff;
    font-style: normal;
    font-weight: 700;
}

.sck-hint {
    margin: 14px 0 0;
    color: #8b847b;
    font-size: 13px;
    text-align: center;
}

.sck-result {
    margin: 10px 0 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fbf1de;
    color: #6b4a12;
    font-weight: 700;
    text-align: center;
}

.seo-checklist.is-complete .sck-result {
    background: #e3f5ea;
    color: #1b6b3e;
}

@media (max-width: 560px) {
    .seo-checklist {
        padding: 6px 12px 16px;
    }

    .sck-head,
    .sck-row {
        grid-template-columns: 1fr 74px 56px;
        gap: 8px;
    }

    .sck-text {
        font-size: 14px;
    }

    .sck-head {
        font-size: 10px;
    }
}

.sck-plan-short {
    display: none;
}

@media (max-width: 560px) {
    .sck-plan-long {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .sck-plan-short {
        display: inline;
    }
}

/* ---------- QR-bill generator (public tool) ---------- */

.sqb {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
}

.sqb-form fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.sqb-form legend,
.sqb-form summary {
    margin-bottom: 8px;
    color: #a27b34;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sqb-form summary {
    cursor: pointer;
}

.sqb-form label {
    display: grid;
    gap: 4px;
    font-size: 13px;
    color: #5f5952;
}

.sqb-wide { flex: 1 1 100%; }
.sqb-grow { flex: 1 1 160px; }
.sqb-small { flex: 0 1 90px; }

.sqb-form input,
.sqb-form select {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    box-sizing: border-box;
}

.sqb-form input:focus,
.sqb-form select:focus {
    outline: 2px solid var(--gold-2);
    border-color: var(--gold);
}

.sqb-form input:disabled {
    background: #f4f1ec;
}

.sqb-genref {
    align-self: flex-end;
    height: 40px;
    padding: 0 14px;
    border: 1px dashed var(--gold-2);
    border-radius: 10px;
    background: #fff;
    color: #7a5a1f;
    font-weight: 600;
    cursor: pointer;
}

.sqb-out {
    display: grid;
    align-content: start;
    gap: 12px;
}

.sqb-errors {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sqb-errors li {
    margin-bottom: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #fff4e0;
    color: #87581a;
    font-size: 14px;
}

.sqb-preview {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.sqb-preview svg {
    display: block;
    width: 100%;
    height: auto;
}

.sqb-preview.is-empty {
    display: grid;
    place-items: center;
    min-height: 220px;
    background: repeating-linear-gradient(45deg, #faf7f0 0 12px, #f5f1e8 12px 24px);
}

.sqb-preview.is-empty::before {
    content: attr(data-empty);
    max-width: 260px;
    color: #8b847b;
    font-size: 14px;
    text-align: center;
}

.sqb-download {
    justify-self: start;
    border: 0;
    cursor: pointer;
}

.sqb-download:disabled {
    opacity: .4;
    cursor: default;
}

.sqb-note {
    margin: 0;
    color: #8b847b;
    font-size: 13px;
}

@media (max-width: 900px) {
    .sqb {
        grid-template-columns: 1fr;
        padding: 16px;
    }
}
