/* ============================================================
   CanInvest — Styles
   Light & clean with Canada Red accents
   ============================================================ */

/* --- Custom Properties --- */
:root {
    --red: #D72638;
    --red-light: #E8394B;
    --red-dark: #B91C2E;
    --red-glow: rgba(215, 38, 56, 0.15);
    --red-subtle: rgba(215, 38, 56, 0.06);

    --white: #FFFFFF;
    --snow: #FAFAFA;
    --ghost: #F5F5F7;
    --silver: #E8E8ED;
    --mist: #C7C7CC;
    --slate: #8E8E93;
    --charcoal: #48484A;
    --ink: #1D1D1F;
    --black: #000000;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    --nav-height: 80px;
    --section-padding: 140px;
    --container-width: 1200px;
    --border-radius: 16px;
    --border-radius-sm: 10px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

/* Screen reader only — visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

img { max-width: 100%; display: block; }

/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--slate);
    max-width: 600px;
}

.text-accent {
    color: var(--red);
}

/* --- Section --- */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    margin-bottom: 80px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    border-radius: 60px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 4px 24px rgba(215, 38, 56, 0.3);
}

.btn-primary:hover {
    background: var(--red-light);
    box-shadow: 0 8px 32px rgba(215, 38, 56, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--silver);
}

.btn-outline:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 12px 24px;
    font-size: 14px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.nav-logo-icon {
    width: 28px;
    height: 28px;
    color: var(--red);
}

/* Hide old nav elements */
.nav-toggle, .nav-links {
    display: none;
}

/* --- Sidebar Navigation --- */
.nav-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    z-index: 1001;
    transform: translateX(-280px);
    transition: transform var(--transition-slow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--silver);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0);
}

.nav-sidebar.open {
    transform: translateX(0);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.06);
}

/* Mobile backdrop overlay */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

@media (min-width: 1025px) {
    .sidebar-backdrop { display: none !important; }
}

/* Mobile sidebar adjustments */
@media (max-width: 1024px) {
    .nav-sidebar-body {
        padding-bottom: 40px;
    }
    /* Hide tab when sidebar is open on mobile — backdrop handles close */
    .nav-sidebar.open ~ .nav-tab {
        opacity: 0;
        pointer-events: none;
    }
}

/* Pull tab — visible when sidebar is closed */
.nav-tab {
    position: fixed;
    top: 100px;
    left: 0;
    z-index: 1002;
    width: 28px;
    height: 72px;
    background: var(--white);
    border: 1px solid var(--silver);
    border-left: none;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-tab:hover {
    width: 32px;
    background: var(--snow);
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.1);
}

.nav-tab svg {
    width: 16px;
    height: 16px;
    color: var(--red);
    transition: transform var(--transition);
}

.nav-sidebar.open ~ .nav-tab {
    left: 280px;
}

.nav-sidebar.open ~ .nav-tab svg {
    transform: rotate(180deg);
}

/* Sidebar header */
.nav-sidebar-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--ghost);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: background var(--transition);
}

.nav-sidebar-header:hover {
    background: var(--snow);
}

.nav-sidebar-header svg:first-child {
    width: 24px;
    height: 24px;
    color: var(--red);
    flex-shrink: 0;
}

.nav-sidebar-header span {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    flex: 1;
}

.nav-home-icon {
    width: 18px;
    height: 18px;
    color: var(--mist);
    flex-shrink: 0;
    transition: color var(--transition);
}

.nav-sidebar-header:hover .nav-home-icon {
    color: var(--red);
}

/* Sidebar body (scrollable) */
.nav-sidebar-body {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.nav-section {
    padding: 8px 24px;
}

.nav-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mist);
    margin-bottom: 4px;
    padding: 0;
}

.nav-sidebar-link,
.nav-sidebar-link:visited {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    transition: all var(--transition);
    border-left: 3px solid transparent;
    text-decoration: none;
}

@media (hover: hover) {
    .nav-sidebar-link:hover {
        background: var(--snow);
        color: var(--red);
        border-left-color: var(--red);
    }
}

.nav-sidebar-link:focus,
.nav-sidebar-link:focus-visible {
    outline: none;
}

