/* ========================================
   MARKETING PODKLADY — kompletní plán
   Mobile first
   ======================================== */

.marketing {
    background: linear-gradient(180deg, #fef7ed 0%, #f8fafc 50%, #ffffff 100%);
    min-height: 100vh;
    padding: 20px 0 60px;
}

.marketing__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* HERO */
.marketing__hero {
    text-align: center;
    padding: 24px 0 32px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.marketing__eyebrow {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.marketing__title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.2;
}

.marketing__lead {
    font-size: 14px;
    color: #475569;
    line-height: 1.55;
    max-width: 720px;
    margin: 0 auto;
}

/* NAVIGACE */
.marketing__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 24px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.marketing__nav a {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    background: #f8fafc;
    border-radius: 16px;
    transition: background 0.15s ease, color 0.15s ease;
}

.marketing__nav a:hover {
    background: #fff7ed;
    color: #ea580c;
}

/* SEKCE */
.marketing__section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    scroll-margin-top: 80px;
}

.marketing__section--phases {
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border-color: #c7d2fe;
}

.marketing__section--kpi {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #a7f3d0;
}

.marketing__section--plan {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border-color: #fdba74;
}

.marketing__section-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
    line-height: 1.3;
}

.marketing__sub {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 16px 0 8px;
}

.marketing__sub:first-of-type {
    margin-top: 0;
}

.marketing__text {
    font-size: 14px;
    color: #334155;
    line-height: 1.55;
    margin: 0 0 10px;
}

.marketing__bullets {
    padding-left: 20px;
    margin: 6px 0 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #0f172a;
}

.marketing__bullets li { margin-bottom: 4px; }

.marketing__numbered {
    padding-left: 24px;
    margin: 6px 0 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #0f172a;
}

.marketing__numbered li { margin-bottom: 4px; }

/* AARRR KARTY */
.marketing__aarrr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 12px 0;
}

.marketing__aarrr-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
}

.marketing__aarrr-icon {
    display: inline-block;
    font-size: 24px;
    margin-bottom: 4px;
}

.marketing__aarrr-card strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 4px;
}

.marketing__aarrr-card p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* PERSONY */
.marketing__personas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
}

.marketing__persona {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #f97316;
    border-radius: 10px;
    padding: 14px 16px;
}

.marketing__persona h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.marketing__persona ul {
    padding-left: 20px;
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #334155;
}

.marketing__persona ul li {
    margin-bottom: 3px;
}

