:root {
    --ink: #102033;
    --muted: #516171;
    --navy: #071832;
    --blue: #0f4f7a;
    --green: #24ab00;
    --green-dark: #1c8300;
    --red: #c7372f;
    --paper: #ffffff;
    --mist: #f2f7f4;
    --line: #d9e4df;
    --shadow: 0 12px 34px rgba(16, 32, 51, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
}

img {
    max-width: 100%;
}

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

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 18px rgba(16, 32, 51, 0.12);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: inline-flex;
    align-items: center;
}

.logo img {
    width: 142px;
    height: 76px;
    object-fit: contain;
    display: block;
}

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

#menu {
    display: none;
    flex-direction: column;
    background: var(--paper);
    position: absolute;
    top: 86px;
    right: 18px;
    width: min(260px, calc(100vw - 36px));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

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

#menu a:hover,
#menu a:focus {
    background: #f3f8f5;
    color: var(--green-dark);
}

.hamburger {
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--navy);
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

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

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

.hero {
    color: white;
    padding: 132px 20px 54px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 24, 50, 0.94), rgba(7, 24, 50, 0.76) 48%, rgba(7, 24, 50, 0.52)),
        url("tech.png") center right / cover no-repeat;
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 18px;
    background: linear-gradient(90deg, var(--green), var(--red), var(--blue));
    z-index: -1;
}

.hero-home {
    min-height: 72vh;
    display: flex;
    align-items: center;
}

.hero-content {
    width: min(760px, 100%);
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 0;
    margin: 8px 0 18px;
}

.hero p {
    font-size: 1.08rem;
    line-height: 1.65;
}

.hero-lede {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
}

.eyebrow {
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #8df16d;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 26px;
}

.cta-btn {
    padding: 13px 20px;
    min-height: 48px;
    background: var(--green);
    color: white;
    border: 2px solid var(--green);
    border-radius: var(--radius);
    font-size: 1rem;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.cta-btn:hover,
.cta-btn:focus {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-1px);
}

.cta-secondary {
    background: var(--red);
    border-color: var(--red);
}

.cta-secondary:hover,
.cta-secondary:focus {
    background: #a92f29;
    border-color: #a92f29;
}

.cta-ghost {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.72);
}

.cta-ghost:hover,
.cta-ghost:focus {
    background: white;
    border-color: white;
    color: var(--navy);
}

.cta-ghost.dark {
    color: var(--ink);
    border-color: var(--blue);
    background: transparent;
}

.cta-ghost.dark:hover,
.cta-ghost.dark:focus {
    background: var(--blue);
    color: white;
}

.demo-pin {
    margin: 13px 0 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.86);
}

.intro-strip {
    width: min(1120px, calc(100% - 32px));
    margin: -24px auto 36px;
    padding: 0;
    max-width: 1120px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.intro-item {
    background: var(--paper);
    padding: 18px;
}

.intro-item strong {
    display: block;
    color: var(--navy);
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.intro-item span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
}

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

section {
    padding: 64px 20px;
    max-width: 1000px;
    margin: auto;
}

.section-wide {
    max-width: 1120px;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 30px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    color: var(--navy);
    margin: 0 0 14px;
    letter-spacing: 0;
}

.sub {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 34px;
}

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

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

.card,
.mini-card {
    background: var(--paper);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(16, 32, 51, 0.08);
}

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

.card p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.card-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: var(--radius);
    margin-bottom: 16px;
    background: #f8fbf9;
}

.feature-grid .card {
    min-height: 100%;
}

.training-band {
    max-width: none;
    margin: 24px 0;
    padding: 74px max(20px, calc((100vw - 1120px) / 2));
    display: grid;
    gap: 28px;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(242, 247, 244, 0.96), rgba(242, 247, 244, 0.9)),
        url("tools.png") center / cover no-repeat;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.training-copy {
    max-width: 620px;
}

.trainer-cards {
    display: grid;
    gap: 14px;
}

.mini-card {
    display: block;
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease;
}

.mini-card:hover,
.mini-card:focus {
    transform: translateY(-2px);
    border-color: var(--green);
}

