/* ProPace Website — Dark theme matching iOS app */

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

:root {
    --bg: #121214;
    --surface: #1A1A1E;
    --surface-elevated: #2A2A2E;
    --surface-overlay: #3A3A3E;
    --accent: #00E5CC;
    --user: #FF8A00;
    --text-primary: #F5F5F7;
    --text-secondary: #8E8E93;
    --radius: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Nav */
nav {
    position: sticky;
    top: 0;
    background: rgba(18, 18, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-overlay);
    z-index: 100;
}

.nav-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 18px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Main content */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 0 60px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.accent {
    color: var(--accent);
}

.subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 32px;
}

.cta-row {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--bg);
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.85;
}

/* Features */
.features {
    padding: 40px 0 60px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--surface-overlay);
    border-radius: var(--radius);
    padding: 24px;
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Data sources */
.data-sources {
    text-align: center;
    padding: 40px 0 80px;
}

.data-sources h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.data-sources > p {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 480px;
    margin: 0 auto 24px;
}

.source-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--surface-overlay);
    background: var(--surface);
}

.badge.strava { color: #FC4C02; border-color: #FC4C02; }
.badge.wahoo { color: #4A90D9; border-color: #4A90D9; }
.badge.fit { color: var(--accent); border-color: var(--accent); }
.badge.gps { color: var(--user); border-color: var(--user); }

/* Policy / Terms / Support pages */
.page-header {
    padding: 60px 0 32px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
}

.page-header .updated {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 8px;
}

.policy-card {
    background: var(--surface);
    border: 1px solid var(--surface-overlay);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
}

.policy-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--surface-overlay);
}

.policy-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.policy-section h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.policy-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Support page */
.support-card {
    background: var(--surface);
    border: 1px solid var(--surface-overlay);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    text-align: center;
}

.support-card h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.support-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.email-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.email-link:hover {
    text-decoration: underline;
}

.faq-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    margin-top: 20px;
}

.faq-section h3:first-child {
    margin-top: 0;
}

.faq-section p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Footer */
footer {
    border-top: 1px solid var(--surface-overlay);
    padding: 32px 24px;
}

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

.footer-brand {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 12px;
    opacity: 0.6;
}
