/* ========================================================================
   SMM Panel Directory — public site
   Onyx / verdigris palette (5 colors) · light + dark themes.
   Theme is controlled by [data-theme="light"|"dark"] on <html>. When
   absent, prefers-color-scheme decides.
   ======================================================================== */

:root {
    /* --- Palette: the ONLY five colors this site may render. ------------ */
    --onyx:       #131515;
    --graphite:   #2b2c28;
    --verdigris:  #339989;
    --pearl-aqua: #7de2d1;
    --snow:       #fffafb;

    /* --- Light-mode semantic tokens (defaults) -------------------------- */
    --bg:        var(--snow);
    --bg-alt:    rgba(125, 226, 209, 0.08);
    --surface:   var(--snow);
    --surface-2: rgba(19, 21, 21, 0.04);

    --border:        rgba(19, 21, 21, 0.12);
    --border-strong: rgba(19, 21, 21, 0.24);

    --ink:       var(--onyx);
    --ink-2:     var(--graphite);
    --ink-soft:  rgba(19, 21, 21, 0.78);
    --ink-muted: rgba(19, 21, 21, 0.6);
    --ink-faint: rgba(19, 21, 21, 0.4);

    --brand:       var(--verdigris);
    --brand-hover: var(--onyx);
    --brand-soft:  rgba(125, 226, 209, 0.14);
    --accent:      var(--pearl-aqua);
    --accent-soft: rgba(125, 226, 209, 0.18);

    --ok:   var(--verdigris);
    --err:  var(--onyx);
    --warn: var(--graphite);

    --on-brand: var(--snow);

    --overlay-soft:   rgba(19, 21, 21, 0.04);
    --overlay-strong: rgba(19, 21, 21, 0.12);

    --gradient:      linear-gradient(135deg, var(--verdigris) 0%, var(--pearl-aqua) 100%);
    --gradient-soft: linear-gradient(135deg, rgba(51, 153, 137, 0.12) 0%, rgba(125, 226, 209, 0.18) 100%);
    --gradient-hero: linear-gradient(180deg, var(--snow) 0%, rgba(125, 226, 209, 0.12) 100%);

    --shadow-xs: 0 1px 2px rgba(19, 21, 21, 0.05);
    --shadow-sm: 0 2px 8px rgba(19, 21, 21, 0.06);
    --shadow:    0 8px 24px rgba(19, 21, 21, 0.12);
    --shadow-lg: 0 24px 48px rgba(51, 153, 137, 0.18);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    color-scheme: light;
}

/* --- Dark theme: both explicit toggle and OS preference ----------------- */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:        var(--onyx);
        --bg-alt:    var(--graphite);
        --surface:   var(--graphite);
        --surface-2: rgba(255, 250, 251, 0.06);

        --border:        rgba(255, 250, 251, 0.14);
        --border-strong: rgba(125, 226, 209, 0.4);

        --ink:       var(--snow);
        --ink-2:     var(--pearl-aqua);
        --ink-soft:  rgba(255, 250, 251, 0.82);
        --ink-muted: rgba(255, 250, 251, 0.65);
        --ink-faint: rgba(255, 250, 251, 0.4);

        --brand:       var(--pearl-aqua);
        --brand-hover: var(--verdigris);
        --brand-soft:  rgba(125, 226, 209, 0.14);
        --accent:      var(--verdigris);
        --accent-soft: rgba(51, 153, 137, 0.22);

        --ok:   var(--pearl-aqua);
        --err:  var(--snow);
        --warn: var(--pearl-aqua);

        --on-brand: var(--onyx);

        --overlay-soft:   rgba(255, 250, 251, 0.05);
        --overlay-strong: rgba(125, 226, 209, 0.14);

        --gradient:      linear-gradient(135deg, var(--verdigris) 0%, var(--pearl-aqua) 100%);
        --gradient-soft: linear-gradient(135deg, rgba(51, 153, 137, 0.24) 0%, rgba(125, 226, 209, 0.12) 100%);
        --gradient-hero: linear-gradient(180deg, var(--onyx) 0%, var(--graphite) 100%);

        --shadow-xs: 0 1px 2px rgba(19, 21, 21, 0.5);
        --shadow-sm: 0 2px 8px rgba(19, 21, 21, 0.55);
        --shadow:    0 8px 24px rgba(19, 21, 21, 0.65);
        --shadow-lg: 0 24px 48px rgba(51, 153, 137, 0.35);

        color-scheme: dark;
    }
}

