/* PumpFuse marketing + support site — shared styles.
   Matches the look & feel of the /pfs documentation set. */

:root {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #F44336;
    --amazon: #FF9900;
    --amazon-dark: #e88a00;
    --text-color: #333;
    --muted: #666;
    --bg-color: #fff;
    --bg-alt: #f7f9fc;
    --code-bg: #f5f5f5;
    --border-color: #e0e0e0;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

/* ---------- Site header ---------- */
.site-header {
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}
.brand-logo { height: 26px; width: 26px; display: block; }
.brand:hover { text-decoration: none; }
.site-nav a {
    color: var(--muted);
    margin-left: 20px;
    font-size: 0.95em;
}
.site-nav a:hover { color: var(--primary-color); }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(160deg, #e8f2fe 0%, #f7f9fc 100%);
    padding: 60px 0 50px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.hero h1 {
    font-size: 2.4em;
    color: #1a2b3c;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.hero p { font-size: 1.15em; color: var(--muted); max-width: 640px; margin: 0 auto 8px; }
.hero .sub { font-size: 0.95em; color: #888; }

/* ---------- Section headings ---------- */
h2.section-title {
    font-size: 1.6em;
    color: #1a2b3c;
    margin: 50px 0 6px;
    text-align: center;
}
.section-lead { text-align: center; color: var(--muted); margin-bottom: 28px; }

/* ---------- Product grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 30px 0 20px;
}
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.15);
    transform: translateY(-3px);
}
.product-card .thumb {
    background: #fff;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.product-card .thumb a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.product-card .thumb img { max-width: 100%; max-height: 160px; object-fit: contain; transition: transform 0.2s; }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 1.12em; margin-bottom: 6px; color: #1a2b3c; }
.product-card h3 a { color: inherit; }
.product-card .cat { font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.04em; color: #9aa5b1; margin-bottom: 8px; }
.product-card p { font-size: 0.92em; color: var(--muted); margin-bottom: 14px; flex: 1; }
.product-card .card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    margin-bottom: 10px;
}
.badge-app { background: #e3f2fd; color: var(--primary-dark); }
.badge-noapp { background: #e8f5e9; color: #2e7d32; }
.badge-local { background: #fff3e0; color: #ef6c00; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.92em;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-amazon { background: var(--amazon); color: #1a1a1a; }
.btn-amazon:hover { background: var(--amazon-dark); }
.btn-outline { background: #fff; color: var(--primary-color); border-color: var(--border-color); }
.btn-outline:hover { border-color: var(--primary-color); }
.btn-lg { padding: 13px 26px; font-size: 1em; }
.btn-block { display: block; width: 100%; }

/* ---------- Product page layout ---------- */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px 0;
}
.product-hero .gallery {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}
.product-hero .gallery img { max-width: 100%; max-height: 340px; object-fit: contain; transition: transform 0.2s; }
.product-hero .gallery a:hover img { transform: scale(1.03); }
.product-hero h1 { font-size: 1.9em; color: #1a2b3c; margin-bottom: 10px; line-height: 1.25; }
.product-hero .tagline { font-size: 1.1em; color: var(--muted); margin-bottom: 18px; }
.platform-tag { font-size: 0.82em; text-transform: uppercase; letter-spacing: 0.05em; color: #9aa5b1; margin-bottom: 16px; }
.platform-tag strong { color: var(--muted); font-weight: 600; }
.product-hero .buy-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.breadcrumb { font-size: 0.88em; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--muted); }

/* Content sections on product pages */
.section { padding: 34px 0; border-top: 1px solid var(--border-color); }
.section h2 { font-size: 1.4em; color: var(--primary-color); margin-bottom: 16px; }
.section h3 { font-size: 1.1em; color: #444; margin: 20px 0 10px; }
.section p { margin-bottom: 12px; }
.feature-list { list-style: none; }
.feature-list li { padding-left: 28px; position: relative; margin-bottom: 12px; }
.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success-color);
    font-weight: 700;
}
.feature-list li strong { color: #1a2b3c; }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-color); font-size: 0.95em; }
.spec-table th { width: 40%; color: var(--muted); font-weight: 600; }

/* Callout */
.callout {
    border-left: 4px solid var(--primary-color);
    background: var(--bg-alt);
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    margin: 18px 0;
}
.callout.warn { border-left-color: var(--warning-color); }
.callout.ok { border-left-color: var(--success-color); }

/* FAQ */
.faq details {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.faq summary { font-weight: 600; cursor: pointer; color: #1a2b3c; }
.faq details[open] summary { margin-bottom: 8px; }

/* Support / quick links cards */
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.link-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 18px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.link-card:hover { border-color: var(--primary-color); box-shadow: 0 2px 8px rgba(33,150,243,0.12); }
.link-card h3 { margin: 0 0 4px; font-size: 1.05em; }
.link-card p { margin: 0; font-size: 0.88em; color: var(--muted); }

/* Video */
.video-frame { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-color); }
.video-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-short { position: relative; width: 100%; max-width: 320px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-color); }
.video-short iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Ordered lists inside content sections */
.section ol { padding-left: 22px; margin: 8px 0 12px; }
.section ol li { margin-bottom: 8px; }
.section ol li strong { color: #1a2b3c; }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-alt);
    padding: 30px 0;
    color: var(--muted);
    font-size: 0.9em;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--muted); margin-right: 16px; }
.site-footer a:hover { color: var(--primary-color); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-hero { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
    .product-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8em; }
    .site-nav a { margin-left: 12px; }
    .site-header .wrap { height: 54px; }
}
