/* FixMyEbikeNow.com — design system
   Light theme, electric-green accent, Inter + JetBrains Mono.
   Matt-model portfolio stack. */

:root {
    --bg: #fafafa;
    --bg-card: #ffffff;
    --bg-muted: #f3f4f6;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --text: #111827;
    --text-muted: #4b5563;
    --text-subtle: #6b7280;
    --accent: #0ea46b;          /* electric green — battery-level active */
    --accent-dark: #087f53;
    --accent-soft: #e6f7ee;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgba(0,0,0,.04), 0 2px 4px rgba(0,0,0,.03);
    --max-width: 1100px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; color: var(--accent-dark); }

.skip {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent); color: white;
    padding: 8px 16px; font-weight: 600;
    z-index: 1000;
}
.skip:focus { left: 10px; top: 10px; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250,250,250,.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; gap: 16px; flex-wrap: wrap;
}
.brand {
    font-weight: 800; font-size: 1.25rem; letter-spacing: -0.5px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
}
.brand:hover { text-decoration: none; }
.brand-first { color: var(--text); }
.brand-layer { color: var(--text-muted); }
.brand-fix { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.search-btn {
    background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    padding: 6px 14px; font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
    cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.search-btn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 720px) { .search-btn-label { display: none; } }

.search-modal {
    width: 90%; max-width: 720px; margin: 10vh auto; padding: 24px; border: 0;
    border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.3);
    background: var(--bg-card);
}
.search-modal::backdrop { background: rgba(0,0,0,.5); backdrop-filter: blur(4px); }
.search-close {
    position: absolute; top: 12px; right: 14px; background: none; border: 0;
    font-size: 1.3rem; cursor: pointer; color: var(--text-muted); padding: 6px;
}
.search-close:hover { color: var(--accent); }

.site-nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.site-nav a {
    color: var(--text-muted); font-weight: 600; font-size: 0.92rem;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

.hamburger {
    display: none; background: none; border: 0;
    font-size: 1.4rem; cursor: pointer; padding: 6px 10px;
    color: var(--text);
}

@media (max-width: 720px) {
    .hamburger { display: inline-flex; }
    .site-nav {
        width: 100%; flex-direction: column; align-items: stretch;
        display: none; padding: 12px 0;
    }
    .site-header[data-open="true"] .site-nav { display: flex; }
    .site-nav a { padding: 10px 12px; border-radius: var(--radius-sm); }
    .site-nav a:hover { background: var(--bg-muted); }
}

/* MAIN */
main {
    padding: 40px 0;
    min-height: 60vh;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    font-weight: 700;
    line-height: 1.25;
}
h1 { font-size: 2.1rem; margin-bottom: 20px; letter-spacing: -0.5px; }
h2 { font-size: 1.5rem; margin: 36px 0 14px; letter-spacing: -0.3px; }
h3 { font-size: 1.15rem; margin: 24px 0 10px; }
h4 { font-size: 1rem; margin: 18px 0 8px; }

p { margin-bottom: 14px; }
ul, ol { margin: 10px 0 14px 22px; }
li { padding: 4px 0; }

strong { color: var(--text); font-weight: 700; }
em { color: var(--text-muted); }

code {
    background: var(--bg-muted);
    padding: 1px 6px; border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88em; color: var(--accent-dark);
}

/* HERO IMAGE */
.article-hero { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); background: var(--bg-muted); height: 320px; }
.article-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 600px) {
    .article-hero { height: 200px; border-radius: var(--radius-sm); }
}

/* ARTICLE */
article .meta {
    display: flex; gap: 14px; flex-wrap: wrap;
    color: var(--text-subtle); font-size: 0.88rem;
    margin-bottom: 16px; font-family: 'JetBrains Mono', monospace;
}

.disclosure-inline {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    padding: 10px 14px;
    font-size: 0.88rem; color: var(--text-muted);
    margin: 16px 0 24px; border-radius: var(--radius-sm);
}

