/* PreRun.io shared dark theme */
:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-elevated: #1c1c1c;
    --border: #262626;
    --border-bright: #333333;
    --text: #f5f5f5;
    --text-secondary: #a3a3a3;
    --text-muted: #6b6b6b;
    --accent: #f59e0b;
    --accent-bright: #fbbf24;
    --accent-dim: rgba(245, 158, 11, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent-bright);
}

/* Top nav (simple link bar at top of content pages) */
.topnav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10, 10, 10, 0.85);
}

.topnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topnav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.topnav-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.topnav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.topnav-links a {
    color: var(--text-secondary);
    font-size: 0.925rem;
    font-weight: 500;
}

.topnav-links a:hover {
    color: var(--text);
}

.topnav-links a.cta {
    color: var(--bg);
    background: var(--accent);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
}

.topnav-links a.cta:hover {
    background: var(--accent-bright);
    color: var(--bg);
}

@media (max-width: 768px) {
    .topnav-links {
        gap: 16px;
    }
    .topnav-links a:not(.cta) {
        display: none;
    }
}

/* Hero section */
.hero {
    position: relative;
    padding: 120px 20px 100px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.15) 0%, transparent 60%),
        var(--bg);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.app-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--border-bright);
    display: block;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #a3a3a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 400;
}

/* Simple page header (used on policy/support pages) */
.page-header {
    padding: 80px 20px 60px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.10) 0%, transparent 60%),
        var(--bg);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #a3a3a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

/* Buttons */
.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.1);
    color: var(--bg);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent-bright);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
    color: var(--bg);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-bright);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--text);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Container / layout helpers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 64px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards / features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 36px 32px;
    border-radius: 16px;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.feature:hover {
    border-color: var(--border-bright);
    background: var(--surface-elevated);
    transform: translateY(-2px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-dim);
    border: 1px solid rgba(245, 158, 11, 0.25);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.feature h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.975rem;
    line-height: 1.65;
}

/* Section bands */
.band {
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    padding: 100px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.band-accent {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.12) 0%, transparent 70%),
        var(--bg);
    padding: 100px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.band-surface {
    background: var(--surface);
    padding: 100px 20px;
    border-bottom: 1px solid var(--border);
}

.band h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text);
}

.band p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.band .highlight {
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Numbered list (How It Works) */
.numbered-list {
    max-width: 720px;
    margin: 48px auto 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.numbered-list li {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.05rem;
    text-align: left;
    counter-increment: step;
}

.numbered-list li:last-child {
    border-bottom: none;
}

.numbered-list li::before {
    content: counter(step, decimal-leading-zero);
    flex-shrink: 0;
    font-family: 'Inter', monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--accent);
    padding-top: 2px;
    letter-spacing: 0.05em;
}

/* Generic content pages (privacy, terms, etc.) */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

.content h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 16px;
}

.content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 40px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 12px;
}

.content p {
    margin-bottom: 16px;
}

.content ul, .content ol {
    margin: 16px 0 16px 24px;
}

.content li {
    margin-bottom: 8px;
}

.content .meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.content strong {
    color: var(--text);
    font-weight: 600;
}

/* Use cases */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.use-case {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 28px;
    border-radius: 14px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.use-case:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.use-case h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.use-case p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: var(--bg);
    color: var(--text-muted);
    padding: 60px 20px 40px;
    text-align: center;
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 0.875rem;
}

.footer-links {
    margin-top: 24px;
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

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

/* Pro pricing card */
.pricing-card {
    max-width: 480px;
    margin: 48px auto;
    background: var(--surface);
    border: 1px solid var(--border-bright);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    margin: 24px 0 4px;
}

.pricing-card .price-period {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
}

.pricing-card .badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-dim);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 32px 0;
    text-align: left;
}

.pricing-card li {
    padding: 12px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-card li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

.pricing-card li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container,
    .container-narrow {
        padding: 60px 20px;
    }
    .hero {
        padding: 80px 20px 60px;
    }
    .page-header {
        padding: 60px 20px 48px;
    }
    .band,
    .band-accent,
    .band-surface {
        padding: 60px 20px;
    }
    .feature {
        padding: 28px 24px;
    }
    .footer-links {
        gap: 20px;
    }
    .content {
        padding: 48px 20px;
    }
    .pricing-card {
        padding: 32px 24px;
        margin: 32px 16px;
    }
}
</content>
</invoke>