/* Home-page-specific overrides (lifted from main.html inline style block) */

.home-hero {
    position: relative;
    min-height: 100vh;
    padding-top: var(--nav-height);
    overflow: hidden;
    background: #050d1c;
}
.home-hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center center;
    filter: saturate(0.9);
}
.home-hero-overlay {
    position: absolute; inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(30,91,168,0.20) 0%, rgba(0,0,0,0) 60%),
        radial-gradient(ellipse at 80% 80%, rgba(204,10,139,0.10) 0%, rgba(0,0,0,0) 60%),
        linear-gradient(135deg, rgba(5,13,28,0.92) 0%, rgba(8,18,40,0.86) 50%, rgba(12,28,59,0.86) 100%);
    pointer-events: none;
}
/* Soft gold glow in the upper-right (kept) */
.home-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 70%; height: 200%;
    background: radial-gradient(ellipse, rgba(252,210,36,0.05) 0%, rgba(0,0,0,0) 65%);
    pointer-events: none;
    z-index: 1;
}

.home-hero-content {
    position: relative; z-index: 3;
    max-width: 1320px;
    margin: 0 auto;
    padding: 80px 48px 120px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
    min-height: calc(100vh - var(--nav-height));
    text-align: left;
}
.home-hero-content .hero-text { text-align: left; }
.hero-logo-col {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
}
.logo-anim-wrapper { width: 130%; max-width: 1040px; flex-shrink: 0; }
.logo-anim-module {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 28px !important;
    padding: 0 !important;
    animation: scaleIn 0.6s var(--ease-out) both;
}
.logo-anim-video {
    background: transparent !important;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 16px 48px rgba(0,0,0,0.55));
}
.logo-anim-wrapper { width: 100%; }

.logo-anim-module {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 28px !important;
    padding: 0 !important;
    animation: scaleIn 0.6s var(--ease-out) both;
}
.logo-anim-video {
    background: transparent !important;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 40px rgba(0,0,0,0.55));
}

/* Pillar buttons that fade in once the hero Lottie animation completes,
   filling the space left when the logo collapses. */
.logo-anim-module { position: relative; }
.hero-pillar-buttons {
    position: absolute;
    inset: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(8px);
}
.hero-pillar-buttons.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sector-features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 28px;
}
.sector-feature-item {
    text-align: center;
    padding: 16px 8px 14px;
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.sector-feature-item:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(147,197,253,0.65);
    transform: translateY(-3px);
    color: #ffffff;
}
.sector-feature-item i {
    display: block;
    font-size: 22px;
    margin-bottom: 8px;
    color: #93c5fd;
}

.hero-text { padding-top: 8px; }

.hero-eyebrow-large,
.hero-eyebrow-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(247,165,58,0.14), rgba(245,82,126,0.10));
    border: 1px solid rgba(252,210,36,0.55);
    border-radius: 50px;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #FCD224;
    text-transform: uppercase;
    margin-bottom: 22px;
    box-shadow: 0 4px 20px rgba(252,210,36,0.18), 0 0 0 1px rgba(252,210,36,0.25) inset;
    backdrop-filter: blur(6px);
}
.hero-eyebrow-large i,
.hero-eyebrow-gold i { font-size: 13px; color: #FCD224; }

/* New Brolly hero badge ("AI-Powered Care Management") */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
}
.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #51caff;
    box-shadow: 0 0 0 4px rgba(81,202,255,0.25);
    animation: heroBadgePulse 2.4s ease-in-out infinite;
}
@keyframes heroBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(81,202,255,0.45); }
    50%      { box-shadow: 0 0 0 6px rgba(81,202,255,0); }
}

/* Gradient slice for the third hero title line */
.hero-title-gradient,
.hero-typed-word {
    background: linear-gradient(90deg, #F7A53A 0%, #F5852B 30%, #F55C33 55%, #F54F3B 70%, #F74C6E 85%, #F5537E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero-typed-line { display: inline; }

/* v2 hero — copied across */
.home-hero .hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 22px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.home-hero .hero-subtitle {
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.7;
    color: rgba(255,255,255,0.82);
    max-width: 560px;
    margin: 0 0 36px;
}
.home-hero .hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.home-hero .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    background: var(--pink-gradient);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
.home-hero .hero-cta:hover {
    transform: translateY(-2px);
    filter: saturate(1.08) brightness(1.05);
}
.home-hero .hero-cta-glow {
    box-shadow: 0 0 30px rgba(204,10,139,0.40), 0 0 60px rgba(204,10,139,0.15);
    animation: heroCTAGlow 2.5s ease-in-out infinite;
}
@keyframes heroCTAGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(204,10,139,0.40), 0 0 60px rgba(204,10,139,0.15); }
    50%      { box-shadow: 0 0 40px rgba(204,10,139,0.60), 0 0 80px rgba(204,10,139,0.25); }
}
.home-hero .hero-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 999px;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.home-hero .hero-btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
}
.hero-trust-strip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
}
.hero-trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust-strip i { color: #FCD224; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
    .hero-cta-glow,
    .hero-typed-word { animation: none; }
}
@media (max-width: 720px) {
    .home-hero .hero-actions { gap: 12px; }
    .home-hero .hero-cta,
    .home-hero .hero-btn-outline { width: 100%; justify-content: center; }
    .hero-trust-strip { gap: 16px; font-size: 12px; }
    .home-hero-content { padding: 80px 18px 110px; }
}

