* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

h1, h2, h3 {
    margin: 0;
    color: #555566;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.25;
}

h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-align: center;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.5rem;
}

p {
    margin: 0 0 0.5rem 0;
}

a {
    color: #0353a2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    margin: 0 0 1rem 0;
    padding: 0 0 0 1.5rem;
}

li {
    margin: 0.5rem 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

header {
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo a {
    color: #555566;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 0;
}

nav a:hover {
    text-decoration: underline;
}

.nav-buy {
    font-weight: 600;
}

main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

footer {
    border-top: 1px solid #ddd;
    padding: 1rem 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.hero {
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.button-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2.5rem 0 1rem 0;
}

.image-container {
    text-align: center;
    margin: 2rem 0;
}

#screenshot-container {
    text-align: center;
    margin: 3rem 0 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

#screenshot-mac, #screenshot-win {
    max-width: 538px;
}

#screenshot-container img {
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.1));
}

.platform-switcher {
    text-align: center;
    margin: 2rem 0;
}

.platform-switcher h2 {
    font-size: 1.2rem;
    font-weight: bolder;
}

.platform-switcher a {
    color: #0353a2;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    font-weight: normal;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}

.btn-primary {
    background: #238cf6;
    color: white;
}

.btn-primary:hover {
    background: #1976d2;
    text-decoration: none;
}

.btn-secondary {
    background: #8c8c8c;
    color: white;
}

.btn-secondary:hover {
    background: #757575;
    text-decoration: none;
}

.content-centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.content {
    max-width: 800px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.mt-0-5 {
    margin-top: 0.5rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.hidden {
    display: none;
}

.smaller p {
    font-size: 0.9rem;
}

.lh-2 p {
    line-height: 2;
}

/* Accessible helper for text only visible to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 1px, 1px);
    white-space: nowrap;
    border: 0;
}

/* Hamburger button base (hidden on desktop) */
.hamburger {
    display: none;
    font-size: 1.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    color: #333;
}

.hamburger img {
    display: block;
    width: 24px;
    height: 24px;
}

.hamburger:focus {
    outline: 2px solid #238cf6;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    header .container {
        /* Keep logo and hamburger on one line */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    /* Show the hamburger, push it to the right */
    .hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    /* Nav goes to the next line and spans full width with animation */
    #main-nav {
        width: 100%;
        order: 3;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-8px);
        transition: max-height 250ms ease, opacity 200ms ease, transform 200ms ease;
    }

    #main-nav.open {
        /* Large enough to fit the list; avoids inline JS and keeps CSS-only */
        max-height: 400px;
        opacity: 1;
        transform: translateY(0);
    }

    #main-nav ul {
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0.5rem;
        flex-direction: column;
        padding-left: 0;
        padding-top: 0.5rem;
        padding-bottom: 1rem;
    }

    #main-nav li {
        margin: 0.25rem 0;
        list-style: none;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1rem; }
    .hero p { font-size: 1rem; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
