/* CSS Variables for easy tweaking */
:root {
    --bg-color: #ffffff;
    --text-main: #111111;
    --text-light: #666666;
    --accent-blue: #0044FF;
    --border-color: #E5E5E5;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Typography */
h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.nav-price {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--text-main);
    color: var(--bg-color);
    text-decoration: none;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 4px;
    transition: background 0.2s ease;
    width: 100%;
    max-width: 350px;
}

.btn-primary:hover {
    background-color: var(--accent-blue);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-main);
    text-decoration: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border: 1px solid var(--text-main);
    border-radius: 4px;
    transition: all 0.2s ease;
}

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

.disclaimer {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Workflow Section */
.workflow {
    background-color: #F8F8F8;
    padding: 5rem 0;
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step {
    background: var(--bg-color);
    padding: 2rem;
    border-left: 3px solid var(--accent-blue);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Science Section */
.science {
    padding: 5rem 0;
}

.data-list {
    list-style: none;
    margin: 2rem 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.data-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.data-list li:first-child {
    border-top: 1px solid var(--border-color);
}

/* Footer */
footer {
    background-color: var(--text-main);
    color: var(--bg-color);
    padding: 4rem 0;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.footer-note {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #888;
}

footer a {
    color: #AAA;
}

/* Desktop Scaling */
@media (min-width: 768px) {
    h1 {
        font-size: 4rem;
    }
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
    .step {
        border-left: none;
        border-top: 3px solid var(--accent-blue);
    }
}

/* Add this to your existing styles.css under the Navigation section */
.nav-btn {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    border-color: var(--text-main);
    background-color: #FAFAFA;
}

/* --- New Science Section Styles --- */
.text-center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.benefit-card {
    background-color: #FAFAFA;
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    color: var(--accent-blue);
}

.benefit-card p {
    color: var(--text-main);
    font-size: 0.95rem;
}

.btn-center {
    margin: 0 auto;
    display: block; /* Forces the button to respect the margin auto for centering */
}

/* Desktop Scaling for the Grid */
@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* --- Checkout Layout --- */
.checkout-body {
    background-color: var(--bg-color);
}

.checkout-wrapper {
    display: flex;
    flex-direction: column-reverse;
    min-height: 100vh;
}

.checkout-form-container {
    padding: 2rem 5%;
    flex: 1;
    display: flex;
    justify-content: center;
}

.checkout-form {
    width: 100%;
    max-width: 450px;
    padding-top: 2rem;
}

.checkout-summary {
    background-color: #FAFAFA;
    padding: 2rem 5%;
    border-bottom: 1px solid var(--border-color);
}

.summary-content {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.back-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.checkout-form h2, .summary-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
}

/* Form Elements */
.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 68, 255, 0.1);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.btn-pay {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.secure-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Cart Summary Elements */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.item-desc {
    font-size: 0.8rem;
    color: var(--text-light);
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.2rem;
}

.qty-btn {
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-light);
}

.qty-btn:hover {
    color: var(--text-main);
}

#qty-display {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.item-price {
    font-family: var(--font-mono);
    font-weight: 600;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.total-line {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
}

.total-line span:last-child {
    font-family: var(--font-mono);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.modal-box h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-box p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Desktop Split Layout */
@media (min-width: 800px) {
    .checkout-wrapper {
        flex-direction: row;
    }
    .checkout-form-container {
        flex: 1.2;
        padding: 4rem;
        justify-content: flex-end; /* Pushes form toward center */
    }
    .checkout-summary {
        flex: 1;
        border-bottom: none;
        border-left: 1px solid var(--border-color);
        padding: 4rem;
    }
    .summary-content {
        margin: 0; /* Align left alongside the form */
    }
}



/* Add this anywhere in the file */
.form-section {
    margin-bottom: 2.5rem;
}

/* =========================================
   UPDATED DESKTOP MEDIA QUERY
========================================= */
@media (min-width: 800px) {
    .checkout-wrapper {
        flex-direction: row;
        /* Container bleeds to the edges */
    }
    
    .checkout-form-container {
        flex: 1.1;
        /* Padding creates a safe zone, but we don't force flex alignment */
        padding: 4rem; 
        background-color: var(--bg-color);
        display: flex;
        justify-content: flex-end; /* Push the container towards center... */
    }
    
    .checkout-form {
        /* ...but anchor the form itself to the right edge of its max-width, 
           leaving breathing room near the center divider */
        margin: 0 2rem 0 auto; 
        width: 100%;
        max-width: 500px; 
    }
    
    .checkout-summary {
        flex: 1;
        border-bottom: none;
        border-left: 1px solid var(--border-color);
        padding: 4rem;
        background-color: #FAFAFA;
        display: flex;
        justify-content: flex-start; /* Push container from center... */
    }
    
    .summary-content {
        /* ...and anchor the summary content to the left edge of its max-width */
        margin: 0 auto 0 2rem; 
        width: 100%;
        max-width: 420px;
    }
}

/* Optional: For massive ultra-wide screens (>1400px), lock the spread */
@media (min-width: 1400px) {
    .checkout-form {
        margin: 0 4rem 0 auto;
    }
    .summary-content {
        margin: 0 auto 0 4rem;
    }
}

/* =========================================
   ADD THESE NEW STYLES TO THE BOTTOM
========================================= */

/* Discount Code Section */
.discount-section {
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    padding-bottom: 0;
    border-top: 1px solid var(--border-color);
}

.discount-input-group {
    display: flex;
    gap: 0.5rem;
}

.discount-input-group input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.discount-input-group button {
    padding: 0 1.5rem;
    background-color: #E5E5E5;
    color: var(--text-main);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.discount-input-group button:hover {
    background-color: #D4D4D4;
}

.error-text {
    color: #D32F2F;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.hidden {
    display: none;
}

/* Terms Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--text-main); /* Makes it black on modern browsers */
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

.checkbox-group label a {
    color: var(--text-main);
    text-decoration: underline;
}

/* Full Width Pay Button Fix */
.btn-pay {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    font-size: 1.1rem;
    margin: 0 auto;
    margin-top: 0.5rem;
    cursor: pointer;
}


/* --- Legal Documents Styling --- */
.legal-document {
    max-width: 800px; /* Constrains text width for readability */
    margin: 4rem auto 6rem;
    padding: 0 5%;
}

.legal-document h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.doc-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.doc-section {
    margin-bottom: 2.5rem;
}

.doc-section h3 {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.doc-section p {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.doc-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.doc-section li {
    margin-bottom: 0.5rem;
}

.doc-section a {
    color: var(--text-main);
    text-decoration: underline;
}