/* ===================================================================
   "See it step by step" — the screenshot walkthrough on service pages
   (public/js/walkthrough.js). Both service renderers are LIGHT pages;
   the accent is the page's own (app pages --c1, written pages --a1).
   =================================================================== */
.wt {
    --wt: var(--c1, var(--a1, #6d28d9));
    --wt-tint: color-mix(in srgb, var(--wt) 8%, #fff);
    --wt-ink: #141420; --wt-text: #4a4a5a; --wt-muted: #6b6b7b; --wt-line: #e6e4ee;
    width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 4.5rem 0 1rem; color: var(--wt-text);
}
.wt-head { max-width: 720px; margin-bottom: 1.75rem; }
.wt-kicker { display: inline-flex; align-items: center; gap: .45rem; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: color-mix(in srgb, var(--wt) 85%, #000); }
.wt-kicker .icon { width: 15px; height: 15px; }
.wt-head h2 { margin: .4rem 0 .45rem; font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--wt-ink); }
.wt-head p { margin: 0; font-size: 1.02rem; color: var(--wt-text); }

.wt-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 1.75rem; align-items: start; }

/* The steps: a lit path down the left */
.wt-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; position: relative; }
.wt-steps::before { content: ''; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--wt-line); }
.wt-steps button {
    position: relative; width: 100%; display: flex; align-items: center; gap: .85rem; text-align: left; cursor: pointer;
    font: inherit; padding: .7rem .8rem .7rem .3rem; border: 1px solid transparent; border-radius: 14px; background: none; color: inherit;
    transition: background .15s, border-color .15s;
}
.wt-steps button:hover { background: var(--wt-tint); }
.wt-steps button[aria-selected="true"] { background: #fff; border-color: var(--wt-line); box-shadow: 0 6px 22px rgba(20, 20, 40, .07); }
.wt-n {
    flex: none; width: 34px; height: 34px; margin-left: 4px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
    font-weight: 750; font-size: .9rem; color: var(--wt-muted); background: #fff; border: 2px solid var(--wt-line); transition: all .2s;
}
.wt-steps button[aria-selected="true"] .wt-n { color: #fff; background: var(--wt); border-color: var(--wt); box-shadow: 0 0 0 5px var(--wt-tint); }
.wt-t { display: grid; gap: .1rem; min-width: 0; }
.wt-t b { font-size: .93rem; color: var(--wt-ink); line-height: 1.3; }
.wt-t small { font-size: .76rem; color: var(--wt-muted); }

/* The stage: a browser window with the real screenshot */
.wt-stage { min-width: 0; }
.wt-pane[hidden] { display: none !important; }
.wt-pane.is-on { animation: wtIn .35s ease; }
@keyframes wtIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wt-browser { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--wt-line);
    box-shadow: 0 30px 70px -20px color-mix(in srgb, var(--wt) 35%, transparent), 0 8px 24px rgba(20, 20, 40, .08); }
.wt-bar { display: flex; align-items: center; gap: .75rem; padding: .55rem .8rem; background: #f4f3f8; border-bottom: 1px solid var(--wt-line); }
.wt-dots { display: inline-flex; gap: 6px; }
.wt-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.wt-dots i:nth-child(2) { background: #febc2e; } .wt-dots i:nth-child(3) { background: #28c840; }
.wt-url { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 8px; background: #fff;
    border: 1px solid var(--wt-line); font-size: .78rem; color: var(--wt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt-url .icon { width: 12px; height: 12px; color: #16a34a; flex: none; }
.wt-url em { font-style: normal; opacity: .6; }
.wt-sample { flex: none; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--wt-muted);
    padding: .2rem .5rem; border-radius: 999px; border: 1px dashed #c9c6d6; }
.wt-shot { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #f6f6f9; cursor: zoom-in; line-height: 0; }
.wt-shot img { width: 100%; height: auto; display: block; }

/* The marker: where to click */
.wt-hot { position: absolute; width: 0; height: 0; pointer-events: none; }
.wt-hot::before { content: ''; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--wt); border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.wt-hot-ring { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--wt); opacity: 0;
    animation: wtPing 1.8s cubic-bezier(.2, .7, .3, 1) infinite; }
@keyframes wtPing { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.wt-hot-label { position: absolute; left: 18px; top: -15px; white-space: nowrap; line-height: 1.2; padding: .4rem .7rem; border-radius: 9px;
    font-size: .82rem; font-weight: 650; color: #fff; background: #141420; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.wt-hot-label.is-left { left: auto; right: 18px; }
.wt-hot-label.is-up { top: -48px; }

/* A step that happens on WhatsApp: a card, never a fake screenshot */
.wt-card { display: grid; justify-items: start; gap: .5rem; padding: 2.5rem 2.25rem; border-radius: 18px; min-height: 320px; align-content: center;
    background: radial-gradient(120% 100% at 100% 0%, var(--wt-tint), #fff 60%); border: 1px solid var(--wt-line); }
.wt-card-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, .35); }
.wt-card-icon .icon { width: 26px; height: 26px; }
.wt-card-where { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #128c4a; margin-top: .4rem; }
.wt-card b { font-size: 1.35rem; color: var(--wt-ink); letter-spacing: -0.01em; }
.wt-card p { margin: 0; max-width: 560px; font-size: 1rem; line-height: 1.6; }
.wt-card small { color: var(--wt-muted); font-size: .82rem; }

.wt-caption { display: grid; gap: .25rem; margin-top: 1rem; }
.wt-step-of { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--wt) 85%, #000); }
.wt-caption p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--wt-text); }
.wt-caption b { color: var(--wt-ink); }

.wt-nav { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.wt-btn { font: inherit; font-weight: 650; font-size: .92rem; cursor: pointer; padding: .65rem 1.1rem; border-radius: 999px;
    border: 1px solid var(--wt-line); background: #fff; color: var(--wt-ink); }
.wt-btn:disabled { opacity: .35; cursor: default; }
.wt-btn-next { background: var(--wt); border-color: var(--wt); color: #fff; }
.wt-btn:not(:disabled):hover { filter: brightness(.95); }
.wt-progress { flex: 1; display: flex; gap: 5px; }
.wt-progress i { flex: 1; height: 4px; border-radius: 99px; background: var(--wt-line); transition: background .3s; }
.wt-progress i.is-on { background: var(--wt); }

/* Full size */
.wt-zoom { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 2rem; background: rgba(10, 10, 20, .82); cursor: zoom-out; }
.wt-zoom[hidden] { display: none; }
.wt-zoom img { max-width: min(1440px, 100%); max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); cursor: default; }
.wt-zoom-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #141420; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 900px) {
    .wt { padding-top: 3rem; }
    .wt-body { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    /* The steps become a row of tabs that scrolls sideways, not the page. */
    .wt-steps { display: flex; overflow-x: auto; gap: .5rem; padding-bottom: .4rem; scrollbar-width: none; scroll-snap-type: x proximity; }
    .wt-steps::-webkit-scrollbar { display: none; }
    .wt-steps::before { display: none; }
    .wt-steps li { flex: none; scroll-snap-align: center; }
    .wt-steps button { padding: .5rem .8rem .5rem .4rem; border-color: var(--wt-line); background: #fff; }
    .wt-n { width: 28px; height: 28px; font-size: .8rem; margin: 0; }
    .wt-t small { display: none; }
    .wt-t b { white-space: nowrap; font-size: .85rem; }
    .wt-sample { display: none; }
    .wt-hot-label { font-size: .72rem; padding: .3rem .5rem; }
    .wt-card { padding: 1.75rem 1.4rem; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .wt-hot-ring { animation: none; opacity: .5; transform: scale(1.1); }
    .wt-pane.is-on { animation: none; }
}
