/* ========== Base & Layout ========== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

body {
    font-family: 'OpenDyslexic', sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
}

@font-face {
    font-family: 'OpenDyslexic';
    src: url('OpenDyslexic-Regular.woff2') format('woff2'), url('OpenDyslexic-Regular.woff') format('woff'), url('OpenDyslexic-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding-top: 1rem;
}

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

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    z-index: 100;
}

    .skip-link:focus {
        top: 0;
    }

/* ========== Header / Nav ========== */
header {
    background: #000;
    color: #fff;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    position: sticky;
  
    width: 100%;
    z-index: 1000;
    flex-wrap: wrap;
}

.brand {
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
}

.nav-links {

    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    row-gap: .25rem;
}

    .nav-links a {
        color: #fff;
        text-decoration: none;
        flex: 0 0 auto;
    }

    .nav-links .cta {
        padding: .35rem .75rem;
        border: 1px solid #ff6600;
        border-radius: 999px;
        font-weight: 700;
        line-height: 1;
        background: #ff6600; /* orange background */
        color: #fff; /* white text */
        text-decoration: none;
        transition: background 0.2s, color 0.2s; /* smooth change */
    }

        .nav-links .cta:focus,
        .nav-links .cta:hover {
            background: #fff; /* white background on hover */
            color: #ff6600; /* orange text */
        }

/* Slightly tighten spacing on smaller widths */
@media (max-width: 980px) {
    .nav-links a {
        padding: .25rem .5rem;
        font-size: .95rem;
    }

    header {
        gap: .25rem;
    }
}

.nav-links li {
    margin: 0;
    padding: 0;
}

/* Buttons */
.btn {
    padding: .5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    border: 0;
    display: inline-block;
}

.primary {
    background: #ff6600;
    color: #fff;
}



.page-title {
    text-align: center;
    margin: 0.5rem 0 1rem; /* tight and clean */
}
.secondary {
    background: #fff;
    color: #0066CC;
    border: 1px solid #0066CC;
}

/* ========== Hero ========== */
#hero {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem 1rem 4rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.hero-logo {
    max-width: 215px;
    display: block;
    margin: 0 auto .5rem;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin: .25rem 0 .5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    font-size: .95rem;
    line-height: 1;
    border: 1px solid rgba(0,0,0,.1);
    background: #fff;
}

    .pill.win {
        background: #e6f0ff;
        border-color: #bcd4ff;
    }

    .pill.price {
        background: #fffbea;
        border-color: #ffe58f;
    }

.hero-note {
    font-size: .95rem;
    color: #444;
    margin-top: .5rem;
}

#hero h1 {
    margin-top: .1rem;
}

#hero p {
    margin-top: .1rem;
}

/* ========== Features ========== */
#features {
    padding: 2rem 1rem;
}

    #features h2 {
        text-align: center;
        margin-bottom: 1rem;
    }

    #features ul {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    #features li {
        background: #fffbea;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,.1);
        padding: 1.25rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

        #features li h3 {
            margin: .5rem 0;
        }

/* ========== Screenshots (Gallery + Lightbox) ========== */
#screenshots {
    padding: 2rem 1rem;
    background: #fff;
}

    #screenshots h2 {
        text-align: center;
        margin-bottom: 1rem;
    }

    #screenshots .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    #screenshots figure {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
    }

    #screenshots img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 4px;
        cursor: pointer;
    }

    #screenshots figcaption {
        margin-top: .5rem;
        font-size: .9rem;
        color: #666;
        text-align: center;
    }

#lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

    #lightbox-modal img {
        max-width: 90%;
        max-height: 80%;
        border-radius: 4px;
    }

    #lightbox-modal .close,
#lightbox-modal .nav {
    position: absolute;
    background: none;
    border: 0;
    padding: .25rem .5rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

#lightbox-modal .close:focus,
#lightbox-modal .nav:focus {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

    #lightbox-modal .close {
        top: 2%;
        right: 2%;
    }

    #lightbox-modal .prev {
        top: 50%;
        left: 2%;
        transform: translateY(-50%);
    }

    #lightbox-modal .next {
        top: 50%;
        right: 2%;
        transform: translateY(-50%);
    }

.content-section {
    max-width: 70%;
    margin: 1rem auto;
    text-align: left;
}

    .content-section h2,
    .content-section h3 {
        text-align: left;
    }

    .content-section p,
    .content-section blockquote {
        text-align: left;
    }

    /* Optional: make blockquotes look a bit nicer */
    .content-section blockquote {
        margin: 1rem 0;
        padding-left: 1rem;
        border-left: 3px solid #ccc;
    }

/* ========== Videos (3-up responsive grid) ========== */
#videos {
    padding: 2rem 1rem;
}

    #videos h2 {
        text-align: center;
        margin-bottom: 1rem;
    }

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 1rem;
    align-items: start;
}

.videocard {
    background: #fffbea;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

    .videocard h3 {
        margin: 0 0 .5rem;
        text-align: center;
    }

.videowrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
}

    .videowrap video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        border: 0;
    }

/* ========== Commands ========== */
#commands {
    padding: 2rem 1rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    margin-bottom: 1rem;
}

    #commands h2 {
        text-align: center;
        margin-bottom: .75rem;
    }

    #commands .commands-note {
        text-align: center;
        color: #444;
        font-size: .95rem;
        margin: 0 auto 1rem;
        max-width: 800px;
    }

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

.card {
    background: #fffbea;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 1rem 1.25rem;
}

.cmd-list {
    padding-left: 1rem;
    margin: .5rem 0;
}

#commands code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
}

#commands .hint {
    font-size: .9rem;
    color: #555;
    margin-top: .5rem;
}

/* ========== About / Pricing / Contact / Footer ========== */
#about {
    padding: 2rem 1rem;
    background: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

    #about h2 {
        text-align: center;
        margin-bottom: 1rem;
    }

    #about p {
        max-width: 800px;
        margin: .5rem auto;
        line-height: 1.6;
    }

#pricing {
    padding: 2rem 1rem;
    text-align: center;
}

    #pricing h2,
    #pricing p {
        margin-bottom: 1rem;
    }

    #pricing a {
        margin-bottom: .5rem;
        display: inline-block;
    }

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact {
    padding: 1rem 1rem;
    background: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

    #contact h2 {
        text-align: center;
       
    }

    #contact p {
        max-width: 40%;
        margin: .5rem auto;
        line-height: 1.6;
        text-align: center;
    }

#contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    #contact-form .form-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 1rem;
        text-align: center;
    }

    #contact-form input,
    #contact-form textarea {
        margin-top: .25rem;
        padding: .5rem;
        width: 90%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    #contact-form textarea {
        resize: vertical;
    }

    #contact-form .form-buttons {
        display: flex;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }
/* ===== Fix header overlap + tighten About-page spacing ===== */

/* If your header is position: sticky, it MUST have top:0 to actually stick. */
header {
    top: 0;
}

/* Anchor jumps (Features, Screenshots, etc.) won�t hide under the header */
html {
    scroll-padding-top: 6.5rem; /* tweak up/down if needed */
}

/* Page title (like �About Speaking Access�) */
.page-title {
    text-align: center;
    margin: 0.25rem 0 0.75rem;
}

    /* Tighten the gap between the H1 and the story box */
    .page-title + .content-section {
        margin-top: 0.25rem;
    }
/* Remove default �big gap� above the section H2 */
.section-title {
    margin-top: 0;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

    footer a {
        color: #fff;
        margin: 0 .5rem;
        text-decoration: none;
    }

/* ========== Responsive Breakpoints ========== */
@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
}

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

@media (max-width: 640px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }

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