/*
 * CMS-0057-F payer webinar landing page.
 *
 * Linked by resource_detail.html for one slug only. Colours, type and radii
 * follow the scoped styles already in that template (Outfit headings, Inter
 * body, violet #2e1065 titles, teal CTA) so the added blocks read as part of
 * the same page rather than a microsite dropped into it.
 */

.pw-heading {
    font-family: var(--font-title);
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 16px 0 20px;
}

[hidden] {
    display: none !important;
}

/* ---------- hero additions ---------- */
/* Artha sits right of Qlik in the brand row. artha-logo1.png (the header's
 * transparent colour logo) is about half empty padding top and bottom, so it is
 * drawn taller and pulled in with negative margins: the visible mark lands at
 * roughly the Qlik wordmark's height without pushing the row down. */
.resource-hero-brand-row .resource-hero-brand-logo-artha {
    height: 58px;
    margin: -12px 0;
}

/* qlik-logo-color.png is trimmed to the mark, so 30px tall matches the
 * visible height of the Artha logo beside it. */
.resource-hero-brand-row .resource-hero-brand-logo-qlik-color {
    height: 30px;
    width: auto;
}

.pw-hero-format {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-badge-text);
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid rgba(15, 118, 110, 0.18);
}

.pw-countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f3e8ff;
    color: #6b21a8;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
}

.pw-countdown strong {
    font-family: var(--font-title);
    font-size: 17px;
    font-weight: 800;
}

/* ---------- form additions ----------
 * design-system.css sets background, padding and colour on every form control
 * with !important, so the select's arrow and placeholder tone need it too. */
.pw-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236d28d9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    padding-right: 44px !important;
}

.pw-select:invalid {
    color: #94a3b8 !important;
}

.pw-select option {
    color: var(--color-primary);
}

.pw-textarea {
    min-height: 92px;
    resize: vertical;
    line-height: 1.5;
}

.pw-char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.pw-form-note {
    font-family: var(--font-body);
    font-size: 13px;
    color: #4b5563;
    text-align: center;
    margin: 16px 0 0;
    line-height: 1.5;
}

/* ---------- success state ---------- */
.pw-success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.pw-success-actions .calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pw-success-actions .calendar-btn.pw-secondary {
    background-color: #ffffff;
    color: var(--color-primary);
    border: 1px solid rgba(46, 16, 101, 0.2);
    box-shadow: none;
}

.pw-success-actions .calendar-btn.pw-secondary:hover {
    background-color: #f5f3ff;
}

.pw-success-note {
    font-family: var(--font-body);
    font-size: 13px;
    color: #64748b;
    margin: 18px 0 0;
    line-height: 1.5;
}

/* ---------- agenda ----------
 * The shared timeline sizes its time column for "On demand - Part 1"; this
 * page's labels carry the minutes too, so the column, rail and dots move out.
 * The template's inline <style> comes after this sheet, hence the extra class. */
@media (min-width: 481px) {
    .details-section .ip-session-time {
        width: 160px;
        padding-right: 14px;
    }

    .details-section .ip-sessions-timeline::before {
        left: 160px;
    }

    .details-section .ip-session-dot {
        left: 156px;
    }
}

/* ---------- buttons ---------- */
.pw-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.pw-button:hover {
    transform: translateY(-2px);
}

