/* Price Match Paradise — shared blog styles (matches the landing page palette) */
:root {
    --ink: #0f172a;
    --muted: #526071;
    --line: #dbe4ef;
    --panel: #ffffff;
    --soft: #f7fafc;
    --brand: #0ea5e9;
    --brand-dark: #0369a1;
    --accent: #22c55e;
    --warn: #f59e0b;
    --night: #07111f;
    --night-2: #0d1b2e;
    --grad: linear-gradient(135deg, #0ea5e9, #22c55e);
}

* { margin: 0; padding: 0; box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--soft); color: var(--ink); line-height: 1.7; overflow-x: hidden; }
a { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* ── NAV ─────────────────────────────────────── */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px clamp(16px, 4vw, 40px);
    background: rgba(7,17,31,.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 4px 14px rgba(14,165,233,.35); }
.nav-name { color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -.2px; }
.nav-name b { color: #67e8f9; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: #cbd5e1; font-size: .92rem; font-weight: 600; text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: #fff; }
.nav-cta {
    background: var(--grad); color: #fff !important; padding: 9px 18px; border-radius: 999px;
    font-weight: 800 !important; box-shadow: 0 6px 18px rgba(14,165,233,.4);
}
.nav-cta, .nav-name { white-space: nowrap; }
@media (max-width: 720px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .nav-name { font-size: .95rem; }
    .nav-cta { padding: 8px 14px; font-size: .86rem !important; }
}
@media (max-width: 380px) { .nav-name b { display: none; } }

/* Reading progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 40; }

/* ── HEADER ──────────────────────────────────── */
.blog-hero {
    background:
        radial-gradient(circle at top center, rgba(14,165,233,.32), transparent 45%),
        linear-gradient(180deg, var(--night), var(--night-2));
    color: #fff;
    padding: 118px 0 56px;
}
.crumbs { font-size: .85rem; color: #94a3b8; margin-bottom: 18px; }
.crumbs a { color: #cbd5e1; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 6px; }
.kicker {
    display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: #67e8f9; background: rgba(103,232,249,.1); border: 1px solid rgba(103,232,249,.25);
    padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.blog-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.15; letter-spacing: -.02em; max-width: 820px; }
.blog-hero .dek { color: #cbd5e1; font-size: clamp(1rem, 2vw, 1.18rem); max-width: 720px; margin-top: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: #94a3b8; font-size: .88rem; }
.meta i { color: #67e8f9; margin-right: 6px; }

/* ── ARTICLE LAYOUT ──────────────────────────── */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 48px 0 72px; align-items: start; }
@media (max-width: 1023px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .sidebar { display: none; } }

.prose { font-size: 1.07rem; color: #1e293b; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.25; letter-spacing: -.01em; margin-top: 2.2em; color: var(--ink); }
.prose h3 { font-size: 1.22rem; margin-top: 1.7em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose small, .note { font-size: .9rem; color: var(--muted); }

.answer-box {
    background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--brand);
    border-radius: 14px; padding: 20px 22px; box-shadow: 0 10px 30px rgba(15,23,42,.05);
}
.answer-box .label { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 6px; }

.toc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { font-size: .98rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Tables scroll inside their own box on phones */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 560px; }
/* Two-column and compact tables fit a phone screen without scrolling */
table:not(:has(th:nth-child(3))), .table-wrap.compact table { min-width: 0; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f1f5f9; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.yes { color: #15803d; font-weight: 700; }
.no { color: #b91c1c; font-weight: 700; }
.some { color: #b45309; font-weight: 700; }

.callout { border-radius: 14px; padding: 16px 20px; background: #fffbeb; border: 1px solid #fde68a; }
.callout.tip { background: #ecfdf5; border-color: #a7f3d0; }

.steps { list-style: none; padding: 0 !important; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 4px 52px; }
.steps li + li { margin-top: 14px; }
.steps li::before {
    content: counter(s); position: absolute; left: 0; top: 2px; width: 36px; height: 36px; border-radius: 50%;
    background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center;
}

figure { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
figure img { border-radius: 10px; margin: 0 auto; max-height: 560px; width: auto; }
figcaption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* ── CTAs ────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 22px; border-radius: 999px; font-weight: 800; font-size: 1rem;
    text-decoration: none !important; transition: transform .2s, box-shadow .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff !important; box-shadow: 0 10px 24px rgba(14,165,233,.35); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff !important; border: 1px solid rgba(255,255,255,.25); }
.btn-dark { background: var(--night); color: #fff !important; }

.cta-inline {
    display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center;
    background: linear-gradient(135deg, var(--night), #0b2440); color: #fff;
    border-radius: 18px; padding: 20px 22px; box-shadow: 0 16px 40px rgba(7,17,31,.22);
}
.cta-inline img { width: 64px; height: 64px; border-radius: 16px; }
.cta-inline strong { color: #fff; font-size: 1.08rem; display: block; line-height: 1.3; }
.cta-inline div > span { color: #cbd5e1; font-size: .93rem; line-height: 1.45; display: block; margin-top: 4px; }
@media (max-width: 640px) {
    .cta-inline { grid-template-columns: 52px 1fr; }
    .cta-inline img { width: 52px; height: 52px; }
    .cta-inline .btn { grid-column: 1 / -1; width: 100%; }
}

.cta-final {
    text-align: center; color: #fff; border-radius: 22px; padding: 44px 24px;
    background:
        radial-gradient(circle at top, rgba(14,165,233,.4), transparent 60%),
        linear-gradient(180deg, var(--night), var(--night-2));
}
.cta-final h2 { color: #fff; margin-top: 0 !important; }
.cta-final p { color: #cbd5e1; max-width: 520px; margin: 12px auto 24px; }
.cta-final .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-final .trust { margin-top: 18px; font-size: .86rem; color: #94a3b8; }
.cta-final .trust i { color: var(--accent); margin: 0 4px 0 12px; }

/* Sticky sidebar card (desktop) */
.sidebar { position: sticky; top: 96px; display: grid; gap: 18px; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-align: center; box-shadow: 0 14px 40px rgba(15,23,42,.08); }
.app-card img { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 12px; }
.app-card h3 { font-size: 1.1rem; line-height: 1.3; }
.app-card p { font-size: .92rem; color: var(--muted); margin: 8px 0 16px; line-height: 1.5; }
.app-card ul { list-style: none; text-align: left; font-size: .9rem; margin-bottom: 18px; }
.app-card li { padding: 4px 0; }
.app-card li i { color: var(--accent); margin-right: 8px; }
.app-card .btn { width: 100%; }
.app-card .alt { display: block; margin-top: 10px; font-size: .85rem; color: var(--muted); }
.side-toc { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; font-size: .9rem; }
.side-toc strong { display: block; margin-bottom: 6px; }
.side-toc a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; line-height: 1.4; }
.side-toc a.active, .side-toc a:hover { color: var(--brand-dark); font-weight: 700; }

/* Sticky bottom bar (phones / tablets) */
.sticky-bar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 35;
    display: none; align-items: center; gap: 12px;
    background: rgba(7,17,31,.96); color: #fff; border-radius: 16px; padding: 10px 10px 10px 12px;
    box-shadow: 0 18px 40px rgba(7,17,31,.35); backdrop-filter: blur(10px);
    transform: translateY(140%); transition: transform .35s ease;
}
.sticky-bar.show { transform: none; }
.sticky-bar img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.sticky-bar .txt { flex: 1; min-width: 0; font-size: .86rem; line-height: 1.3; }
.sticky-bar .txt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem; line-height: 1.25; }
@media (max-width: 420px) { .sticky-bar .txt .sub, .sticky-bar img { display: none; } .sticky-bar { padding-left: 16px; } }
.sticky-bar .btn { padding: 10px 16px; font-size: .9rem; }
.sticky-bar .x { background: none; border: 0; color: #94a3b8; font-size: 1.1rem; padding: 6px; cursor: pointer; }
@media (max-width: 1023px) { .sticky-bar { display: flex; } body.has-sticky { padding-bottom: 84px; } }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.faq details + details { margin-top: 10px; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--ink); }
.faq details p { margin-top: 10px; }

/* Author */
.author { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 24px; }
.author img { width: 52px; height: 52px; border-radius: 14px; }
.author p { font-size: .92rem; color: var(--muted); line-height: 1.5; }

/* ── BLOG INDEX ──────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; padding: 48px 0 24px; }
.post-card {
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px;
    text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px;
    transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,.1); }
.post-card .tag { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); }
.post-card h2 { font-size: 1.25rem; line-height: 1.3; }
.post-card p { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.post-card .more { margin-top: auto; font-weight: 700; color: var(--brand-dark); font-size: .92rem; }
.post-card.featured { grid-column: 1 / -1; background: linear-gradient(135deg, #fff, #eff9ff); border-color: #bae6fd; }
.post-card.featured h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.topics { display: flex; flex-wrap: wrap; gap: 10px; }
.topics span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; color: var(--muted); }
.section-title { font-size: 1.4rem; margin: 24px 0 14px; }

/* ── FOOTER ──────────────────────────────────── */
footer { background: var(--night); color: #94a3b8; padding: 40px 0; font-size: .9rem; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
footer a { color: #cbd5e1; text-decoration: none; margin-right: 18px; }
footer a:hover { color: #fff; }

/* Related posts */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.related a {
    display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; padding: 16px 18px; text-decoration: none !important; color: var(--ink);
    transition: transform .2s, box-shadow .2s;
}
.related a:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,.08); }
.related .tag { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); }
.related strong { font-size: 1rem; line-height: 1.35; }
.sources { font-size: .88rem; color: var(--muted); }
.sources a { color: var(--muted); }
.section-title + .post-grid { padding-top: 8px; }
main > .section-title:first-child { margin-top: 44px; }
@media (max-width: 480px) {
    th, td { padding: 10px 10px; }
    .table-wrap.compact td:last-child { overflow-wrap: anywhere; }
}
