/* ── Blackout-Check Industrie — Shared Design System ── */

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

:root {
    --bg:           #09090B;
    --surface:      #18181B;
    --surface-2:    #27272A;
    --border:       #3F3F46;
    --text:         #FAFAFA;
    --muted:        #A1A1AA;
    --orange:       #F97316;
    --orange-dark:  #C2610C;
    --red:          #EF4444;
    --yellow:       #EAB308;
    --green:        #22C55E;
    --indigo:       #6366F1;
    --r:            12px;
    --r-sm:         8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

/* ── BUTTONS ─────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    font-weight: 700;
    border: none;
    border-radius: var(--r);
    cursor: pointer;
    transition: background .18s, transform .18s, box-shadow .18s;
    text-decoration: none;
}
.btn-outline {
    font-size: .97rem;
    padding: 13px 26px;
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); text-decoration: none; }

/* ── FAQ ACCORDION ───────────────────────── */
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 0;
    cursor: pointer;
    font-size: .97rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
    user-select: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}
.faq-q:hover { color: var(--orange); }

.faq-icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--orange);
    flex-shrink: 0;
    transition: transform .25s ease;
    line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height .38s ease; }
.faq-item.open .faq-a { max-height: 500px; }

.faq-a-inner {
    padding-bottom: 1.3rem;
    color: var(--muted);
    font-size: .93rem;
    line-height: 1.75;
}

.faq-h3 { margin: 0; font-size: inherit; font-weight: inherit; }

/* ── FAQ TABS ────────────────────────────── */
.faq-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1.75rem;
}
.faq-tab {
    padding: .4rem .9rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: color .15s, border-color .15s, background .15s;
    font-family: 'Inter', -apple-system, sans-serif;
    white-space: nowrap;
}
.faq-tab:hover { border-color: var(--orange); color: var(--orange); }
.faq-tab.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.faq-panel { display: none; }
.faq-panel.active { display: block; }

/* ── BREADCRUMB ──────────────────────────── */
.breadcrumb-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: .55rem 0;
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: .35rem;
    list-style: none;
    font-size: .76rem;
    color: var(--muted);
    flex-wrap: wrap;
}
.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: .35rem;
    color: var(--border);
}
.breadcrumb-list a { color: var(--muted); }
.breadcrumb-list a:hover { color: var(--orange); text-decoration: none; }
.breadcrumb-list li:last-child { color: var(--text); }

/* ── TOC ─────────────────────────────────── */
.toc-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.5rem 1.75rem;
    margin: 2.5rem 0 0;
    max-width: 740px;
}
.toc-box-heading {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 1rem;
}
.toc-box ol { padding-left: 1.2rem; margin: 0; }
.toc-box li {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.6;
    margin-bottom: .45rem;
}
.toc-box li a { color: var(--orange); }
.toc-box li a:hover { text-decoration: underline; }

