/* ==========================================================================
   ESaverWatt Industrial Emerald / Slate Design System
   Page Marker: esaverwatt-product-showcase-v3
   ========================================================================== */

:root {
    /* Color Palette */
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;

    --emerald-500: #10b981;
    --emerald-400: #34d399;
    --emerald-600: #059669;
    --emerald-950: #022c22;
    --emerald-glow: rgba(16, 185, 129, 0.15);

    --border-color: #334155;
    --border-radius: 8px;
    --container-max: 1200px;
    --prose-max: 760px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--slate-900);
    color: var(--slate-300);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 70%),
        linear-gradient(to right, rgba(51, 65, 85, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(51, 65, 85, 0.1) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
}

/* Header & Utility Rail */
.utility-rail {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--slate-700);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.led-dot {
    width: 10px;
    height: 10px;
    background-color: var(--emerald-500);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald-500);
    animation: pulse-led 2s infinite ease-in-out;
}

@keyframes pulse-led {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.brand-text {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--slate-50);
    letter-spacing: -0.5px;
}

.tech-tag {
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--slate-800);
    color: var(--emerald-400);
    border: 1px solid var(--emerald-600);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--slate-300);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--emerald-400);
}

/* General Layout & Sections */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-block {
    padding: 5rem 0;
    border-bottom: 1px solid var(--slate-800);
}

.section-block:nth-child(even) {
    background-color: rgba(30, 41, 59, 0.4);
}

.section-header {
    text-align: center;
    max-width: var(--prose-max);
    margin: 0 auto 3rem auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--emerald-400);
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--slate-50);
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--slate-400);
}

/* Typography Helpers */
h1, h2, h3, h4 {
    color: var(--slate-50);
}

/* Hero Section Architecture */
.hero-section {
    padding: 4rem 0 5rem 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 1) 0%, rgba(30, 41, 59, 0.6) 100%);
    border-bottom: 1px solid var(--slate-700);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--emerald-500);
    color: var(--emerald-400);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.hero-intro h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-intro .lead-text {
    font-size: 1.15rem;
    color: var(--slate-300);
    margin-bottom: 1.5rem;
}

.hero-bullets {
    list-style: none;
    margin-bottom: 1.75rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.hero-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--slate-100);
}

.hero-bullets li::before {
    content: "✓";
    color: var(--emerald-400);
    font-weight: bold;
}

.offer-badge-box {
    background: var(--slate-800);
    border-left: 3px solid var(--emerald-500);
    padding: 0.75rem 1rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    color: var(--slate-100);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--emerald-500) 0%, var(--emerald-600) 100%);
    color: var(--emerald-950);
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    color: #000000;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--slate-400);
}

.hero-proof-icon {
    color: var(--emerald-400);
}

.product-visual-wrapper {
    position: relative;
    border: 1px solid var(--slate-700);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--slate-800);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.product-visual-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.visual-caption {
    background: var(--slate-800);
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--slate-700);
    font-size: 0.82rem;
    color: var(--slate-400);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Section-Specific Modules */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.prose-panel {
    background: var(--slate-800);
    border: 1px solid var(--slate-700);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.prose-panel h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--slate-50);
}

.prose-panel p {
    margin-bottom: 1rem;
    color: var(--slate-300);
}

.prose-panel ul {
    margin-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.prose-panel li {
    margin-bottom: 0.5rem;
}

/* Feature Grid 8-Benefit Card System */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.benefit-card {
    background: var(--slate-800);
    border: 1px solid var(--slate-700);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: relative;
    transition: border-color 0.2s ease;
}

.benefit-card:hover {
    border-color: var(--emerald-500);
}

.benefit-num {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--emerald-400);
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.benefit-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.92rem;
    color: var(--slate-400);
}

/* Side-by-Side Comparison Table Component */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--slate-700);
    border-radius: var(--border-radius);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: var(--slate-800);
}

.comparison-table th, .comparison-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--slate-700);
}

