/**
 * Intro landing refresh — works with theme vars from header (:root --main, --hover, --main2).
 * Scoped via .intro-modern on .body-content; layout chrome via body:has(.intro-modern).
 */

.intro-modern {
    --intro-surface: #f1f5f9;
    --intro-surface-elevated: #ffffff;
    --intro-text: #0f172a;
    --intro-muted: #64748b;
    --intro-border: rgba(15, 23, 42, 0.08);
    --intro-radius: 1rem;
    --intro-radius-lg: 1.25rem;
    --intro-radius-xl: 1.75rem;
    --intro-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 24px -8px rgba(15, 23, 42, 0.12);
    --intro-shadow-hover: 0 4px 6px rgba(15, 23, 42, 0.07), 0 20px 36px -12px rgba(15, 23, 42, 0.18);
}

body:has(.intro-modern) {
    background-color: var(--intro-surface);
    color: var(--intro-text);
}

.intro-modern .grey-color {
    color: var(--intro-muted) !important;
}

/* ——— Header ——— */
body:has(.intro-modern) header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--intro-border), 0 8px 24px -12px rgba(15, 23, 42, 0.08);
    padding: 12px 0;
}

body:has(.intro-modern) .nav_bar a {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-weight: 500;
}

body:has(.intro-modern) .nav_bar a:hover {
    color: var(--main) !important;
    background: color-mix(in srgb, var(--main) 10%, transparent);
}

body:has(.intro-modern) .dropdown-toggle {
    border-radius: 999px;
    padding: 0.45rem 1rem;
    border: 1px solid var(--intro-border);
    background: var(--intro-surface-elevated);
    font-weight: 500;
}

@media (max-width: 991.98px) {
    body:has(.intro-modern) .nav_bar {
        background: linear-gradient(160deg, color-mix(in srgb, var(--main) 92%, #1e293b) 0%, color-mix(in srgb, var(--main) 75%, #0f172a) 100%);
        color: #fff;
    }

    body:has(.intro-modern) .nav_bar a {
        color: rgba(255, 255, 255, 0.95);
    }

    body:has(.intro-modern) .nav_bar a.active {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.18);
    }
}

/* ——— Section rhythm ——— */
.intro-modern .sec-padd {
    padding-top: clamp(3rem, 7vw, 5rem);
    padding-bottom: clamp(3rem, 7vw, 5rem);
}

.intro-modern .the_title {
    max-width: 42rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.intro-modern .the_title h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--intro-text);
    margin-bottom: 0.75rem;
}

.intro-modern .the_title p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--intro-muted);
    margin-bottom: 0;
}

.intro-modern .bacg_section .the_title h3,
.intro-modern .bacg_section .the_title p {
    color: rgba(255, 255, 255, 0.95);
}

.intro-modern .bacg_section .the_title p {
    color: rgba(255, 255, 255, 0.82);
}

/* Section backgrounds */
.intro-modern .bacg_section {
    background: var(--main2);
    position: relative;
    overflow: hidden;
}

.intro-modern .bacg_section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 255, 255, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(255, 255, 255, 0.08), transparent 50%);
    pointer-events: none;
}

.intro-modern .bacg_section > .container {
    position: relative;
    z-index: 1;
}