.pw-button-primary {
    background-image: linear-gradient(90deg, #6d38e5 0%, #7839df 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(109, 56, 229, 0.25);
}

.pw-button-primary:hover {
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(109, 56, 229, 0.35);
}

.pw-button-cta {
    background-color: var(--color-cta);
    color: #022c22;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 240, 192, 0.3);
}

.pw-button-cta:hover {
    background-color: var(--color-cta-hover);
    color: #022c22;
}

.pw-button-ghost {
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
    border-radius: 12px;
}

.pw-button-ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ---------- research panel ---------- */
.pw-research {
    background: #ffffff;
    padding: 84px 0 90px;
}

.pw-research-card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 48px;
    align-items: center;
    background: linear-gradient(135deg, #faf5ff 0%, #f0fdfa 100%);
    border: 1px solid rgba(109, 40, 217, 0.1);
    border-radius: var(--border-radius-xl);
    padding: 48px;
}

.pw-research-summary {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: #334155;
    margin: 0 0 28px;
}

.pw-research-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pw-stat {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 24px 20px;
    box-shadow: 0 10px 30px rgba(46, 16, 101, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pw-stat-value {
    font-family: var(--font-title);
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: #6d38e5;
    letter-spacing: -1px;
}

.pw-stat-label {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
}

.pw-source {
    grid-column: 1 / -1;
    font-family: var(--font-body);
    font-size: 12.5px;
    line-height: 1.5;
    color: #64748b;
    margin: 4px 0 0;
}

/* ---------- who should attend ---------- */
.pw-attend {
    background: #ffffff;
    padding: 90px 0;
}

.pw-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    margin-top: 12px;
}

.pw-role {
    background: #ffffff;
    border: 1px solid rgba(46, 16, 101, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 26px 22px;
    box-shadow: 0 10px 30px -12px rgba(46, 16, 101, 0.12);
}

.pw-role-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eadcff;
    color: #6d38e5;
    font-size: 18px;
    margin-bottom: 16px;
}

.pw-role h3 {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    margin: 0 0 10px;
}

.pw-role p {
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

.pw-fit {
    margin: 28px 0 0;
    padding: 18px 24px;
    border-radius: var(--border-radius-lg);
    background: var(--color-badge-bg);
    border: 1px solid rgba(6, 182, 212, 0.15);
    color: var(--color-badge-text);
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.6;
}

/* ---------- FAQ ---------- */
.pw-faq {
    background: #fafaf9;
    padding: 90px 0;
}

.pw-faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 48px;
    align-items: start;
}

.pw-faq-item {
    border-bottom: 1px solid rgba(46, 16, 101, 0.1);
}

.pw-faq-item:first-child {
    border-top: 1px solid rgba(46, 16, 101, 0.1);
}

.pw-faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 4px;
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.4;
}

.pw-faq-item summary::-webkit-details-marker {
    display: none;
}

.pw-faq-item summary i {
    flex-shrink: 0;
    font-size: 13px;
    color: #6d38e5;
    transition: transform 0.2s ease;
}

.pw-faq-item[open] summary i {
    transform: rotate(45deg);
}

.pw-faq-item summary:focus-visible {
    outline: 2px solid var(--color-accent-cyan);
    outline-offset: 2px;
    border-radius: 6px;
}

.pw-faq-item p {
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.7;
    color: #475569;
    margin: 0;
    padding: 0 4px 22px;
}

/* ---------- resources ---------- */
.pw-resources {
    background: #ffffff;
    padding: 90px 0;
}

.pw-resources-intro {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
    margin: -8px 0 28px;
}

.pw-resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.pw-resource {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(46, 16, 101, 0.08);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 30px -12px rgba(46, 16, 101, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pw-resource:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -14px rgba(46, 16, 101, 0.22);
}

.pw-resource:focus-visible {
    outline: 2px solid var(--color-accent-cyan);
    outline-offset: 3px;
}

.pw-resource-media {
    display: block;
    aspect-ratio: 2 / 1;
    background: #1e1b4b;
    overflow: hidden;
}

.pw-resource-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pw-resource-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 20px 20px 22px;
}

.pw-resource-kind {
    align-self: flex-start;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #6b21a8;
    background: #f3e8ff;
    border-radius: 999px;
    padding: 4px 10px;
}

.pw-resource-title {
    font-family: var(--font-title);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-primary);
}

.pw-resource-summary {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    flex: 1;
}

.pw-resource-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: #6d38e5;
    margin-top: 4px;
}

.pw-resource-cta i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.pw-resource:hover .pw-resource-cta i {
    transform: translateX(3px);
}

/* ---------- closing call to action ---------- */
.pw-closing {
    background: linear-gradient(135deg, #4c1d95 0%, #701a75 100%);
    padding: 88px 0;
    text-align: center;
    color: #ffffff;
}

.pw-closing-tagline {
    font-family: var(--font-title);
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 18px;
}

.pw-closing-line {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    max-width: 720px;
    margin: 0 auto 32px;
}

.pw-closing-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    /* The hero text centres below 992px; keep the Qlik logo over it. */
    .resource-hero-section .resource-hero-brand-row {
        justify-content: center;
    }

    .pw-research-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 36px 28px;
    }

    .pw-faq-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pw-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pw-heading {
        font-size: 26px;
    }

    .pw-research,
    .pw-attend,
    .pw-faq,
    .pw-resources,
    .pw-closing {
        padding: 60px 0;
    }

    .pw-resource-grid {
        grid-template-columns: 1fr;
    }

    .pw-research-card {
        padding: 28px 20px;
    }

    .pw-research-stats {
        grid-template-columns: 1fr;
    }

    .pw-stat {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 18px;
    }

    .pw-stat-value {
        font-size: 34px;
        min-width: 84px;
    }

    .pw-closing-tagline {
        font-size: 30px;
    }

    .pw-closing-line {
        font-size: 16px;
    }

    .pw-faq-item summary {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pw-button,
    .pw-faq-item summary i,
    .pw-resource,
    .pw-resource-cta i {
        transition: none;
    }

    .pw-button:hover,
    .pw-resource:hover,
    .pw-resource:hover .pw-resource-cta i {
        transform: none;
    }
}
