/* Tutorial Section Styles */

/* Tutorial Section Container - breaks out of parent .container */
.tutorial-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 80px 60px 80px;
}

/* Section Title with reveal animation */
.tutorial-section-title-wrapper {
    text-align: center;
    margin: 0 0 60px 0;
    overflow: hidden;
}

.tutorial-section-title {
    font-family: inherit;
    font-size: 5vw;
    font-size: clamp(1.25rem, 5vw, 3rem);
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    -webkit-transform: translateY(100%);
    -ms-transform: translateY(100%);
    transform: translateY(100%);
    opacity: 0;
    -webkit-transition: transform 0.8s ease-out, opacity 0.6s ease;
    -ms-transition: transform 0.8s ease-out, opacity 0.6s ease;
    transition: transform 0.8s ease-out, opacity 0.6s ease;
}

.tutorial-section-title .mobile-br {
    display: none;
}

.tutorial-section-title-wrapper.visible .tutorial-section-title {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
}

.tutorial-section-subtitle {
    font-family: inherit;
    font-size: 4vw;
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 400;
    color: #666;
    margin: 8px 0 0 0;
    padding: 0;
    white-space: nowrap;
    -webkit-transform: translateY(100%);
    -ms-transform: translateY(100%);
    transform: translateY(100%);
    opacity: 0;
    -webkit-transition: transform 0.8s ease-out 0.1s, opacity 0.6s ease 0.1s;
    -ms-transition: transform 0.8s ease-out 0.1s, opacity 0.6s ease 0.1s;
    transition: transform 0.8s ease-out 0.1s, opacity 0.6s ease 0.1s;
}

.tutorial-section-title-wrapper.visible .tutorial-section-subtitle {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
}

/* Tutorial Block - Main Container */
.tutorial-block {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 0;
    align-items: stretch;
    margin-bottom: 80px;
}

.tutorial-block:last-child {
    margin-bottom: 0;
}

/* Desktop: explanation left, image right */
.tutorial-block .tutorial-explanation-box {
    order: 1;
}

.tutorial-block .tutorial-image-box {
    order: 2;
}

/* Reversed: image left, explanation right */
.tutorial-block.reversed {
    grid-template-columns: 1.1fr 0.9fr;
}

.tutorial-block.reversed .tutorial-image-box {
    order: 1;
    margin-left: 0;
    margin-right: -32px;
}

.tutorial-block.reversed .tutorial-explanation-box {
    order: 2;
    border-radius: 0 32px 32px 0;
}

.tutorial-block.reversed .tutorial-explanation-content {
    margin-left: 50px;
    margin-right: 40px;
}

/* Inner Box - Decoration Layer */
.tutorial-inner-box {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

/* Explanation Box - Glass Effect */
.tutorial-explanation-box {
    position: relative;
    z-index: 1;
    padding: 48px;
    border-radius: 32px 0 0 32px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.3) 100%
    );
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
}

.tutorial-explanation-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    pointer-events: none;
}

.tutorial-explanation-box .tutorial-inner-box {
    background: transparent;
}

/* Explanation Content Wrapper */
.tutorial-explanation-content {
    position: relative;
    max-width: 50ch;
    margin-left: 40px;
    text-align: left;
}

.tutorial-explanation-content .tutorial-inner-box {
    background: transparent;
}

/* Explanation Title */
.tutorial-explanation-title {
    font-size: 2.45rem;
    font-weight: 500;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

/* Explanation Subtitle */
.tutorial-explanation-subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    color: #4a4a68;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Button Container */
.tutorial-button-container {
    position: relative;
}

.tutorial-button-container .tutorial-inner-box {
    background: transparent;
}

/* Explanation Button - Instagram Gradient */
.tutorial-explanation-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(45deg, #E1306C 0%, #C13584 25%, #833AB4 50%, #5851DB 75%, #405DE6 100%);
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(225, 48, 108, 0.35);
}

.tutorial-explanation-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(225, 48, 108, 0.45);
    filter: brightness(1.05);
}

.tutorial-explanation-button:active {
    transform: translateY(0);
}

/* Image Box Container */
.tutorial-image-box {
    position: relative;
    z-index: 2;
    border-radius: 32px;
    overflow: hidden;
    margin-left: -32px;
    display: flex;
    min-height: 600px;
}

