/* Foxlister shared design system — used by index + all detail pages */
:root {
    --primary: #ff5f00; --primary-dark: #e24f00; --primary-glow: rgba(255, 95, 0, 0.12);
    --ink: #0f172a; --muted: #64748b; --bg: #ffffff; --bg-soft: #f8fafc;
    --border: #e6e8ec; --green: #059669; --green-soft: rgba(16, 185, 129, 0.12);
    --radius: 16px; --radius-sm: 10px;
    --shadow: 0 24px 48px -28px rgba(2, 6, 23, 0.22); --shadow-sm: 0 8px 20px -12px rgba(2, 6, 23, 0.16);
    --ease: cubic-bezier(0.4, 0, 0.2, 1); --maxw: 1140px; --sp-section: 7rem;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Baloo 2', 'Plus Jakarta Sans', sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--sp-section) 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 0.9rem; }
.head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.head .eyebrow { display: block; }
h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; }
.lead { color: var(--muted); font-size: 1.075rem; margin-top: 1rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; height: 46px; padding: 0 1.4rem; border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: all 0.2s var(--ease); white-space: nowrap; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px var(--primary-glow); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: #cbd5e1; background: var(--bg-soft); }
.btn-block { width: 100%; }

nav { position: fixed; top: 0; width: 100%; z-index: 1000; transition: all 0.25s var(--ease); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
nav.scrolled { background: rgba(255,255,255,0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
nav.scrolled .nav-inner { height: 62px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a { font-size: 0.9rem; font-weight: 600; color: var(--muted); text-decoration: none; transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
/* mobile hamburger menu (button injected by /assets/nav.js) */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; margin-left: 0.25rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s; }
#nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
#nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-menu { display: contents; } /* desktop: transparent wrapper, layout unchanged */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 16px 28px -14px rgba(2,6,23,0.22); padding: 0.5rem 1.5rem 1.4rem; }
    #nav.nav-open .nav-menu { display: flex; }
    .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-links a { padding: 1rem 0; font-size: 1.06rem; border-bottom: 1px solid var(--border); }
    .nav-actions { flex-direction: column; align-items: stretch; gap: 0.7rem; margin-top: 1.1rem; width: 100%; }
    .nav-actions .btn { width: 100%; justify-content: center; height: 50px; font-size: 0.98rem; }
}

.ic { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; background: var(--primary-glow); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.ic svg { width: 19px; height: 19px; }

.pill-tag { display: inline-flex; align-items: center; gap: 0.5rem; height: 32px; padding: 0 0.85rem; border-radius: 100px; background: #fff; border: 1px solid var(--border); font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-bottom: 1.6rem; box-shadow: var(--shadow-sm); }
.pill-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

/* Detail-page hero */
.detail-hero { padding: 11rem 0 4rem; text-align: center; position: relative; overflow: hidden; }
.detail-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 50% 0%, rgba(255,95,0,0.08), transparent 70%); }
.detail-hero h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; }
.detail-hero .grad { background: linear-gradient(120deg, var(--primary), #ffae00); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.detail-hero p { max-width: 600px; margin: 1.3rem auto 2rem; color: var(--muted); font-size: 1.15rem; }
.hero-cta { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.pricetag { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.pricetag b { font-size: 1.6rem; font-weight: 800; } .pricetag span { color: var(--muted); font-size: 0.9rem; }

/* Uniform feature grid (3 equal cards) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.fcard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: all 0.2s var(--ease); }
.fcard:hover { border-color: #d4d8de; box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.fcard .ic { margin-bottom: 1rem; }
.fcard h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.45rem; }
.fcard p { color: var(--muted); font-size: 0.92rem; }

/* Comparison table */
.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.cmp th, .cmp td { padding: 1.1rem 1.25rem; text-align: center; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.cmp thead th { background: var(--bg-soft); font-weight: 700; }
.cmp td:first-child, .cmp th:first-child { text-align: left; font-weight: 600; color: var(--muted); width: 30%; }
.cmp .hi { background: var(--primary-glow); color: var(--primary); font-weight: 800; border-left: 2px solid var(--primary); border-right: 2px solid var(--primary); }
.cmp tr:last-child td { border-bottom: none; }
.cmp .yes { color: var(--green); font-weight: 800; } .cmp .no { color: #cbd5e1; font-weight: 800; }

/* CTA band */
.cta-band { text-align: center; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 3rem 2rem; }
.cta-band h2 { margin-bottom: 0.75rem; } .cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 1.75rem; }

footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.foot-brand p { color: var(--muted); max-width: 300px; margin: 1rem 0; font-size: 0.95rem; }
.foot-col h5 { font-size: 0.95rem; font-weight: 700; margin-bottom: 1.1rem; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; font-size: 0.9rem; margin-bottom: 0.7rem; transition: color 0.2s var(--ease); }
.foot-col a:hover { color: var(--primary); }
.foot-bottom { text-align: center; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 2rem; }
.contact-email { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.contact-email svg { width: 19px; height: 19px; }

@media (max-width: 900px) {
    :root { --sp-section: 5rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ---------- Detail-page building blocks ---------- */
.split-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-detail + .split-detail { margin-top: 4.5rem; }
.split-detail.flip .sd-media { order: -1; }
.split-detail h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.85rem; }
.split-detail > div > p { color: var(--muted); font-size: 1.02rem; }
.sd-media .panel { box-shadow: var(--shadow); }

/* Overlapping photo collage */
.photo-stack { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.photo-stack img { position: absolute; border-radius: 14px; border: 5px solid #fff; box-shadow: 0 26px 50px -18px rgba(2,6,23,0.4); object-fit: cover; }
.photo-stack .ph-back { width: 80%; height: 66%; top: 0; left: 0; }
.photo-stack .ph-front { width: 58%; height: 60%; bottom: 0; right: 0; }
@media (max-width: 560px) { .photo-stack img { border-width: 4px; } }

.checklist { list-style: none; display: grid; gap: 0.8rem; margin-top: 1.5rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.96rem; }
.checklist .ck { width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 800; margin-top: 2px; }
.checklist .ck svg { width: 13px; height: 13px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: all 0.2s var(--ease); }
.step:hover { border-color: #d4d8de; box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.step .n { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p { font-size: 0.88rem; color: var(--muted); }

.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 2.5rem; }
.spec { border-top: 2px solid var(--primary); padding-top: 1rem; }
.spec b { display: block; font-size: 1.5rem; font-weight: 800; }
.spec span { font-size: 0.88rem; color: var(--muted); }

.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 1rem; background: #fff; }
.faq-item h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.45rem; }
.faq-item p { color: var(--muted); font-size: 0.93rem; }

.priceboard { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.priceboard .pb { display: flex; justify-content: space-between; align-items: baseline; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.25rem; background: #fff; }
.priceboard .pb b { font-size: 1.1rem; font-weight: 800; }
.priceboard .pb span { color: var(--muted); font-size: 0.9rem; }

/* Calculator (shared) */
.calc { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.calc-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.calc-head h3 { font-size: 1.15rem; font-weight: 800; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: 0.76rem; font-weight: 700; margin-bottom: 0.35rem; }
.field input, .field select { width: 100%; height: 42px; padding: 0 0.7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.92rem; color: var(--ink); background: #fff; transition: all 0.2s var(--ease); }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.calc-out { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.calc-line { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.5rem; }
.calc-line span:last-child { color: var(--ink); font-weight: 700; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.85rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.calc-total .l { font-weight: 800; }
.calc-total .a { font-size: 1.9rem; font-weight: 800; color: var(--primary); }
.calc-total .a small { font-size: 0.8rem; color: var(--muted); font-weight: 600; }

.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.panel-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 1.1rem; }
.rowcard { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 0.95rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; min-height: 58px; }
.rowcard + .rowcard { margin-top: 0.6rem; }
.logo-box { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-box img { height: 20px; max-width: 26px; object-fit: contain; }
.r-name { font-weight: 700; font-size: 0.92rem; }
.r-meta { font-size: 0.78rem; color: var(--muted); }
.pill { margin-left: auto; font-size: 0.7rem; font-weight: 700; padding: 0.28rem 0.65rem; border-radius: 100px; }
.pill.live { background: var(--green-soft); color: var(--green); }

@media (max-width: 900px) {
    .split-detail { grid-template-columns: 1fr; gap: 2.5rem; }
    .split-detail.flip .sd-media { order: 0; }
    .steps { grid-template-columns: 1fr 1fr; }
    .specs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .calc-grid { grid-template-columns: 1fr; }
    .steps, .priceboard, .specs { grid-template-columns: 1fr; }
}
