/* ══════════════════════════════════════════════════════
   FindingTech — Editorial Magazine Style
   Serif headings, horizontal cards, dark nav, amber accent
   ══════════════════════════════════════════════════════ */

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

:root {
    --accent: #e67e22;
    --accent-dark: #d35400;
    --accent-light: #fef5eb;
    --accent-50: #fff8f0;
    --green: #27ae60;
    --green-light: #eafaf1;
    --bg: #ffffff;
    --bg-subtle: #fafafa;
    --bg-muted: #f4f4f5;
    --border: #e5e5e5;
    --border-light: #f0f0f0;
    --text: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #888;
    --text-light: #aaa;
    --radius: 6px;
    --transition: 160ms ease;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1060px; margin: 0 auto; padding: 0 28px; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

/* ── Dark Navbar ──────────────────────────────────────── */
.navbar {
    background: var(--text);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    font-style: italic;
}
.logo:hover { color: #fff; }
.logo-mark {
    background: var(--accent);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    font-style: normal;
    font-family: var(--font-body);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}
.nav-links a {
    color: rgba(255,255,255,.6);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 16px;
    transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* ── Hero — Editorial intro, no big banner ────────────── */
.hero {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--border);
}
.hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 16px;
    max-width: 580px;
}
.hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.75;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
}
.btn-primary {
    background: var(--text);
    color: #fff;
    padding: 11px 26px;
    border-radius: var(--radius);
}
.btn-primary:hover { background: #333; color: #fff; }
.btn-ghost {
    background: transparent;
    color: var(--accent);
    padding: 11px 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.btn-ghost:hover { color: var(--accent-dark); }
.btn-outline-sm {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 7px 16px;
    font-size: 0.82rem;
    border-radius: var(--radius);
}
.btn-outline-sm:hover { border-color: var(--text); color: var(--text); }
.btn-cta {
    background: var(--accent);
    color: #fff;
    padding: 10px 22px;
    font-size: 0.85rem;
    border-radius: var(--radius);
    font-weight: 600;
    white-space: nowrap;
}
.btn-cta:hover { background: var(--accent-dark); color: #fff; }

/* ── Sections ─────────────────────────────────────────── */
.section { padding: 52px 0; }
.section-alt { background: var(--bg-subtle); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

/* ── Featured Card — Large horizontal ─────────────────── */
.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.featured-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.featured-img {
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    overflow: hidden;
}
.featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.featured-card:hover .featured-img img { transform: scale(1.02); }
.featured-icon { font-size: 4.5rem; }
.featured-body { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-body .label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
}
.featured-body h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 14px;
}
.featured-body p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

/* ── Article Cards — HORIZONTAL layout (key difference) ── */
.card-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.card {
    display: grid;
    grid-template-columns: 240px 1fr;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border-color: #ccc;
}
.card-img {
    height: auto;
    min-height: 180px;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; }
.card-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    display: inline-block;
}
.card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.35;
}
.card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Byline & Avatar ──────────────────────────────────── */
.byline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.72rem;
    flex-shrink: 0;
}
.avatar-sm { width: 24px; height: 24px; font-size: 0.58rem; }

/* ── Category Cards — Pill/tag style ──────────────────── */
.cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.cat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 12px 24px 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all var(--transition);
    white-space: nowrap;
}
.cat-card:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}
.cat-icon { font-size: 1.4rem; flex-shrink: 0; }
.cat-card h3 { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.cat-card p { font-size: 0.75rem; color: var(--text-muted); margin-top: 0; display: none; }

/* ── Compare Cards — Clean list style ─────────────────── */
.compare-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.compare-grid-full { gap: 16px; }
.compare-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    gap: 20px;
    transition: all var(--transition);
    align-items: center;
}
.compare-card:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.compare-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--bg-muted);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.compare-body { flex: 1; }
.compare-body h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 2px 0 10px;
    line-height: 1.3;
}
.compare-result {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.compare-winner {
    background: var(--green-light);
    color: var(--green);
    font-size: 0.73rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
}
.compare-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}
.compare-date {
    font-size: 0.73rem;
    color: var(--text-light);
    margin-top: 6px;
}

