/* Landing page */
body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background: #fff;
    overflow-x: hidden;
}

/* Navbar — floating card at top → full-width bar on scroll (StudyMate-style) */
.landing-nav.navbar {
    --bs-navbar-padding-y: 0;
    --bs-navbar-padding-x: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 1.25rem 1.5rem 0;
    background: transparent;
    border: none;
    transition:
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.4s ease;
}

.landing-nav-shell {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 16px 40px rgba(15, 23, 42, 0.1);
    transition:
        max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.landing-nav-shell>.container {
    position: relative;
    padding-block: 0.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Scrolled: spread edge-to-edge, flat bar */
.landing-nav.scrolled {
    padding: 0;
    background: #fff;
}

.landing-nav.scrolled .landing-nav-shell {
    max-width: 100%;
    border-radius: 0;
    border-color: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.landing-nav.scrolled .landing-nav-shell>.container {
    padding-block: 0.2rem;
}

.landing-nav-collapse {
    gap: 0.5rem;
}

@media (min-width: 992px) {
    .landing-nav {
        padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 0;
    }

    .landing-nav-shell>.container {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        min-height: 64px;
    }

    .navbar-brand {
        position: relative;
        z-index: 3;
        flex-shrink: 0;
        max-width: 38%;
        align-self: center;
    }

    .landing-nav-collapse {
        position: relative;
        z-index: 2;
        display: flex !important;
        flex: 1;
        align-items: center;
        justify-content: center;
        min-width: 0;
        pointer-events: auto;
    }

    .landing-nav-links {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        pointer-events: auto;
        margin: 0;
        flex-direction: row;
        gap: 0.15rem;
        white-space: nowrap;
    }

    .landing-nav-actions--desktop {
        position: relative;
        z-index: 3;
        flex-shrink: 0;
        align-self: center;
        display: flex;
        align-items: center;
        margin-left: auto;
        padding: 0;
    }
}

.landing-nav-actions--mobile {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.navbar-brand:hover .brand-logo {
    transform: scale(1.05);
}

.navbar-brand .brand-text {
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    background: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
}

.brand-name {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.015em;
    color: #fff;
    line-height: 1.15;
}

.brand-tagline-logo {
    height: 30px !important;
    max-height: 30px !important;
    width: auto !important;
    max-width: 110px !important;
    object-fit: contain !important;
    display: block !important;
    margin-top: 2px !important;
    border-radius: 3px !important;
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); */
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.brand-icon-sm {
    width: 34px;
    height: 34px;
    font-size: 1rem;
}

.landing-nav .nav-link {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}

.landing-nav .nav-link:hover,
.landing-nav .nav-link:focus {
    color: var(--primary);
}

.landing-nav .dropdown-toggle::after {
    margin-left: 0.35em;
    vertical-align: 0.2em;
    opacity: 0.55;
    border-width: 0.35em 0.35em 0;
}

.landing-nav-dropdown {
    --bs-dropdown-link-color: var(--text-main);
    --bs-dropdown-link-hover-color: var(--primary);
    --bs-dropdown-link-hover-bg: rgba(var(--primary-rgb), 0.08);
    --bs-dropdown-link-active-color: var(--primary);
    --bs-dropdown-link-active-bg: rgba(var(--primary-rgb), 0.12);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem !important;
    min-width: 12rem;
}

.landing-nav-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.landing-nav-dropdown .dropdown-item:hover,
.landing-nav-dropdown .dropdown-item:focus {
    color: var(--primary);
    background-color: rgba(var(--primary-rgb), 0.08);
}

.landing-nav-dropdown .dropdown-item:active,
.landing-nav-dropdown .dropdown-item.active {
    color: var(--primary) !important;
    background-color: rgba(var(--primary-rgb), 0.12) !important;
    font-weight: 600;
}

.btn-landing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    line-height: 1.2;
    min-height: 42px;
    background: var(--primary);
    border: none;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1.35rem;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-landing-cta:hover,
.btn-landing-cta:focus {
    background: var(--primary-hover);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.3);
}

.landing-nav .navbar-toggler {
    color: var(--text-main);
    padding: 0.25rem 0.5rem;
}

.landing-nav .navbar-toggler:focus {
    box-shadow: var(--focus-ring);
}

@media (max-width: 991.98px) {
    .landing-nav {
        padding: 0.75rem 1rem 0;
    }

    .landing-nav-shell {
        max-width: 100%;
    }

    .landing-nav.scrolled {
        padding: 0;
    }

    .landing-nav.scrolled .landing-nav-shell {
        border-radius: 0;
    }

    .landing-nav-shell>.container {
        padding-block: 0.55rem;
    }

    .landing-nav-links {
        padding-top: 0.5rem;
    }

    .landing-nav .nav-link {
        padding: 0.65rem 0.25rem !important;
    }

    .landing-nav-actions--mobile {
        padding-bottom: 0.75rem;
    }

    .landing-nav-actions--mobile .btn-landing-cta {
        width: 100%;
    }

    .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 3.25rem);
    }

    .brand-text {
        min-width: 0;
    }

    .brand-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: clamp(0.82rem, 3.2vw, 1rem);
    }

    .brand-logo,
    .brand-icon {
        width: 60px;
        height: 36px;
        flex-shrink: 0;
    }

    .brand-logo {
        height: 60px;
    }

    .landing-nav-collapse {
        flex-basis: 100%;
        width: 100%;
        max-height: calc(100dvh - 6.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .landing-nav-collapse.collapsing,
    .landing-nav-collapse.show {
        margin-top: 0.35rem;
        padding-top: 0.35rem;
        border-top: 1px solid rgba(15, 23, 42, 0.06);
    }
}

/* Tablet — tighter nav to prevent overlap */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-brand {
        max-width: 30%;
    }

    .brand-tagline {
        display: none;
    }

    .landing-nav .nav-link {
        padding: 0.45rem 0.5rem !important;
        font-size: 0.875rem;
    }

    .btn-landing-cta {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        min-height: 40px;
    }
}

/* Large laptop — balanced spacing */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar-brand {
        max-width: 34%;
    }

    .landing-nav .nav-link {
        padding: 0.5rem 0.7rem !important;
        font-size: 0.9rem;
    }
}

