/* Variables Specifying the BookStereo Color System */
:root {
    --primary-blue: #1E82F8;
    /* Brighter typical figma blue */
    --primary-orange: #FF8A24;
    --dark: #2F333B;
    --light-gray: #FEFEFE;

    --white: #FFFFFF;
    --red: #FF0000;
    --dark-blue: #080C26;
    --dark-purple: #0F1226;
}

@font-face {
    font-family: 'Iskra';
    src: url('../fonts/Iskra%20W01%20Light.woff2') format('woff2'),
        url('../fonts/Iskra%20W01%20Light.woff') format('woff'),
        url('../fonts/Iskra%20W01%20Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Iskra';
    src: url('../fonts/Iskra%20W04%20Regular.woff2') format('woff2'),
        url('../fonts/Iskra%20W04%20Regular.woff') format('woff'),
        url('../fonts/Iskra%20W04%20Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Iskra';
    src: url('../fonts/Iskra%20W04%20Medium.woff2') format('woff2'),
        url('../fonts/Iskra%20W04%20Medium.woff') format('woff'),
        url('../fonts/Iskra%20W04%20Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Iskra';
    src: url('../fonts/Iskra%20W04%20Medium.woff2') format('woff2'),
        url('../fonts/Iskra%20W04%20Medium.woff') format('woff'),
        url('../fonts/Iskra%20W04%20Medium.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Iskra';
    src: url('../fonts/Iskra%20W01%20Ultra%20Bold.woff2') format('woff2'),
        url('../fonts/Iskra%20W01%20Ultra%20Bold.woff') format('woff'),
        url('../fonts/Iskra%20W01%20Ultra%20Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Iskra';
    src: url('../fonts/Iskra%20W01%20Ultra%20Bold.woff2') format('woff2'),
        url('../fonts/Iskra%20W01%20Ultra%20Bold.woff') format('woff'),
        url('../fonts/Iskra%20W01%20Ultra%20Bold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Iskra', 'Inter', sans-serif;
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
    background-color: var(--light-gray);
    /* Pages mostly default to this */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Typography Utilities */
.text-blue {
    color: var(--primary-blue) !important;
}

.text-orange {
    color: var(--primary-orange) !important;
}

.text-red {
    color: var(--red) !important;
}

.text-success {
    color: #10B981 !important;
}

.bg-blue {
    background-color: var(--primary-blue) !important;
}

.bg-orange {
    background-color: var(--primary-orange) !important;
}

.bg-light-gray {
    background-color: var(--light-gray) !important;
}

.bg-dark-blue {
    background-color: var(--dark-blue) !important;
}

.bg-dark-purple {
    background-color: var(--dark-purple) !important;
}

.text-light-alpha {
    color: rgba(255, 255, 255, 0.7) !important;
}

.z-999 {
    z-index: 999;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

/* Global Configs */
section {
    position: relative;
    z-index: 1;
}

/* Custom Nav */
.custom-nav {
    background-color: #FEFEFE;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--dark);
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    margin: 0 10px;
}

/* Buttons */
.btn-primary-cta {
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    font-weight: 600;
    transition: all 0.2s;
    padding: 15px 20px;
    line-height: 17px;
}

.btn-primary-cta:hover {
    background-color: #e07412;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 138, 36, 0.3);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 0;
    /* No bottom padding because wave fits exactly */
    background-color: var(--light-gray);
    overflow: hidden;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 5rem;
    letter-spacing: -2px;
    line-height: 1.1;
    color: var(--dark);
}

.search-bar-wrapper {
    max-width: 500px;
}

.quote-text {
    font-size: 0.95rem;
    max-width: 400px;
    padding-top: 15px;
}

.hero-image-wrapper {
    z-index: 1;
}

.nav-pills-custom {
    background: #F6F8FA;
    border-radius: 27px;
    padding: 4px 0px;
}

.hero-instantly-convert-wrapper {
    max-width: 360px;
    padding: 13px !important;
}

.reading-wrapper {
    background-image: url('../images/reading-bg.png');
    background-size: cover;
    background-position: center;
}

.control-wrapper {
    background-image: url('../images/control-bg.png');
    background-size: cover;
    background-position: center top;
}

.problem-section,
.pricing-section,
.total-control-section {
    margin-top: -8rem;
    z-index: 2;
}

.reading-wrapper-content,
.control-wrapper-content {
    padding-top: 6rem;
}

.rounded-circle-pricing {
    padding: 10px 15px;
}

.section-title {
    margin-bottom: 0;
}

/* Floating Elements */
.floating-badge {
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: center;
}

.solution-card {
    box-shadow: 0px 3px 3.9px 0px #CCD4FE78;
    box-shadow: 0px -1px 4px 0px #70AEFF00;
    border: 0.5px solid #D7D7D7AD;
}

.badge-cloud {
    padding: 15px 25px;
    border-radius: 50%;
}

.problem-card {
    border-radius: 12px;
    background: #fff;
    box-shadow: 0px 3px 3.9px 0px #0000001C;
}

.feature-box {
    box-shadow: 0px 3px 3.9px 0px #0000001C;
}

.total-control-box {
    box-shadow: 0px 3px 15px 0px #00000014;
    border: 0.5px solid #D7D7D7AD
}

.mgmt-card {
    box-shadow: 0px 3px 3.9px 0px #0000001C;
}

.advantage-card p {
    font-size: 14px;
}

.advantage-card ul li {
    font-size: 14px;
    line-height: 14px;
}

/* Faux cloud shape */
.badge-epub {
    border-radius: 10px !important;
}

.badge-pdf {
    border-radius: 10px !important;
}

/* Waves Divider Utilities */
.wave {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 0;
}

.wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
}

.wave-bottom {
    bottom: -1px;
}

.wave-top {
    transform: rotate(180deg);
}

/* Figma Style Cards */
.figma-card {
    background-color: var(--white);
    border-radius: 16px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.figma-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06) !important;
}

/* Transform for centered pricing dark panel */
.transform-scale {
    transform: scale(1.05);
    z-index: 2;
}

.transform-scale:hover {
    transform: scale(1.08);
    /* slight extra bump on hover */
}

/* Tweak bottom sub-footer text links */
.hover-white:hover {
    color: var(--white) !important;
}


.pricing-card {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

.pricing-card-1,
.pricing-card-3 {
    transform: scale(0.93);
}

.pricing-card:hover {
    background-color: #020234;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    color: #fff;
}

@media (max-width: 991px) {
    .transform-scale {
        transform: scale(1);
    }
}

.problem-text-bg {
    padding: 40px 0 40px 0;
}

.overlap-cards {
    margin-top: 20px;
}

@media (min-width: 768px) {
    .problem-text-bg {
        padding: 50px 0 90px 0;
    }

    .overlap-cards {
        margin-top: 0px;
    }

    .problem-section {
        margin-top: -8rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 125px 0 0;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .pricing-section,
    .total-control-section {
        margin-top: 0;
    }

    .control-wrapper-content {
        padding-top: 0;
    }

    .problem-text-bg {
        padding: 40px 0 5rem 0;
    }

    .overlap-cards-1 {
        margin-top: -4rem;
    }

    .overlap-cards-2 {
        margin-top: -9rem;
    }

    .overlap-cards-3 {
        margin-top: -8rem;
    }

    .pricing-card {
        transform: initial;
    }

    .pricing-card-1,
    .pricing-card-2 {
        margin-bottom: 20px;
    }

    #pricing {
        padding-bottom: 0 !important;
        margin-bottom: -7rem;
    }
}