.tutorial-image-box .tutorial-inner-box {
    background: linear-gradient(135deg, rgba(233, 232, 248, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Main Tutorial Image */
.tutorial-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 50%;
}

/* Prompt Box Overlay */
.tutorial-prompt-box-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(60px);
    max-width: 80%;
    width: 70%;
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease-out;
    z-index: 3;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.tutorial-prompt-box-overlay.visible {
    transform: translate(-50%, -50%) translateY(0);
    opacity: 1;
}

.tutorial-prompt-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 970 / 562;
    container-type: inline-size;
}

.tutorial-prompt-card {
    position: absolute;
    top: 11.7%;
    left: 6.7%;
    width: 86%;
    height: 77%;
    padding: 3.2% 3.5%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5%;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.03);
}

.tutorial-prompt-example {
    margin: 0;
    color: #080808;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(10px, 3.1cqw, 30px);
    font-weight: 400;
    line-height: 1.25;
    text-align: left;
}

.tutorial-prompt-example[dir="rtl"] {
    text-align: right;
}

.tutorial-prompt-controls {
    position: absolute;
    right: 4%;
    bottom: 6%;
    left: 4%;
    display: flex;
    align-items: center;
    gap: 2.1%;
    direction: ltr;
}

.tutorial-prompt-add,
.tutorial-prompt-photo,
.tutorial-prompt-submit {
    display: block;
    flex: 0 0 12.2%;
    aspect-ratio: 1;
}

.tutorial-prompt-add {
    position: relative;
    margin-right: 2%;
    border: 3px solid #f5ccdc;
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(223, 41, 133, 0.08);
}

.tutorial-prompt-add::before,
.tutorial-prompt-add::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42%;
    height: 4%;
    border-radius: 999px;
    background: #dc2786;
    content: '';
    transform: translate(-50%, -50%);
}

.tutorial-prompt-add::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.tutorial-prompt-photo {
    border-radius: 12%;
    background-image: url('/static/prompt_box.webp');
    background-repeat: no-repeat;
    background-size: 1021.0526% auto;
}

.tutorial-prompt-photo-third {
    background-position: 48.9143% 81.1563%;
}

.tutorial-prompt-photo-fourth {
    background-position: 61.7143% 81.1563%;
}

.tutorial-prompt-photo-fifth {
    background-position: 74.5143% 81.1563%;
}

.tutorial-prompt-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border-radius: 22%;
    background: linear-gradient(145deg, #b820a1, #ec2a85);
    box-shadow: 0 8px 22px rgba(219, 39, 133, 0.32);
}

.tutorial-prompt-submit svg {
    width: 55%;
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.tutorial-prompt-cursor {
    position: absolute;
    right: 2.5%;
    bottom: 1.5%;
    width: 10%;
    overflow: visible;
}

/* Social Logos */
.tutorial-social-logos {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 5;
}

.tutorial-social-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.tutorial-social-logo:hover {
    transform: scale(1.1);
}

.tutorial-social-logo svg {
    width: 32px;
    height: 32px;
}

.tutorial-social-logo.facebook {
    background: #1877F2;
    color: white;
}

.tutorial-social-logo.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.tutorial-social-logo.tiktok {
    background: #000000;
    color: white;
}

/* Real WhatsApp app-icon look: green gradient squircle + white glyph */
/* ── Tutorial Block 3: iPhone WhatsApp conversation mockup ─────────────── */
.tutorial-phone-overlay {
    --phone-scale: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(60px) scale(var(--phone-scale));
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease-out;
    z-index: 3;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.28));
}

.tutorial-phone-overlay.visible {
    transform: translate(-50%, -50%) scale(var(--phone-scale));
    opacity: 1;
}

.tutorial-phone {
    position: relative;
    width: 262px;
    max-width: 80vw;
    padding: 10px;
    background: #0b0d10;
    border-radius: 46px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14), inset 0 0 0 5px #000;
}

.tutorial-phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 104px;
    height: 22px;
    background: #0b0d10;
    border-radius: 0 0 14px 14px;
    z-index: 3;
}

/* Real-phone proportions: modern iPhone screen ≈ 9:19.4 */
.tutorial-phone-screen {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    aspect-ratio: 9 / 19.4;
    border-radius: 37px;
    overflow: hidden;
    background: #EFEAE2; /* WhatsApp light chat wallpaper */
}