.nav-sidebar-link.active {
    color: var(--red);
    background: var(--red-subtle);
    border-left-color: var(--red);
    font-weight: 600;
}

.nav-sidebar-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.5;
}

.nav-sidebar-link.active svg {
    opacity: 1;
    color: var(--red);
}

@media (hover: hover) {
    .nav-sidebar-link:hover svg {
        opacity: 1;
        color: var(--red);
    }
}

.nav-sidebar-link .nav-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 60px;
    background: var(--red);
    color: var(--white);
}

.nav-sidebar-link .nav-badge-soon {
    background: var(--ghost);
    color: var(--slate);
}

.nav-divider {
    height: 1px;
    background: var(--ghost);
    margin: 8px 24px;
}

/* Sidebar footer */
/* nav-sidebar-footer removed — home link moved to header */

/* --- Page content shift --- */
.site-wrapper {
    transition: margin-left var(--transition-slow);
}

.site-wrapper.shifted {
    margin-left: 280px;
}

/* On smaller screens, overlay instead of shift */
@media (max-width: 1024px) {
    .site-wrapper.shifted {
        margin-left: 0;
    }

    .nav-sidebar.open {
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 768px) {
    .nav-sidebar {
        width: 260px;
        transform: translateX(-260px);
    }

    .nav-sidebar.open ~ .nav-tab {
        left: 260px;
    }

    .nav-tab {
        height: 60px;
        width: 24px;
    }
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 40px) 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.hero-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 12s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    20% { opacity: 0.15; }
    50% { opacity: 0.08; transform: translateY(-200px) scale(1); }
    80% { opacity: 0.15; }
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, var(--red-subtle) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(215, 38, 56, 0.03) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--red-subtle);
    border: 1px solid rgba(215, 38, 56, 0.12);
    border-radius: 60px;
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 32px;
}

.hero-badge svg {
    color: var(--red);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.7;
    color: var(--slate);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 48px 32px 0;
    border-top: 1px solid var(--silver);
    position: relative;
    z-index: 2;
    background: var(--white);
    border-radius: var(--border-radius);
    margin: 0 -32px;
    padding-bottom: 32px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--slate);
    margin-top: 4px;
    display: block;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--silver);
}

/* Hero Scroll */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.hero-scroll span {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--mist);
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--red), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Why Section --- */
.section-why {
    background: var(--snow);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.why-card {
    background: var(--white);
    border: 1px solid var(--silver);
    border-radius: var(--border-radius);
    padding: 40px;
    transition: all var(--transition);
}

.why-card:hover {
    border-color: var(--red);
    box-shadow: 0 8px 40px rgba(215, 38, 56, 0.08);
    transform: translateY(-4px);
}

.why-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red-subtle);
    border-radius: 12px;
    margin-bottom: 24px;
    color: var(--red);
}

.why-card-icon svg {
    width: 24px;
    height: 24px;
}

.why-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink);
}

.why-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--charcoal);
}

/* --- Accounts Section --- */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.account-card {
    background: var(--white);
    border: 1px solid var(--silver);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition);
}

.account-card:hover {
    border-color: var(--red);
    box-shadow: 0 8px 40px rgba(215, 38, 56, 0.08);
    transform: translateY(-4px);
}

.account-card-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--ghost);
    position: relative;
}

.account-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    background: var(--red);
    padding: 4px 12px;
    border-radius: 60px;
    margin-bottom: 12px;
}

.account-card-badge-new {
    background: #10B981;
}

.account-card-header h3 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.account-card-full {
    font-size: 14px;
    color: var(--slate);
}

.account-card-body {
    padding: 24px 32px 32px;
}

.account-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--charcoal);
    line-height: 1.5;
}

.account-features li svg {
    width: 18px;
    height: 18px;
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}

.account-card-tip {
    margin-top: 20px;
    padding: 16px;
    background: var(--red-subtle);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    line-height: 1.6;
    color: var(--charcoal);
}

.account-card-tip strong {
    color: var(--red);
}

/* --- Platforms Section --- */
.section-platforms {
    background: var(--snow);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.platform-card {
    background: var(--white);
    border: 1px solid var(--silver);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

.platform-card:hover {
    border-color: var(--red);
    box-shadow: 0 8px 40px rgba(215, 38, 56, 0.08);
    transform: translateY(-4px);
}

.platform-card-header {
    padding: 28px 28px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--ghost);
}

.platform-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--white);
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}