[data-theme="dark"] {
    --bg:        var(--onyx);
    --bg-alt:    var(--graphite);
    --surface:   var(--graphite);
    --surface-2: rgba(255, 250, 251, 0.06);

    --border:        rgba(255, 250, 251, 0.14);
    --border-strong: rgba(125, 226, 209, 0.4);

    --ink:       var(--snow);
    --ink-2:     var(--pearl-aqua);
    --ink-soft:  rgba(255, 250, 251, 0.82);
    --ink-muted: rgba(255, 250, 251, 0.65);
    --ink-faint: rgba(255, 250, 251, 0.4);

    --brand:       var(--pearl-aqua);
    --brand-hover: var(--verdigris);
    --brand-soft:  rgba(125, 226, 209, 0.14);
    --accent:      var(--verdigris);
    --accent-soft: rgba(51, 153, 137, 0.22);

    --ok:   var(--pearl-aqua);
    --err:  var(--snow);
    --warn: var(--pearl-aqua);

    --on-brand: var(--onyx);

    --overlay-soft:   rgba(255, 250, 251, 0.05);
    --overlay-strong: rgba(125, 226, 209, 0.14);

    --gradient:      linear-gradient(135deg, var(--verdigris) 0%, var(--pearl-aqua) 100%);
    --gradient-soft: linear-gradient(135deg, rgba(51, 153, 137, 0.24) 0%, rgba(125, 226, 209, 0.12) 100%);
    --gradient-hero: linear-gradient(180deg, var(--onyx) 0%, var(--graphite) 100%);

    --shadow-xs: 0 1px 2px rgba(19, 21, 21, 0.5);
    --shadow-sm: 0 2px 8px rgba(19, 21, 21, 0.55);
    --shadow:    0 8px 24px rgba(19, 21, 21, 0.65);
    --shadow-lg: 0 24px 48px rgba(51, 153, 137, 0.35);

    color-scheme: dark;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--brand);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover, a:focus-visible { color: var(--brand-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    position: static;
    padding: 10px 14px;
    background: var(--brand);
    color: var(--on-brand);
    border-radius: 8px;
}

/* --- Theme toggle ------------------------------------------------------ */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 7px 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--ink); background: var(--surface-2); }
.theme-toggle [data-light],
.theme-toggle [data-dark] { display: none; }
:root:not([data-theme="dark"]) .theme-toggle [data-light] { display: inline; }
[data-theme="dark"] .theme-toggle [data-dark] { display: inline; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle [data-dark] { display: inline; }
    :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle [data-light] { display: none; }
}

/* --- Header / nav ------------------------------------------------------- */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 16px;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--ink);
    font-size: 16px;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
    background: var(--gradient);
    color: var(--on-brand);
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--overlay-strong);
}
.brand-text { letter-spacing: -0.01em; }

.primary-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}
.primary-nav a {
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 6px 0;
}
.primary-nav a:hover { color: var(--ink); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--brand); }
.primary-nav a[aria-current="page"]::after {
    content: '';
    position: absolute;
    inset: auto 0 -2px 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    margin-block: 4px;
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        display: none;
        box-shadow: var(--shadow);
    }
    .primary-nav.open { display: block; }
    .primary-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 20px;
    }
    .primary-nav ul li a { display: block; padding: 12px 0; }
}

/* --- Headings & prose --------------------------------------------------- */
main { padding-block: 40px 60px; }

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--brand-soft);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hero h1, .page-head h1 {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    font-weight: 800;
    color: var(--ink);
}
.lede {
    font-size: clamp(17px, 1.3vw, 20px);
    color: var(--ink-soft);
    max-width: 720px;
    margin: 0 0 28px;
    line-height: 1.6;
}