/* "Discover more" indicator at the bottom of the hero */
.hero-discover {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 3;
    transition: color 0.2s ease, transform 0.3s ease;
}
.hero-discover:hover { color: #fff; transform: translateX(-50%) translateY(-2px); }
.hero-discover i {
    font-size: 16px;
    animation: heroDiscoverBob 2.4s ease-in-out infinite;
}
@keyframes heroDiscoverBob {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50%      { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-discover i,
    .hero-badge-dot { animation: none; }
}

.hero-title-large {
    font-size: clamp(44px, 5.5vw, 72px) !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 22px 0 !important;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}

.hero-sub-large {
    font-size: 23px;
    font-weight: 600;
    color: #e6eefb;
    line-height: 1.45;
    margin-bottom: 16px;
    text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

.hero-body-large {
    font-size: 19px;
    font-weight: 400;
    color: rgba(230,238,251,0.82);
    line-height: 1.7;
    margin-bottom: 32px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}

/* ── Hero action buttons (replace pills) ────────────────── */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.hero-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.hero-action i { font-size: 15px; }
.hero-action::before {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    z-index: 1;
    pointer-events: none;
    animation: heroActionShine 3.6s ease-in-out infinite;
}
.hero-action > * { position: relative; z-index: 2; }
.hero-action:hover { transform: translateY(-3px); }

.hero-action-primary {
    background: var(--pink-gradient);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(204,10,139,0.40), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.hero-action-primary:hover {
    color: #ffffff;
    filter: saturate(1.1) brightness(1.05);
    box-shadow: 0 14px 36px rgba(204,10,139,0.50), 0 0 0 1px rgba(255,255,255,0.14) inset;
}

.hero-action-secondary {
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.hero-action-secondary:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
}
.hero-action-secondary::before {
    background: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
}

@keyframes heroActionShine {
    0%   { left: -120%; }
    55%  { left: 130%; }
    100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-action::before { animation: none; display: none; }
}

/* Why Brolly alternating rows */
#wb-alt-section { background: #fff; padding: 0; display: block; }
.wb-alt-header { text-align: center; padding: 72px 48px 40px; background: #fff; }
.wb-alt-header .wb-alt-overline { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #3b82f6; margin-bottom: 12px; }
.wb-alt-header h2 { font-size: clamp(28px, 3vw, 44px); font-weight: 700; color: #0f172a; margin: 0; }
.wb-alt-rows { padding: 0 0 80px; }
.wb-alt-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #f1f5f9; align-items: stretch; }
.wb-alt-row:first-of-type { border-top: none; }
.wb-alt-img { display: flex; align-items: center; justify-content: center; background: #f1f5f9; overflow: hidden; padding: 24px; }
.wb-alt-img img { width: 100%; height: auto; display: block; max-width: 100%; object-fit: contain; border-radius: 18px; transition: transform 0.55s ease; }
.wb-alt-row:hover .wb-alt-img img { transform: scale(1.02); }
.wb-alt-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px 72px; background: #fff; }
.wb-alt-row.wb-reverse .wb-alt-img { order: 2; }
.wb-alt-row.wb-reverse .wb-alt-copy { order: 1; }
.wb-alt-row.wb-reverse .wb-alt-copy,
.wb-alt-row:nth-child(even) .wb-alt-copy { background: #f8fafc; }
.wb-alt-row:nth-child(even) { background: #f8fafc; }
.wb-alt-num { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.wb-alt-row:nth-child(1) .wb-alt-num { color: #3b82f6; }
.wb-alt-row:nth-child(2) .wb-alt-num { color: #8b5cf6; }
.wb-alt-row:nth-child(3) .wb-alt-num { color: #0d9488; }
.wb-alt-row:nth-child(4) .wb-alt-num { color: #f59e0b; }
.wb-alt-row:nth-child(5) .wb-alt-num { color: #ec4899; }
.wb-alt-title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; color: #0f172a; line-height: 1.2; margin-bottom: 16px; }
.wb-alt-desc { font-size: 18px; line-height: 1.85; color: #475569; margin-bottom: 32px; }
.wb-alt-desc strong { color: #1e293b; }
.wb-alt-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 28px; border-radius: 50px; font-size: 14px; font-weight: 700; text-decoration: none; width: fit-content; transition: all .22s ease; border: none; }
.wb-alt-row:nth-child(1) .wb-alt-btn { background: #3b82f6; color: #fff; }
.wb-alt-row:nth-child(1) .wb-alt-btn:hover { background: #2563eb; }
.wb-alt-row:nth-child(2) .wb-alt-btn { background: #8b5cf6; color: #fff; }
.wb-alt-row:nth-child(2) .wb-alt-btn:hover { background: #7c3aed; }
.wb-alt-row:nth-child(3) .wb-alt-btn { background: #0d9488; color: #fff; }
.wb-alt-row:nth-child(3) .wb-alt-btn:hover { background: #0f766e; }
.wb-alt-row:nth-child(4) .wb-alt-btn { background: #f59e0b; color: #fff; }
.wb-alt-row:nth-child(4) .wb-alt-btn:hover { background: #d97706; }
.wb-alt-row:nth-child(5) .wb-alt-btn { background: #1d4ed8; color: #fff; }
.wb-alt-row:nth-child(5) .wb-alt-btn:hover { background: #1e40af; }

@media (max-width: 1100px) {
    .home-hero-content { grid-template-columns: 1fr 1fr; gap: 36px; padding: 48px 32px 64px; }
    .hero-title-large { font-size: clamp(36px, 4.5vw, 56px) !important; }
}
@media (max-width: 900px) {
    .wb-alt-row { grid-template-columns: 1fr; }
    .wb-alt-copy { padding: 48px 36px; }
    .wb-alt-row.wb-reverse .wb-alt-img  { order: 0; }
    .wb-alt-row.wb-reverse .wb-alt-copy { order: 0; }
}
@media (max-width: 860px) {
    .home-hero-content { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px 60px; }
    .sector-features { grid-template-columns: repeat(3,1fr); }
    .hero-sub-large { font-size: 24px; }
    .hero-body-large { font-size: 20px; }
}
@media (max-width: 540px) {
    .home-hero-content { padding: 28px 16px 48px; gap: 28px; }
    .sector-features { grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 12px; }
    .hero-title-large { font-size: clamp(26px, 8vw, 38px) !important; }
    .hero-sub-large { font-size: 19px; }
    .hero-body-large { font-size: 16px; }
    .wb-alt-copy { padding: 40px 24px; }
    .wb-alt-header { padding: 56px 24px 32px; }
}

/* ── PIR feature section ─────────────────────────────────── */
.pir-section { background: #F4F3F7; padding: 80px 0; }
.pir-card {
    background: #0a1d3d;
    border-radius: 24px;
    padding: 40px 32px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.pir-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pir-eyebrow-dot { width: 6px; height: 6px; background: #EF9F27; border-radius: 50%; }
.pir-eyebrow-text {
    font-size: 12px; font-weight: 600; color: #EF9F27;
    letter-spacing: 0.12em; text-transform: uppercase;
}
.pir-title {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 14px;
    color: #fff;
}
.pir-lede {
    font-size: 16px; line-height: 1.6;
    color: #B5D4F4; 
    margin: 0 0 32px;
}

.pir-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
}
.pir-compare-card { border-radius: 16px; padding: 22px 22px; }
.pir-compare-old {
    background: rgba(239, 159, 39, 0.08);
    border: 1px solid rgba(239, 159, 39, 0.35);
}
.pir-compare-new {
    background: rgba(239, 159, 39, 0.18);
    border: 1px solid #EF9F27;
}
.pir-compare-label {
    font-size: 11px; font-weight: 600; color: #FAC775;
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 10px;
}
.pir-compare-value {
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 600; color: #fff; line-height: 1.1;
    margin-bottom: 8px;
}
.pir-compare-value-accent { color: #EF9F27; }
.pir-compare-desc { font-size: 13px; color: #85B7EB; line-height: 1.5; }
.pir-compare-new .pir-compare-desc { color: #B5D4F4; }

.pir-steps {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(133, 183, 235, 0.2);
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 28px;
}
.pir-steps-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.pir-steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.pir-step-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pir-step-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(239, 159, 39, 0.2); color: #EF9F27;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
}
.pir-step-name { font-size: 13px; font-weight: 600; color: #fff; }
.pir-step-desc { font-size: 12px; color: #85B7EB; line-height: 1.5; padding-left: 12px; padding-top:10px; }

.pir-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.pir-pillar {
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border-left: 2px solid #EF9F27;
}
.pir-pillar-title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.pir-pillar-desc { font-size: 12px; color: #85B7EB; line-height: 1.5; }

.pir-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Slow continuous "attention" glow used on the sample-PIR and
   newsletter-preview CTAs to draw the eye while the user reads.
   Reusable via the .cta-slow-glow class on any button or link.       */
@keyframes ctaSlowGlow {
    0%, 100% { box-shadow: 0 0 18px rgba(245,124,0,0.30), 0 0 36px rgba(245,124,0,0.12); }
    50%      { box-shadow: 0 0 28px rgba(245,124,0,0.60), 0 0 60px rgba(245,124,0,0.25); }
}
.cta-slow-glow {
    animation: ctaSlowGlow 3.5s ease-in-out infinite;
    border-radius: var(--radius-full);
}
@media (prefers-reduced-motion: reduce) {
    .cta-slow-glow { animation: none; }
}

/* ── PIR animations: 5-minute clock + sequential step connectors ──
   Triggered when `.pir-section` gains `.is-in-view` (set by an IntersectionObserver). */
.pir-compare-new { position: relative; }
.pir-clock {
    position: absolute; top: 14px; right: 14px;
    width: 44px; height: 44px;
    pointer-events: none;
}
.pir-clock svg { width: 100%; height: 100%; display: block; }
@keyframes pirClockHandSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes pirClockArcFill {
    0%   { stroke-dashoffset: 264; }
    100% { stroke-dashoffset: 0; }
}
.pir-clock-arc {
    animation: pirClockArcFill 5s linear infinite;
    animation-play-state: paused;
}
.pir-clock-hand {
    transform-origin: 50px 50px;
    animation: pirClockHandSpin 5s linear infinite;
    animation-play-state: paused;
}
.pir-section.is-in-view .pir-clock-arc,
.pir-section.is-in-view .pir-clock-hand { animation-play-state: running; }

/* Sequential connecting lines drawn underneath each step row.
   Every step (including the last) has a ::before that scaleX-animates,
   with staggered delays to give a "drawing" effect across all four. */
.pir-step { position: relative; }
.pir-step::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 12px;
    width: calc(100% + 12px);
    height: 2px;
    background: linear-gradient(90deg, rgba(239,159,39,0.7), rgba(239,159,39,0.3));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.6s ease-out;
    pointer-events: none;
}
.pir-section.is-in-view .pir-step:nth-child(1)::before { transition-delay: 0.4s; transform: scaleX(1); }
.pir-section.is-in-view .pir-step:nth-child(2)::before { transition-delay: 1.8s; transform: scaleX(1); }
.pir-section.is-in-view .pir-step:nth-child(3)::before { transition-delay: 3.2s; transform: scaleX(1); }
.pir-section.is-in-view .pir-step:nth-child(4)::before { transition-delay: 4.6s; transform: scaleX(1); }

/* On mobile the steps grid collapses to 2 columns — connectors don't make
   sense across rows, so hide them. */
@media (max-width: 760px) {
    .pir-step::before { display: none; }
}

/* Skip the motion entirely for users who've opted out of animations. */
@media (prefers-reduced-motion: reduce) {
    .pir-clock-arc { animation: none; stroke-dashoffset: 0; }
    .pir-clock-hand { animation: none; transform: rotate(0deg); }
    .pir-step::before { transition: none; transform: scaleX(1); }
}

/* ── Testimonial cards: word-by-word reveal + hover glow ──
   The quote text is broken into per-word spans by JS at page load. Each span
   starts hidden and animates in when its parent `.testimonial-card` gains the
   `.in-view` class (set by the existing `.anim-fade-up` IntersectionObserver
   in brolly.js). The hover state adds a subtle orange glow for interactivity. */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(245,124,0,0.18), 0 0 0 1px rgba(245,124,0,0.35);
    border-color: rgba(245,124,0,0.45);
}
.t-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(3px);
    will-change: opacity, transform;
}
.testimonial-card.in-view .t-word {
    animation: tWordFade 0.45s ease-out forwards;
}
@keyframes tWordFade {
    from { opacity: 0; transform: translateY(3px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .t-word { opacity: 1; transform: none; animation: none !important; }
}

/* ── PDF viewer modal (used for the sample PIR and any other inline PDFs) ── */
.pdf-modal {
    position: fixed; inset: 0; z-index: 2000;
    display: none; padding: 40px 20px;
    align-items: center; justify-content: center;
}
.pdf-modal.is-open { display: flex; }
.pdf-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(15,23,42,0.75); backdrop-filter: blur(6px);
    cursor: pointer;
}
.pdf-modal-container {
    position: relative; background: var(--white); border-radius: var(--radius-lg);
    width: 100%; max-width: 1100px; height: calc(100vh - 80px); max-height: 95vh;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}
.pdf-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 14px 20px;
    border-bottom: 1px solid var(--grey-100);
    background: var(--grey-50); flex-shrink: 0;
}
.pdf-modal-title {
    font-family: var(--font-heading); font-size: 16px; font-weight: 600;
    color: var(--grey-800); margin: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pdf-modal-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pdf-modal-action {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: var(--radius-full);
    background: var(--blue-primary); color: var(--white) !important;
    font-size: 13px; font-weight: 600; text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.pdf-modal-action:hover { background: var(--blue-light); transform: translateY(-1px); }
.pdf-modal-close {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--grey-100); color: var(--grey-600); border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.pdf-modal-close:hover { background: var(--grey-200); color: var(--grey-800); }
.pdf-modal-body { flex: 1; min-height: 0; background: var(--grey-50); }
.pdf-modal-body iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 640px) {
    .pdf-modal { padding: 0; }
    .pdf-modal-container { height: 100vh; max-height: 100vh; border-radius: 0; }
    .pdf-modal-action span { display: none; } /* shrink to icon-only */
    .pdf-modal-action { padding: 8px 10px; }
}
.pir-btn {
    display: inline-flex; align-items: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px; font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.pir-btn-primary { background: #2563eb; color: #fff; box-shadow: 0 8px 22px rgba(37,99,235,0.35); }
.pir-btn-primary:hover { transform: translateY(-2px); background: #1d4ed8; color: #fff; box-shadow: 0 12px 28px rgba(37,99,235,0.45); }
.pir-btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.pir-btn-secondary:hover { color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.8); }

@media (max-width: 760px) {
    .pir-card { padding: 28px 20px; }
    .pir-compare { grid-template-columns: 1fr; }
    .pir-steps-grid { grid-template-columns: 1fr 1fr; }
    .pir-pillars { grid-template-columns: 1fr; }
}

/* ── Sector switcher (darker bg + mobile tweaks) ─────────── */
.sector-switcher {
    background: #050d1c !important;
    position: relative;
    overflow: hidden;
}
/* Aurora-style drifting glow behind the sector tiles. Two pure-CSS layers:
   ::before — orange + pink blobs drifting one way
   ::after  — gold + blue blobs drifting the other way at a different rate
   The interference between the two creates a slow, wave-like shimmer.
   Tiles sit above via z-index on .container. */
.sector-switcher::before {
    content: '';
    position: absolute;
    inset: -15%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(40% 35% at 20% 30%, rgba(245,124,0,0.32), transparent 70%),
        radial-gradient(45% 40% at 78% 22%, rgba(245,82,126,0.30), transparent 70%),
        radial-gradient(40% 35% at 60% 80%, rgba(245,124,0,0.22), transparent 70%);
    filter: blur(50px);
    animation: sectorAuroraA 22s ease-in-out infinite alternate;
    will-change: transform;
}
.sector-switcher::after {
    content: '';
    position: absolute;
    inset: -15%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(50% 45% at 75% 70%, rgba(74,144,226,0.30), transparent 70%),
        radial-gradient(35% 30% at 25% 75%, rgba(255,210,100,0.26), transparent 70%),
        radial-gradient(40% 35% at 90% 30%, rgba(255,210,100,0.22), transparent 70%);
    filter: blur(60px);
    animation: sectorAuroraB 30s ease-in-out infinite alternate;
    will-change: transform;
}
.sector-switcher > .container { position: relative; z-index: 1; }
@keyframes sectorAuroraA {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-4%, 3%) scale(1.08); }
    100% { transform: translate(3%, -4%) scale(1.04); }
}
@keyframes sectorAuroraB {
    0%   { transform: translate(0, 0) scale(1.05); }
    50%  { transform: translate(5%, -2%) scale(1); }
    100% { transform: translate(-3%, 4%) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
    .sector-switcher::before,
    .sector-switcher::after { animation: none; }
}
.sector-switcher .section-header .h2 { color: #ffffff; }
.sector-switcher .section-header .body-lg { color: rgba(230,238,251,0.78); }
.sector-switcher .section-header .overline { color: #F0A033; }
.sector-switcher .sector-tile-link img {
    filter: brightness(0.78) saturate(1.05);
}
.sector-switcher .sector-tile-link > div {
    background: linear-gradient(to top, rgba(5,13,28,0.85) 0%, rgba(5,13,28,0.35) 55%, rgba(5,13,28,0.05) 100%) !important;
}

/* Hover state for the sector tiles — glowing orange ring around the image
   and a glowing "Explore" label so the CTA reads as alive on hover. */
.sector-switcher .sector-tile-link {
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.sector-switcher .sector-tile-link img {
    transition: filter 0.4s ease, transform 0.6s ease;
}
.sector-switcher .sector-tile-link span:last-child {
    transition: text-shadow 0.35s ease, color 0.35s ease;
}
.sector-switcher .sector-tile-link span:last-child i {
    transition: transform 0.35s ease;
}
.sector-switcher .sector-tile-link:hover {
    box-shadow:
        0 0 0 2px rgba(255,165,58,0.75),
        0 0 22px rgba(245,124,0,0.55),
        0 18px 38px rgba(0,0,0,0.45) !important;
    transform: translateY(-3px);
}
.sector-switcher .sector-tile-link:hover img {
    filter: brightness(1.05) saturate(1.18) !important;
    transform: scale(1.03);
}
.sector-switcher .sector-tile-link:hover span:last-child {
    color: #FCD224 !important;
    text-shadow:
        0 0 8px rgba(255,210,100,0.85),
        0 0 18px rgba(245,124,0,0.55);
}
.sector-switcher .sector-tile-link:hover span:last-child i {
    transform: translateX(4px);
}
.sector-switcher .sector-tile-link:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255,165,58,0.85),
        0 0 22px rgba(245,124,0,0.55) !important;
}

@media (max-width: 760px) {
    .sector-switcher > .container > div[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .sector-switcher .sector-centre-tile { display: none !important; }
    .sector-switcher .sector-tile-link img { aspect-ratio: 1 / 1 !important; }
    .sector-switcher .sector-tile-link > div { padding: 12px 14px !important; }
    .sector-switcher .sector-tile-link span[style*="font-size:19px"] { font-size: 14px !important; }
    .sector-switcher .sector-tile-link span[style*="font-size:13px"] { font-size: 11px !important; }
}

/* ── Platform features (12-tile grid) ────────────────────── */
.features-section { background: #F4F3F7; padding: 80px 0; }
.features-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
}
.features-header { text-align: center; margin-bottom: 40px; }
.features-eyebrow {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(83, 74, 183, 0.12);
    border-radius: 999px;
    margin-bottom: 18px;
}
.features-eyebrow span {
    font-size: 11px;
    font-weight: 600;
    color: #3C3489;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.features-title {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 600;
    color: #0a1d3d;
    line-height: 1.2;
    margin: 0 0 14px;
}
.features-lede {
    font-size: 15px;
    color: #5F5E5A;
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.feature-tile {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(83, 74, 183, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(83, 74, 183, 0.12);
    border-color: rgba(83, 74, 183, 0.25);
}

/* ── Sequential spotlight reveal of the 16 feature tiles ──
   When `.features-section` first scrolls into view, each tile pulses with a
   brief glow + scale, moving left-to-right and row-by-row across the 4×4 grid.
   The `is-in-view` class is added once by an IntersectionObserver. */
@keyframes featureTileSpotlight {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
        border-color: rgba(83, 74, 183, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow:
            0 0 32px rgba(245,124,0,0.45),
            0 0 0 2px rgba(245,124,0,0.55);
        border-color: rgba(245,124,0,0.7);
    }
}
.features-section.is-in-view .feature-tile {
    animation: featureTileSpotlight 0.85s ease-in-out both;
}
.features-section.is-in-view .feature-tile:nth-child(1)  { animation-delay: 0.00s; }
.features-section.is-in-view .feature-tile:nth-child(2)  { animation-delay: 0.15s; }
.features-section.is-in-view .feature-tile:nth-child(3)  { animation-delay: 0.30s; }
.features-section.is-in-view .feature-tile:nth-child(4)  { animation-delay: 0.45s; }
.features-section.is-in-view .feature-tile:nth-child(5)  { animation-delay: 0.60s; }
.features-section.is-in-view .feature-tile:nth-child(6)  { animation-delay: 0.75s; }
.features-section.is-in-view .feature-tile:nth-child(7)  { animation-delay: 0.90s; }
.features-section.is-in-view .feature-tile:nth-child(8)  { animation-delay: 1.05s; }
.features-section.is-in-view .feature-tile:nth-child(9)  { animation-delay: 1.20s; }
.features-section.is-in-view .feature-tile:nth-child(10) { animation-delay: 1.35s; }
.features-section.is-in-view .feature-tile:nth-child(11) { animation-delay: 1.50s; }
.features-section.is-in-view .feature-tile:nth-child(12) { animation-delay: 1.65s; }
.features-section.is-in-view .feature-tile:nth-child(13) { animation-delay: 1.80s; }
.features-section.is-in-view .feature-tile:nth-child(14) { animation-delay: 1.95s; }
.features-section.is-in-view .feature-tile:nth-child(15) { animation-delay: 2.10s; }
.features-section.is-in-view .feature-tile:nth-child(16) { animation-delay: 2.25s; }

/* Skip the spotlight wave for users who've opted out of motion. */
@media (prefers-reduced-motion: reduce) {
    .features-section.is-in-view .feature-tile { animation: none; }
}
.feature-tile-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.feature-tile-icon {
    width: 32px; height: 32px;
    background: #534AB7;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.feature-tile-meta {
    flex: 1; min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.feature-tile-title {
    font-size: 13px;
    font-weight: 600;
    color: #0a1d3d;
    line-height: 1.3;
}
.feature-tile-tag {
    font-size: 9px;
    font-weight: 600;
    color: #3C3489;
    background: rgba(83, 74, 183, 0.12);
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.feature-tile-desc {
    font-size: 12px;
    color: #5F5E5A;
    line-height: 1.5;
    margin: 0;
}
.features-footnote {
    margin-top: 28px;
    padding: 20px 28px;
    background: rgba(83, 74, 183, 0.04);
    border: 1px dashed rgba(83, 74, 183, 0.25);
    border-radius: 16px;
    text-align: center;
}
.features-footnote p {
    font-family: var(--font-heading);
    font-size: 14px;
    color: #444441;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

@media (max-width: 1100px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .features-section { padding: 56px 0; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .feature-tile { padding: 14px; }
    .features-footnote { padding: 16px 20px; }
}
@media (max-width: 460px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* ── AI Safety & Trust section ───────────────────────────── */
.trust-section { background: var(--blue-pale); padding: 80px 0; }

/* ── Scroll-tied progressive reveal of the 8 Trust tiles ──
   IMPORTANT: the hidden state is ONLY applied when JS has successfully wired
   the reveal (it adds `.tiles-staged` to the section). If anything blocks the
   JS, tiles default to fully visible rather than stuck at opacity 0.
     stage-1  = row 1 inner pair (tiles 2, 3)
     stage-2  = row 1 outer pair (tiles 1, 4)
     stage-3  = row 2 inner pair (tiles 6, 7)
     stage-4  = row 2 outer pair (tiles 5, 8)                                  */
@keyframes trustEnterFromLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes trustEnterFromRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}
.trust-section.tiles-staged .trust-grid .trust-tile { opacity: 0; }
.trust-section.tiles-staged.stage-1 .trust-tile:nth-child(2) { animation: trustEnterFromLeft  0.7s ease-out forwards; }
.trust-section.tiles-staged.stage-1 .trust-tile:nth-child(3) { animation: trustEnterFromRight 0.7s ease-out forwards; }
.trust-section.tiles-staged.stage-2 .trust-tile:nth-child(1) { animation: trustEnterFromLeft  0.7s ease-out forwards; }
.trust-section.tiles-staged.stage-2 .trust-tile:nth-child(4) { animation: trustEnterFromRight 0.7s ease-out forwards; }
.trust-section.tiles-staged.stage-3 .trust-tile:nth-child(6) { animation: trustEnterFromLeft  0.7s ease-out forwards; }
.trust-section.tiles-staged.stage-3 .trust-tile:nth-child(7) { animation: trustEnterFromRight 0.7s ease-out forwards; }
.trust-section.tiles-staged.stage-4 .trust-tile:nth-child(5) { animation: trustEnterFromLeft  0.7s ease-out forwards; }
.trust-section.tiles-staged.stage-4 .trust-tile:nth-child(8) { animation: trustEnterFromRight 0.7s ease-out forwards; }

@media (prefers-reduced-motion: reduce) {
    .trust-section.tiles-staged .trust-grid .trust-tile { opacity: 1; }
    .trust-section.tiles-staged .trust-tile { animation: none !important; }
}
.trust-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.trust-header { text-align: center; margin-bottom: 40px; }
.trust-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 18px;
    font-size: 11px;
    font-weight: 600;
    color: #185FA5;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.trust-title {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 600;
    color: #0a1d3d;
    line-height: 1.2;
    margin: 0 0 14px;
}
.trust-lede {
    font-size: 15px;
    color: #5F5E5A;
    line-height: 1.6;
    margin: 0 auto;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.trust-tile {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    border: 1px solid rgba(83, 74, 183, 0.15);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.trust-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(83, 74, 183, 0.1);
    border-color: rgba(83, 74, 183, 0.3);
}
.trust-tile-icon {
    width: 38px; height: 38px;
    background: rgba(83, 74, 183, 0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.trust-tile-title {
    font-size: 14px;
    font-weight: 600;
    color: #0a1d3d;
    margin-bottom: 6px;
}
.trust-tile-desc {
    font-size: 12px;
    color: #5F5E5A;
    line-height: 1.55;
    margin: 0 0 12px;
}
.trust-tile-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #185FA5;
    background: rgba(24, 95, 165, 0.08);
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.trust-certs {
    background: #F4F3F7;
    border-radius: 16px;
    padding: 24px 28px;
    margin-top: 24px;
}
.trust-certs-label {
    font-size: 11px;
    font-weight: 600;
    color: #3C3489;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 16px;
    text-align: center;
}
.trust-certs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: center;
}
.trust-cert {
    text-align: center;
    padding: 12px 10px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(83, 74, 183, 0.1);
}
.trust-cert-name {
    font-size: 13px;
    font-weight: 600;
    color: #0a1d3d;
    margin-bottom: 2px;
}
.trust-cert-desc {
    font-size: 10px;
    color: #5F5E5A;
}
.trust-cta { text-align: center; margin-top: 28px; }
.trust-cta-btn {
    display: inline-block;
    background: transparent;
    color: #185FA5;
    border: 1px solid #185FA5;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.trust-cta-btn:hover {
    background: #185FA5;
    color: #ffffff;
}

@media (max-width: 1100px) {
    .trust-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .trust-certs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .trust-section { padding: 56px 0; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .trust-tile { padding: 18px; }
    .trust-certs { padding: 18px 16px; }
    .trust-certs-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 460px) {
    .trust-grid { grid-template-columns: 1fr; }
}

/* ── Newsletter section (replaces final CTA form) ────────── */
.newsletter-section {
    position: relative;
    padding: 5.5rem 0;
    background: linear-gradient(135deg, #f0eef5 0%, #e8e4f0 50%, #f5f3fa 100%);
    overflow: hidden;
}
.newsletter-section::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(48,36,115,0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 50%, rgba(201,149,43,0.05) 0%, transparent 55%);
    pointer-events: none;
}
.newsletter-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
}
.newsletter-single {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

/* "See an example" preview button */
.newsletter-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin: 0 0 16px;
    padding: 10px 18px;
    background: rgba(48, 36, 115, 0.08);
    border: 1px solid rgba(48, 36, 115, 0.25);
    border-radius: 10px;
    color: #302473;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.newsletter-preview-btn:hover {
    background: rgba(48, 36, 115, 0.14);
    border-color: rgba(48, 36, 115, 0.45);
    transform: translateY(-1px);
}

/* Modal that shows the example newsletter */
.nl-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(10, 14, 30, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.nl-modal-overlay.is-open { opacity: 1; }
.nl-modal {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    background: transparent;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    transform: translateY(8px);
    transition: transform 0.22s ease;
}
.nl-modal-overlay.is-open .nl-modal { transform: translateY(0); }
.nl-modal-frame {
    background: #f0eef5;
    padding: 18px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: 18px;
}
.nl-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #302473;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: background 0.15s ease, transform 0.15s ease;
}
.nl-modal-close:hover { background: #ffffff; transform: rotate(90deg); }

.newsletter-signup {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
}
.newsletter-signup-header {
    background: linear-gradient(135deg, #302473, #1a1254);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    color: #ffffff;
}
.newsletter-signup-icon {
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    color: #ffffff;
}
.newsletter-signup-title {
    margin: 0 0 0.25rem;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
}
.newsletter-signup-tagline {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.85;
}

.newsletter-signup-body { padding: 1.5rem 2rem 2rem; }

.newsletter-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.newsletter-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
}
.newsletter-benefit i {
    color: #302473;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.newsletter-benefit strong { color: #111827; }

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.newsletter-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.newsletter-form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}
.newsletter-form-group label i {
    margin-right: 4px;
    color: #302473;
    font-size: 0.75rem;
}
.newsletter-form-group input {
    padding: 0.7rem 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.newsletter-form-group input:focus {
    outline: none;
    border-color: #302473;
    box-shadow: 0 0 0 3px rgba(48,36,115,0.12);
}
.newsletter-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.newsletter-alert.is-success { background: #d4edda; color: #155724; }
.newsletter-alert.is-error   { background: #f8d7da; color: #721c24; }

.newsletter-submit {
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #ff55a2, #cc0a8b);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s, transform 0.15s;
    margin-top: 0.25rem;
}
.newsletter-submit:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}
.newsletter-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.newsletter-privacy {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin: 0.5rem 0 0;
}
.newsletter-privacy i { margin-right: 3px; }
.newsletter-privacy a { color: #302473; text-decoration: underline; }

/* Example newsletter preview */
.newsletter-preview {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.newsletter-preview-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 6px 14px;
    background: rgba(48,36,115,0.08);
    color: #302473;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.newsletter-preview-frame {
    flex: 1;
    background: #f0eef5;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.10);
    overflow: hidden;
    max-height: 640px;
    overflow-y: auto;
    border: 1px solid rgba(48,36,115,0.08);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 92%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 92%, transparent 100%);
}
.newsletter-preview-frame::-webkit-scrollbar { width: 6px; }
.newsletter-preview-frame::-webkit-scrollbar-thumb {
    background: rgba(48,36,115,0.25);
    border-radius: 3px;
}

.nl-mail {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    font-family: 'Segoe UI', Arial, sans-serif;
}
.nl-mail-header {
    background: linear-gradient(135deg, #302473, #1a1254);
    color: #ffffff;
    padding: 22px 24px;
    text-align: center;
}
.nl-mail-header h3 {
    margin: 0 0 2px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.nl-mail-header p {
    margin: 0;
    font-size: 12px;
    opacity: 0.78;
}
.nl-mail-body { padding: 22px 24px; color: #1f2937; font-size: 13.5px; line-height: 1.6; }
.nl-mail-edition { font-size: 12px; color: #6b7280; margin: 0 0 14px; }
.nl-mail-greeting { margin: 0 0 14px; font-size: 14px; }
.nl-mail-intro { margin: 0 0 18px; font-size: 14px; }
.nl-mail-body hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 18px 0;
}
.nl-mail-h {
    font-size: 15px;
    color: #302473;
    margin: 14px 0 8px;
    border-left: 3px solid #c9952b;
    padding-left: 10px;
    font-weight: 700;
    line-height: 1.3;
}
.nl-mail-body p { margin: 0 0 10px; }
.nl-mail-takeaways {
    margin: 0;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.7;
}
.nl-mail-takeaways li { margin-bottom: 8px; }
.nl-mail-takeaways li:last-child { margin-bottom: 0; }
.nl-mail-footer {
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.5;
}
.nl-mail-footer p { margin: 0 0 4px; }
.nl-mail-footer strong { color: #6b7280; }

@media (max-width: 960px) {
    .newsletter-grid { grid-template-columns: 1fr; gap: 24px; }
    .newsletter-preview-frame { max-height: 520px; }
}
@media (max-width: 540px) {
    .newsletter-section { padding: 3.5rem 0; }
    .newsletter-signup-header { padding: 1.5rem 1.25rem 1.25rem; }
    .newsletter-signup-body { padding: 1.25rem 1.25rem 1.5rem; }
    .nl-mail-header { padding: 18px 18px; }
    .nl-mail-body, .nl-mail-footer { padding-left: 18px; padding-right: 18px; }
}

/* ── Trust redaction note (replaces "Independently verified") ── */
.trust-redaction {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 24px auto 0;
    max-width: 880px;
    padding: 22px 28px;
    background: #F4F3F7;
    border-left: 4px solid #185FA5;
    border-radius: 12px;
}
.trust-redaction i {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(24,95,165,0.10);
    color: #185FA5;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.trust-redaction p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #444441;
}

/* ── Newsletter section (refactored to use design-system classes) ─
   The .newsletter-card sits inside .container so it matches the width
   of every other section. The grid stacks on smaller screens. */
.newsletter-card-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: start;
}
.newsletter-feature-list {
    list-style: none; padding: 0; margin: 22px 0;
    display: grid; gap: 16px;
}
.newsletter-feature-list li {
    display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
}
.newsletter-feature-list strong {
    display: block; color: var(--grey-800); font-size: 14px;
    font-weight: 700; margin-bottom: 2px;
}
.newsletter-feature-list span {
    display: block; color: var(--grey-600); font-size: 14px; line-height: 1.55;
}
@media (max-width: 720px) {
    .newsletter-card-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .newsletter-card { padding: 28px !important; }
}

/* ── Newsletter block (legacy — kept while old class names linger elsewhere) ─ */
.newsletter-block { padding: 80px 0; }
.newsletter-block::before { display: none; }
.newsletter-block-card {
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 56px rgba(15,23,42,0.10);
    border: 1px solid var(--grey-100);
}
.newsletter-block-banner {
    background: linear-gradient(135deg, #302473 0%, #1a1254 100%);
    color: #ffffff;
    padding: 36px 40px;
    display: flex;
    gap: 24px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.newsletter-block-banner::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 110% 0%, rgba(255,85,162,0.22) 0%, rgba(0,0,0,0) 55%);
    pointer-events: none;
}
.newsletter-block-mark {
    position: relative; z-index: 1;
    flex-shrink: 0;
    width: 64px; height: 64px;
    border-radius: 16px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.20);
    display: flex; align-items: center; justify-content: center;
    color: #FCD224;
    font-size: 24px;
}
.newsletter-block-meta { position: relative; z-index: 1; }
.newsletter-block-issue {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    color: #FCD224;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.newsletter-block-title {
    margin: 0 0 4px;
    font-family: var(--font-heading);
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 700;
    color: #ffffff;
}
.newsletter-block-tagline {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.80);
    max-width: 520px;
}

.newsletter-block-body {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
}
.newsletter-block-left {
    padding: 32px 36px;
    background: #FAFAFC;
    border-right: 1px solid var(--grey-100);
}
.newsletter-block-right {
    padding: 32px 36px;
    background: #ffffff;
}
.newsletter-block-eyebrow {
    font-size: 11px; font-weight: 700;
    color: #185FA5;
    letter-spacing: 0.14em; text-transform: uppercase;
    margin-bottom: 14px;
}
.newsletter-block-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.newsletter-block-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13.5px;
    line-height: 1.55;
    color: #444441;
}
.newsletter-block-list i {
    flex-shrink: 0;
    width: 22px;
    color: #cc0a8b;
    font-size: 14px;
    margin-top: 3px;
    text-align: center;
}
.newsletter-block-list strong { color: #0a1d3d; }
.newsletter-block-preview {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(48,36,115,0.08);
    border: 1px solid rgba(48,36,115,0.25);
    border-radius: 999px;
    color: #302473;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.newsletter-block-preview:hover {
    background: rgba(48,36,115,0.14);
    border-color: rgba(48,36,115,0.45);
    transform: translateY(-1px);
    color: #302473;
}

@media (max-width: 760px) {
    .newsletter-block-banner { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
    .newsletter-block-body { grid-template-columns: 1fr; }
    .newsletter-block-left, .newsletter-block-right { padding: 28px 24px; }
    .newsletter-block-left { border-right: none; border-bottom: 1px solid var(--grey-100); }
}
