:root {
    --brand: #21447b;
    --ink: #0f1b2d;
    --muted: #5b6b84;
    --card: #ffffff;
    --bg: #f6f8fb;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
    --nav-h: 64px;
}

/* Base resets and fonts are provided by /styles/global.css */

body {
    color: var(--ink);
    background: var(--bg);
    padding-top: calc(var(--nav-h) + 16px);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Sticky Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid #e6ecf5;
}

.navbar__container {
    max-width: 1100px;
    margin: 0 auto;
    min-height: var(--nav-h);
    padding: 8px 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* left button, centered brand, right spacer */
    align-items: center;
}

.back-btn {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.back-btn:hover {
    background: rgba(33, 68, 123, .86);
}

.brand {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
}

.brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.navbar__spacer {
    justify-self: end;
}

/* keeps center perfectly centered */

.header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0 8px;
}

.logo {
    width: 56px;
    height: auto;
}

.breadcrumbs {
    margin-left: auto;
    font-size: .95rem;
}

.breadcrumbs a {
    color: var(--brand);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.hero {
    display: block;
    background: linear-gradient(140deg, rgba(33, 68, 123, .16), rgba(33, 68, 123, .12));
    border: 1px solid rgba(33, 68, 123, .10);
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.title {
    margin: 0 0 6px;
    font-size: 2rem;
    color: var(--brand);
}

.subtitle {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.video-card {
    background: var(--card);
    border: 1px solid #e6ecf5;
    padding: 14px;
    border-radius: var(--radius);
    margin-top: 12px;
    box-shadow: var(--shadow);
}

.video-wrap {
    position: relative;
    width: min(100%, 420px, calc(75vh * 9 / 16));
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #000;
}

.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.section {
    margin-top: 26px;
}

.section h2 {
    color: var(--brand);
    margin: 0 0 12px 0;
}

.lead {
    font-size: 1.05rem;
    color: var(--ink);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.card {
    background: var(--card);
    border: 1px solid #e6ecf5;
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin-top: 0;
    color: var(--brand);
    margin-bottom: 10px;
}

.card p {
    margin: 0;
}

/* Lists inside content cards: keep emoji, remove bullets */
.card ul {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0;
}

.card li {
    margin: 6px 0;
}

/* Subtle helper text and badges */
.muted {
    color: var(--muted);
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e9fbe7;
    border: 1px solid #66bb6a;
    font-weight: 700;
    font-size: .8rem;
}

.media {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: start;
}

.media img {
    width: 110px;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e6ecf5;
    justify-self: center;
}

.media-lg {
    grid-template-columns: 210px 1fr;
}

.media-lg img {
    width: 200px;
    aspect-ratio: 1 / 1;
}

/* Intro layout: image left, content stacked on the right */
.intro {
    /* grid columns provided by .media-lg */
    align-items: start;
    column-gap: 16px;
}

.intro > img { /* keeps default placement in first column */
}

.intro-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.intro-title {
    margin: 0;
}

.intro-text {
    margin: 0;
}

.intro .lead {
    line-height: 1.35;
}

.benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.benefit h4 {
    margin: 0 0 8px;
    color: var(--brand);
}

.benefit ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.benefit li {
    margin: 6px 0;
}

/* Accordions and platform buttons */
.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 4px;
}

.btn-group-centered {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 4px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--brand);
}

.btn.btn-call-to-action {
    /* Vivid multi-stop gradient */
    background: linear-gradient(135deg, #21447b, #2563eb, #4f46e5, #22a7ee, #2563eb, #21447b);
    background-size: 350% 350%;
    /* Faster gradient and added glow pulse */
    animation: ctaGradientShift 6s ease infinite, ctaGlow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    /* Base shadow slightly stronger */
    box-shadow: 0 8px 22px rgba(33, 68, 123, 0.38);
    /* Smooth shadow transition on hover */
    transition: transform 0.08s ease, filter 0.2s ease, box-shadow 0.25s ease;
}

@keyframes ctaGradientShift {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

@keyframes ctaGlow {
    0%, 100% {
        box-shadow: 0 8px 22px rgba(33, 68, 123, 0.38), 0 0 0 rgba(79, 70, 229, 0);
    }
    50% {
        box-shadow: 0 10px 28px rgba(33, 68, 123, 0.46), 0 0 26px rgba(79, 70, 229, 0.28);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn.btn-call-to-action {
        animation: none;
        background: linear-gradient(135deg, #21447b, #2b6cb0);
        background-size: auto;
        box-shadow: 0 6px 16px rgba(33, 68, 123, 0.25);
    }
}

.btn:hover {
    opacity: .95;
}

.btn-outline {
    background: transparent;
    color: var(--brand);
}

.accordion {
    margin-top: 16px;
    background: var(--card);
    border: 1px solid #e6ecf5;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.accordion > summary {
    cursor: pointer;
    padding: 14px 16px;
    background: transparent;
    color: var(--brand);
    font-weight: 700;
    outline: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion > summary::after {
    content: '▾';
    margin-left: auto;
    color: var(--brand);
    transition: transform .2s ease;
}

details[open].accordion > summary::after {
    transform: rotate(180deg);
}

.accordion > summary::-webkit-details-marker {
    display: none;
}

.accordion > summary {
    border-bottom: 1px solid #e6ecf5;
}

.accordion .accordion-content {
    padding: 12px 14px;
}

/* Steps as mini-cards inside the accordion card */
.accordion .accordion-content > .card {
    margin-top: 12px;
    background: #fbfdff;
    border: 1px solid #e9eef6;
    box-shadow: none;
    border-radius: var(--radius-sm);
    padding: 14px;
}

.accordion .accordion-content > .card:first-child {
    margin-top: 0;
}

/* Ensure anchored accordions position nicely after scroll */
.accordion {
    scroll-margin-top: calc(var(--nav-h) + 20px);
}

/* Flash feedback when navigating to an accordion */
@keyframes flashGreen {
    0%, 100% {
        background: transparent;
        border-color: #e6ecf5;
        box-shadow: none;
    }
    50% {
        background: #76c67e;
        border-color: #0a5c25;
        box-shadow: 0 0 0 6px rgba(10, 92, 37, .62);
    }
}

.accordion.highlight summary {
    animation: flashGreen .6s ease-in-out 2;
}

@keyframes flashOutline {
    0%, 100% {
        box-shadow: none;
    }
    50% {
        box-shadow: 0 0 0 6px rgba(11, 106, 43, .6);
    }
}

.accordion.highlight {
    animation: flashOutline .6s ease-in-out 2;
}

footer {
    margin: 40px 0 10px;
    text-align: center;
    color: var(--muted);
    font-size: .95rem;
}

@media (max-width: 700px) {
    .grid-2, .benefits {
        grid-template-columns: 1fr;
    }

    .media-lg {
        grid-template-columns: 120px 1fr;
    }

    .media-lg img {
        width: 110px;
        aspect-ratio: 1 / 1;
    }

    .title {
        line-height: 1.15;
    }

    .hero {
        padding: 18px;
    }

    .container {
        padding: 16px;
    }
}


@media (max-width: 550px) {
    /* Make media-lg elements use regular media size on smaller screens */
    .media-lg {
        grid-template-columns: 0 1fr;
    }

    .media-lg img {
        width: 110px;
        aspect-ratio: 1 / 1;
    }
}