.comparison-table th {
    background: #0f172a;
    font-size: 0.95rem;
    color: var(--slate-50);
}

.comparison-table td:nth-child(2) {
    color: #f87171; /* Unoptimized baseline alert */
}

.comparison-table td:nth-child(3) {
    color: var(--emerald-400); /* ESaverWatt optimized */
    font-weight: 600;
    background: rgba(16, 185, 129, 0.04);
}

/* Pricing Cards Component */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: stretch;
    margin-top: 2rem;
}

.pack-card {
    background: var(--slate-800);
    border: 1px solid var(--slate-700);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pack-card.best-value {
    border: 2px solid var(--emerald-500);
    background: linear-gradient(180deg, var(--slate-800) 0%, rgba(16, 185, 129, 0.08) 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.best-value-ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--emerald-500);
    color: var(--emerald-950);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 14px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pack-header {
    text-align: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--slate-700);
    margin-bottom: 1.25rem;
}

.pack-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.pack-home-size {
    font-size: 0.85rem;
    color: var(--emerald-400);
    font-weight: 600;
}

.pack-pricing-block {
    text-align: center;
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--slate-50);
    line-height: 1;
}

.unit-price-subtext {
    font-size: 0.85rem;
    color: var(--emerald-400);
    font-weight: 700;
    margin-top: 0.35rem;
}

.original-price-row {
    font-size: 0.9rem;
    color: var(--slate-400);
    margin-top: 0.5rem;
}

.strike-price {
    text-decoration: line-through;
    color: var(--slate-400);
}

.savings-tag {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-400);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 0.4rem;
}

.pack-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pack-features li {
    font-size: 0.9rem;
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--slate-300);
}

.pack-features li::before {
    content: "✓";
    color: var(--emerald-400);
}

.pack-card .btn-primary {
    width: 100%;
}

/* FAQ Accordion Component */
.faq-accordion {
    max-width: var(--prose-max);
    margin: 0 auto;
}

.faq-item {
    background: var(--slate-800);
    border: 1px solid var(--slate-700);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.25rem;
    color: var(--slate-50);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--emerald-400);
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
    color: var(--slate-300);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 0.25rem;
    padding-top: 1rem;
}

/* Footers & Disclaimers */
.transparency-footer-banner {
    background: var(--slate-800);
    border-top: 1px solid var(--slate-700);
    border-bottom: 1px solid var(--slate-700);
    padding: 2.5rem 0;
    font-size: 0.88rem;
    color: var(--slate-400);
}

.disclaimer-box {
    margin-bottom: 1rem;
}

.site-footer {
    background: var(--slate-900);
    padding: 3rem 0 2rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--slate-400);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--slate-400);
    text-decoration: none;
}

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

/* Media Queries for Strict Mobile Responsive Specs */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Strict Mobile Hero DOM Order layout verification */
    .hero-grid {
        display: flex;
        flex-direction: column;
    }

    .hero-intro {
        display: flex;
        flex-direction: column;
    }

    /* Mobile DOM order enforcement: intro/H1 -> image -> primary CTA -> proof */
    .hero-intro h1 { order: 1; }
    .hero-eyebrow { order: 0; }
    .hero-intro .lead-text { order: 2; }
    .mobile-hero-visual { order: 3; margin: 1.5rem 0; width: 100%; }
    /* The conversion decision stays immediately after the one mobile product image. */
    .hero-intro .btn-primary { order: 4; }
    .hero-proof { order: 5; }
    .hero-bullets { order: 6; }
    .offer-badge-box { order: 7; }

    /* Hide desktop visual column on mobile to prevent duplication */
    .desktop-only-visual {
        display: none;
    }

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

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

    .nav-links { display: none; }
    .comparison-table { width: 100%; max-width: 100%; table-layout: fixed; font-size: .78rem; }
    .comparison-table th, .comparison-table td { min-width: 0; overflow-wrap: anywhere; padding: .55rem .35rem; }
}

@media (min-width: 901px) {
    .mobile-hero-visual {
        display: none;
    }
}