/* Small phones */
@media (max-width: 575.98px) {
    .landing-nav {
        padding: 0.5rem 0.65rem 0;
    }

    .landing-nav-shell>.container {
        padding-block: 0.45rem;
    }

    .brand-tagline {
        display: none;
    }

    .landing-nav .navbar-toggler {
        padding: 0.2rem 0.35rem;
    }
}

/* Hero */
.hero-section {
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(var(--primary-rgb), 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 85% 30%, rgba(6, 182, 212, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 90%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-btn);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.4);
}

.btn-hero-outline {
    background: #fff;
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    transition: border-color 0.2s, background 0.2s;
}

.btn-hero-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.04);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.hero-stat span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero visual */
.hero-visual {
    position: relative;
}

.hero-card {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow-hover);
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.hero-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.hero-card-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    transition: background 0.2s;
}

.hero-card-item:hover {
    background: var(--bg-body);
}

.hero-card-item .item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero-card-item .item-icon.purple {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
}

.hero-card-item .item-icon.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.hero-card-item .item-icon.amber {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.hero-card-item .item-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.hero-card-item .item-info strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
}

.hero-card-item .item-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hero-float-badge {
    position: absolute;
    background: #fff;
    border-radius: 0.75rem;
    padding: 0.6rem 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

.hero-float-badge.badge-1 {
    top: -10px;
    right: -10px;
    color: #10b981;
}

.hero-float-badge.badge-2 {
    bottom: 30px;
    left: -20px;
    color: #f59e0b;
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Sections */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 3rem;
}

.features-section {
    padding: 5rem 0;
    background: var(--bg-body);
}

.feature-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.feature-icon.indigo {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
}

.feature-icon.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.feature-icon.amber {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.feature-icon.rose {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
}

.feature-icon.emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.feature-icon.violet {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.feature-card h5 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* How it works */
.how-section {
    padding: 5rem 0;
}

.step-card {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}

.step-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.step-connector {
    display: none;
}

@media (min-width: 992px) {
    .step-connector {
        display: block;
        position: absolute;
        top: 24px;
        left: calc(50% + 30px);
        width: calc(100% - 60px);
        height: 2px;
        background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.3), rgba(var(--primary-rgb), 0.05));
    }
}

/* CTA */
.cta-section {
    padding: 5rem 0;
}

.cta-card {
    background: linear-gradient(135deg, #0b0f19 0%, #1e1b4b 50%, #312e81 100%);
    border-radius: 1.5rem;
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(var(--primary-rgb), 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.cta-card .cta-content {
    position: relative;
    z-index: 1;
}

.cta-card h2 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto 2rem;
}

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.65rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: translateY(-2px);
}

.store-btn i {
    font-size: 1.5rem;
}

.store-btn small {
    display: block;
    font-size: 0.65rem;
    opacity: 0.7;
    line-height: 1;
}

.store-btn strong {
    font-size: 0.95rem;
    line-height: 1.2;
}

/* Footer — premium reference match */
.landing-footer {
    position: relative;
    z-index: 2;
    overflow: hidden;
    margin-top: clamp(-2rem, -3.5vw, -1rem);
    padding: calc(clamp(2.75rem, 5.5vw, 4.25rem) + clamp(1rem, 2.5vw, 1.75rem)) 0 clamp(1.5rem, 3vw, 2rem);
    background: #f4f6f9;
    border-top: none;
    border-radius: clamp(1.75rem, 5vw, 3rem) clamp(1.75rem, 5vw, 3rem) 0 0;
    box-shadow:
        0 -10px 40px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.landing-footer-curve {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(1.75rem, 5vw, 3rem);
    pointer-events: none;
    border-radius: clamp(1.75rem, 5vw, 3rem) clamp(1.75rem, 5vw, 3rem) 0 0;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-bottom: none;
    z-index: 2;
}

.landing-footer>.container {
    position: relative;
    z-index: 1;
}

.landing-footer-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 42% 38% at 4% 8%, rgba(255, 192, 203, 0.42), transparent 58%),
        radial-gradient(ellipse 38% 34% at 96% 6%, rgba(186, 230, 253, 0.45), transparent 55%),
        radial-gradient(ellipse 36% 32% at 8% 92%, rgba(254, 240, 138, 0.35), transparent 55%),
        radial-gradient(ellipse 34% 30% at 94% 88%, rgba(187, 247, 208, 0.38), transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(var(--primary-rgb), 0.05), transparent 70%);
}

.footer-cta-band {
    margin-bottom: clamp(2.25rem, 4.5vw, 3.25rem);
}

.footer-cta-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    margin-bottom: 1.1rem;
}