.intro-modern .bacg_section2 {
    background: linear-gradient(180deg, #faf8ff 0%, #f8fafc 45%, #f1f5f9 100%);
}

/* ——— Hero / slider ——— */
.intro-modern .owl-index .info_owl {
    height: clamp(420px, 58vw, 540px);
    border-radius: 0 0 var(--intro-radius-xl) var(--intro-radius-xl);
    background: linear-gradient(135deg, color-mix(in srgb, var(--main) 18%, #f8fafc) 0%, #f1f5f9 48%, color-mix(in srgb, var(--hover) 12%, #fff) 100%);
    isolation: isolate;
}

.intro-modern .owl-index .info_owl::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 70% 45%, color-mix(in srgb, var(--main) 25%, transparent), transparent 65%);
    z-index: 0;
    pointer-events: none;
}

.intro-modern .owl-index .info_owl > .container {
    position: relative;
    z-index: 5;
}

.intro-modern .ads_wol {
    max-width: min(28rem, 92vw);
}

.intro-modern .ads_wol h3 {
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.intro-modern .ads_wol p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Modern slider image: clean frame, no diagonal crop */
.intro-modern .owl-index .img_owl_index.intro-hero-frame {
    transform: none;
    width: min(400px, 38vw);
    height: min(480px, 52vh);
    max-height: min(480px, 78%);
    left: auto !important;
    right: auto !important;
    bottom: clamp(32px, 8vh, 72px);
    inset-inline-end: clamp(8px, 3vw, 56px);
    inset-inline-start: auto;
    border-radius: var(--intro-radius-xl);
    overflow: visible;
    border: none;
    box-shadow: none;
    background: transparent;
}

.intro-modern .owl-index .img_owl_index.intro-hero-frame::after {
    display: none;
}

.intro-modern .owl-index .intro-hero-frame-ring {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--intro-radius-xl);
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--main) 12%, transparent),
        0 28px 56px -16px rgba(15, 23, 42, 0.35),
        0 12px 28px -10px color-mix(in srgb, var(--main) 22%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    background: #0f172a;
}

.intro-modern .owl-index .intro-hero-frame-ring::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.12) 0%,
        transparent 42%,
        color-mix(in srgb, var(--main) 20%, transparent) 100%
    );
}

.intro-modern .owl-index .intro-hero-slide-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.intro-modern .owl-carousel .owl-dot {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--intro-border);
}

.intro-modern .owl-carousel .owl-dot.active {
    border-color: transparent;
}

.intro-modern .owl-nav > div {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--intro-border);
    box-shadow: var(--intro-shadow);
}

@media (max-width: 767.98px) {
    .intro-modern .owl-index .img_owl_index.intro-hero-frame {
        width: min(92%, 340px) !important;
        height: min(260px, 38vh) !important;
        max-height: none;
        inset-inline-end: auto !important;
        inset-inline-start: 50% !important;
        bottom: 16px;
        transform: translateX(-50%) !important;
    }
}

/* ——— About ——— */
.intro-modern .intro-about-panel {
    background: var(--intro-surface-elevated);
    border-radius: var(--intro-radius-xl);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    border: 1px solid var(--intro-border);
    box-shadow: var(--intro-shadow);
    height: 100%;
}

.intro-modern .intro-about-panel h4 {
    font-weight: 700;
    font-size: 1.35rem;
}

.intro-modern .intro-about-panel .main-color {
    color: var(--main) !important;
}

.intro-modern .img_info_JM img {
    border-radius: var(--intro-radius-lg);
    box-shadow: var(--intro-shadow);
}

/* ——— Feature sections: user vs provider ——— */
.intro-modern .intro-features-user-section {
    background: linear-gradient(
        180deg,
        var(--intro-surface-elevated) 0%,
        color-mix(in srgb, var(--main) 5%, var(--intro-surface)) 42%,
        var(--intro-surface) 100%
    );
}

.intro-modern .intro-features-provider-section {
    background: linear-gradient(168deg, #f1f5f9 0%, #e8ecf4 48%, #dfe7f1 100%);
    border-block: 1px solid var(--intro-border);
}

/* ——— Feature / service cards ——— */
.intro-modern .box-servess::after {
    display: none;
}

.intro-modern .box-servess {
    background: var(--intro-surface-elevated);
    border: 1px solid var(--intro-border);
    border-radius: var(--intro-radius-lg);
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 2.5vw, 1.75rem);
    margin: 0;
    min-height: 15rem;
    box-shadow: var(--intro-shadow);
    transition:
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease;
}

.intro-modern .box-servess:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--main) 42%, var(--intro-border));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--main) 20%, transparent),
        0 14px 28px -10px rgba(15, 23, 42, 0.1),
        0 28px 56px -16px color-mix(in srgb, var(--main) 18%, transparent);
}