h2 {
    font-size: clamp(24px, 2.6vw, 34px);
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 56px 0 18px;
    line-height: 1.2;
    color: var(--ink);
}
h3 {
    font-size: 19px;
    margin: 0 0 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.page-head { margin-bottom: 40px; }
.breadcrumb {
    font-size: 13px;
    color: var(--ink-muted);
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.breadcrumb span { color: var(--ink-faint); }

.prose p { margin: 0 0 18px; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; color: var(--ink-2); }
.prose code {
    background: var(--brand-soft);
    color: var(--ink);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 0.88em;
    border: 1px solid var(--border);
}
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.ordered {
    padding-left: 22px;
    margin: 18px 0;
}
.ordered li { margin-bottom: 14px; line-height: 1.65; }

/* --- Buttons ----------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
    text-decoration: none !important;
    white-space: nowrap;
}
.btn.primary {
    background: var(--gradient);
    color: var(--on-brand);
    box-shadow: 0 6px 18px var(--overlay-strong);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px var(--overlay-strong); filter: brightness(1.05); }
.btn.ghost {
    border-color: var(--border-strong);
    background: var(--surface);
    color: var(--ink);
}
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }

/* --- Hero -------------------------------------------------------------- */
.hero {
    background: var(--gradient-hero);
    border-bottom: 1px solid var(--border);
    margin: -40px -24px 48px;
    padding: 72px 24px 80px;
    position: relative;
    overflow: hidden;
}
.hero::before,
.hero::after { display: none; } /* no hue-based radial glows in monochrome mode */
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.hero-copy { max-width: 820px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.hero-stats > div { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1;
}
.stat-label {
    font-size: 13px;
    color: var(--ink-muted);
    font-weight: 500;
}
.page-stats {
    display: flex;
    gap: 40px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.page-stats > div { display: flex; flex-direction: column; gap: 4px; }

/* --- Ad row ------------------------------------------------------------ */
/* Three-card layout per slot: 3 × 240 + 2 × 14 px gap ≈ 748 px wide,
   each card a 240×90 cell. The grid pins to 3 equal columns at desktop
   and collapses to a single column on phones. loadAds caps the query at
   3 rows so the layout never overflows; if the operator has fewer than
   3 active ads the lone card sits in column 1 at the same 240×90 size,
   not stretched to fill the row.

   We use an explicit `height: 90px` rather than `aspect-ratio: 8/3`
   because aspect-ratio is overridable when the box's content (e.g. a
   long placeholder label) exceeds 90 px, which made single-card slots
   render as oversized squares with wrapped text. Forcing the height
   plus `overflow: hidden` clips any overflow and keeps the row
   visually predictable. */
.ad-row {
    /* Three banner CELLS that fill the full body container in equal
       thirds, separated by a 14 px gap. The card itself stretches
       1/3 of (container − gaps) wide, so on a 1200 px body each
       card lands at ~390 px, which removes the awkward dead space
       a fixed-320 row left between cards on wide screens.
       The recommended UPLOAD size is still 320×90 (8:3 ratio) —
       the image renders with `object-fit: contain` inside the
       wider cell so a 320×90 creative is centered with letterboxing
       on either side rather than stretched. Operators get to keep
       their existing creatives without re-export. */
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 40px 0;
    width: 100%;
}
.ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 90px;
    background: var(--surface-2);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--ink-soft);
    transition: border-color .15s ease;
}
.ad-slot:hover { border-color: var(--brand); text-decoration: none; }
.ad-slot img {
    /* Cap the image at its authored 320×90 footprint and center it
       inside the wider cell. width: auto + max-width: 320 means a
       smaller upload renders at its native size; max-height: 90
       keeps an oversized upload from blowing out the row height. */
    max-width: 320px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* On narrow viewports the 3-up grid gets uncomfortably tight —
   stack to one column once we drop below ~720 px. */
@media (max-width: 720px) {
    .ad-row { grid-template-columns: 1fr; }
}
.ad-placeholder {
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding: 8px 12px;
    text-align: center;
    /* Hard-clip to 3 lines via -webkit-line-clamp so a long label can't
       push the parent .ad-slot past its fixed 90 px height. Browsers
       without line-clamp still honour the parent's overflow:hidden. */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Pillars ---------------------------------------------------------- */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin: 48px 0;
}
.pillar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-xs);
    transition: transform .2s ease, box-shadow .2s ease;
}
.pillar:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pillar-ic {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--gradient-soft);
    border-radius: 10px;
    margin-bottom: 16px;
    color: var(--ink);
}
.pillar h3 { margin: 0 0 6px; font-size: 16px; }
.pillar p { color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin: 0; }

