/* Drumbro website
 *
 * Style tokens mirror the app's Theme.swift values so the visual
 * identity is consistent between the iOS app and the web presence.
 * One accent color, restrained typography, no gradients, no glow.
 */

:root {
    --bg:                  #0B0B0E;
    --surface:             #171719;
    --surface-elevated:    #1D1D21;
    --border:              rgba(255, 255, 255, 0.07);
    --border-strong:       rgba(255, 255, 255, 0.15);

    --text-primary:        #F2EFEB;
    --text-secondary:      #9E9B90;
    --text-tertiary:       #66635D;

    --accent:              #DE5C36;
    --accent-dim:          #8C3920;

    --rating-perfect:      #5CBD72;
    --rating-good:         #6BA8DA;
    --rating-offbeat:      #EBA84D;
    --rating-missed:       #D15858;

    --space-1:  4px;
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  16px;
    --space-5:  24px;
    --space-6:  32px;
    --space-7:  48px;
    --space-8:  64px;
    --space-9:  96px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --content-max: 720px;

    --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                   "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono:   "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-system);
    font-size: 16px;
    line-height: 1.55;
    min-height: 100vh;
}

a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--border-strong);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.18s ease-out;
}
a:hover { text-decoration-color: var(--accent); }

a.unstyled,
a.unstyled:hover { text-decoration: none; }

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

/* -------------- Layout shell -------------- */

.container {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--space-5);
}

.site-header {
    padding: var(--space-5) 0 var(--space-2);
}

.site-header .wordmark {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    text-decoration: none;
}

.site-footer {
    padding: var(--space-7) 0 var(--space-7);
    color: var(--text-tertiary);
    font-size: 13px;
}

.site-footer .row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.site-footer nav {
    display: flex;
    gap: var(--space-4);
}

.site-footer nav a {
    color: var(--text-secondary);
    text-decoration: none;
}

.site-footer nav a:hover { color: var(--text-primary); }

/* -------------- Hero -------------- */

.hero {
    padding: var(--space-7) 0 var(--space-7);
    text-align: center;
}

.hero .drumbro-mark {
    width: 168px;
    height: 168px;
    margin: 0 auto var(--space-6);
}

.hero .drumbro-mark .dot {
    transform-origin: center;
    animation: drumPulse 1.4s ease-in-out infinite alternate;
}

@keyframes drumPulse {
    from { transform: scale(0.78); opacity: 0.68; }
    to   { transform: scale(1.04); opacity: 1.00; }
}

.hero h1 {
    font-size: clamp(40px, 8vw, 56px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.0;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.hero .tagline {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
}

.hero .summary {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto var(--space-6);
}

.hero .download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: white;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease-out, background 0.15s ease-out;
}
.hero .download:hover {
    background: #C7502E;
    transform: translateY(-1px);
}

.hero .meta {
    display: block;
    margin-top: var(--space-3);
    font-size: 13px;
    color: var(--text-tertiary);
}

/* -------------- Generic section -------------- */

section {
    padding: var(--space-7) 0;
}

.section-header {
    margin-bottom: var(--space-5);
}

.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-2);
}

h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    line-height: 1.15;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

p { color: var(--text-secondary); }
p + p { margin-top: var(--space-3); }

/* -------------- Steps -------------- */

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

.step {
    display: flex;
    gap: var(--space-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
}

.step .num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 2px;
}

.step h3 { margin-bottom: 4px; }
.step p { font-size: 14px; }

/* -------------- Feature grid -------------- */

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

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

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
}
.feature h3 { font-size: 16px; }
.feature p { font-size: 14px; }

/* -------------- Clip promo -------------- */

.clip-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

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

.clip-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color 0.18s ease-out;
}
.clip-card:hover {
    border-color: var(--accent);
}

.clip-card .name {
    font-size: 15px;
    font-weight: 600;
}

.clip-card .desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.clip-card .chev {
    color: var(--text-tertiary);
    font-size: 20px;
    line-height: 1;
}

/* -------------- Article (privacy / support) -------------- */

article {
    padding: var(--space-7) 0 var(--space-9);
}

article h1 {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-2);
}

article .stamp {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-6);
    font-family: var(--font-mono);
}

article h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

article p { margin-bottom: var(--space-3); }

article ul {
    margin: var(--space-3) 0 var(--space-3) var(--space-5);
    color: var(--text-secondary);
}
article ul li {
    margin-bottom: var(--space-2);
    font-size: 15px;
}

article ul li::marker { color: var(--text-tertiary); }

article code {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--text-primary);
}

article hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--space-6) 0;
}

/* -------------- 404 -------------- */

.error-page {
    text-align: center;
    padding: var(--space-9) 0;
}
.error-page .code {
    font-size: 96px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.04em;
}
.error-page p { margin: var(--space-4) auto var(--space-5); max-width: 360px; }

/* -------------- Reduce motion -------------- */

@media (prefers-reduced-motion: reduce) {
    .hero .drumbro-mark .dot { animation: none; }
    .hero .download:hover    { transform: none; }
    a, .clip-card { transition: none; }
}
