/* ============================================================
   Faaleoleo Theme – Resources section styles
   Applied via head_extras in resources/whitepaper/product templates
   ============================================================ */

/* ── Resources listing ───────────────────────────────────── */
body.resources-page {
    background: #ffffff;
}

.res-page-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #CAD4DF;
    margin-bottom: 0.75rem;
}

.resources-section--first {
    padding-top: 5rem !important;
}

/* ── Sections ────────────────────────────────────────────── */
.resources-section {
    padding: 3.5rem 2rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.resources-section--white {
    background: #ffffff !important;
}

.resources-section--tint {
    background: #f8fafc !important;
}

.resources-section--dark {
    background: linear-gradient(160deg, #2D0D5C 0%, #591F8E 100%) !important;
    border-bottom: none !important;
}

.resources-section--dark .res-section-badge {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.resources-section--dark .res-section-title {
    color: white;
}

.resources-section--dark .res-section-intro {
    color: rgba(255, 255, 255, 0.7);
}

.resources-section--dark .product-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid rgba(255, 255, 255, 0.45);
}

.resources-section--dark .product-card:hover {
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transform: translateX(3px);
}

.resources-section--dark .product-icon-placeholder {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.resources-section--dark .product-title {
    color: white;
}

.resources-section--dark .product-tagline {
    color: #F2E8FF;
}

.resources-section--dark .product-intro {
    color: rgba(255, 255, 255, 0.68);
}

.resources-section--dark .product-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.resources-section--dark .product-learn-btn {
    color: white;
    border-color: rgba(255, 255, 255, 0.35);
}

.resources-section--dark .product-learn-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.resources-section--dark .res-tag--product {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* dark section — whitepaper elements */
.resources-section--dark .whitepaper-featured {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid rgba(255, 255, 255, 0.5);
}

.resources-section--dark .whitepaper-featured:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.resources-section--dark .whitepaper-featured-icon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.resources-section--dark .whitepaper-featured-title a {
    color: white;
}

.resources-section--dark .whitepaper-featured-title a:hover {
    color: #F2E8FF;
}

.resources-section--dark .whitepaper-featured-intro {
    color: rgba(255, 255, 255, 0.78);
}

.resources-section--dark .whitepaper-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid rgba(255, 255, 255, 0.35);
}

.resources-section--dark .whitepaper-card:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.resources-section--dark .whitepaper-title a {
    color: white;
}

.resources-section--dark .whitepaper-title a:hover {
    color: #F2E8FF;
}

.resources-section--dark .whitepaper-intro {
    color: rgba(255, 255, 255, 0.65);
}

.resources-section--dark .whitepaper-card-icon {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.resources-section--dark .res-tag {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.resources-section--dark .res-date {
    color: rgba(255, 255, 255, 0.45);
}

.resources-section--dark .res-read-link {
    color: #F2E8FF;
}

.resources-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.res-section-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #591F8E;
    background: #F2E8FF;
    border: 1px solid rgba(89, 31, 142, 0.18);
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.res-section-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    text-align: left;
}

.res-section-intro {
    font-size: 0.97rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: 2.25rem;
}

.resources-empty {
    color: #94a3b8;
    font-style: italic;
    padding: 2rem 0;
}

/* ── Tag & date chips ────────────────────────────────────── */
.res-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #591F8E;
    background: #F2E8FF;
    border: 1px solid rgba(89, 31, 142, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.res-tag--product {
    color: white;
    background: #591F8E;
    border-color: #591F8E;
}

.res-date {
    font-size: 0.82rem;
    color: #94a3b8;
}

/* ── Whitepaper: featured card (first item) ──────────────── */
.whitepaper-featured {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(89, 31, 142, 0.06) 0%, rgba(123, 47, 189, 0.04) 100%);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #591F8E;
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s ease;
}

.whitepaper-featured:hover {
    box-shadow: 0 6px 24px rgba(89, 31, 142, 0.13);
}

.whitepaper-featured-icon {
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    background: #F2E8FF;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #591F8E;
    padding: 0.75rem;
    margin-top: 0.2rem;
}

.whitepaper-featured-icon svg {
    width: 100%;
    height: 100%;
}

.whitepaper-featured-body {
    flex: 1;
    min-width: 0;
}

.whitepaper-featured-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.whitepaper-featured-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.whitepaper-featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.whitepaper-featured-title a:hover {
    color: #591F8E;
}

.whitepaper-featured-intro {
    font-size: 1rem;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.whitepaper-featured-cta {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #591F8E, #7B2FBD);
    padding: 0.65rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whitepaper-featured-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(123, 47, 189, 0.4);
}

/* ── Whitepaper: grid cards (remaining items) ────────────── */
.whitepaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.whitepaper-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #7B2FBD;
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.whitepaper-card:hover {
    box-shadow: 0 4px 18px rgba(123, 47, 189, 0.10);
    transform: translateX(2px);
}

.whitepaper-card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.whitepaper-card-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #7B2FBD;
    opacity: 0.55;
    flex-shrink: 0;
}

.whitepaper-card-icon svg {
    width: 100%;
    height: 100%;
}

.whitepaper-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    flex: 1;
}

.whitepaper-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.whitepaper-title a:hover {
    color: #7B2FBD;
}

.whitepaper-intro {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.res-read-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #7B2FBD;
    text-decoration: none;
    margin-top: auto;
}

.res-read-link:hover {
    text-decoration: underline;
}

/* ── Product grid cards ──────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #591F8E;
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 4px 18px rgba(89, 31, 142, 0.12);
    transform: translateX(3px);
}

.product-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.product-icon-placeholder {
    width: 2.75rem;
    height: 2.75rem;
    background: #F2E8FF;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #591F8E;
    flex-shrink: 0;
}

.product-icon-placeholder svg {
    width: 1.5rem;
    height: 1.5rem;
}

.product-icon-img {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.product-card-body {
    flex: 1;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.product-tagline {
    font-size: 0.88rem;
    color: #7B2FBD;
    font-weight: 600;
    margin-bottom: 0.875rem;
    line-height: 1.4;
}

.product-intro {
    font-size: 0.93rem;
    color: #475569;
    line-height: 1.65;
}

.product-card-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #F2E8FF;
}

.product-learn-btn {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #591F8E;
    text-decoration: none;
    border: 1.5px solid #591F8E;
    padding: 0.5rem 1.1rem;
    border-radius: 0.4rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.product-learn-btn:hover {
    background: #591F8E;
    color: white;
}

/* ============================================================
   Whitepaper detail page
   ============================================================ */

body.whitepaper-page {
    background: white;
}

.wp-cover {
    background: #F9F4FF !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 3rem 2rem 2.5rem !important;
}

.wp-cover-inner {
    max-width: 860px;
    margin: 0 auto;
}

.res-breadcrumb {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    display: block;
}

.res-breadcrumb a {
    color: #7B2FBD;
    text-decoration: none;
}

.res-breadcrumb a:hover {
    text-decoration: underline;
}

.res-breadcrumb-sep {
    margin: 0 0.4rem;
    color: #CAD4DF;
}

.wp-cover h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0.75rem 0 1rem;
    letter-spacing: -0.02em;
    text-align: left;
}

.wp-byline {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.wp-byline-sep {
    color: #CAD4DF;
}

.wp-lead {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.75;
    max-width: 680px;
    border-left: 3px solid #7B2FBD;
    padding-left: 1rem;
    margin: 1.25rem 0 0;
}

.wp-pdf-download {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.wp-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #591F8E, #7B2FBD);
    padding: 0.65rem 1.4rem;
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-download-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.wp-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(89, 31, 142, 0.35);
}

.wp-download-meta {
    font-size: 0.82rem;
    color: #94a3b8;
}

.wp-body {
    padding: 3rem 2rem 4rem !important;
    background: white !important;
    border: none !important;
}

.wp-body-inner {
    max-width: 860px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1e293b;
}

.wp-body-inner h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    margin: 2.5rem 0 1rem;
    text-align: left;
}

.wp-body-inner h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2rem 0 0.75rem;
    text-align: left;
}

.wp-body-inner p {
    margin-bottom: 1.25rem;
    color: #334155;
}

.wp-body-inner a {
    color: #7B2FBD;
    text-decoration: underline;
    text-decoration-color: rgba(123, 47, 189, 0.3);
}

.wp-body-inner a:hover {
    text-decoration-color: #7B2FBD;
}

.wp-body-inner hr {
    border: none;
    border-top: 1px solid #F2E8FF;
    margin: 2.5rem 0;
}

.wp-body-inner ul,
.wp-body-inner ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: #334155;
}

