/* --- BRAND VARIABLES --- */
:root {
    --brand-red: #d32f2f;
    --brand-dark: #1a1a1a;
    --text-main: #2d3436;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-stack: 'Inter', sans-serif;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 25px 50px rgba(211, 47, 47, 0.15);
    --radius-md: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

p {
    margin-bottom: 1rem;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background: var(--bg-light);
}

.bg-red {
    background: linear-gradient(135deg, var(--brand-red), #b71c1c);
    color: var(--white);
}

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

.section-tag {
    display: inline-block;
    background: rgba(211, 47, 47, 0.1);
    color: var(--brand-red);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.bg-red .section-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--brand-dark);
    font-weight: 800;
}

.bg-red .section-title {
    color: var(--white);
}

.section-desc {
    max-width: 900px;
    margin: 0 auto;
    text-align: start;
}

.bg-red .section-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* --- ENHANCED ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* --- HERO --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://d1e5ggoymkuik7.cloudfront.net/case-studies/last-pass-sales/banner.avif');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 180px 0 120px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--white);
}

.hero p {
    font-size: 1.3rem;
    margin: 0 auto;
    opacity: 0.9;
    color: var(--white);
}

/* --- SUMMARY BOX (OVERLAP) --- */
.overlap-section {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.summary-box {
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border-top: 6px solid var(--brand-red);
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* --- CARDS & GRIDS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-md);
    border: 1px solid #eee;
    transition: 0.4s;
    position: relative;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-red);
}

.feature-card i {
    font-size: 2rem;
    color: var(--brand-red);
    margin-bottom: 20px;
    display: block;
}

.feature-card h4 {
    margin-bottom: 15px;
    color: var(--brand-dark);
    font-size: 1.2rem;
}

/* --- LIST STYLES --- */
.check-list {
    list-style: none;
    margin-top: 20px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--brand-red);
    position: absolute;
    left: 0;
    top: 2px;
}

/* --- METRICS --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: var(--transition);
}

.metric-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

.metric-val {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
}

.metric-desc {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- TECH STACK (UPDATED) --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.tech-item {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 40px 20px;
    text-align: center;
    transition: var(--transition);
    /* Flexbox for perfect centering */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tech-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.tech-item i {
    font-size: 3rem;
    color: #888;
    margin-bottom: 20px;
    transition: var(--transition);
}

.tech-item:hover i {
    color: var(--brand-red);
    transform: scale(1.15);
}

.tech-item span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* --- METHODOLOGY / APPROACH STYLES --- */
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
    margin-top: 60px;
}

@media (min-width: 900px) {
    .methodology-grid::before {
        content: '';
        position: absolute;
        top: 40px;
        left: 50px;
        right: 50px;
        height: 3px;
        background: linear-gradient(90deg, rgba(211, 47, 47, 0.1) 0%, rgba(211, 47, 47, 0.5) 50%, rgba(211, 47, 47, 0.1) 100%);
        z-index: -1;
        border-radius: 10px;
    }
}

.phase-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border-top: 5px solid var(--brand-red);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phase-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(211, 47, 47, 0.15);
    border-color: var(--brand-dark);
}

.phase-badge {
    background: linear-gradient(135deg, var(--brand-red), #b71c1c);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
    align-self: flex-start;
}

.phase-title {
    font-size: 1.5rem;
    color: var(--brand-dark);
    margin-bottom: 20px;
    font-weight: 800;
}

/* --- IMPROVED VALUE DELIVERED --- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.value-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    border-top: 5px solid var(--brand-red);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

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

.value-icon {
    background: linear-gradient(135deg, #fff0f0, #ffebeb);
    color: var(--brand-red);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.1);
}

.value-card:hover .value-icon {
    background: var(--brand-red);
    color: white;
    transform: scale(1.1);
}

.value-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--brand-dark);
}

.value-card p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.7;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .summary-box {
        padding: 30px;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (min-width: 992px) {
    .ebook-form-wrap {
        max-width: none;
    }
}

.meta-info {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.quote-box {
    background: var(--white);
    padding: 70px 50px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: rgba(255, 193, 7, 0.2);
    position: absolute;
    top: 30px;
    left: 30px;
}

.feedback-desc {
    max-width: 920px;
    margin: 20px auto 40px !important;
    text-align: start;
}
/* --- TESTIMONIAL --- */
.quote-box {
    background: var(--white);
    padding: 70px 50px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: rgba(255, 193, 7, 0.2);
    position: absolute;
    top: 30px;
    left: 30px;
}

.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 30px;
    color: #333;
    position: relative;
    z-index: 2;
}
.feedback-desc {
    max-width: 920px;
    margin: 20px auto 40px !important;
    text-align: start;
}
/* --- HERO DOWNLOAD BUTTON --- */
.cs-hero-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding: 14px 32px;
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.35);
}

.cs-hero-download-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(211, 47, 47, 0.45);
}

.cs-hero-download-btn i {
    font-size: 0.9rem;
}

/* --- CTA BANNER --- */
.acg-cta-banner {
    background: #f0f5fb;
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

.acg-cta-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
}

.acg-cta-text {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
}

.acg-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.acg-cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.acg-cta-logo {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.08;
    pointer-events: none;
}

.acg-cta-logo img {
    width: 220px;
    height: 220px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .acg-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .acg-cta-logo {
        display: none;
    }
}
.lastpass-faq-theme { --faq-accent: #d32f2f; }