/* CARDS */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}
.card.warning { border-left: 4px solid var(--warning); }
.card.success { border-left: 4px solid var(--success); }
.card.accent  { border-left: 4px solid var(--accent); }

/* QUICK PICKS TABLE */
.picks-table {
    width: 100%; border-collapse: collapse;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; margin: 20px 0;
}
.picks-table th {
    background: var(--bg-muted); text-align: left;
    padding: 12px 16px; font-weight: 700; font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}
.picks-table td {
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    font-size: 0.95rem; vertical-align: top;
}
.picks-table tr:last-child td { border-bottom: 0; }
.picks-table td:first-child { font-weight: 600; }

/* PRODUCT GRID */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px; margin: 20px 0;
}
.product-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 20px;
    display: flex; flex-direction: column; gap: 8px;
    box-shadow: var(--shadow);
}
.product-card .rank {
    display: inline-block; background: var(--accent);
    color: white; padding: 2px 10px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; font-family: 'JetBrains Mono', monospace;
    width: fit-content;
}
.product-card .kicker {
    color: var(--text-subtle); font-size: 0.82rem;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}
.product-card .model { font-size: 1.05rem; font-weight: 700; margin: 4px 0; }
.product-card .bestfor { color: var(--text-muted); font-size: 0.92rem; }
.product-card ul { margin: 4px 0 4px 20px; }
.product-card li { font-size: 0.9rem; }
.product-card .cta { margin-top: auto; padding-top: 12px; }

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 10px 18px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem;
    text-decoration: none; transition: all 0.15s ease;
    font-family: 'Inter', sans-serif; cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--accent); color: white;
}
.btn-primary:hover { background: var(--accent-dark); color: white; text-decoration: none; }
.btn-secondary {
    background: var(--bg-card); color: var(--text);
    border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-muted); text-decoration: none; }

/* GRID 2-COL (Buy this if / Skip this if) */
.grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    margin: 20px 0;
}
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

/* FAQ */
.faq details {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); margin-bottom: 8px;
    padding: 14px 18px;
}
.faq summary {
    cursor: pointer; font-weight: 600; font-size: 1rem;
    color: var(--text);
}
.faq details[open] summary { margin-bottom: 10px; }
.faq p { font-size: 0.95rem; color: var(--text-muted); margin: 0; }

/* HOMEPAGE HUB */
.hero {
    padding: 40px 0 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}
.hero h1 { font-size: 2.6rem; }
.hero p.lead {
    font-size: 1.15rem; color: var(--text-muted);
    max-width: 680px; margin-bottom: 24px;
}

.hub-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px; margin: 24px 0;
}
.hub-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 22px;
    text-decoration: none; color: var(--text);
    transition: all 0.15s ease;
    display: block;
    box-shadow: var(--shadow);
}
.hub-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    text-decoration: none; color: var(--text);
}
.hub-card h3 { margin: 0 0 8px 0; color: var(--text); font-size: 1.1rem; }
.hub-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* PIN LANDER (minimal) */
.pin-lander {
    max-width: 680px; margin: 60px auto; padding: 30px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); text-align: center;
    box-shadow: var(--shadow);
}
.pin-lander h1 { font-size: 1.8rem; }

/* FOOTER */
.site-footer {
    background: var(--bg-muted);
    border-top: 1px solid var(--border);
    padding: 32px 0;
    margin-top: 60px;
    color: var(--text-muted); font-size: 0.88rem;
}
.site-footer .disclosure {
    padding: 12px 16px; background: var(--accent-soft);
    border-radius: var(--radius-sm); margin-bottom: 16px;
    border-left: 3px solid var(--accent);
}
.site-footer .footer-nav, .site-footer .footer-legal {
    margin: 8px 0;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }
.copyright { margin-top: 12px; color: var(--text-subtle); font-size: 0.82rem; }