.wp-body-inner li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

.wp-cta-block {
    margin-top: 3rem;
    padding: 2rem 2.25rem;
    background: linear-gradient(135deg, #F2E8FF 0%, #F9F4FF 100%);
    border: 1px solid rgba(89, 31, 142, 0.15);
    border-radius: 0.75rem;
    text-align: center;
}

.wp-cta-block .label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #591F8E;
    margin-bottom: 0.75rem;
}

.wp-cta-block h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    text-align: center;
}

.wp-cta-block p {
    color: #475569;
    font-size: 0.97rem;
    margin-bottom: 1.5rem;
}

.wp-cta-block .btn {
    display: inline-block;
    background: linear-gradient(135deg, #591F8E, #7B2FBD);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.97rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-cta-block .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(89, 31, 142, 0.3);
}

/* ============================================================
   Product detail page
   ============================================================ */

body.product-page {
    background: white;
}

.product-detail-hero {
    background: linear-gradient(140deg, #2D0D5C 0%, #591F8E 55%, #7B2FBD 100%) !important;
    padding: 3rem 2rem 2.5rem !important;
    color: white;
    border: none !important;
    text-align: center;
}

.product-detail-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.product-detail-hero h1 {
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    font-weight: 800;
    color: white;
    line-height: 1.12;
    margin: 0 0 1.1rem;
    letter-spacing: -0.04em;
}

/* ── Hero badge pill ─────────────────────────────────────── */
.pd-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: white;
    padding: 0.32rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* ── Hero subtitle ───────────────────────────────────────── */
.pd-hero-sub {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

/* ── Hero action buttons ─────────────────────────────────── */
.pd-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

.pd-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: white;
    color: #591F8E;
    text-decoration: none;
    padding: 0.78rem 1.8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.pd-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
    color: #591F8E;
    text-decoration: none;
}

.pd-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    color: white;
    text-decoration: none;
    padding: 0.78rem 1.8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.45);
    transition: border-color 0.2s, background 0.2s;
}
.pd-btn-ghost:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

