/* SmackTrack Web — Shared Design System */
/* Matches the app's sage green editorial palette */

:root {
    --sage: #4A6741;
    --sage-dark: #3A5233;
    --sage-light: #6B8C61;
    --sage-tint: #E8EFE6;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-tertiary: #888;
    --border: #ddd;
    --bg: #FAFBF9;
    --card-bg: #fff;
    --card-border: #E2E5E0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: var(--text-primary);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
.nav {
    background: var(--sage);
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-brand {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; border-bottom: 2px solid #fff; padding-bottom: 2px; }

/* ── Main container ── */
.container {
    max-width: 740px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* ── Hero (landing page) ── */
.hero {
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    max-width: 740px;
    margin: 0 auto;
}
.hero-icon {
    width: 80px;
    height: 80px;
    background: var(--sage);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--sage);
    letter-spacing: -1px;
    margin-bottom: 0.25rem;
}
.hero .subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.hero .tagline {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

/* ── Feature cards ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 740px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--sage-light); }
.feature-card .icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sage);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── CTA / badges ── */
.cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 740px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
}
.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.cta-badge:hover { opacity: 0.85; }
.cta-primary { background: var(--sage); color: #fff; }
.cta-outline { background: transparent; color: var(--sage); border: 1.5px solid var(--sage); }

/* ── Page header (non-landing) ── */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.page-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--sage);
    margin-bottom: 0.15rem;
}
.page-header .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}
.page-header .updated {
    color: var(--text-tertiary);
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

/* ── Content sections ── */
h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
}
p { margin-bottom: 1rem; color: var(--text-secondary); }
ul { padding-left: 1.25rem; margin-bottom: 1rem; }
li { margin-bottom: 0.5rem; color: var(--text-secondary); font-size: 0.95rem; }
li strong { color: var(--text-primary); }
a { color: var(--sage); }
a:hover { color: var(--sage-dark); }

/* ── Step cards (data deletion) ── */
.step-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.step-num {
    background: var(--sage);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.step-content { flex: 1; }
.step-content p { margin-bottom: 0.5rem; }
.step-content ul { margin-top: 0.5rem; }

/* ── Footer ── */
.footer {
    max-width: 740px;
    margin: 3rem auto 0;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.82rem;
}
.footer a { color: var(--text-tertiary); margin: 0 0.5rem; }
.footer a:hover { color: var(--sage); }

/* ── Responsive ── */
@media (max-width: 600px) {
    .hero h1 { font-size: 2.2rem; }
    .hero .tagline { font-size: 1.1rem; }
    .features-grid { grid-template-columns: 1fr; }
    .nav { padding: 0.75rem 1rem; }
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.8rem; }
    .container { padding: 1.5rem 1rem 3rem; }
}