/* --- Explain / long-form sections ------------------------------------ */
.explain {
    max-width: 820px;
    margin: 56px auto;
}
.explain h2:first-child { margin-top: 0; }

/* --- Platforms grid --------------------------------------------------- */
.platforms-deep { margin: 56px 0; }
.deep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.deep-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.deep-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}
.deep-head {
    display: flex;
    gap: 14px;
    align-items: center;
}
.deep-head h3 { margin: 0; font-size: 18px; }
.deep-head h3 a { color: var(--ink); }
.deep-head h3 a:hover { color: var(--brand); text-decoration: none; }
.deep-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient);
    color: var(--on-brand);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--overlay-strong);
}
.deep-meta {
    font-size: 13px;
    color: var(--ink-muted);
    display: flex;
    gap: 6px;
    margin-top: 2px;
}
.deep-meta .sep { color: var(--ink-faint); }
.deep-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin: 0; flex: 1; }
.deep-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--brand);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.platform-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-xs);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    text-decoration: none !important;
    color: var(--ink);
    display: block;
}
.platform-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--brand);
    color: var(--ink);
}
.platform-head { display: flex; align-items: center; gap: 12px; }
.platform-head h3 { margin: 0; font-size: 16px; }
.platform-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.platform-stats {
    display: flex;
    gap: 16px;
    margin: 14px 0 6px;
    padding: 0;
}
.platform-stats > div { display: flex; flex-direction: column; }
.platform-stats dt {
    font-size: 11px;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.platform-stats dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; color: var(--ink); }

/* --- Tag cloud / chips ------------------------------------------------ */
.tag-cloud { margin: 48px 0; }
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.chip {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
    transition: all .15s ease;
    text-decoration: none;
}
.chip:hover {
    background: var(--gradient);
    border-color: transparent;
    color: var(--on-brand);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--overlay-strong);
}

/* --- Data table ------------------------------------------------------- */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.data-table th, .data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--ink);
}
.data-table thead th {
    background: var(--surface-2);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
    font-weight: 600;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.small { font-size: 12px; }
.muted { color: var(--ink-muted); }

/* --- Pills (monochrome — differentiated by tone + weight) ------------- */
.pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 600;
    margin-right: 4px;
    text-decoration: none;
    border: 1px solid var(--border);
}
.pill:hover { text-decoration: none; }
.pill-ok  { background: var(--surface-2); color: var(--ink);       border-color: var(--border-strong); }
.pill-err { background: var(--ink);       color: var(--on-brand);  border-color: var(--ink); }
.pill-off { background: var(--surface);   color: var(--ink-muted); border-color: var(--border); }

/* --- Provider blur / unlock banner ----------------------------------- */
.blurred {
    filter: blur(7px);
    user-select: none;
    background: var(--gradient-soft);
    padding: 2px 10px;
    border-radius: 6px;
    color: var(--ink-muted);
}
.unlock-banner {
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    color: var(--ink-2);
}
.unlock-banner strong { font-size: 15px; color: var(--ink); }
.unlock-form {
    display: inline-flex;
    gap: 8px;
    margin-left: auto;
}
.unlock-form input {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
}