/* ── Hero stats bar ──────────────────────────────────────── */
.pd-hero-stats {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.pd-hero-stat { text-align: center; }
.pd-hero-stat-num   { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -1px; }
.pd-hero-stat-label { font-size: 0.73rem; opacity: 0.68; text-transform: uppercase; letter-spacing: 0.06em; }

.product-detail-body {
    padding: 3rem 2rem 4rem !important;
    background: white !important;
    border: none !important;
}

.product-detail-body-inner {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1e293b;
}

.product-detail-body-inner h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    margin: 2.5rem 0 1rem;
    text-align: left;
}

.product-detail-body-inner h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2rem 0 0.75rem;
    text-align: left;
}

.product-detail-body-inner p {
    margin-bottom: 1.25rem;
    color: #334155;
    max-width: 720px;
}

.product-detail-body-inner a {
    color: #7B2FBD;
    text-decoration: underline;
    text-decoration-color: rgba(123, 47, 189, 0.3);
}

.product-detail-body-inner a:hover {
    text-decoration-color: #7B2FBD;
}

.product-detail-body-inner hr {
    border: none;
    border-top: 1px solid #F2E8FF;
    margin: 2.5rem 0;
}

.product-detail-body-inner ul,
.product-detail-body-inner ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: #334155;
    max-width: 720px;
}

.product-detail-body-inner li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

/* ============================================================
   Product detail body: rich layout sections (pd-* namespace)
   ============================================================ */

/* ── Badge ───────────────────────────────────────────────── */
.pd-badge {
    display: inline-block;
    background: #F2E8FF;
    color: #591F8E;
    border: 1px solid rgba(89, 31, 142, 0.18);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 2rem;
}

/* ── Stats bar ───────────────────────────────────────────── */
.pd-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.75rem 2rem;
    background: #F9F4FF;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 3.5rem;
}

.pd-stat {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.pd-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #591F8E;
    letter-spacing: -1px;
    line-height: 1.1;
}

.pd-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    margin-top: 0.2rem;
}

/* ── Section wrapper ─────────────────────────────────────── */
.pd-section {
    margin-bottom: 3.5rem;
}