.platform-logo-q {
    background: #1A8F3A;
}

.platform-logo-ib {
    background: #D41F27;
}

.platform-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}

.platform-type {
    font-size: 13px;
    color: var(--slate);
}

.platform-card-body {
    padding: 24px 28px;
    flex: 1;
}

.platform-highlights {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.platform-highlight {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: var(--ghost);
    border-radius: var(--border-radius-sm);
}

.platform-highlight-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
    margin-bottom: 4px;
}

.platform-highlight-value {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
}

.platform-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.platform-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-tag {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    background: var(--red-subtle);
    color: var(--red);
    border-radius: 60px;
}

.platform-card-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--ghost);
}

.platform-card-footer .btn {
    width: 100%;
}

/* --- Learn Section --- */
.learn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.learn-card {
    padding: 40px;
    border: 1px solid var(--silver);
    border-radius: var(--border-radius);
    background: var(--white);
    position: relative;
    transition: all var(--transition);
}

.learn-card:hover {
    border-color: var(--red);
    box-shadow: 0 8px 40px rgba(215, 38, 56, 0.08);
    transform: translateY(-4px);
}

.learn-card-number {
    display: block;
    font-size: 48px;
    font-weight: 900;
    color: var(--ghost);
    line-height: 1;
    margin-bottom: 20px;
    font-family: var(--font-serif);
}

.learn-card:hover .learn-card-number {
    color: var(--red-glow);
}

.learn-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}

.learn-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--charcoal);
}

/* --- Newsletter Section --- */
.section-newsletter {
    background: var(--snow);
}

.newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.newsletter-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal);
    margin-top: 16px;
}

.newsletter-form-group {
    display: flex;
    gap: 12px;
}

.newsletter-input {
    flex: 1;
    padding: 16px 24px;
    font-family: var(--font-sans);
    font-size: 15px;
    border: 1.5px solid var(--silver);
    border-radius: 60px;
    background: var(--white);
    color: var(--ink);
    outline: none;
    transition: border-color var(--transition);
}

.newsletter-input:focus {
    border-color: var(--red);
}

.newsletter-input::placeholder {
    color: var(--mist);
}

/* Newsletter CTA */
.newsletter-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-cta .section-title {
    margin-bottom: 12px;
}

.newsletter-cta p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal);
    margin-bottom: 28px;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
}

/* Newsletter Modal */
.nl-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.nl-modal.active {
    display: flex;
}

.nl-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.nl-modal-card {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius);
    width: 520px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.nl-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--ghost);
    color: var(--charcoal);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 2;
}

.nl-modal-close:hover {
    background: var(--silver);
}

.nl-modal-header {
    padding: 32px 32px 0;
}

.nl-modal-header h2 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.nl-modal-header p {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.5;
}

.nl-modal-body {
    padding: 24px 32px;
}

.nl-field {
    margin-bottom: 16px;
}

.nl-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate);
    margin-bottom: 6px;
}

.nl-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--silver);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition);
}

.nl-field input:focus {
    border-color: var(--red);
}

.nl-topics {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.nl-topic {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--silver);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition);
}

.nl-topic:hover {
    border-color: var(--red);
}

.nl-topic:has(input:checked) {
    border-color: var(--red);
    background: var(--red-subtle);
}

.nl-topic input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--red);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.nl-topic-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nl-topic-info strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.nl-topic-info span {
    font-size: 12px;
    color: var(--charcoal);
    line-height: 1.4;
}

.nl-topic-info em {
    font-size: 11px;
    font-style: normal;
    color: var(--mist);
    text-transform: capitalize;
}

.nl-consent {
    margin-bottom: 8px;
}

.nl-consent label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--charcoal);
    line-height: 1.5;
    cursor: pointer;
}

.nl-consent input {
    width: 16px;
    height: 16px;
    accent-color: var(--red);
    margin-top: 1px;
    flex-shrink: 0;
}

.nl-consent a {
    color: var(--red);
}

.nl-modal-footer {
    padding: 0 32px 32px;
}