/* FÁZE */
.marketing__phase {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.marketing__phase header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.marketing__phase-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marketing__phase--1 .marketing__phase-num { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.marketing__phase--2 .marketing__phase-num { background: linear-gradient(135deg, #f97316, #c2410c); }
.marketing__phase--3 .marketing__phase-num { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.marketing__phase h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px;
}

.marketing__phase header p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.marketing__phase ul {
    list-style: disc;
    padding-left: 48px;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
}

/* KANÁL */
.marketing__channel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    scroll-margin-top: 80px;
}

.marketing__channel-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px 14px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
    border-bottom: 1px solid #fed7aa;
    flex-wrap: wrap;
}

.marketing__channel-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marketing__channel-head > div {
    flex: 1;
    min-width: 200px;
}

.marketing__channel-head h2 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px;
    line-height: 1.3;
}

.marketing__channel-goal {
    font-size: 13px;
    color: #475569;
    line-height: 1.45;
    margin: 0;
}

.marketing__channel-priority {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    align-self: center;
}

.marketing__channel-priority--p1 { background: #dc2626; color: #ffffff; }
.marketing__channel-priority--p2 { background: #f59e0b; color: #ffffff; }
.marketing__channel-priority--p3 { background: #6b7280; color: #ffffff; }

.marketing__channel-body {
    padding: 16px 18px;
}

/* EMAIL DRAFT */
.marketing__email {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.marketing__email-meta {
    background: #f8fafc;
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    color: #475569;
    line-height: 1.6;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

.marketing__email-body {
    padding: 14px 16px;
    font-size: 13px;
    color: #0f172a;
    line-height: 1.6;
}

.marketing__email-body p {
    margin: 0 0 10px;
}

.marketing__email-body ul {
    margin: 0 0 10px;
    padding-left: 20px;
}

/* Video — YouTube formát (16:9, doprostřed) */
.marketing__email-video {
    display: block;
    max-width: 480px;
    margin: 20px auto 8px;
    text-decoration: none;
    color: inherit;
}

.marketing__email-video-frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1f1147 0%, #3b1f7a 50%, #6d28d9 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.marketing__email-video:hover .marketing__email-video-frame {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.35);
}

.marketing__email-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
}

.marketing__email-video-play svg {
    width: 100%;
    height: 100%;
    display: block;
}

.marketing__email-video-play-bg {
    fill: #212121;
    fill-opacity: 0.85;
    transition: fill 0.2s ease, fill-opacity 0.2s ease;
}

.marketing__email-video:hover .marketing__email-video-play-bg {
    fill: #cc0000;
    fill-opacity: 1;
}

.marketing__email-video-play-icon {
    fill: #ffffff;
}

.marketing__email-video-caption {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 10px;
    margin-bottom: 20px;
    font-style: italic;
}

/* Živý počet volných míst — bez rámečku, velké číslo, doprostřed */
.marketing__email-counter {
    background: transparent;
    border: 0;
    padding: 18px 0 10px;
    margin: 20px auto 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.marketing__email-counter-num {
    font-size: 88px;
    font-weight: 800;
    color: #7c3aed;
    line-height: 1;
    letter-spacing: -2px;
}

.marketing__email-counter-num-total {
    font-size: 36px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0;
}

.marketing__email-counter-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

.marketing__email-counter-note {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
    margin-top: 2px;
}

/* CTA tlačítka v mailu */
.marketing__email-btn {
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.marketing__email-btn--primary {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 18px auto 6px;
    text-align: center;
    background: #7c3aed;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.marketing__email-btn--primary:hover {
    background: #6d28d9;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}

.marketing__email-btn--secondary {
    display: block;
    text-align: center;
    background: transparent;
    color: #64748b;
    text-decoration: underline;
    font-weight: 500;
    padding: 8px 0;
    margin: 16px auto 4px;
}

.marketing__email-btn--secondary:hover {
    color: #7c3aed;
}

.marketing__email-btn-note {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    font-style: italic;
    margin: 0 0 8px !important;
}

.marketing__email-btn-note {
    font-size: 11px;
    color: #64748b;
    font-style: italic;
    text-align: center;
    margin: 0 0 14px;
}

/* SOCIAL */
.marketing__socials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.marketing__social {
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
}

.marketing__social h3 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.marketing__social ul {
    padding-left: 20px;
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #334155;
}

.marketing__social ul li {
    margin-bottom: 4px;
}

/* TABULKA */
.marketing__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin: 8px 0 10px;
}

.marketing__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 480px;
}

.marketing__table thead {
    background: #f8fafc;
}

.marketing__table th {
    padding: 8px 10px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.marketing__table td {
    padding: 8px 10px;
    color: #0f172a;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
    line-height: 1.4;
}

.marketing__table tbody tr:last-child td {
    border-bottom: none;
}

.marketing__table tbody tr:nth-child(even) td {
    background: #fafbfc;
}

.marketing__table tbody tr:hover td {
    background: #fff7ed;
}

/* LEGENDA */
.marketing__legend {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
}

.marketing__legend-group {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
}

.marketing__legend-title {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0 0 6px;
}

.marketing__legend-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #0f172a;
}

.marketing__legend-list li {
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* REFERRAL */
.marketing__referral {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.marketing__referral-card {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1.5px solid #10b981;
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
    width: 100%;
    max-width: 280px;
}

.marketing__referral-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 6px;
}

.marketing__referral-card p {
    font-size: 12px;
    color: #047857;
    line-height: 1.45;
    margin: 0;
}

.marketing__referral-arrow {
    font-size: 24px;
    color: #10b981;
    font-weight: 800;
}

/* NORTH STAR */
.marketing__north-star {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1.5px solid #f59e0b;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: #78350f;
    line-height: 1.5;
    margin: 6px 0 10px;
}

.marketing__north-star strong {
    color: #0f172a;
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.marketing__north-star p {
    margin: 4px 0 0;
    font-size: 13px;
}

/* PLAN */
.marketing__plan {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.marketing__plan-month {
    background: #ffffff;
    border: 1px solid #fdba74;
    border-radius: 10px;
    padding: 14px 16px;
}

.marketing__plan-month h3 {
    font-size: 15px;
    font-weight: 700;
    color: #78350f;
    margin: 0 0 10px;
}

.marketing__plan-month ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #0f172a;
}

.marketing__plan-month ul li {
    padding: 6px 0;
    border-bottom: 1px dashed #fed7aa;
}

.marketing__plan-month ul li:last-child {
    border-bottom: none;
}

/* === TABLET + DESKTOP === */
@media (min-width: 768px) {
    .marketing {
        padding: 40px 0 80px;
    }

    .marketing__container {
        padding: 0 24px;
    }

    .marketing__hero {
        padding: 40px 0 48px;
    }

    .marketing__title {
        font-size: 36px;
    }

    .marketing__lead {
        font-size: 16px;
    }

    .marketing__section {
        padding: 24px 28px;
        margin-bottom: 22px;
    }

    .marketing__section-title {
        font-size: 24px;
    }

    .marketing__text {
        font-size: 15px;
    }

    .marketing__aarrr {
        grid-template-columns: repeat(4, 1fr);
    }

    .marketing__personas {
        grid-template-columns: repeat(3, 1fr);
    }

    .marketing__legend {
        grid-template-columns: repeat(3, 1fr);
    }

    .marketing__channel-head h2 {
        font-size: 20px;
    }

    .marketing__channel-body {
        padding: 20px 24px;
    }

    .marketing__socials {
        grid-template-columns: repeat(2, 1fr);
    }

    .marketing__referral {
        flex-direction: row;
        justify-content: space-around;
    }

    .marketing__plan {
        grid-template-columns: repeat(3, 1fr);
    }

    .marketing__table {
        min-width: 0;
    }
}

@media (min-width: 1024px) {
    .marketing__socials {
        grid-template-columns: repeat(3, 1fr);
    }
}