.pd-section--tint {
    background: #F9F4FF;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3.5rem;
}

/* ── Section typography ──────────────────────────────────── */
.pd-eyebrow {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7B2FBD !important;
    margin: 0 0 0.5rem !important;
    max-width: none !important;
}

.pd-section-h {
    font-size: clamp(1.5rem, 3vw, 2rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.4px;
    color: #0f172a !important;
    line-height: 1.2;
    margin: 0 0 0.75rem !important;
}

.pd-section-p {
    font-size: 1.02rem !important;
    color: #64748b !important;
    line-height: 1.75;
    margin: 0 0 2rem !important;
}

/* ── What it is: two-column ──────────────────────────────── */
.pd-what-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.pd-what-text p {
    color: #475569 !important;
    line-height: 1.8;
    margin-bottom: 1rem !important;
    max-width: none !important;
}

.pd-code-block {
    background: #1a1a2e;
    border-radius: 10px;
    padding: 1.5rem;
    overflow-x: auto;
}

.pd-code-block pre {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
    font-size: 0.8rem;
    line-height: 1.75;
    color: #e2e8f0;
    white-space: pre;
    margin: 0;
}

.pd-cc { color: #6b7280; }
.pd-cp { color: #a78bfa; }
.pd-ca { color: #86efac; }
.pd-co { color: #93c5fd; }

/* ── Why use it: card grid ───────────────────────────────── */
.pd-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.25rem;
    margin-top: 0;
}

.pd-why-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pd-why-card:hover {
    border-color: #7B2FBD;
    box-shadow: 0 4px 20px rgba(91, 31, 142, 0.1);
}

.pd-why-icon {
    width: 44px;
    height: 44px;
    background: #F2E8FF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.pd-why-icon svg {
    width: 22px;
    height: 22px;
    stroke: #591F8E;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pd-why-card h3 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 0.45rem !important;
}

.pd-why-card p {
    font-size: 0.88rem !important;
    color: #64748b !important;
    line-height: 1.65;
    margin: 0 !important;
    max-width: none !important;
}

/* ── Use cases: card grid ────────────────────────────────── */
.pd-uc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 0;
}

.pd-uc-card {
    background: white;
    border-radius: 10px;
    padding: 1.75rem;
    border-left: 4px solid #7B2FBD;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.pd-uc-tag {
    display: inline-block;
    background: #F2E8FF;
    color: #591F8E;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
}

.pd-uc-card h3 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.45rem !important;
    color: #0f172a !important;
}

.pd-uc-card p {
    font-size: 0.88rem !important;
    color: #64748b !important;
    line-height: 1.65;
    margin: 0 !important;
    max-width: none !important;
}

.pd-uc-card code {
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.85em;
    background: #F2E8FF;
    color: #591F8E;
    padding: 0.1em 0.35em;
    border-radius: 3px;
}

/* ── Features checklist ──────────────────────────────────── */
.pd-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
}

.pd-feat {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.pd-feat-check {
    width: 22px;
    height: 22px;
    background: #591F8E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.68rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.pd-feat h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.2rem;
}

.pd-feat p {
    font-size: 0.84rem !important;
    color: #64748b !important;
    line-height: 1.55;
    margin: 0 !important;
    max-width: none !important;
}

/* ── Quick start (dark block) ────────────────────────────── */
.pd-qs {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3.5rem;
}

.pd-qs-eyebrow {
    color: #a78bfa !important;
}

.pd-qs-h {
    color: white !important;
    font-size: clamp(1.4rem, 3vw, 1.9rem) !important;
    font-weight: 800 !important;
    margin: 0 0 0.5rem !important;
}

.pd-qs-p {
    color: rgba(255, 255, 255, 0.68) !important;
    max-width: 560px !important;
    margin: 0 0 0 !important;
}

.pd-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.pd-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
}

.pd-step-num {
    width: 30px;
    height: 30px;
    background: #7B2FBD;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.85rem;
}

.pd-step h3 {
    font-size: 0.97rem !important;
    font-weight: 700 !important;
    color: white !important;
    margin: 0 0 0.5rem !important;
}

.pd-step p {
    font-size: 0.84rem !important;
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1.6;
    margin: 0 0 0.75rem !important;
    max-width: none !important;
}

.pd-step-code {
    display: block;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.76rem;
    color: #86efac;
    line-height: 1.65;
    white-space: pre;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pd-step-inline {
    display: inline !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #a78bfa !important;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: inherit;
    padding: 0.1em 0.35em;
    border-radius: 3px;
}

/* ── End CTA block ───────────────────────────────────────── */
.pd-end-cta {
    background: #F2E8FF;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.pd-end-cta h2 {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 0.75rem !important;
    text-align: center !important;
}

.pd-end-cta p {
    color: #475569 !important;
    font-size: 1rem !important;
    max-width: 520px !important;
    margin: 0 auto 1.75rem !important;
    line-height: 1.7;
}

.pd-btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #591F8E;
    color: white !important;
    text-decoration: none !important;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    transition: background 0.2s, transform 0.15s;
}

.pd-btn-dark:hover {
    background: #7B2FBD;
    color: white;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ── Coverage table (pd-coverage-grid) ──────────────────── */
.pd-coverage-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.pd-cov-head {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.pd-cov-list {
    list-style: none;
    padding: 0;
}

.pd-cov-list li {
    padding: 0.55rem 0 0.55rem 1.75rem;
    position: relative;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.5;
    border-bottom: 1px solid #f1f5f9;
}

.pd-cov-list li:last-child {
    border-bottom: none;
}

.pd-cov-list--yes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #591F8E;
    font-weight: 700;
}

.pd-cov-list--no li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #CAD4DF;
}

.pd-cov-list li code {
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.85em;
    background: #F2E8FF;
    color: #591F8E;
    padding: 0.1em 0.35em;
    border-radius: 3px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .whitepaper-featured {
        flex-direction: column;
        gap: 1rem;
    }

    .whitepaper-featured-icon {
        width: 2.75rem;
        height: 2.75rem;
    }

    .whitepaper-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .wp-byline {
        gap: 0.4rem;
    }

    .wp-byline-sep {
        display: none;
    }

    .pd-what-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pd-section--tint {
        padding: 1.75rem;
    }

    .pd-qs {
        padding: 1.75rem;
    }

    .pd-stats {
        gap: 1.25rem;
    }

    .pd-stat {
        min-width: 100px;
    }

    .pd-coverage-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Products grid — ps-* namespace
   (replaces the old product-grid / product-card layout)
   ============================================================ */

/* ── Section header ──────────────────────────────────────── */
.ps-header {
    margin-bottom: 2.5rem;
}

.ps-heading {
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.05em;
    line-height: 1.05;
    margin-bottom: 0.65rem;
}

.ps-subheading {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 560px;
}

/* ── Filter bar ──────────────────────────────────────────── */
.ps-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

.ps-filter-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-right: 0.25rem;
}

.ps-filter {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.38rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    appearance: none;
}

.ps-filter:hover { border-color: #7B2FBD; color: #591F8E; }
.ps-filter.active { background: #591F8E; border-color: #591F8E; color: white; }

/* ── Grid ────────────────────────────────────────────────── */
.ps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.ps-card--featured { grid-column: span 2; }
.ps-card--solo     { grid-column: span 3; }

/* ── Card base ───────────────────────────────────────────── */
.ps-card {
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.22s, transform 0.22s;
}

.ps-card:hover {
    box-shadow: 0 12px 40px rgba(89, 31, 142, 0.14);
    transform: translateY(-3px);
}

/* ── Featured card (dark gradient) ──────────────────────── */
.ps-card--featured {
    background: linear-gradient(140deg, #2D0D5C 0%, #591F8E 55%, #7B2FBD 100%);
    border: none;
}

.ps-card--featured:hover {
    box-shadow: 0 16px 48px rgba(89, 31, 142, 0.35);
}

/* ── Regular live card ───────────────────────────────────── */
.ps-card--live {
    background: white;
    border: 1px solid #e2e8f0;
}

.ps-card--live::before {
    content: '';
    display: block;
    height: 3px;
    flex-shrink: 0;
    background: linear-gradient(90deg, #591F8E, #7B2FBD);
}

.ps-card--live:hover { border-color: #7B2FBD; }

/* ── Card body ───────────────────────────────────────────── */
.ps-card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ps-card--featured .ps-card-body--split {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2.25rem;
    align-items: start;
}

/* ── Icon ────────────────────────────────────────────────── */
.ps-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    flex-shrink: 0;
}

.ps-icon svg {
    width: 22px;
    height: 22px;
}

.ps-icon--on-dark  { background: rgba(255, 255, 255, 0.15); color: #F2E8FF; }
.ps-icon--on-white { background: #F2E8FF; color: #591F8E; }

/* ── Meta row ────────────────────────────────────────────── */
.ps-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.7rem;
}

.ps-cat {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ps-cat--dark  { color: rgba(255, 255, 255, 0.5); }
.ps-cat--light { color: #94a3b8; }

/* ── Tags ────────────────────────────────────────────────── */
.ps-tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
}

.ps-tag--free    { background: #591F8E; color: white; }
.ps-tag--product { background: #7B2FBD; color: white; }

/* ── Product name ────────────────────────────────────────── */
.ps-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.ps-name--dark  { color: white; }
.ps-name--light { color: #0f172a; }

.ps-card--featured .ps-name {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    letter-spacing: -0.04em;
}

/* ── Description ─────────────────────────────────────────── */
.ps-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.25rem;
}

.ps-desc--dark  { color: rgba(255, 255, 255, 0.7); }
.ps-desc--light { color: #475569; }

.ps-card--featured .ps-desc { font-size: 0.95rem; }

/* ── Stats ───────────────────────────────────────────────── */
.ps-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    margin-top: auto;
}

.ps-stats--dark  { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.ps-stats--light { border-top: 1px solid #F2E8FF; }

.ps-stat-num {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.ps-stat-num--dark  { color: white; }
.ps-stat-num--light { color: #591F8E; }

.ps-stat-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-top: 0.1rem;
}

.ps-stat-label--dark  { color: rgba(255, 255, 255, 0.4); }
.ps-stat-label--light { color: #94a3b8; }

/* ── Featured CTA row ────────────────────────────────────── */
.ps-feat-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ps-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.65rem 1.35rem;
    border-radius: 8px;
    transition: background 0.18s, transform 0.18s, color 0.18s;
}

.ps-btn--white { background: white; color: #591F8E; }
.ps-btn--white:hover { background: #F2E8FF; transform: translateY(-1px); color: #591F8E; text-decoration: none; }

.ps-btn--ghost { background: transparent; color: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.3); }
.ps-btn--ghost:hover { border-color: white; color: white; text-decoration: none; }

/* ── Regular card link ───────────────────────────────────── */
.ps-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1.25rem;
    transition: gap 0.15s, color 0.15s;
}

.ps-card-link--purple { color: #591F8E; }
.ps-card-link--purple:hover { color: #7B2FBD; gap: 0.65rem; text-decoration: none; }

.ps-card-link svg {
    width: 13px;
    height: 13px;
    transition: transform 0.15s;
}

.ps-card-link:hover svg { transform: translateX(3px); }

/* ── Proof points (featured aside) ──────────────────────── */
.ps-aside {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 185px;
}

.ps-proof {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.45;
}

.ps-proof-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.ps-proof-dot svg { width: 9px; height: 9px; }

/* ── Pagination ──────────────────────────────────────────── */
.ps-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2.75rem;
}

.ps-page-info {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    padding: 0 0.5rem;
    min-width: 3.5rem;
    text-align: center;
}

.ps-page {
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    text-decoration: none;
    padding: 0 0.65rem;
    transition: all 0.15s;
}

.ps-page:hover { border-color: #7B2FBD; color: #591F8E; text-decoration: none; }
.ps-page.active { background: #591F8E; border-color: #591F8E; color: white; }

.ps-page--nav { gap: 0.35rem; }
.ps-page--nav svg { width: 14px; height: 14px; }
.ps-page--disabled { opacity: 0.35; pointer-events: none; }
.ps-page-dots { color: #CAD4DF; font-size: 0.85rem; padding: 0 0.2rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .ps-grid { grid-template-columns: repeat(2, 1fr); }
    .ps-card--featured { grid-column: span 2; }
    .ps-card--solo     { grid-column: span 2; }
    .ps-card--featured .ps-card-body--split { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
    .ps-grid { grid-template-columns: 1fr; }
    .ps-card--featured { grid-column: span 1; }
    .ps-card--solo     { grid-column: span 1; }
}