/* Status bar + chat header share WhatsApp's header green */
.tutorial-wa-top {
    background: #008069;
    color: #fff;
    flex-shrink: 0;
    /* The chat area is bottom-anchored; when messages overflow they slide out
       the top and must pass BEHIND the header, never over it. */
    position: relative;
    z-index: 2;
}

.tutorial-wa-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 22px 0 26px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.tutorial-wa-statusicons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tutorial-wa-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 10px 6px;
}

.tutorial-wa-back { flex-shrink: 0; }
[dir="rtl"] .tutorial-wa-back { transform: scaleX(-1); }

.tutorial-wa-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.tutorial-wa-contact {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
    flex: 1;
}

.tutorial-wa-name {
    font-size: 15.5px;
    font-weight: 600;
    white-space: nowrap;
}

.tutorial-wa-status {
    font-size: 11px;
    opacity: 0.9;
}

.tutorial-wa-actions {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding-inline-end: 8px;
    flex-shrink: 0;
    opacity: 0.95;
}

/* Chat area — bottom-anchored like a real conversation */
.tutorial-wa-chat {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* flips to the right under dir="rtl" */
    justify-content: flex-end;
    flex: 1;
    min-height: 0;
    gap: 8px;
    padding: 10px 11px 10px 11px;
    /* Bottom-anchored: taller-than-screen conversations (long translations)
       clip at the top, like older messages scrolled away. */
    overflow: hidden;
}

.tutorial-wa-datechip {
    align-self: center;
    background: #fff;
    color: #54656f;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tutorial-wa-message {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 88%;
    padding: 7px 10px 5px 11px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    margin-bottom: 4px;
}

/* WhatsApp bubble tails. The tail continues the bubble's FLAT top edge
   outward and curves back in — so the bubble corner on the tail side must be
   square (radius 0) for the two shapes to read as one. clip-path: path()
   can't flip with direction, so LTR/RTL get explicit mirrored paths. */
.tutorial-wa-message {
    border-start-start-radius: 0;
}

.tutorial-wa-message::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: -7.5px;
    width: 8px;
    height: 13px;
    background: #fff;
    /* left-side tail: flat top, curved outer tip, straight sweep back */
    clip-path: path('M8 0 H2.4 C0.6 0 0 1.2 1.1 2.6 L8 11.4 Z');
}
[dir="rtl"] .tutorial-wa-message::before {
    clip-path: path('M0 0 H5.6 C7.4 0 8 1.2 6.9 2.6 L0 11.4 Z');
}

.tutorial-wa-message.tutorial-wa-out {
    align-self: flex-end;
    background: #D9FDD3;
    border-start-start-radius: 8px;
    border-start-end-radius: 0;
}

.tutorial-wa-message.tutorial-wa-out::before {
    inset-inline-start: auto;
    inset-inline-end: -7.5px;
    background: #D9FDD3;
    clip-path: path('M0 0 H5.6 C7.4 0 8 1.2 6.9 2.6 L0 11.4 Z');
}
[dir="rtl"] .tutorial-wa-message.tutorial-wa-out::before {
    clip-path: path('M8 0 H2.4 C0.6 0 0 1.2 1.1 2.6 L8 11.4 Z');
}

/* Consecutive same-side bubbles group like real WhatsApp: only the first of
   a group carries the tail; followers keep all corners rounded. */
.tutorial-wa-message:not(.tutorial-wa-out) + .tutorial-wa-message:not(.tutorial-wa-out) {
    border-start-start-radius: 8px;
}
.tutorial-wa-message:not(.tutorial-wa-out) + .tutorial-wa-message:not(.tutorial-wa-out)::before {
    display: none;
}

.tutorial-wa-time {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.tutorial-phone-overlay.visible .tutorial-wa-message {
    opacity: 1;
    transform: translateY(0);
}

.tutorial-phone-overlay.visible .tutorial-wa-message:nth-of-type(1) { transition-delay: 0.3s; }
.tutorial-phone-overlay.visible .tutorial-wa-message:nth-of-type(2) { transition-delay: 0.7s; }
.tutorial-phone-overlay.visible .tutorial-wa-message:nth-of-type(3) { transition-delay: 1.1s; }
.tutorial-phone-overlay.visible .tutorial-wa-message:nth-of-type(4) { transition-delay: 1.5s; }

.tutorial-wa-text {
    font-size: 14px;
    line-height: 1.38;
    color: #111b21;
    text-align: start;
    overflow-wrap: break-word;
}

.tutorial-wa-time {
    align-self: flex-end;
    font-size: 10.5px;
    color: #667781;
    margin-top: 1px;
    margin-inline-start: 10px;
    direction: ltr;
}

/* Input bar */
.tutorial-wa-inputbar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px 24px 11px;
    flex-shrink: 0;
}

