/* ══════════════════════════════════════════════════════════════════════════
   LibraDesk — Unified Core Design Tokens & Responsive Base Stylesheet
   Applied across: Home (/), Feature (/feature), About Us (/about-us), Contact Us (/contact-us)
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    --ld-brand: #00aff0;
    --ld-brand-dark: #0077b6;
    --ld-brand-light: #e8f7fd;
    --ld-brand-gradient: linear-gradient(135deg, #00aff0 0%, #0077b6 100%);
    --ld-dark: #0f172a;
    --ld-dark-soft: #1e293b;
    --ld-text: #334155;
    --ld-text-muted: #64748b;
    --ld-border: #e2e8f0;
    --ld-white: #ffffff;
    --ld-gray-50: #f8fafc;
    --ld-gray-100: #f1f5f9;
    --ld-radius-sm: 8px;
    --ld-radius: 16px;
    --ld-radius-lg: 24px;
    --ld-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    --ld-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1);
    --ld-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ── Global Base & Universal Resets ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    background-color: #ffffff !important;
    color: var(--ld-text);
    font-family: var(--ld-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll target offset for sticky header */
#pricing,
#faq,
#student-panel {
    scroll-margin-top: 85px;
}

@media (max-width: 991px) {
    #pricing,
    #faq,
    #student-panel {
        scroll-margin-top: 72px;
    }
}

.ereaders-main-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    background-color: #ffffff !important;
    float: none !important;
    position: relative;
}

.ld-home {
    width: 100%;
    float: none;
    background-color: #ffffff !important;
}

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

/* ── Global Typography Clamps ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ld-font);
    color: var(--ld-dark);
    font-weight: 700;
    line-height: 1.25;
}

/* ── Shared Breadcrumb (About, Feature, Contact) ── */
.ld-breadcrumb {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none !important;
    list-style-type: none !important;
    padding: 8px 18px !important;
    margin: 0 auto !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ld-breadcrumb li {
    list-style: none !important;
    list-style-type: none !important;
    font-size: 13px !important;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
}

.ld-breadcrumb li::before {
    display: none !important;
    content: none !important;
}

.ld-breadcrumb li + li::before {
    display: inline-block !important;
    content: '/' !important;
    margin: 0 8px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 400;
}

.ld-breadcrumb li a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.ld-breadcrumb li a:hover {
    color: var(--ld-brand) !important;
}

.ld-breadcrumb li.active {
    color: var(--ld-brand) !important;
}

/* ── Shared Sections & Headers ── */
.ld-section {
    width: 100%;
    float: none;
    clear: both;
    background-color: #ffffff !important;
    padding: 76px 0;
    position: relative;
}

.ld-section--gray {
    background-color: #f8fafc !important;
}

.ld-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
    padding: 0 12px;
}

.ld-section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ld-brand);
    margin-bottom: 12px;
    padding: 5px 14px;
    background: var(--ld-brand-light);
    border-radius: 100px;
}

.ld-section-header h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.3rem);
    font-weight: 800;
    color: var(--ld-dark);
    margin: 0 0 14px;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.ld-section-header p {
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    color: var(--ld-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ── Shared Page Hero (Feature, About, Contact) ── */
.ld-page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f2744 0%, #0c3d5c 60%, #0a4d6e 100%);
    padding: 64px 0 56px;
    text-align: center;
    color: #ffffff;
}

.ld-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 500px 300px at 20% 30%, rgba(0, 175, 240, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 400px 250px at 80% 70%, rgba(0, 175, 240, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.ld-page-hero .container {
    position: relative;
    z-index: 2;
}

.ld-page-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 16px;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.ld-page-hero p {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 660px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

/* ── Shared Call To Action (.ld-cta) ── */
.ld-cta {
    background-color: #ffffff !important;
    padding: 60px 0 80px;
}

.ld-cta-box {
    background: linear-gradient(135deg, #0f2744 0%, #0c3d5c 50%, #0077b6 100%);
    border-radius: var(--ld-radius);
    padding: 52px 40px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 119, 182, 0.2);
    position: relative;
    overflow: hidden;
}

.ld-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(0, 175, 240, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.ld-cta-box h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 14px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.ld-cta-box p {
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 620px;
    margin: 0 auto 28px;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.ld-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    position: relative;
    z-index: 2;
}

/* ── Shared Buttons (.ld-btn) ── */
.ld-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--ld-font);
    text-decoration: none !important;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.2;
}

.ld-btn-primary {
    background: var(--ld-brand-gradient);
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 175, 240, 0.35);
}

.ld-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 175, 240, 0.45);
    color: #ffffff !important;
}

.ld-btn-secondary {
    background: #ffffff;
    color: #0f172a !important;
    border-color: #e2e8f0;
}

.ld-btn-secondary:hover {
    border-color: #0f172a;
    background: #f8fafc;
    color: #0f172a !important;
}

.ld-btn-white {
    background: #ffffff;
    color: #0077b6 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ld-btn-white:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: #0077b6 !important;
}

.ld-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.ld-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff !important;
}

/* ── Container Consistency ── */
@media (min-width: 1200px) {
    .container {
        max-width: 1170px;
    }
}

/* ── Global Responsive Breakpoints ── */

/* Tablets (1023px and down) */
@media (max-width: 1023px) {
    .ld-section {
        padding: 60px 0;
    }
    .ld-section-header {
        margin-bottom: 36px;
    }
    .ld-page-hero {
        padding: 56px 0 48px;
    }
    .ld-cta {
        padding: 50px 0 64px;
    }
    .ld-cta-box {
        padding: 40px 28px;
    }
}

/* Mobile Devices (767px and down) */
@media (max-width: 767px) {
    .ld-section {
        padding: 48px 0;
    }
    .ld-section-header {
        margin-bottom: 28px;
    }
    .ld-page-hero {
        padding: 48px 0 40px;
    }
    .ld-cta {
        padding: 40px 0 56px;
    }
    .ld-cta-box {
        padding: 32px 20px;
        border-radius: 16px;
    }
    .ld-cta-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .ld-cta-actions .ld-btn {
        width: 100% !important;
    }
}

/* Small Mobile Phones (320px–375px) */
@media (max-width: 375px) {
    .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .ld-section {
        padding: 40px 0;
    }
    .ld-section-header {
        margin-bottom: 24px;
    }
    .ld-section-header h2 {
        font-size: 1.5rem !important;
    }
    .ld-section-header p {
        font-size: 14px !important;
    }
    .ld-page-hero h1 {
        font-size: 1.6rem !important;
    }
    .ld-page-hero p {
        font-size: 14px !important;
    }
    .ld-breadcrumb {
        padding: 6px 14px !important;
        font-size: 12px !important;
    }
    .ld-btn {
        font-size: 13.5px !important;
        padding: 11px 18px !important;
    }
}