.footer-cta-title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #0f172a;
    max-width: 16ch;
}

.footer-cta-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 2rem;
}

.footer-cta-features li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.footer-cta-features .bi {
    color: #94a3b8;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.42rem 0.42rem 0.42rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.footer-btn-label {
    padding-block: 0.35rem;
}

.footer-btn-icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: #fff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.footer-btn--primary {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 10px 26px rgba(var(--primary-rgb), 0.32);
}

.footer-btn--primary .footer-btn-icon {
    color: var(--primary);
}

.footer-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(var(--primary-rgb), 0.38);
    color: #fff !important;
}

.footer-btn--dark {
    background: #0f172a;
    color: #fff !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.2);
}

.footer-btn--dark .footer-btn-icon {
    color: #0f172a;
}

.footer-btn--dark:hover {
    background: #1e293b;
    transform: translateY(-2px);
    color: #fff !important;
}

.footer-main {
    margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.footer-brand-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.footer-brand-logo {
    width: 7.35rem;
    height: 7.35rem;
    border-radius: 8px;
    object-fit: cover;
}

.footer-brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.footer-brand-about {
    margin: 0 0 1.5rem;
    max-width: 30ch;
    font-size: 0.86rem;
    line-height: 1.75;
    color: #64748b;
}

.footer-download-label {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.footer-download-stores {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer-store-tile {
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-store-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.footer-store-tile-icon {
    font-size: 1.35rem;
    color: #0f172a;
    line-height: 1;
}

.footer-store-tile-icon--play {
    color: #34a853;
}

.footer-col-title {
    margin: 0 0 0.95rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.footer-col-title--social {
    margin-top: 1.5rem;
    margin-bottom: 0.85rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.2s ease;
}

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

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-contact-list li,
.footer-contact-list a {
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.6;
    text-decoration: none;
}

.footer-contact-list a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.45rem;
}

.footer-social-tile {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 1rem;
    text-decoration: none;
    flex-shrink: 0;
    transition:
        transform 0.25s var(--ease-out),
        color 0.25s var(--ease-out),
        background-color 0.25s var(--ease-out),
        border-color 0.25s var(--ease-out),
        box-shadow 0.25s var(--ease-out);
}

.footer-social-tile:hover,
.footer-social-tile:focus-visible {
    transform: translateY(-3px) scale(1.06);
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.35);
}

.footer-social-tile:active {
    transform: translateY(-1px) scale(1.02);
}

.footer-social-tile[aria-disabled="true"] {
    cursor: default;
}

.footer-utility {
    padding-top: 0.25rem;
    margin-bottom: 1.75rem;
    border: 0;
}

.footer-utility-newsletter .footer-col-title,
.footer-utility-payments .footer-col-title {
    margin-bottom: 0.65rem;
}

.footer-utility-newsletter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-utility-newsletter .footer-col-title {
    width: 100%;
    text-align: right;
}

.footer-newsletter-form {
    width: 100%;
    max-width: 22rem;
}

.footer-newsletter-field {
    display: flex;
    align-items: stretch;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    padding: 0.28rem;
    gap: 0.28rem;
}

.footer-newsletter-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: #fff;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    color: #0f172a;
    outline: none;
    border-radius: 6px;
}

.footer-newsletter-field input::placeholder {
    color: #94a3b8;
}

.footer-newsletter-field button {
    border: 0;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-newsletter-field button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.footer-utility-payments {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-utility-payments .footer-col-title {
    width: 100%;
    text-align: left;
}

.footer-payments {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.55rem;
    width: 100%;
}

.footer-payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 4.6rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
}

.footer-payment-badge--paypal .pay {
    color: #003087;
    font-style: italic;
}

.footer-payment-badge--paypal .pal {
    color: #009cde;
    font-style: italic;
}

.footer-payment-badge--mastercard {
    gap: 0;
    font-size: 0.55rem;
}

.footer-payment-badge--mastercard .mc-red {
    color: #eb001b;
    margin-right: -0.35rem;
}

.footer-payment-badge--mastercard .mc-orange {
    color: #f79e1b;
}

.footer-payment-badge--visa {
    color: #1a1f71;
    font-size: 0.72rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.06em;
}

.footer-payment-badge--gpay {
    font-weight: 700;
    color: #5f6368;
}

.footer-payment-badge--gpay .g {
    font-weight: 800;
    background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-payment-badge--apple {
    gap: 0.2rem;
    font-weight: 700;
    color: #0f172a;
    font-size: 0.72rem;
}

.footer-payment-badge--amazon {
    color: #232f3e;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: lowercase;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.25rem;
}

.footer-copy {
    font-size: 0.82rem;
    color: #94a3b8;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
    margin-top: 0.55rem;
}

.footer-legal a {
    font-size: 0.78rem;
    color: #94a3b8;
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .landing-footer {
        margin-top: -1.25rem;
        padding-top: calc(var(--section-spacing-sm, 2.5rem) + 1rem);
        border-radius: 1.5rem 1.5rem 0 0;
    }

    .landing-footer-curve {
        border-radius: 1.5rem 1.5rem 0 0;
        height: 1.5rem;
    }

    .footer-cta-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-cta-title {
        max-width: none;
    }

    .footer-cta-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-cta-features li {
        white-space: normal;
    }

    .footer-utility-newsletter,
    .footer-utility-payments {
        width: 100%;
    }

    .footer-utility-newsletter {
        align-items: flex-start;
    }

    .footer-utility-newsletter .footer-col-title {
        text-align: left;
    }

    .footer-utility-payments {
        align-items: flex-start;
    }

    .footer-utility-payments .footer-col-title {
        text-align: left;
    }

    .footer-payments {
        justify-content: flex-start;
    }

    .footer-newsletter-form {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .footer-cta-features {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-btn {
        justify-content: space-between;
        width: 100%;
    }

    .footer-newsletter-field {
        flex-direction: column;
        padding: 0.45rem;
    }

    .footer-newsletter-field button {
        width: 100%;
    }

    .footer-payment-badge {
        min-width: calc(33.333% - 0.4rem);
        flex: 1 1 calc(33.333% - 0.4rem);
    }

    .footer-social-tile {
        width: 2.65rem;
        height: 2.65rem;
    }
}

@media (max-width: 991px) {
    .hero-section {
        padding: 7rem 0 3rem;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 3rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Scroll animations — see utilities.css */

.landing-body {
    padding-top: 0;
}

/* Offset for floating fixed navbar */
.landing-body #main-content>section:first-child,
.landing-body #main-content>.home-hero:first-child {
    scroll-margin-top: 6rem;
}

.landing-nav .nav-link.active {
    color: var(--text-main);
    background-color: transparent;
    font-weight: 500;
}

/* Newsletter — legacy (footer uses .footer-newsletter-form) */

/* Blog cards */
.blog-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.blog-card-image img,
.blog-placeholder {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--accent-rgb), 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.blog-card-body {
    padding: 1.25rem;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-card h5 a {
    color: inherit;
    text-decoration: none;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Gallery */
.gallery-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(15, 23, 42, 0.85));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Testimonial author block */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.testimonial-author span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.book-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
}

.book-cover {
    height: 120px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--primary-rgb), 0.14));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.page-hero-badge {
    display: inline-block;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.page-hero-subtitle {
    color: var(--text-muted);
    max-width: 640px;
    font-size: 1.05rem;
}

@media (max-width: 991.98px) {
    .landing-nav-dropdown {
        position: static !important;
        float: none;
        width: auto;
        margin-top: 0.25rem !important;
        background-color: rgba(15, 23, 42, 0.03) !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0.5rem 1rem !important;
    }

    .landing-nav-dropdown .dropdown-item {
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem !important;
    }
}