.tutorial-wa-inputfield {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    background: #fff;
    border-radius: 20px;
    padding: 9px 11px;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

.tutorial-wa-inputline { flex: 1; }

.tutorial-wa-micbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #00A884;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(11, 20, 26, 0.2);
}

/* Ad-video phone shell around the chatbot's shared WhatsApp UI */
.tutorial-phone-overlay {
    --phone-scale: 1.05;
}

.tutorial-phone {
    width: 260px;
    padding: 8px;
    border-radius: 48px;
    background:
        linear-gradient(90deg, #8c8478 0, #eee9df 4%, #b6ac9e 9%, #f8f5ef 94%, #968d80 100%);
    box-shadow:
        0 35px 65px rgba(39, 31, 24, 0.32),
        0 10px 24px rgba(39, 31, 24, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9),
        inset 0 0 0 3px rgba(40, 37, 33, 0.34);
    transform: perspective(900px) rotateY(-3deg) rotateX(1deg) rotateZ(-0.7deg);
}

.tutorial-phone::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 3px solid #080808;
    border-radius: 42px;
    pointer-events: none;
    z-index: 5;
}

.tutorial-phone-screen {
    position: relative;
    aspect-ratio: 9 / 19.4;
    border-radius: 40px;
    background: #171717;
    color: #fff;
    isolation: isolate;
}

.tutorial-phone-side-button {
    position: absolute;
    width: 4px;
    border: 1px solid rgba(62, 57, 51, 0.5);
    background: linear-gradient(90deg, #777065, #d2cabd 65%, #837b70);
    box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.25);
    z-index: -1;
}

.tutorial-phone-side-button-action {
    top: 98px;
    left: -4px;
    height: 22px;
    border-radius: 3px 0 0 3px;
}

.tutorial-phone-side-button-up {
    top: 137px;
    left: -5px;
    height: 48px;
    border-radius: 4px 0 0 4px;
}

.tutorial-phone-side-button-down {
    top: 197px;
    left: -5px;
    height: 48px;
    border-radius: 4px 0 0 4px;
}

.tutorial-phone-side-button-power {
    top: 158px;
    right: -5px;
    height: 74px;
    border-radius: 0 4px 4px 0;
}

.tutorial-phone-dynamic-island {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 88px;
    height: 25px;
    border-radius: 16px;
    background: #000;
    transform: translateX(-50%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    z-index: 7;
}

.tutorial-phone-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 47px;
    padding: 0 20px 0 24px;
    box-sizing: border-box;
    color: #fff;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.1px;
    flex-shrink: 0;
    z-index: 6;
}

.tutorial-phone-statusicons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tutorial-phone .support-chat-widget {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    max-height: none;
    flex: 1;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: none;
    z-index: 1;
}

.tutorial-whatsapp-header {
    height: 53px;
    padding: 0 10px 0 7px;
    gap: 5px;
    justify-content: flex-start;
}

.tutorial-whatsapp-header .support-chat-header-info {
    min-width: 0;
    flex: 1;
    gap: 8px;
}

.tutorial-whatsapp-header .support-chat-avatar {
    width: 34px;
    height: 34px;
}

.tutorial-whatsapp-header .support-chat-title {
    font-size: 15px;
}

.tutorial-whatsapp-header .support-chat-status {
    font-size: 10.5px;
}

.tutorial-wa-back {
    flex-shrink: 0;
    color: #d1d7db;
}

[dir="rtl"] .tutorial-wa-back {
    transform: scaleX(-1);
}

.tutorial-wa-actions {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding-inline-end: 2px;
    color: #d1d7db;
    flex-shrink: 0;
}

