:root {
    --bg: #f7f4ee;
    --surface: #fffdf8;
    --surface-soft: #f1ece3;
    --text: #1f2c2f;
    --muted: #5d6b6d;
    --line: rgba(31, 44, 47, 0.12);
    --accent: #355c5a;
    --accent-strong: #234240;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(31, 44, 47, 0.08);
    --max-width: 1080px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247, 244, 238, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand-text {
    display: grid;
    gap: 0.1rem;
}

.brand-title,
.logo-wordmark {
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-subtitle,
.kicker,
.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-nav a,
.text-link {
    text-decoration: none;
    font-weight: 600;
    color: var(--muted);
}

.site-nav a:hover,
.text-link:hover {
    color: var(--accent-strong);
}

.menu-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    content: "";
    position: absolute;
    left: 11px;
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle span {
    top: 20px;
}

.menu-toggle::before {
    top: 14px;
}

.menu-toggle::after {
    top: 26px;
}

.menu-toggle[aria-expanded="true"] span {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
    transform: translateY(-6px) rotate(-45deg);
}

main {
    padding: 2rem 0 4rem;
}

section + section {
    margin-top: 1.25rem;
}

.hero,
.app-hero,
.support-header,
.legal-header {
    padding-top: 0.75rem;
}

.hero-grid,
.product-grid,
.detail-grid,
.support-grid,
.faq-grid {
    display: grid;
    gap: 1rem;
}

.hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
}

.product-grid,
.detail-grid,
.support-grid,
.faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel,
.product-card,
.detail-card,
.support-card,
.faq-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem;
}

.hero h1,
.app-hero h1,
.support-header h1,
.legal-header h1,
.section-heading {
    margin: 0.5rem 0 0.8rem;
    font-family: Georgia, serif;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.02;
}

.section-heading {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

p,
li,
address {
    color: var(--muted);
    line-height: 1.7;
}

.hero p,
.app-hero p,
.support-header p,
.legal-header p,
.lead {
    font-size: 1.04rem;
}

.hero-actions,
.card-actions,
.footer-actions,
.feature-list,
.app-meta,
.footer-links,
.contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.button,
.button-secondary,
.button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.product-card .card-actions {
    margin-top: 1rem;
    gap: 0.9rem;
}

.product-card .button,
.product-card .button-secondary,
.product-card .button-ghost {
    min-height: 42px;
    padding: 0.7rem 1rem;
}

.button {
    background: var(--accent);
    color: white;
}

.button-secondary,
.button-ghost,
.info-chip,
.app-pill {
    background: var(--surface-soft);
    color: var(--text);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.2rem;
}

.hero-note {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.hero-note img {
    width: 100%;
    max-width: 170px;
    margin: 0 auto;
}

.app-list {
    margin: 0;
    padding-left: 1.1rem;
}

.product-card header,
.app-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.product-card h3,
.detail-card h3,
.support-card h3,
.faq-card h3 {
    margin: 0 0 0.5rem;
    font-family: Georgia, serif;
    font-size: 1.4rem;
}

.app-badge,
.app-icon,
.page-badge {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.8rem;
    background: var(--accent);
}

.app-badge.golf,
.page-badge.golf,
body.theme-golf {
    --accent: #486b49;
    --accent-strong: #304c31;
}

.app-badge.music,
.page-badge.music,
body.theme-music {
    --accent: #4d6796;
    --accent-strong: #32486f;
}

.page-badge img,
.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-chip,
.app-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.section-intro {
    margin-bottom: 1rem;
}

.body-copy {
    display: grid;
    gap: 0.75rem;
}

.body-copy h2 {
    margin: 1rem 0 0;
    font-family: Georgia, serif;
    font-size: 1.25rem;
    color: var(--text);
}

.body-copy ul,
.body-copy ol,
.app-list {
    margin-top: 0;
    margin-bottom: 0;
}

.body-copy a,
.contact-list a,
.footer-links a {
    color: var(--accent-strong);
}

.rule {
    border: 0;
    border-top: 1px solid var(--line);
    width: 100%;
    margin: 0.25rem 0;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer {
    padding: 0 0 2rem;
}

.site-footer .panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 900px) {
    .hero-grid,
    .product-grid,
    .detail-grid,
    .support-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .menu-toggle {
        display: inline-block;
    }

    .header-inner {
        position: relative;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--max-width), calc(100% - 1rem));
    }

    .hero-actions,
    .card-actions,
    .footer-links,
    .contact-list,
    .feature-list,
    .app-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .button,
    .button-secondary,
    .button-ghost {
        width: 100%;
    }

    .product-card .card-actions {
        align-items: flex-start;
    }

    .product-card .button,
    .product-card .button-secondary,
    .product-card .button-ghost {
        width: auto;
        min-width: 138px;
    }

    .product-card header,
    .app-summary,
    .site-footer .panel {
        flex-direction: column;
        align-items: flex-start;
    }
}
