/* CedarGroove marketing pages — shared stylesheet
   Used by: /wav-to-midi-drums/, /changelog/
   NOT used by: / (the SPA, which uses style.css)
*/

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg { max-width: 100%; height: auto; display: block; }

:root {
    --bg: #0d1117;
    --surface: #161b22;
    --border: #30363d;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --accent: #0a7ab8;
    --accent-hover: #1188cc;
    --accent-secondary: #c42d72;
    --link: #58a6ff;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
    --container-width: 760px;
    --radius: 6px;
}

html { font-size: 16px; }
body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    color: var(--text);
    line-height: 1.3;
    margin: 1.5em 0 0.5em;
}
h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.3em; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    font-family: var(--font-mono);
    font-size: 0.92em;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0.1em 0.35em;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.section { margin: 2.5rem 0; }

.site-header { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-header img.logo { height: 32px; }
.site-header nav a {
    color: var(--text-muted);
    margin-left: 1rem;
    font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--text); }

.hero { padding: 2.5rem 0 1.5rem; }
.hero p.tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 0.75rem 0 1.5rem;
}
.hero img {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0; }
.btn {
    display: inline-block;
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); text-decoration: none; }
.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.faq details {
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}
.faq details:last-child { border-bottom: none; }
.faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    padding-right: 1.5em;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--text-muted);
    font-size: 1.2em;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--accent); }
.faq details > *:not(summary) { margin-top: 0.6em; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 0.95rem;
}
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); }
th { background: var(--surface); }

.changelog-entry { margin: 2rem 0; }
.changelog-entry h2 {
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
}
.changelog-entry h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 1rem;
}

.site-footer {
    margin-top: 4rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}
.site-footer a { color: var(--text-muted); margin: 0 0.5rem; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 720px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    .hero { padding: 1.5rem 0 1rem; }
    .btn-row { flex-direction: column; align-items: stretch; }
    .btn { text-align: center; }
}