/* --- Provider pitch block ------------------------------------------- */
.pitch-box {
    background: var(--gradient);
    color: var(--on-brand);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 40px 0;
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: var(--shadow-lg);
}
.pitch-copy { flex: 1 1 340px; }
.pitch-copy h3 { margin: 0 0 10px; font-size: 22px; color: var(--on-brand); }
.pitch-copy p { margin: 0; color: var(--on-brand); opacity: 0.9; font-size: 15px; line-height: 1.55; }
.pitch-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.pitch-box .btn.primary { background: var(--on-brand); color: var(--ink); box-shadow: none; }
.pitch-box .btn.primary:hover { background: var(--surface-2); color: var(--ink); }
.pitch-box .btn.ghost { border-color: var(--on-brand); color: var(--on-brand); background: transparent; }
.pitch-box .btn.ghost:hover { border-color: var(--on-brand); color: var(--on-brand); background: var(--overlay-soft); }

/* --- Audience / persona grid ---------------------------------------- */
.audience { margin: 56px 0; }
.persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.persona {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-xs);
}
.persona h3 { margin: 0 0 8px; font-size: 17px; }
.persona p { color: var(--ink-soft); margin: 0; font-size: 14.5px; line-height: 1.55; }

/* --- Compare provider vs reseller ----------------------------------- */
.compare { margin: 56px 0; }
.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.compare-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-xs);
}
.compare-card h3 { font-size: 16px; margin: 0 0 10px; }
.compare-card p { color: var(--ink-soft); margin: 0; font-size: 14px; line-height: 1.55; }

/* --- How it works --------------------------------------------------- */
.how-it-works { margin: 56px 0; }
.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.steps > li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient);
    color: var(--on-brand);
    font-weight: 700;
    margin-bottom: 12px;
}
.steps h3 { margin: 0 0 6px; font-size: 16px; }
.steps p { color: var(--ink-soft); margin: 0; font-size: 14px; line-height: 1.55; }

/* --- FAQ ------------------------------------------------------------ */
.faq { margin: 56px 0; max-width: 820px; }
.faq-list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.faq details[open] { border-color: var(--brand); box-shadow: var(--shadow-xs); }
.faq summary {
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    color: var(--ink);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    font-size: 22px;
    color: var(--ink-faint);
    font-weight: 400;
    transition: transform .2s ease;
}
.faq details[open] summary::after { content: '−'; color: var(--brand); }
.faq details p {
    margin: 14px 0 0;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* --- CTA strip ------------------------------------------------------ */
.cta-strip {
    background: var(--gradient);
    color: var(--on-brand);
    border-radius: var(--radius-lg);
    text-align: center;
    padding: 56px 32px;
    margin: 64px 0 0;
    box-shadow: var(--shadow-lg);
}
.cta-strip h2 {
    color: var(--on-brand);
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 34px);
}
.cta-strip p {
    color: var(--on-brand);
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 24px;
    font-size: 16px;
}
.cta-strip .hero-cta { justify-content: center; }
.cta-strip .btn.primary { background: var(--on-brand); color: var(--ink); box-shadow: none; }
.cta-strip .btn.primary:hover { background: var(--surface-2); }
.cta-strip .btn.ghost { border-color: var(--on-brand); color: var(--on-brand); background: transparent; }
.cta-strip .btn.ghost:hover { border-color: var(--on-brand); color: var(--on-brand); background: var(--overlay-soft); }

/* --- Ranking table (panels page) ----------------------------------- */
.ranking-table tbody tr { transition: background .15s ease; }

