/* ============================================================
   Product-tour marketing surface — /tour and /tour/{phase}.
   Loaded site-wide via _Layout.cshtml; rules are namespaced by
   .tour-* / .lifecycle-spine* / .marketing-* so they don't leak
   into the authed app surface. Do not promote utilities into
   app.css unless they're reused outside the tour.
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */

.tour-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 72px 32px 64px;
    border-bottom: 1px solid #e5e7eb;
}

.tour-hero__inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.tour-hero__eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    font-weight: 700;
    color: #0089DC;
    background: rgba(0, 137, 220, 0.08);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.tour-hero__title {
    margin: 0;
    font-size: 44px;
    line-height: 1.1;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.tour-hero__subtitle {
    margin: 18px auto 0;
    max-width: 680px;
    font-size: 18px;
    line-height: 1.55;
    color: #475569;
}

.tour-hero__actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── CTA buttons ──────────────────────────────────────────── */

.tour-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 60ms ease, background-color 120ms ease;
}

.tour-cta--primary {
    background: #0089DC;
    color: #fff;
}

.tour-cta--primary:hover {
    background: #0073bb;
    transform: translateY(-1px);
}

.tour-cta--ghost {
    background: transparent;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.tour-cta--ghost:hover {
    background: #f1f5f9;
}

/* ── Section scaffold ─────────────────────────────────────── */

.tour-section {
    padding: 64px 32px;
}

.tour-section--alt {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.tour-section__inner {
    max-width: 1080px;
    margin: 0 auto;
}

.tour-section__inner--narrow {
    max-width: 760px;
}

.tour-section__head {
    margin-bottom: 36px;
    text-align: center;
}

.tour-section__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.tour-section__lede {
    margin: 12px auto 0;
    max-width: 640px;
    color: #475569;
    font-size: 16px;
    line-height: 1.55;
}

/* ── Lifecycle spine ──────────────────────────────────────── */

.lifecycle-spine {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lifecycle-spine__item {
    position: relative;
}

.lifecycle-spine__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px 22px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform 80ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.lifecycle-spine__card:hover {
    transform: translateY(-2px);
    border-color: #0089DC;
    box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.18);
}

.lifecycle-spine__step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.lifecycle-spine__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.lifecycle-spine__item.is-ready .lifecycle-spine__step-num {
    background: #0089DC;
}

.lifecycle-spine__step-orat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.lifecycle-spine__name {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.lifecycle-spine__tagline {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    flex: 1;
}

.lifecycle-spine__cta {
    font-size: 13px;
    font-weight: 600;
    color: #0089DC;
}

.lifecycle-spine__item.is-coming .lifecycle-spine__cta {
    color: #94a3b8;
}

/* ── Before / after card ──────────────────────────────────── */

.tour-beforeafter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}

.tour-beforeafter__col {
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
}

.tour-beforeafter__before {
    background: #fafaf9;
}

.tour-beforeafter__after {
    border-color: #bae6fd;
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.tour-beforeafter__label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.tour-beforeafter__label--brand {
    color: #0369a1;
    background: #e0f2fe;
}

.tour-beforeafter__caricature {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

/* ── Screenshots & clips ──────────────────────────────────── */

.tour-shots {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tour-shots--single {
    grid-template-columns: 1fr;
    max-width: 880px;
    margin: 0 auto;
}

.tour-shot {
    margin: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px -20px rgba(15, 23, 42, 0.18);
}

.tour-shot__img {
    display: block;
    width: 100%;
    height: auto;
    background: #f8fafc;
}

.tour-shot__caption {
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    border-top: 1px solid #f1f5f9;
}

.tour-clip {
    margin: 0 auto;
    max-width: 960px;
}

.tour-clip__frame {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #0f172a;
    box-shadow: 0 18px 44px -28px rgba(15, 23, 42, 0.4);
}

.tour-clip__video {
    display: block;
    width: 100%;
    height: auto;
}

.tour-clip__caption {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    color: #475569;
}

.tour-clip__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 880px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
    background: repeating-linear-gradient(45deg, #f8fafc 0, #f8fafc 12px, #f1f5f9 12px, #f1f5f9 24px);
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

/* ── Feature carousel ─────────────────────────────────────── */

.tour-carousel {
    max-width: 1020px;
    margin: 0 auto;
}

.tour-carousel__stage {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 16px;
}

.tour-carousel__slide {
    margin: 0;
}

.tour-carousel__frame {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 18px 44px -28px rgba(15, 23, 42, 0.32);
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-carousel__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.tour-carousel__nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 100ms ease, border-color 100ms ease, transform 80ms ease;
    box-shadow: 0 4px 12px -8px rgba(15, 23, 42, 0.25);
}

.tour-carousel__nav:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #0089DC;
    color: #0089DC;
    transform: scale(1.04);
}

.tour-carousel__nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.tour-carousel__nav svg {
    width: 20px;
    height: 20px;
}

.tour-carousel__body {
    margin: 24px auto 0;
    max-width: 720px;
    text-align: center;
}

.tour-carousel__step {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.tour-carousel__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.tour-carousel__desc {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
}

.tour-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.tour-carousel__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    padding: 0;
    transition: background-color 100ms ease, transform 80ms ease;
}

.tour-carousel__dot:hover {
    background: #94a3b8;
}

.tour-carousel__dot.is-active {
    background: #0089DC;
    transform: scale(1.25);
}

@media (max-width: 720px) {
    .tour-carousel__stage {
        grid-template-columns: 36px 1fr 36px;
        gap: 8px;
    }

    .tour-carousel__nav {
        width: 36px;
        height: 36px;
    }

    .tour-carousel__title {
        font-size: 17px;
    }

    .tour-carousel__desc {
        font-size: 14px;
    }
}

/* ── Advantage list ───────────────────────────────────────── */

.tour-advantages {
    max-width: 760px;
    margin: 0 auto;
}

.tour-advantages__title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.tour-advantages__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.tour-advantages__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: #1e293b;
}

.tour-advantages__bullet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    flex-shrink: 0;
    margin-top: 1px;
}

.tour-advantages__bullet svg {
    width: 14px;
    height: 14px;
}

/* ── Long-form prose ──────────────────────────────────────── */

.tour-prose h2 {
    margin: 32px 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.tour-prose h2:first-child {
    margin-top: 0;
}

.tour-prose p,
.tour-prose li {
    font-size: 16px;
    line-height: 1.65;
    color: #334155;
}

.tour-prose ul {
    padding-left: 22px;
}

.tour-prose a {
    color: #0089DC;
    font-weight: 600;
}

/* ── Next-step CTA ────────────────────────────────────────── */

.tour-nextcta {
    text-align: center;
    padding: 36px 24px;
    background: #0f172a;
    color: #fff;
    border-radius: 16px;
}

.tour-nextcta__title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 700;
}

.tour-nextcta__row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.tour-nextcta .tour-cta--primary {
    background: #ffffff;
    color: #0f172a;
}

.tour-nextcta .tour-cta--primary:hover {
    background: #f1f5f9;
}

.tour-nextcta .tour-cta--ghost {
    border-color: rgba(255, 255, 255, 0.3);
    color: #f8fafc;
}

.tour-nextcta .tour-cta--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 720px) {
    .tour-hero {
        padding: 48px 20px 40px;
    }

    .tour-hero__title {
        font-size: 30px;
    }

    .tour-hero__subtitle {
        font-size: 16px;
    }

    .tour-section {
        padding: 44px 20px;
    }

    .tour-section__title {
        font-size: 22px;
    }

    .tour-beforeafter {
        grid-template-columns: 1fr;
    }
}