.intro-modern .intro-feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--intro-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, color-mix(in srgb, var(--main) 16%, #fff), color-mix(in srgb, var(--hover) 10%, #fff));
    margin-bottom: 1.1rem;
    transition:
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.42s ease,
        background 0.35s ease;
}

.intro-modern .box-servess-user {
    min-height: 15rem;
    transition:
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        background 0.38s ease;
}

.intro-modern #our_service .box-servess:not(.box-servess-provider) {
    transition:
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        background 0.38s ease;
}

.intro-modern .box-servess-user:hover,
.intro-modern #our_service .box-servess:not(.box-servess-provider):hover {
    background: linear-gradient(
        152deg,
        #ffffff 0%,
        color-mix(in srgb, var(--main) 12%, #ffffff) 28%,
        color-mix(in srgb, var(--main) 22%, #f8fafc) 58%,
        color-mix(in srgb, var(--hover) 18%, #fffbeb) 100%
    );
    border-color: color-mix(in srgb, var(--main) 30%, var(--intro-border));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--main) 14%, transparent),
        0 14px 32px -12px color-mix(in srgb, var(--main) 18%, transparent),
        0 26px 52px -20px rgba(15, 23, 42, 0.08);
}

.intro-modern .box-servess-user:hover h6,
.intro-modern #our_service .box-servess:not(.box-servess-provider):hover h6 {
    color: var(--main) !important;
}

.intro-modern .box-servess-user:hover .grey-color,
.intro-modern #our_service .box-servess:not(.box-servess-provider):hover .grey-color {
    color: var(--intro-muted) !important;
}

.intro-modern .box-servess-user:hover .intro-feature-icon:not(.intro-feature-icon-provider),
.intro-modern #our_service .box-servess:not(.box-servess-provider):hover .intro-feature-icon:not(.intro-feature-icon-provider) {
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--main) 14%, #ffffff),
        color-mix(in srgb, var(--hover) 12%, #ffffff)
    );
    border: 1px solid color-mix(in srgb, var(--main) 20%, #e2e8f0);
    box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--main) 22%, transparent);
}

.intro-modern .box-servess-provider {
    min-height: 0;
    padding: clamp(1.15rem, 2.5vw, 1.55rem) clamp(1.15rem, 2.5vw, 1.65rem);
    border: 1px solid var(--intro-border);
    border-inline-start: 4px solid var(--main);
    background: linear-gradient(118deg, #ffffff 0%, #f8fafc 45%, #f1f5f9 100%);
    box-shadow: var(--intro-shadow);
}

.intro-modern .intro-provider-card-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    height: 100%;
    min-height: 8.5rem;
}

@media (min-width: 768px) {
    .intro-modern .intro-provider-card-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.25rem;
    }
}

.intro-modern .intro-provider-card-text {
    flex: 1;
    min-width: 0;
}

.intro-modern .intro-feature-icon-provider {
    flex-shrink: 0;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    margin-bottom: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 2px solid color-mix(in srgb, var(--main) 42%, #cbd5e1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 12px 28px -14px rgba(15, 23, 42, 0.35);
}

.intro-modern .intro-feature-icon-provider img {
    max-width: 1.85rem !important;
    width: 1.85rem;
    opacity: 0.95;
}

.intro-modern .box-servess-provider:hover {
    transform: translateY(-8px);
    border: 1px solid var(--intro-border);
    border-inline-start: 5px solid color-mix(in srgb, var(--hover) 35%, var(--main));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--main) 14%, transparent),
        0 14px 28px -10px rgba(15, 23, 42, 0.12),
        0 28px 52px -18px color-mix(in srgb, var(--main) 16%, transparent);
}

