:root {
    --blue: #00143f;
    --blue-dark: #000c2b;
    --orange: #24ab00;
    --orange-dark: #1c8300;
    --gray: #f3f7f2;
    --text: #1a1a1a;
    --radius: 14px;
}

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, sans-serif;
    background: var(--gray);
    color: var(--text);
}

/* -------------------- */
/* LOGO                 */
/* -------------------- */

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--blue-dark);
}

.logo img {
    width: 150px;
    height: 100px;
    margin-right: 10px;
    object-fit: contain;
    display: block;
}

/* -------------------- */
/* NAVIGATION           */
/* -------------------- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    background: white;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

#menu {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 60px;
    right: 18px;
    width: 210px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#menu a {
    padding: 14px;
    border-bottom: 1px solid #eee;
}

#menu a:last-child {
    border-bottom: none;
}

.hamburger {
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--blue-dark);
    padding: 6px 8px;
    line-height: 1;
}

/* -------------------- */
/* HERO SECTION         */
/* -------------------- */

.hero {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: white;
    padding: 140px 20px 100px;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: auto;
}

.cta-btn {
    margin-top: 28px;
    padding: 14px 28px;
    background: var(--orange);
    color: white;
    border-radius: var(--radius);
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.cta-btn:hover {
    background: var(--orange-dark);
}

.demo-pin {
    margin: 12px 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    opacity: 0.95;
}

/* -------------------- */
/* SECTIONS             */
/* -------------------- */

section {
    padding: 70px 20px;
    max-width: 900px;
    margin: auto;
}

h2 {
    font-size: 1.9rem;
    color: var(--blue-dark);
    margin-bottom: 10px;
}

.sub {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 40px;
}

/* -------------------- */
/* CARDS / GRID         */
/* -------------------- */

.grid {
    display: grid;
    gap: 20px;
}

.card {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.card h3 {
    color: var(--orange-dark);
    margin-bottom: 8px;
}

.card-image {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* -------------------- */
/* FAQ                  */
/* -------------------- */

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-list details {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    padding: 18px 22px;
}

.faq-list summary {
    color: var(--blue-dark);
    cursor: pointer;
    font-weight: 800;
}

.faq-list p {
    color: #444;
    margin-bottom: 0;
}

/* -------------------- */
/* CONTACT FORM         */
/* -------------------- */

.contact-form {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.contact-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--blue-dark);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form button {
    border: 0;
    cursor: pointer;
}

/* -------------------- */
/* FOOTER               */
/* -------------------- */

footer {
    background: var(--blue-dark);
    color: white;
    padding: 50px 20px;
    text-align: center;
    margin-top: 60px;
}

footer a {
    color: var(--orange);
    text-decoration: none;
    font-weight: bold;
}

.canadian-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-weight: 700;
}

.canadian-badge img {
    width: 24px;
    height: auto;
    display: block;
}

/* -------------------- */
/* DESKTOP ENHANCEMENTS */
/* -------------------- */

@media (min-width: 700px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1.25rem;
    }
}

@media (min-width: 1100px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* -------------------- */
/* STORE                */
/* -------------------- */

.store-hero {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: white;
    padding: 140px 20px 80px;
    text-align: center;
}

.store-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.store-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 560px;
    margin: auto;
}

.product-grid {
    display: grid;
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.product-card.featured {
    border: 2px solid var(--orange);
}

.product-card h3 {
    color: var(--blue-dark);
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.product-tagline {
    color: #555;
    margin: 0 0 20px;
    font-size: 1.05rem;
}

.price-block {
    margin-bottom: 24px;
}

.price-amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--orange-dark);
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex-grow: 1;
}

.product-features li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 800;
}

.paypal-container {
    min-height: 45px;
}

.store-note {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-top: 40px;
}

.buy-now-btn {
    border: 0;
    cursor: pointer;
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

.store-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 12, 43, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.store-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.store-modal {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    width: min(100%, 520px);
    max-height: min(90vh, 820px);
    overflow-y: auto;
    padding: 28px 24px 24px;
    position: relative;
}

.store-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.store-modal-header h3 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 1.35rem;
}

.store-modal-close {
    border: 0;
    background: #eef2f7;
    color: var(--blue-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.store-modal-close:hover {
    background: #dfe7f2;
}

.store-modal-price {
    color: var(--orange-dark);
    font-weight: 800;
    margin: 0 0 18px;
}

body.modal-open {
    overflow: hidden;
}

.checkout-form {
    margin-bottom: 20px;
    padding-top: 4px;
}

.checkout-form label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin: 12px 0 6px;
    color: var(--blue-dark);
}

.checkout-form input,
.checkout-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
}

.checkout-form input.invalid {
    border-color: #dc2626;
}

.checkout-form .field-error {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 4px;
    min-height: 1rem;
}

.checkout-form .field-row {
    display: grid;
    gap: 12px;
}

.checkout-heading {
    font-weight: 800;
    color: var(--blue-dark);
    margin: 0 0 4px;
    font-size: 0.95rem;
}

.paypal-container.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.paypal-hint {
    color: #666;
    font-size: 0.85rem;
    margin: 0 0 10px;
}

.checkout-status {
    display: none;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.checkout-status.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.checkout-status.success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.checkout-status.loading {
    display: block;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.store-alert {
    max-width: 960px;
    margin: 0 auto 24px;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    font-size: 0.95rem;
}

.store-alert.hidden {
    display: none;
}

@media (min-width: 700px) {
    .checkout-form .field-row.two-col {
        grid-template-columns: 1fr 1fr;
    }
}

.nav-link-store {
    color: var(--orange-dark) !important;
}

.simulator-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--orange-dark);
    font-weight: 700;
    text-decoration: none;
}

.simulator-link:hover {
    text-decoration: underline;
}

@media (min-width: 700px) {
    .store-hero h1 {
        font-size: 2.8rem;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