.tutorial-wa-messages {
    justify-content: flex-end;
    gap: 1px;
    padding-bottom: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.tutorial-wa-datechip {
    align-self: center;
    margin: 4px auto 7px;
    padding: 4px 10px;
    border-radius: 7px;
    background: #182229;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.24);
    color: #8696a0;
    font-size: 9.5px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.tutorial-wa-messages .support-chat-message {
    max-width: 91%;
    padding: 2px 10px;
    opacity: 0;
    transform: translateY(10px);
    animation: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.tutorial-wa-messages .support-chat-message-content {
    padding: 5px 7px 4px 8px;
    font-size: 12.2px;
    line-height: 16px;
}

.tutorial-wa-messages .support-chat-message-time {
    font-size: 9.5px;
}

.tutorial-phone-overlay.visible .tutorial-wa-messages .support-chat-message {
    opacity: 1;
    transform: translateY(0);
}

.tutorial-phone-overlay.visible .tutorial-wa-messages .support-chat-message:nth-child(2) { transition-delay: 0.25s; }
.tutorial-phone-overlay.visible .tutorial-wa-messages .support-chat-message:nth-child(3) { transition-delay: 0.6s; }
.tutorial-phone-overlay.visible .tutorial-wa-messages .support-chat-message:nth-child(4) { transition-delay: 0.95s; }
.tutorial-phone-overlay.visible .tutorial-wa-messages .support-chat-message:nth-child(5) { transition-delay: 1.3s; }

.tutorial-wa-composer {
    min-height: 51px;
    align-items: center;
    gap: 7px;
    padding: 4px 8px 18px;
}

.tutorial-wa-plus {
    color: #aebac1;
    flex-shrink: 0;
}

.tutorial-wa-input {
    min-width: 0;
    min-height: 31px;
    padding: 0;
    background: #2c2c2c;
}

.tutorial-wa-mic {
    width: 32px;
    height: 32px;
    opacity: 1;
}

.tutorial-phone-home-indicator {
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 92px;
    height: 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.42);
    transform: translateX(-50%);
    z-index: 6;
}

/* Posts Container */
.tutorial-posts-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    gap: 0;
}

/* Individual Post Mockup */
.tutorial-post {
    width: 160px;
    opacity: 0;
    transform: translateY(200px) scale(0.3);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-left: -30px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.25));
}

.tutorial-post:first-child {
    margin-left: 0;
}

.tutorial-post.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tutorial-post[data-index="0"] { z-index: 1; transition-delay: 0s; }
.tutorial-post[data-index="1"] { z-index: 2; transition-delay: 0.1s; }
.tutorial-post[data-index="2"] { z-index: 3; transition-delay: 0.2s; }
.tutorial-post[data-index="3"] { z-index: 4; transition-delay: 0.3s; }
.tutorial-post[data-index="4"] { z-index: 5; transition-delay: 0.4s; }

.tutorial-post-inner {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tutorial-post-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    direction: ltr;
}

.tutorial-post-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.tutorial-post-username {
    font-size: 11px;
    font-weight: 600;
    color: #262626;
}

.tutorial-post-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f0f0f0;
    overflow: hidden;
}

.tutorial-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutorial-post-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    direction: ltr;
}

.tutorial-post-heart {
    display: inline-block;
    width: 14px;
    height: 14px;
    position: relative;
}

.tutorial-post-heart::before,
.tutorial-post-heart::after {
    content: '';
    position: absolute;
    top: 0;
    width: 7px;
    height: 12px;
    background: #ed4956;
    border-radius: 7px 7px 0 0;
}