.nl-modal-footer .btn {
    width: 100%;
    font-size: 15px;
    padding: 14px;
}

.nl-modal-footer .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nl-status {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
    min-height: 18px;
}

.newsletter-disclaimer {
    font-size: 13px;
    color: var(--slate);
    margin-top: 12px;
}

.newsletter-status {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
}

.newsletter-status.success {
    color: #10B981;
}

.newsletter-status.error {
    color: var(--red);
}

/* --- Footer --- */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--silver);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
}

.footer-logo-icon {
    width: 24px;
    height: 24px;
    color: var(--red);
}

.footer-tagline {
    font-size: 15px;
    color: var(--slate);
    margin-top: 8px;
}

/* Footer nav grid */
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 768px) {
    .footer-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-nav-col h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink);
    margin-bottom: 12px;
}

.footer-nav-col a {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--charcoal);
    padding: 3px 0;
    transition: color var(--transition);
}

.footer-nav-col a:hover {
    color: var(--red);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--red);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--ghost);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--slate);
}

.footer-disclaimer {
    margin-top: 8px;
    line-height: 1.6;
    max-width: 700px;
}

/* --- Featured Comparison Cards --- */
.section-featured {
    background: var(--snow);
}

.featured-cards {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.featured-card {
    border-radius: var(--border-radius);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

@media (max-width: 768px) {
    .featured-card {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.featured-card:hover {
    transform: translateY(-4px);
}

/* Dark blue-grey card */
.featured-card-dark {
    background: #1B2838;
    color: var(--white);
}

.featured-card-dark:hover {
    box-shadow: 0 12px 40px rgba(27, 40, 56, 0.3);
}

/* Deep ink card */
.featured-card-ink {
    background: var(--ink);
    color: var(--white);
}

.featured-card-ink:hover {
    box-shadow: 0 12px 40px rgba(29, 29, 31, 0.3);
}

.featured-card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red-light);
    margin-bottom: 4px;
}

.featured-card h3 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.featured-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--mist);
    margin-bottom: 20px;
}

.featured-card-data {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.featured-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    font-size: 14px;
    transition: background var(--transition);
}

.featured-card-row:hover {
    background: rgba(255, 255, 255, 0.1);
}

.featured-card-row span:first-child {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.featured-card-row span:last-child {
    font-weight: 800;
    color: var(--red-light);
}

@media (max-width: 768px) {
    .featured-card {
        padding: 28px;
    }
}

/* --- Animations --- */
.animate-in {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.why-grid .animate-in:nth-child(2) { transition-delay: 0.1s; }
.why-grid .animate-in:nth-child(3) { transition-delay: 0.2s; }
.why-grid .animate-in:nth-child(4) { transition-delay: 0.3s; }

.accounts-grid .animate-in:nth-child(2) { transition-delay: 0.1s; }
.accounts-grid .animate-in:nth-child(3) { transition-delay: 0.2s; }
.accounts-grid .animate-in:nth-child(4) { transition-delay: 0.3s; }

.platforms-grid .animate-in:nth-child(2) { transition-delay: 0.1s; }
.platforms-grid .animate-in:nth-child(3) { transition-delay: 0.2s; }

.learn-grid .animate-in:nth-child(2) { transition-delay: 0.1s; }
.learn-grid .animate-in:nth-child(3) { transition-delay: 0.2s; }
.learn-grid .animate-in:nth-child(4) { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px;
    }

    .platforms-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
        --nav-height: 64px;
    }

    .nav-sidebar {
        width: 260px;
        transform: translateX(-260px);
    }

    .nav-sidebar.open ~ .nav-tab {
        left: 260px;
    }

    .hero-title {
        font-size: clamp(40px, 10vw, 64px);
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

    .why-grid,
    .accounts-grid,
    .learn-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .newsletter-form-group {
        flex-direction: column;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 64px;
    }

    .why-card,
    .learn-card {
        padding: 28px;
    }

    .account-card-header,
    .account-card-body {
        padding: 24px;
    }

    .platform-card-header,
    .platform-card-body,
    .platform-card-footer {
        padding: 20px;
    }

    .platform-highlights {
        flex-direction: column;
    }
}