.intro-modern .box-servess-provider:hover .intro-feature-icon-provider {
    transform: scale(1.06);
    border-color: color-mix(in srgb, var(--main) 65%, #94a3b8);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 14px 32px -12px color-mix(in srgb, var(--main) 35%, transparent);
    background: #fff !important;
}

.intro-modern .box-servess:hover .intro-feature-icon:not(.intro-feature-icon-provider) {
    transform: scale(1.06);
    box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--main) 32%, transparent);
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--main) 22%, #fff),
        color-mix(in srgb, var(--hover) 14%, #fff)
    );
}

.intro-modern .intro-feature-icon img {
    max-width: 2rem !important;
    width: 2rem;
    height: auto;
    margin: 0 !important;
    filter: saturate(1.1);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-modern .box-servess:hover .intro-feature-icon:not(.intro-feature-icon-provider) img {
    transform: scale(1.05);
}

.intro-modern .box-servess-provider:hover .intro-feature-icon-provider img {
    transform: scale(1.06);
}

.intro-modern .box-servess h6 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: var(--intro-text);
    transition: color 0.3s ease;
}

.intro-modern .box-servess:hover h6 {
    color: var(--main);
}

.intro-modern .box-servess p {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.intro-modern .box-servess.d-flex.flex-column p.grey-color {
    flex-grow: 1;
}

.intro-modern .bacg_section .box-servess {
    background: rgba(255, 255, 255, 0.97);
}

.intro-modern .bacg_section .box-servess p {
    color: var(--intro-muted);
}

.intro-modern .bacg_section .box-servess h6 {
    color: var(--intro-text);
}

.intro-modern .bacg_section .box-servess:hover h6 {
    color: var(--main);
}

.intro-modern .intro-features-row > [class*="col-"] {
    margin-bottom: 1.5rem;
}

/* ——— How it works ——— */
.intro-modern .how_work {
    background-image: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0;
}

.intro-modern .intro-how-step {
    list-style: none;
    width: auto;
    flex: 1 1 140px;
    max-width: 180px;
    margin: 0;
}

.intro-modern .intro-how-step-inner {
    background: var(--intro-surface-elevated);
    border: 1px solid var(--intro-border);
    border-radius: var(--intro-radius-lg);
    padding: 1.25rem 1rem;
    box-shadow: var(--intro-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.intro-modern .intro-how-step-inner:hover {
    transform: translateY(-4px);
    box-shadow: var(--intro-shadow-hover);
}

/* Thumbnails: rounded rectangle, no circular crop or ring border */
.intro-modern .how_work img {
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 0.85rem;
    display: block;
    border-radius: var(--intro-radius-lg);
    border: none !important;
    object-fit: cover;
    box-shadow: 0 6px 18px -8px rgba(15, 23, 42, 0.22);
}

.intro-modern .ip-step img,
.intro-modern .ip-step.ip-reveal img {
    border-radius: var(--intro-radius-lg);
    border: none !important;
}

.intro-modern .intro-how-step .intro-how-step-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--intro-text);
}

/* ——— FAQ tabs & accordion ——— */
.intro-modern .nav-pills .nav-link {
    background: var(--intro-surface-elevated);
    border: 1px solid var(--intro-border);
    border-radius: 999px !important;
    font-weight: 600;
    box-shadow: none;
    width: auto;
    min-width: 8rem;
    padding: 0 1.25rem;
}

.intro-modern .nav-pills .nav-link.active {
    background-image: var(--main2) !important;
    border-color: transparent;
    color: #fff !important;
}

.intro-modern .intro-faq-accordion .card {
    border: 1px solid var(--intro-border);
    border-radius: var(--intro-radius) !important;
    box-shadow: var(--intro-shadow);
    margin: 0 0 0.75rem;
    overflow: hidden;
    background: var(--intro-surface-elevated);
}

.intro-modern .intro-faq-accordion .card-header {
    background: transparent;
}

.intro-modern .intro-faq-accordion .card-header button {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--intro-text);
    position: relative;
    transition: background 0.2s ease;
}

.intro-modern .intro-faq-accordion .card-header button:hover {
    background: color-mix(in srgb, var(--main) 6%, transparent);
}