.mini-card span {
    display: block;
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.mini-card p {
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

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

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

.faq-list details {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(16, 32, 51, 0.08);
    padding: 18px 20px;
}

.faq-list summary {
    color: var(--navy);
    cursor: pointer;
    font-weight: 900;
}

.faq-list p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.faq-list a,
.simulator-link {
    color: var(--green-dark);
    font-weight: 800;
}

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

.contact-section {
    padding-bottom: 30px;
}

.contact-actions {
    margin: -12px 0 28px;
}

.contact-form {
    background: var(--paper);
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

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

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(36, 171, 0, 0.18);
    border-color: var(--green);
}

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

.contact-form button {
    width: auto;
}

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

footer {
    background: var(--navy);
    color: white;
    padding: 46px 20px;
    text-align: center;
    margin-top: 54px;
}

footer a {
    color: #8df16d;
    text-decoration: none;
    font-weight: 800;
}

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

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

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

.store-hero {
    background:
        linear-gradient(90deg, rgba(7, 24, 50, 0.94), rgba(7, 24, 50, 0.72)),
        url("inventory.png") center / cover no-repeat;
    color: white;
    padding: 142px 20px 82px;
    text-align: center;
}

.store-hero h1 {
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    line-height: 1;
    font-weight: 900;
    margin: 0 0 18px;
}

.store-hero p {
    font-size: 1.1rem;
    line-height: 1.65;
    opacity: 0.94;
    max-width: 680px;
    margin: auto;
}

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

.product-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    display: flex;
    flex-direction: column;
}

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

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

.product-tagline {
    color: var(--muted);
    margin: 0 0 20px;
    font-size: 1.04rem;
    line-height: 1.6;
}

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

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

.price-period {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 700;
}

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

.product-features li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #2d3f50;
    border-bottom: 1px solid #edf2ef;
    line-height: 1.45;
}

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

.product-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 900;
}

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

.store-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 40px;
}

.buy-now-btn {
    width: 100%;
    margin-top: 8px;
}

.store-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 24, 50, 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: var(--paper);
    border-radius: var(--radius);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
    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(--navy);
    font-size: 1.35rem;
}

.store-modal-close {
    border: 0;
    background: #eef2f7;
    color: var(--navy);
    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(--green-dark);
    font-weight: 900;
    margin: 0 0 18px;
}

body.modal-open {
    overflow: hidden;
}

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

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

.checkout-form input,
.checkout-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius);
    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: 900;
    color: var(--navy);
    margin: 0 0 4px;
    font-size: 0.95rem;
}

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

.paypal-hint {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0 0 10px;
}

.checkout-status {
    display: none;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    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;
}

.simulator-link {
    display: inline-block;
    margin-top: 14px;
    text-decoration: none;
}

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

/* -------------------- */
/* RESPONSIVE           */
/* -------------------- */

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

    .intro-strip {
        grid-template-columns: repeat(4, 1fr);
    }

    .training-band {
        grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    }

    .checkout-form .field-row.two-col {
        grid-template-columns: 1fr 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .hamburger {
        display: none;
    }

    #menu {
        position: static;
        width: auto;
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    #menu a {
        border: 0;
        padding: 10px 12px;
        border-radius: var(--radius);
        font-size: 0.94rem;
    }

    .hero-content {
        width: min(1120px, calc(100% - 40px));
    }
}

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

    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    nav {
        padding: 8px 14px;
    }

    .logo img {
        width: 122px;
        height: 64px;
    }

    #menu {
        top: 78px;
        right: 14px;
        width: calc(100vw - 28px);
    }

    .hero {
        padding: 112px 18px 48px;
    }

    .hero-home {
        min-height: 76vh;
    }

    .hero-actions,
    .contact-actions {
        align-items: stretch;
    }

    .hero-actions .cta-btn,
    .contact-actions .cta-btn {
        width: 100%;
    }

    .intro-strip {
        grid-template-columns: 1fr;
        margin-top: -18px;
    }

    section {
        padding: 52px 18px;
    }

    .training-band {
        padding: 58px 18px;
    }

    .contact-form {
        padding: 20px;
    }
}