.tutorial-post-heart::before {
    left: 7px;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.tutorial-post-heart::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.tutorial-post-likes {
    font-size: 11px;
    font-weight: 600;
    color: #262626;
}

/* Responsive Design */
@media (max-width: 968px) {
    .tutorial-section {
        padding: 0 20px 40px 20px;
    }

    .tutorial-section-title {
        font-size: 2rem;
        white-space: normal;
    }

    .tutorial-section-title .mobile-br {
        display: block;
    }

    .tutorial-section-subtitle {
        white-space: normal;
    }

    .tutorial-block,
    .tutorial-block.reversed {
        grid-template-columns: 1fr;
        margin-bottom: 60px;
    }

    /* Mobile: both blocks look identical - image on top, explanation below */
    .tutorial-block .tutorial-explanation-box,
    .tutorial-block.reversed .tutorial-explanation-box {
        order: 2 !important;
        border-radius: 32px !important;
        padding: 72px 32px 32px 32px;
    }

    .tutorial-explanation-content,
    .tutorial-block.reversed .tutorial-explanation-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .tutorial-block .tutorial-image-box,
    .tutorial-block.reversed .tutorial-image-box {
        order: 1 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: -40px;
        min-height: 400px;
    }

    /* Mobile posts */
    .tutorial-post {
        width: 70px;
        margin-left: -15px;
    }

    .tutorial-post-inner {
        border-radius: 8px;
    }

    .tutorial-post-header {
        padding: 4px 6px;
        gap: 4px;
    }

    .tutorial-post-avatar {
        width: 12px;
        height: 12px;
    }

    .tutorial-post-username {
        font-size: 6px;
    }

    .tutorial-post-actions {
        padding: 4px 6px;
        gap: 3px;
    }

    .tutorial-post-heart {
        width: 8px;
        height: 8px;
    }

    .tutorial-post-heart::before,
    .tutorial-post-heart::after {
        width: 4px;
        height: 7px;
        border-radius: 4px 4px 0 0;
    }

    .tutorial-post-heart::before {
        left: 4px;
    }

    .tutorial-post-likes {
        font-size: 6px;
    }

    .tutorial-social-logos {
        bottom: 20px;
        gap: 12px;
    }

    .tutorial-social-logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .tutorial-social-logo svg {
        width: 22px;
        height: 22px;
    }

    /* Scale the WhatsApp phone mockup down so it fits the 400px image box */
    .tutorial-phone-overlay {
        --phone-scale: 0.68;
    }

    .tutorial-explanation-title {
        font-size: 1.5rem;
    }

    .tutorial-explanation-subtitle {
        font-size: 1rem;
    }

    .tutorial-explanation-button {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tutorial-section {
        padding: 0 16px 30px 16px;
    }

    .tutorial-block .tutorial-explanation-box {
        padding: 64px 24px 24px 24px;
    }

    .tutorial-explanation-title {
        font-size: 1.35rem;
    }

    .tutorial-explanation-subtitle {
        font-size: 0.95rem;
    }

    .tutorial-explanation-button {
        font-size: 0.95rem;
        padding: 10px 20px;
    }

    .tutorial-block {
        margin-bottom: 40px;
    }

    .tutorial-block .tutorial-image-box,
    .tutorial-block.reversed .tutorial-image-box {
        min-height: 300px;
    }

    .tutorial-whatsapp-block .tutorial-image-box {
        min-height: 380px;
    }

    .tutorial-phone-overlay {
        --phone-scale: 0.64;
    }
}

/* RTL Support */
.tutorial-section[dir="rtl"] .tutorial-explanation-content {
    text-align: right;
}

.tutorial-section[dir="rtl"] .tutorial-block .tutorial-explanation-box {
    border-radius: 0 32px 32px 0;
}

.tutorial-section[dir="rtl"] .tutorial-block .tutorial-image-box {
    margin-left: 0;
    margin-right: -32px;
}

.tutorial-section[dir="rtl"] .tutorial-block.reversed .tutorial-explanation-box {
    border-radius: 32px 0 0 32px;
}

.tutorial-section[dir="rtl"] .tutorial-block.reversed .tutorial-image-box {
    margin-right: 0;
    margin-left: -32px;
}

.tutorial-section[dir="rtl"] .tutorial-explanation-content {
    margin-left: 40px;
    margin-right: 0;
}

.tutorial-section[dir="rtl"] .tutorial-block.reversed .tutorial-explanation-content {
    margin-right: 50px;
    margin-left: 40px;
}

/* RTL Mobile - reset margins since layout stacks */
@media (max-width: 968px) {
    .tutorial-section[dir="rtl"] .tutorial-explanation-content,
    .tutorial-section[dir="rtl"] .tutorial-block.reversed .tutorial-explanation-content {
        margin-left: 0;
        margin-right: 0;
        text-align: right;
    }

    .tutorial-section[dir="rtl"] .tutorial-block .tutorial-image-box,
    .tutorial-section[dir="rtl"] .tutorial-block.reversed .tutorial-image-box {
        margin-left: 0;
        margin-right: 0;
    }

    .tutorial-section[dir="rtl"] .tutorial-block .tutorial-explanation-box,
    .tutorial-section[dir="rtl"] .tutorial-block.reversed .tutorial-explanation-box {
        border-radius: 32px;
    }
}