.intro-modern .intro-faq-accordion .card-header button[aria-expanded="true"] {
    color: var(--main);
}

.intro-modern .intro-faq-accordion .card-body {
    padding: 1.25rem clamp(1.25rem, 4vw, 2rem) 1.75rem;
    color: var(--intro-muted);
    line-height: 1.65;
    border-top: 1px solid var(--intro-border);
}

/* ——— Contact ——— */
.intro-modern .intro-contact-card {
    background: var(--intro-surface-elevated);
    border-radius: var(--intro-radius-xl);
    border: 1px solid var(--intro-border);
    box-shadow: var(--intro-shadow);
    padding: clamp(1.75rem, 4vw, 2.75rem);
}

.intro-modern .form-control {
    border: 1px solid var(--intro-border);
    background: #f8fafc;
    border-radius: var(--intro-radius);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.intro-modern .form-control:focus {
    background: #fff;
    border-color: color-mix(in srgb, var(--main) 45%, var(--intro-border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--main) 18%, transparent);
}

.intro-modern textarea.form-control {
    min-height: 10rem;
}

.intro-modern .btn-main {
    width: auto;
    min-width: 11rem;
    padding: 0 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-inline: auto;
    box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--main) 45%, transparent);
}

.intro-modern .btn-main:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* ——— Footer (intro layout) ——— */
body:has(.intro-modern) footer {
    background: var(--main2);
    padding-top: clamp(2.5rem, 5vw, 3.5rem);
    position: relative;
    overflow: hidden;
}

body:has(.intro-modern) footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 10% 0%, rgba(255, 255, 255, 0.12), transparent 55%);
    pointer-events: none;
}

body:has(.intro-modern) footer .container {
    position: relative;
    z-index: 1;
}

body:has(.intro-modern) .under_footer {
    background: color-mix(in srgb, var(--main) 88%, #000);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body:has(.intro-modern) .social-m li a i {
    color: #fff;
}

body:has(.intro-modern) .link-footer a {
    opacity: 0.92;
}

body:has(.intro-modern) .link-footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Footer layout polish */
body:has(.intro-modern) .footer-section {
    gap: 2rem;
}

body:has(.intro-modern) .intro-about {
    max-width: 22rem;
}

body:has(.intro-modern) .intro-about p {
    opacity: 0.92;
    line-height: 1.65;
}

body:has(.intro-modern) .Tfooter {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.95;
}

body:has(.intro-modern) .under_footer {
    margin-top: clamp(2rem, 4vw, 2.5rem);
}

/* ——— Small screens ——— */
@media (max-width: 767.98px) {
    .intro-modern .owl-index .info_owl {
        border-radius: 0 0 var(--intro-radius-lg) var(--intro-radius-lg);
    }

    .intro-modern .intro-how-step {
        max-width: 100%;
        flex: 1 1 calc(50% - 0.5rem);
    }

    .intro-modern .box-servess {
        min-height: 0;
    }
}

/* ——— Image preview modal (intro_site layouts/footer) ——— */
.intro-img-preview {
    cursor: zoom-in;
}

.intro-img-preview:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--main, #64748b) 65%, #94a3b8);
    outline-offset: 3px;
}

.intro-img-preview-modal .modal-backdrop.show {
    opacity: 0.92;
}

.intro-img-preview-modal-dialog {
    max-width: min(96vw, 1240px);
    margin: 2rem auto;
}

.intro-img-preview-modal-content {
    position: relative;
}