/* ── PAGE WRAP (shared) ──────────────────── */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ── SITE HEADER (shared) ───────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(9,9,11,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header .page-wrap {
    display: flex; align-items: center; position: relative;
    padding-top: .75rem; padding-bottom: .75rem; gap: 1.5rem;
}
.site-brand {
    font-size: .85rem; font-weight: 800; color: var(--text);
    letter-spacing: -.01em; white-space: nowrap; flex-shrink: 0;
}
.site-brand:hover { color: var(--orange); text-decoration: none; }
.brand-dot { color: var(--orange); }
.site-nav { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.nav-link {
    font-size: .8rem; font-weight: 600; color: var(--muted);
    padding: .3rem .7rem; border-radius: 6px;
    transition: color .15s, background .15s; white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-link.active { color: var(--orange); background: rgba(249,115,22,.1); }

/* ── HAMBURGER (mobile only) ───────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 9px;
    margin-left: auto; background: none; border: none;
    border-radius: 8px; cursor: pointer; transition: background .15s;
}
.nav-hamburger:hover { background: var(--surface-2); }
.nav-hamburger span {
    display: block; width: 100%; height: 2.5px; border-radius: 2px;
    background: #FAFAFA; transition: transform .25s ease, opacity .2s ease;
}
.site-header.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── DROPDOWN NAV ─────────────────────────── */
.nav-dropdown { position: relative; }
.nav-drop-btn {
    background: none; border: none; cursor: pointer; font-family: inherit;
    display: flex; align-items: center; gap: .35rem;
    font-size: .8rem; font-weight: 600; color: var(--muted);
    padding: .3rem .7rem; border-radius: 6px;
    transition: color .15s, background .15s; white-space: nowrap;
}
.nav-drop-btn:hover { color: var(--text); background: var(--surface-2); }
.nav-drop-btn.active-parent { color: var(--orange); background: rgba(249,115,22,.1); }
.drop-arrow { font-size: .55rem; opacity: .8; display: inline-block; transition: transform .2s ease; }

.drop-menu {
    position: absolute; top: calc(100% + 9px); left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #111113; border: 1px solid var(--border);
    border-radius: 10px; padding: 6px; min-width: 184px;
    display: flex; flex-direction: column; gap: 2px; z-index: 200;
    box-shadow: 0 12px 34px rgba(0,0,0,.55);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.drop-menu::before {  /* invisible hover bridge across the gap */
    content: ''; position: absolute; top: -11px; left: 0; right: 0; height: 13px;
}
.drop-menu::after {   /* caret pointing at the button */
    content: ''; position: absolute; top: -6px; left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 11px; height: 11px; background: #111113;
    border-left: 1px solid var(--border); border-top: 1px solid var(--border);
}
.nav-dropdown.open .drop-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown.open .drop-arrow { transform: rotate(180deg); }

.drop-link {
    font-size: .8rem; font-weight: 600; color: var(--muted);
    padding: .5rem .8rem; border-radius: 7px; text-decoration: none;
    transition: color .12s, background .12s; white-space: nowrap; display: block;
}
.drop-link:hover { color: var(--text); background: rgba(255,255,255,.06); text-decoration: none; }
.drop-link.active { color: var(--orange); background: rgba(249,115,22,.1); }

/* hover-to-open only on real pointer devices at desktop width */
@media (hover: hover) and (min-width: 761px) {
    .nav-dropdown:hover .drop-menu {
        opacity: 1; visibility: visible; pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
    .nav-dropdown:hover .drop-arrow { transform: rotate(180deg); }
}

/* ── MOBILE NAV ───────────────────────────── */
@media (max-width: 760px) {
    .nav-hamburger { display: flex; }
    .site-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        margin-left: 0; padding: 8px;
        background: #0c0c0e;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 40px rgba(0,0,0,.5);
        max-height: 0; overflow: hidden;
        opacity: 0; visibility: hidden;
        transition: max-height .28s ease, opacity .2s ease, visibility .2s, padding .2s ease;
    }
    .site-header.nav-open .site-nav {
        max-height: calc(100vh - 58px); overflow-y: auto;
        opacity: 1; visibility: visible;
    }
    .nav-link, .nav-drop-btn {
        width: 100%; font-size: .95rem; padding: .8rem .9rem;
        border-radius: 8px; justify-content: space-between;
    }
    .nav-dropdown { width: 100%; }
    .drop-menu {
        position: static; transform: none; min-width: 0;
        opacity: 1; visibility: visible; pointer-events: auto;
        display: none; gap: 0; padding: 2px 0 6px .7rem;
        background: transparent; border: none; box-shadow: none;
    }
    .drop-menu::before, .drop-menu::after { display: none; }
    .nav-dropdown.open .drop-menu { display: flex; transform: none; }
    .drop-link { font-size: .9rem; padding: .65rem .9rem; }
}

/* ── SITE FOOTER ──────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0 1.75rem; margin-top: 3rem; }
.sf-top { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.5rem; margin-bottom: 1.1rem; }
.sf-brand { font-size: .78rem; font-weight: 800; color: var(--muted); letter-spacing: -.01em; flex-shrink: 0; }
.sf-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem; margin-left: auto; }
.sf-nav a { font-size: .73rem; color: var(--muted); padding: .2rem .45rem; border-radius: 4px; text-decoration: none; transition: color .15s, background .15s; }
.sf-nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.sf-nav a + a::before { content: '·'; margin-right: .1rem; color: var(--border); }
.sf-disclaimer { font-size: .7rem; color: #52525B; line-height: 1.7; border-top: 1px solid var(--border); padding-top: .85rem; margin: 0; }
@media (max-width: 580px) {
    .sf-top { flex-direction: column; align-items: flex-start; }
    .sf-nav { margin-left: 0; }
}

/* ── CTA BANNER (injected by cta.js) ──────────── */
.cta-banner {
    border-top: 1px solid var(--border);
    background:
        radial-gradient(130% 130% at 100% 0%, rgba(249,115,22,.13), transparent 55%),
        radial-gradient(130% 130% at 0% 100%, rgba(99,102,241,.09), transparent 55%),
        var(--bg);
    padding: 4rem 0;
    scroll-margin-top: 78px;
}
.cta-wrap {
    width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
}
@media (max-width: 840px) { .cta-wrap { grid-template-columns: 1fr; gap: 2rem; } }
.cta-eyebrow {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--orange); background: rgba(249,115,22,.1);
    border: 1px solid rgba(249,115,22,.25); border-radius: 99px; padding: .32rem .8rem;
    margin-bottom: 1.1rem;
}
.cta-title {
    font-size: clamp(1.55rem, 3.2vw, 2.3rem); font-weight: 900; letter-spacing: -.03em;
    line-height: 1.12; margin: 0 0 .85rem;
}
.cta-title .accent { color: var(--orange); }
.cta-lead { font-size: .95rem; color: var(--muted); line-height: 1.7; margin: 0 0 1.5rem; max-width: 520px; }
.cta-benefits { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin: 0; padding: 0; }
.cta-benefits li { display: flex; align-items: flex-start; gap: .55rem; font-size: .88rem; color: var(--text); line-height: 1.5; }
.cta-benefits .cb-check { color: var(--green); font-weight: 800; flex-shrink: 0; }

.cta-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
    padding: 1.75rem; box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.cta-card-title { font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .3rem; }
.cta-card-sub { font-size: .8rem; color: var(--muted); margin-bottom: 1.25rem; }
.cta-form { display: flex; flex-direction: column; gap: .7rem; }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 420px) { .cta-row { grid-template-columns: 1fr; } }
.cta-input {
    width: 100%; box-sizing: border-box; background: var(--bg);
    border: 1px solid var(--border); border-radius: var(--r-sm);
    padding: .72rem .85rem; color: var(--text); font-size: .88rem; font-family: inherit;
    transition: border-color .15s;
}
.cta-input::placeholder { color: #52525B; }
.cta-input:focus { outline: none; border-color: var(--orange); }
.cta-hint { font-size: .72rem; color: #52525B; margin-top: -.15rem; line-height: 1.5; }
.cta-error { font-size: .77rem; color: var(--red); display: none; font-weight: 600; }
.cta-submit {
    margin-top: .3rem; width: 100%; padding: .95rem; border: none; border-radius: var(--r-sm);
    background: var(--orange); color: #fff; font-size: .95rem; font-weight: 800; font-family: inherit;
    cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
}
.cta-submit:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(249,115,22,.4); }
.cta-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.cta-trust { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: 1rem; }
.cta-trust span { font-size: .72rem; color: var(--muted); }
.cta-success { display: none; text-align: center; padding: 1.75rem .5rem; }
.cta-success .cs-emoji { font-size: 2.3rem; display: block; margin-bottom: .55rem; }
.cta-success .cs-title { font-size: 1.15rem; font-weight: 800; margin-bottom: .4rem; letter-spacing: -.02em; }
.cta-success .cs-text { font-size: .85rem; color: var(--muted); line-height: 1.6; max-width: 360px; margin: 0 auto; }

/* ── STICKY CTA BUTTON (injected by cta.js) ───── */
.cta-sticky {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; gap: .5rem;
    writing-mode: vertical-rl;
    background: var(--orange); color: #fff; border: none; cursor: pointer;
    padding: 1.05rem .5rem; border-radius: 12px 0 0 12px;
    font-family: inherit; font-weight: 800; font-size: .8rem; letter-spacing: .03em;
    box-shadow: -6px 0 26px rgba(249,115,22,.42);
    transition: transform .22s ease, opacity .3s ease, visibility .3s, background .15s;
    z-index: 900;
}
.cta-sticky:hover { transform: translateY(-50%) translateX(-4px); background: var(--orange-dark); }
.cta-sticky .cs-ic { writing-mode: horizontal-tb; font-size: 1.05rem; }
.cta-sticky.is-hidden { opacity: 0; visibility: hidden; transform: translateY(-50%) translateX(30px); }
@media (max-width: 560px) {
    .cta-sticky { font-size: .72rem; padding: .85rem .42rem; }
    .cta-sticky .cs-ic { font-size: .92rem; }
}
@media print { .cta-sticky { display: none; } }

/* ── LEAD MAGNET / GATED DOWNLOAD ─────────────── */
.lead-magnet {
    display: grid; grid-template-columns: minmax(0,0.85fr) minmax(0,1.15fr); gap: 1.75rem;
    align-items: start;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
    padding: 1.75rem; margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
@media (max-width: 720px) { .lead-magnet { grid-template-columns: 1fr; gap: 1.25rem; } }
.lm-preview {
    position: relative; border-radius: var(--r-sm); overflow: hidden;
    border: 1px solid var(--border); background: #fff; line-height: 0;
}
.lm-preview img { display: block; width: 100%; height: auto; }
.lm-preview::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 44%;
    background: linear-gradient(to bottom, rgba(24,24,27,0), var(--surface));
    pointer-events: none;
}
.lm-badge {
    position: absolute; top: .6rem; left: .6rem; z-index: 2;
    background: rgba(9,9,11,.82); color: #FAFAFA; font-size: .66rem; font-weight: 700;
    letter-spacing: .03em; padding: .28rem .6rem; border-radius: 99px;
}
.lm-eyebrow { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: .5rem; }
.lm-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .4rem; }
.lm-desc { font-size: .86rem; color: var(--muted); line-height: 1.6; margin: 0 0 1rem; }
.lm-list { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .38rem; }
.lm-list li { font-size: .82rem; color: var(--muted); display: flex; gap: .5rem; line-height: 1.5; }
.lm-list li::before { content: '✓'; color: var(--green); font-weight: 800; flex-shrink: 0; }
.lm-form { display: flex; flex-direction: column; gap: .7rem; }
.lm-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 420px) { .lm-row { grid-template-columns: 1fr; } }
.lm-input {
    width: 100%; box-sizing: border-box; background: var(--bg);
    border: 1px solid var(--border); border-radius: var(--r-sm);
    padding: .72rem .85rem; color: var(--text); font-size: .88rem; font-family: inherit;
    transition: border-color .15s;
}
.lm-input::placeholder { color: #52525B; }
.lm-input:focus { outline: none; border-color: var(--orange); }
.lm-error { font-size: .77rem; color: var(--red); display: none; font-weight: 600; }
.lm-submit {
    margin-top: .2rem; width: 100%; padding: .9rem; border: none; border-radius: var(--r-sm);
    background: var(--orange); color: #fff; font-size: .92rem; font-weight: 800; font-family: inherit;
    cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
}
.lm-submit:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(249,115,22,.4); }
.lm-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.lm-hint { font-size: .72rem; color: #52525B; line-height: 1.5; }
.lm-success { display: none; text-align: center; padding: 1.25rem .5rem; }
.lm-success.show { display: block; }
.lm-success .lm-s-emoji { font-size: 2.1rem; display: block; margin-bottom: .5rem; }
.lm-success .lm-s-title { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .35rem; }
.lm-success .lm-s-text { font-size: .83rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.lm-dl-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--orange); color: #fff; text-decoration: none;
    font-weight: 800; font-size: .9rem; padding: .8rem 1.3rem; border-radius: var(--r-sm);
    transition: background .15s;
}
.lm-dl-btn:hover { background: var(--orange-dark); text-decoration: none; }
@media print { .lead-magnet { display: none; } }