/* ── Compare Table ────────────────────────────────────── */
.compare-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.compare-table th {
    background: var(--bg-muted);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.compare-table td {
    padding: 14px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-best td { background: var(--accent-50); }
.compare-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.compare-price-cell {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}
.compare-note { font-size: 0.82rem; color: var(--text-muted); }
.compare-verdict {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-top: 24px;
}
.compare-verdict h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.compare-verdict p { color: var(--text-secondary); line-height: 1.8; font-size: 0.93rem; margin: 0; }

/* ── CTA Block ────────────────────────────────────────── */
.cta-block {
    border-top: 2px solid var(--text);
    padding: 40px 0 0;
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}
.cta-block h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.cta-block p { color: var(--text-secondary); line-height: 1.8; font-size: 0.95rem; }

/* ── Page Header — Minimal editorial ──────────────────── */
.page-header {
    border-bottom: 1px solid var(--border);
    padding: 48px 0 40px;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}
.page-header p { color: var(--text-secondary); margin-top: 8px; font-size: 1rem; }
.breadcrumb { font-size: 0.78rem; color: var(--text-light); margin-bottom: 8px; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent); }

/* ── Article Content ──────────────────────────────────── */
.article-hero {
    border-bottom: 1px solid var(--border);
    padding: 52px 0 44px;
}
.article-hero-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-top: 28px;
}
.article-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    max-width: 680px;
}
.article-meta {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.article-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}
.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 48px 0 16px;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 32px 0 12px;
}
.article-content p {
    margin-bottom: 18px;
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1rem;
}
.article-content ul, .article-content ol {
    margin: 0 0 18px 24px;
    color: var(--text-secondary);
    line-height: 1.85;
}
.article-content li { margin-bottom: 8px; }
.article-content a { text-decoration: underline; text-underline-offset: 3px; }

.article-tip {
    background: var(--accent-50);
    border-left: 3px solid var(--accent);
    padding: 20px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 28px 0;
    font-size: 0.93rem;
    line-height: 1.75;
    color: var(--text-secondary);
}
.article-tip strong { color: var(--accent-dark); }

.product-pick {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 20px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    transition: all var(--transition);
}
.product-pick:hover { border-color: var(--accent); }
.product-pick-info h4 {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.product-pick-info p {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ── Newsletter ───────────────────────────────────────── */
.newsletter-block {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    margin: 48px 0 0;
}
.newsletter-block h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.newsletter-block p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 380px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
    padding: 10px 18px;
    background: var(--text);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background var(--transition);
}
.newsletter-form button:hover { background: #333; }

/* ── Disclaimer ───────────────────────────────────────── */
.disclaimer {
    border-top: 1px solid var(--border);
    padding: 16px 0 0;
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-top: 40px;
}

/* ── Footer — Simple dark ─────────────────────────────── */
.footer {
    background: var(--text);
    color: rgba(255,255,255,.5);
    padding: 48px 0 0;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}
.footer h4 { color: #fff; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; }
.footer p { font-size: 0.84rem; line-height: 1.7; }
.footer-disclaimer { margin-top: 14px; font-size: 0.75rem; opacity: .6; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: rgba(255,255,255,.5); font-size: 0.84rem; transition: color var(--transition); }
.footer ul a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 36px;
    padding: 16px 0;
    text-align: center;
}
.footer-bottom p { font-size: 0.75rem; opacity: .4; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--text);
        flex-direction: column;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }
    .nav-inner.open .nav-links { display: flex; }

    .hero { padding: 44px 0 36px; }
    .hero h1 { font-size: 2rem; }

    .section { padding: 36px 0; }
    .section-title { font-size: 1.3rem; }

    .featured-card { grid-template-columns: 1fr; }
    .featured-img { min-height: 200px; }
    .featured-body { padding: 28px; }
    .featured-body h2 { font-size: 1.25rem; }

    .card { grid-template-columns: 1fr; }
    .card-img { min-height: 180px; }

    .cat-grid { gap: 8px; }
    .cat-card { padding: 10px 18px 10px 14px; }
    .cat-icon { font-size: 1.2rem; }

    .compare-grid { gap: 10px; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

    .article-hero h1 { font-size: 1.6rem; }
    .article-content { padding: 28px 20px 48px; }

    .product-pick { flex-direction: column; align-items: flex-start; }

    .cta-block { text-align: center; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
}