/* --- Blog ---------------------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.blog-cover img {
    aspect-ratio: 800/450;
    object-fit: cover;
    width: 100%;
}
.blog-body { padding: 18px 22px 24px; }
.blog-body h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; color: var(--ink); }
.blog-body h2 a { color: var(--ink); }
.blog-body h2 a:hover { color: var(--brand); text-decoration: none; }

.post.prose { max-width: 780px; font-size: 17.5px; }
.post-head h1 { font-size: clamp(28px, 4vw, 44px); }
.post-cover { margin: 24px 0; border-radius: var(--radius); overflow: hidden; }
.post-cover img { width: 100%; aspect-ratio: 800/450; object-fit: cover; }
.post-body img { border-radius: var(--radius); margin: 18px 0; }
.post-body h2 { margin-top: 40px; font-size: 26px; color: var(--ink); }
.post-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }

/* --- Footer (always dark, regardless of page theme) ----------------- */
.site-footer {
    background: var(--onyx);
    color: rgba(255, 250, 251, 0.78);
    padding: 64px 0 24px;
    margin-top: 80px;
}
.site-footer a { color: rgba(255, 250, 251, 0.78); }
.site-footer a:hover { color: var(--pearl-aqua); }

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 250, 251, 0.12);
}
.foot-brand { max-width: 320px; }
.brand-dark { color: var(--snow) !important; }
.brand-dark .brand-mark { box-shadow: 0 4px 12px rgba(51, 153, 137, 0.45); }
.brand-dark:hover { color: var(--snow) !important; }
.foot-tagline {
    color: rgba(255, 250, 251, 0.6);
    font-size: 14px;
    line-height: 1.6;
    margin: 12px 0 16px;
}
.status-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: rgba(255, 250, 251, 0.7);
    background: var(--graphite);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(125, 226, 209, 0.2);
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pearl-aqua);
    box-shadow: 0 0 8px var(--pearl-aqua);
    animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.foot-col strong {
    color: var(--snow);
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 9px; font-size: 14px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    color: rgba(255, 250, 251, 0.5);
    font-size: 12.5px;
    gap: 16px;
    flex-wrap: wrap;
}
.foot-disclaim { color: rgba(255, 250, 251, 0.6); }

@media (max-width: 960px) {
    .footer-top { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 520px) {
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* --- Responsive tweaks --------------------------------------------- */
@media (max-width: 640px) {
    main { padding-block: 24px 40px; }
    .hero { margin: -24px -24px 32px; padding: 48px 24px 56px; }
    .hero-cta .btn { flex: 1; }
    .unlock-form { margin-left: 0; width: 100%; }
    .unlock-form input { flex: 1; }
    .pitch-box { padding: 24px; }
    .cta-strip { padding: 40px 24px; }
    .hero-stats { gap: 24px; }
    .stat-num { font-size: 26px; }
}

/* --- Promotion page ------------------------------------------------ */
.promo-toc {
    margin: 32px 0 48px;
    padding: 16px 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.promo-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
}
.promo-toc a {
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    padding: 4px 2px;
}
.promo-toc a:hover { text-decoration: underline; }

.promo-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 28px 0 56px;
}
.promo-level-card {
    position: relative;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.promo-level-card.promo-featured {
    border-color: var(--brand);
    box-shadow: 0 18px 40px var(--overlay-strong);
    transform: translateY(-4px);
}
.promo-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--brand);
    color: var(--on-brand);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.promo-level-card h3 {
    margin: 0;
    font-size: 22px;
}
.promo-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}
.promo-feature-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.promo-feature-list li {
    padding-left: 22px;
    position: relative;
    color: var(--ink-2);
    line-height: 1.45;
}
.promo-feature-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--brand);
    opacity: 0.18;
}
.promo-feature-list li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    width: 6px;
    height: 3px;
    border-left: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}
.promo-level-card .btn { margin-top: auto; }

.promo-bumps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0 36px;
}
.promo-bump-card {
    padding: 22px 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}
.promo-bump-duration {
    font-weight: 600;
    color: var(--ink);
    font-size: 16px;
}
.promo-bump-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand);
}
.promo-bump-reach { font-size: 13px; color: var(--ink-soft); }
.promo-bump-card .btn { align-self: flex-start; margin-top: 4px; }