.intro-img-preview-dismiss.close {
    float: none;
    position: absolute;
    top: -3rem;
    inset-inline-end: 0;
    z-index: 1060;
    color: #fff;
    opacity: 1;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
    padding: 0.25rem 0.75rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.intro-img-preview-dismiss:hover {
    color: #fff;
    opacity: 0.88;
    transform: scale(1.06);
}

.intro-img-preview-target {
    max-height: min(88vh, 920px);
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    display: block;
}

.intro-img-preview-modal-body {
    line-height: 0;
}

@media (max-width: 575.98px) {
    .intro-img-preview-dismiss.close {
        top: -2.5rem;
        font-size: 2rem;
    }

    .intro-img-preview-modal-dialog {
        margin: 1.5rem auto;
    }

    .intro-img-preview-target {
        max-height: min(82vh, 720px);
    }
}

/* ——— Privacy policy page ——— */
body:has(.intro-page-privacy) {
    background-color: #f1f5f9;
}

.intro-page-privacy .privacy-page-hero {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--main) 12%, #f8fafc) 0%,
        #f1f5f9 48%,
        color-mix(in srgb, var(--hover) 9%, #ffffff) 100%
    );
    padding: clamp(1.75rem, 5vw, 3rem) 0 clamp(1.5rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--intro-border);
}

.intro-page-privacy .privacy-breadcrumb {
    font-size: 0.875rem;
    color: var(--intro-muted);
    margin-bottom: 0.875rem;
}

.intro-page-privacy .privacy-breadcrumb a {
    color: var(--main);
    font-weight: 600;
}

.intro-page-privacy .privacy-breadcrumb a:hover {
    color: var(--hover);
    text-decoration: underline;
}

.intro-page-privacy .privacy-breadcrumb-sep {
    margin-inline: 0.45rem;
    opacity: 0.45;
}

.intro-page-privacy .privacy-page-title {
    font-size: clamp(1.65rem, 3.8vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--intro-text);
    margin: 0;
    line-height: 1.2;
}

.intro-page-privacy .privacy-page-body {
    padding: clamp(1.75rem, 5vw, 3.25rem) 0 clamp(2.5rem, 7vw, 4.5rem);
}

.intro-page-privacy .privacy-prose {
    max-width: 46rem;
    margin-inline: auto;
    background: var(--intro-surface-elevated);
    border: 1px solid var(--intro-border);
    border-radius: var(--intro-radius-xl);
    padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem);
    box-shadow: var(--intro-shadow);
}

.intro-page-privacy .privacy-prose > *:first-child {
    margin-top: 0;
}

.intro-page-privacy .privacy-prose > *:last-child {
    margin-bottom: 0;
}

.intro-page-privacy .privacy-prose h2,
.intro-page-privacy .privacy-prose h3,
.intro-page-privacy .privacy-prose h4 {
    font-weight: 700;
    color: var(--intro-text);
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.intro-page-privacy .privacy-prose h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.45rem);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--intro-border);
}

.intro-page-privacy .privacy-prose h3 {
    font-size: 1.1rem;
}

.intro-page-privacy .privacy-prose h4 {
    font-size: 1rem;
}

.intro-page-privacy .privacy-prose h2:first-child {
    margin-top: 0;
}

.intro-page-privacy .privacy-prose p {
    color: var(--intro-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.intro-page-privacy .privacy-prose ul,
.intro-page-privacy .privacy-prose ol {
    margin: 0 0 1.125rem;
    padding-inline-start: 1.35rem;
    color: var(--intro-muted);
    line-height: 1.75;
}

.intro-page-privacy .privacy-prose li {
    margin-bottom: 0.35rem;
}

.intro-page-privacy .privacy-prose li::marker {
    color: color-mix(in srgb, var(--main) 65%, var(--intro-muted));
}

.intro-page-privacy .privacy-prose a {
    color: var(--main);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.intro-page-privacy .privacy-prose a:hover {
    color: var(--hover);
}

.intro-page-privacy .privacy-prose strong {
    color: var(--intro-text);
    font-weight: 700;
}

.intro-page-privacy .privacy-prose blockquote {
    margin: 1.25rem 0;
    padding: 0.85rem 1rem;
    border-inline-start: 4px solid var(--main);
    background: color-mix(in srgb, var(--main) 6%, var(--intro-surface-elevated));
    border-radius: 0 var(--intro-radius) var(--intro-radius) 0;
    color: var(--intro-muted);
}
