/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-white: #FFFFFF;
    --bg-cream: #EBE3DB;
    --text-gray: #828282;
    --text-blue-gray: #A0AFB7;
    --text-dark: #283538;
    --text-darker: #333333;
    --text-black: #000000;
    /* Comparison section variables */
    --c-bg: #FFFFFF;
    --c-cream: #EBE3DB;
    --c-muted: #828282;
    --c-slate: #283538;
    --c-text: #333333;
    --c-black: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hind', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    background-color: var(--bg-white);
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subheading {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--text-darker);
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-supporting {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--text-gray);
    margin-bottom: 48px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: 'Hind', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-align: center;
}

.btn-primary {
    background-color: var(--text-dark);
    color: #FFFFFF;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--text-darker);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    color: var(--bg-white);
}

.btn-card {
    background-color: var(--text-black);
    color: #FFFFFF;
    width: 100%;
    display: block;
    margin-top: 24px;
    font-weight: 600;
}

.btn-card:hover {
    background-color: var(--text-darker);
    transform: translateY(-1px);
}

.btn-submit {
    background-color: var(--text-dark);
    color: #FFFFFF;
    white-space: nowrap;
    font-weight: 600;
}

.btn-submit:hover {
    background-color: var(--text-darker);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Comparison section */
.comparison {
    padding: 72px 0;
    text-align: center;
    background-color: var(--bg-cream);
}

.comparison-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.comparison-subhead {
    margin: 0 0 40px;
    color: var(--c-muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

.comparison-table-wrap {
    border: 1px solid var(--c-cream);
    border-radius: 16px;
    overflow-x: auto;
    background: var(--c-bg);
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    min-width: 800px; /* enables horizontal scroll on small screens */
}

.comparison-th,
.comparison-rowhead,
.comparison-td {
    border-right: 1px solid var(--c-cream);
    border-bottom: 1px solid var(--c-cream);
    padding: 18px 16px;
    vertical-align: middle;
}

.comparison-th:last-child,
.comparison-td:last-child {
    border-right: none;
}

.comparison-th {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--c-slate);
    background: rgba(235, 227, 219, 0.55);
    word-wrap: break-word;
    hyphens: auto;
}

.feature-col {
    width: 260px;
}

.comparison-subtext {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 400;
    color: var(--c-muted);
}

.comparison-rowhead {
    text-align: left;
    font-weight: 600;
    color: var(--c-text);
    background: rgba(235, 227, 219, 0.20);
}

.comparison-td {
    background: var(--c-bg);
}

.featured-col {
    background: rgba(235, 227, 219, 0.45);
}

thead .featured-col {
    background: rgba(235, 227, 219, 0.75);
}

.cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    font-size: 16px;
    line-height: 1;
    background: var(--c-bg);
}

.icon-yes {
    border: 1px solid var(--c-slate);
    color: var(--c-slate);
}

.icon-no {
    border: 1px solid rgba(40, 53, 56, 0.25);
    color: rgba(40, 53, 56, 0.45);
}

.icon-warn {
    border: 1px solid rgba(160, 175, 183, 0.85);
    color: var(--c-slate);
}

.cell-text {
    color: var(--c-text);
    font-size: 14px;
    line-height: 1.5;
}

/* Products Section */
.products {
    padding: 100px 24px;
    background-color: var(--bg-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--bg-cream);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

.product-content {
    padding: 32px 24px;
}

.product-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-darker);
    margin-bottom: 24px;
}

.product-features {
    list-style: none;
    margin-bottom: 24px;
}

.product-features li {
    padding: 8px 0;
    color: var(--text-darker);
    font-size: 1rem;
    position: relative;
    padding-left: 24px;
}

.product-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-blue-gray);
    font-size: 1.2rem;
}

/* Email Capture Section */
.email-capture {
    padding: 100px 24px;
    background-color: var(--bg-cream);
    text-align: center;
}

.email-heading {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.email-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form-group input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 14px 20px;
    font-family: 'Hind', sans-serif;
    font-size: 1rem;
    border: 1px solid var(--bg-cream);
    border-radius: 4px;
    background-color: var(--bg-white);
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--text-dark);
}

.form-group input[type="email"]::placeholder {
    color: var(--text-gray);
}

.form-message {
    margin-top: 16px;
    font-size: 0.875rem;
    min-height: 20px;
}

.form-message.success {
    color: var(--text-dark);
}

.form-message.error {
    color: #d32f2f;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Footer */
.footer {
    padding: 48px 24px;
    background-color: var(--bg-white);
    border-top: 1px solid rgba(40, 53, 56, 0.1);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--text-darker);
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* Mobile: keep table format but make columns narrower */
@media (max-width: 820px) {
    .comparison {
        padding: 56px 0;
    }
    
    .comparison-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .comparison-table {
        min-width: 100%;
        table-layout: fixed;
    }
    
    .feature-col {
        width: 140px !important;
        min-width: 140px !important;
    }
    
    .comparison-th:nth-child(2),
    .comparison-td:nth-child(2) {
        width: 100px !important;
        min-width: 100px !important;
    }
    
    .comparison-th:nth-child(3),
    .comparison-td:nth-child(3) {
        width: 120px !important;
        min-width: 120px !important;
    }
    
    .comparison-th:nth-child(4),
    .comparison-td:nth-child(4) {
        width: 110px !important;
        min-width: 110px !important;
    }
    
    .comparison-th,
    .comparison-rowhead,
    .comparison-td {
        padding: 10px 8px !important;
        font-size: 12px !important;
    }
    
    .comparison-th {
        font-size: 11px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    .comparison-subtext {
        font-size: 10px !important;
        margin-top: 4px !important;
    }
    
    
    .icon {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
        font-size: 14px !important;
    }
    
    .cell-text {
        font-size: 11px !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 60px 24px;
    }

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

    .btn {
        width: 100%;
    }

    .products {
        padding: 60px 24px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .email-capture {
        padding: 60px 24px;
    }

    .form-group {
        flex-direction: column;
    }

    .form-group input[type="email"],
    .form-group button {
        width: 100%;
    }

    .footer-nav {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 40px 16px;
    }

    .products {
        padding: 40px 16px;
    }

    .email-capture {
        padding: 40px 16px;
    }

    .product-content {
        padding: 24px 16px;
    }
}