.promo-campaigns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0 56px;
}
.promo-campaign-card {
    padding: 26px 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.promo-campaign-card h3 { margin: 0; font-size: 20px; }

.promo-design {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0 48px;
}
.promo-design-col {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
}
.promo-design-col h3 { margin-top: 0; }
.promo-design-col ol { padding-left: 22px; }
.promo-design-col ol li { margin-bottom: 10px; color: var(--ink-2); line-height: 1.5; }

.promo-form {
    margin: 16px 0 48px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.promo-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.promo-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--ink);
}
.promo-form label em { color: var(--ink); font-style: normal; font-weight: 700; }
.promo-form input, .promo-form select, .promo-form textarea {
    font: inherit;
    padding: 11px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.promo-form input:focus, .promo-form select:focus, .promo-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--overlay-strong);
}
.promo-form textarea { resize: vertical; min-height: 120px; }
.promo-form-full { display: flex; flex-direction: column; gap: 6px; }
.promo-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.promo-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.promo-form-status {
    font-size: 14px;
    min-height: 20px;
    color: var(--ink-soft);
}
.promo-form-status.ok  { color: var(--ink);   font-weight: 600; }
.promo-form-status.err { color: var(--ink);   font-weight: 700; text-decoration: underline; }

@media (max-width: 640px) {
    .promo-level-card.promo-featured { transform: none; }
    .promo-form { padding: 20px; }
}

.promo-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0 36px;
}
.promo-price-card {
    position: relative;
    padding: 22px 20px 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}
.promo-price-card.promo-featured {
    border-color: var(--brand);
    box-shadow: 0 18px 40px var(--overlay-strong);
    transform: translateY(-4px);
}
.promo-price-card h3 { margin: 0; font-size: 20px; }
.promo-price-card .promo-price {
    font-size: 28px;
    font-weight: 800;
}
.promo-price-unit {
    font-size: 13px;
    color: var(--ink-2);
    font-weight: 500;
    margin-left: 2px;
}
.promo-tagline { min-height: 42px; color: var(--ink-soft); }
.promo-price-card .btn { align-self: center; margin-top: auto; }

.promo-compare-wrap {
    overflow-x: auto;
    margin: 24px 0 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}
.promo-compare, .promo-bumps-table, .promo-campaigns-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}
.promo-compare th, .promo-compare td,
.promo-bumps-table th, .promo-bumps-table td,
.promo-campaigns-table th, .promo-campaigns-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.promo-compare thead th,
.promo-bumps-table thead th,
.promo-campaigns-table thead th {
    background: var(--surface-2);
    font-weight: 700;
    color: var(--ink);
    border-bottom: 2px solid var(--border-strong);
}
.promo-compare tbody th { font-weight: 500; color: var(--ink); }
.promo-compare td { text-align: center; color: var(--ink-2); }
.promo-compare td.promo-yes { color: var(--ink);       font-weight: 700; }
.promo-compare td.promo-no  { color: var(--ink-faint); }
.promo-compare td.promo-val { color: var(--ink);       font-weight: 600; }
.promo-compare-price th, .promo-compare-price td {
    background: var(--surface-2);
    border-top: 1px solid var(--border-strong);
    font-size: 15px;
}
.promo-bumps-table tbody tr.promo-bumps-highlight {
    background: var(--surface-2);
}
.promo-bumps-table tbody tr.promo-bumps-highlight th { color: var(--ink); }
.promo-bumps-table tbody tr:hover { background: var(--surface-2); }
.promo-bumps-table td .pill, .promo-bumps-table td.pill {
    background: var(--surface-2);
    color: var(--ink);
    border: 1px solid var(--border-strong);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.promo-campaign-example {
    margin: 16px 0 28px;
    padding: 16px;
    background: var(--surface-2);
    border: 1px dashed var(--border-strong);
    border-radius: 14px;
}
.promo-campaign-banner {
    margin-top: 10px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.promo-campaign-banner-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.promo-campaign-services {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.promo-campaign-services li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    color: var(--ink-2);
}
.promo-campaign-services li em { color: var(--ink); font-style: normal; font-weight: 700; font-size: 12px; letter-spacing: 0.04em; }
.promo-price-tag {
    display: inline-block;
    min-width: 64px;
    font-weight: 700;
    color: var(--ink);
}
.promo-campaign-rules { margin-top: 28px; }
.promo-campaign-rules h3 { margin-top: 20px; }

@media (max-width: 640px) {
    .promo-price-card.promo-featured { transform: none; }
    .promo-compare th, .promo-compare td { padding: 10px 8px; font-size: 13px; }
}
