/* ============================================================
   FONNEBUST — site-wide boost layer
   Shared by every page. Loaded after bundle/home/about CSS.
   Prefix: bx-  (new components). Remove file to fall back.
   ============================================================ */

body.site {
    --graphite: #111418;
    --amber: #f0a13a;
    --mint: #34d399;
    --on-dark: #ece6d9;
    --on-dark-dim: #b9b2a3;
    --on-dark-mute: #9d9686;
    --card: #fffdf8;
    --body-ink: #4a463e;
}

/* ---------- Nav ---------- */
body.site #navbar {
    background: rgba(243, 239, 230, 0.86);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
            backdrop-filter: saturate(1.4) blur(10px);
}
body.site .nav-end .nav-cta.nav-cta--bx {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    background: var(--onyx, #163456);
    border: 1px solid var(--onyx, #163456);
    color: #f3efe6;
    border-radius: 2px;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
}
body.site .nav-end .nav-cta.nav-cta--bx::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}
body.site .nav-end .nav-cta.nav-cta--bx:hover { background: var(--onyx-hover, #1d426c); color: #fff; }
@media (max-width: 900px) {
    body.site .nav-end .nav-cta.nav-cta--bx { display: none; }
}

/* ---------- Buttons ---------- */
body.site .bx-btn-arrow::after {
    content: "→";
    margin-left: 0.4rem;
    display: inline-block;
    transition: transform 0.2s ease;
}
body.site .bx-btn-arrow:hover::after { transform: translateX(3px); }
body.site .btn-primary.bx-lift {
    box-shadow: 0 10px 24px -12px rgba(22, 52, 86, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
body.site .btn-primary.bx-lift:hover { transform: translateY(-2px); }
body.site .bx-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 0.88rem 1.35rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid rgba(26, 24, 20, 0.35);
    border-radius: 1px;
    transition: background 0.2s, color 0.2s;
}
body.site .bx-btn-ghost:hover { background: var(--ink); color: var(--paper); }
body.site .bx-dark .bx-btn-ghost { color: var(--on-dark); border-color: rgba(243, 239, 230, 0.35); }
body.site .bx-dark .bx-btn-ghost:hover { background: var(--on-dark); color: var(--graphite); }
body.site .bx-dark .btn-primary {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--graphite);
}
body.site .bx-dark .btn-primary:hover { background: #ffb85a; border-color: #ffb85a; }

/* ---------- Page shell ---------- */
body.site main.bx-main {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}
body.site main.bx-main > section,
body.site .bx-section {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: clamp(3.5rem, 7vw, 6rem) clamp(1.15rem, 4vw, 2.5rem);
    position: relative;
}
.bx-inner { width: min(1120px, 100%); margin: 0 auto; position: relative; z-index: 1; }
.bx-alt { background: var(--steel); }
.bx-dark {
    background:
        radial-gradient(ellipse 55% 70% at 90% 10%, rgba(240, 161, 58, 0.10), transparent 70%),
        linear-gradient(180deg, #0f1216, #161b21);
    color: var(--on-dark);
}
.bx-dark h1, .bx-dark h2, .bx-dark h3 { color: #fff; }
.bx-dark .rev { color: var(--amber); }

.bx-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(26, 24, 20, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 24, 20, 0.055) 1px, transparent 1px),
        linear-gradient(rgba(26, 24, 20, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 24, 20, 0.03) 1px, transparent 1px);
    background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 80% 75% at 65% 35%, #000 25%, transparent 85%);
            mask-image: radial-gradient(ellipse 80% 75% at 65% 35%, #000 25%, transparent 85%);
    pointer-events: none;
    z-index: 0;
}
.bx-dark .bx-grid-bg {
    background-image:
        linear-gradient(rgba(243, 239, 230, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(243, 239, 230, 0.05) 1px, transparent 1px);
    background-size: 48px 48px, 48px 48px;
}

/* Section heads */
.bx-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.bx-head--center { margin-inline: auto; text-align: center; }
.bx-head--center .rev { justify-content: center; }
body.site .bx-h2 {
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin: 0 0 0.9rem;
    text-wrap: balance;
    color: var(--ink);
}
.bx-dark .bx-h2 { color: #fff; }
.bx-lead { font-size: 1.07rem; line-height: 1.7; color: #3d3a34; max-width: 40rem; margin: 0; }
.bx-dark .bx-lead { color: #cfc8b9; }
.bx-head--center .bx-lead { margin-inline: auto; }

/* ---------- Page hero ---------- */
body.site main.bx-main > section.bx-hero {
    padding-top: clamp(7rem, 14vh, 9rem);
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
    overflow: hidden;
}
.bx-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.bx-hero-grid--solo { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
body.site .bx-h1 {
    font-size: clamp(2.5rem, 6vw, 4.7rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
    margin: 0 0 1.35rem;
    text-wrap: balance;
    color: var(--ink);
}
.bx-h1 .bx-h1-sub {
    display: block;
    margin-top: 1rem;
    font-family: var(--mono);
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.45;
    color: var(--brass);
    text-wrap: pretty;
}
.bx-h1 .bx-h1-sub::before { content: "// "; opacity: 0.55; }
.bx-hero-lede {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.65;
    color: #34312b;
    max-width: 38rem;
    margin: 0 0 1.6rem;
}
.bx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.bx-chips li, .bx-chips a {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.7);
    color: #3d3a34;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.bx-chips a:hover { border-color: var(--brass); color: var(--brass); background: var(--card); }
.bx-chips a:hover { text-decoration: none; }
.bx-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.8rem; }

/* ---------- Cards ---------- */
.bx-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: 1.6rem 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bx-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 40px -28px rgba(26, 24, 20, 0.45);
}
.bx-card h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.5rem; color: var(--ink); }
.bx-card p { font-size: 0.94rem; line-height: 1.6; color: var(--body-ink); margin: 0; }
.bx-dark .bx-card {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(243, 239, 230, 0.12);
}
.bx-dark .bx-card h3 { color: #fff; }
.bx-dark .bx-card p { color: var(--on-dark-dim); }
.bx-dark .bx-card:hover { border-color: rgba(240, 161, 58, 0.45); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.8); }
.bx-icon { width: 44px; height: 44px; margin-bottom: 1rem; color: var(--ink); display: block; }
.bx-dark .bx-icon { color: var(--on-dark); }
.bx-kicker {
    display: block;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 0.5rem;
}
.bx-dark .bx-kicker { color: var(--amber); }
.bx-badge {
    position: absolute;
    top: -0.7rem;
    right: 1.1rem;
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: var(--emerald);
    color: #fff;
    padding: 0.32rem 0.65rem;
    border-radius: 2px;
}
.bx-badge--amber { background: var(--amber); color: var(--graphite); }

.bx-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }

/* Check list */
.bx-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.bx-checks li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.97rem;
    line-height: 1.5;
    color: var(--ink);
    font-weight: 500;
}
.bx-checks li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.2em;
    width: 1.05rem; height: 1.05rem;
    border-radius: 50%;
    background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.bx-dark .bx-checks li { color: var(--on-dark); }
.bx-dark .bx-checks li::before { background-color: #059669; }

/* ---------- Process (shared with home) ---------- */
.proc {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    position: relative;
}
.proc::before {
    content: "";
    position: absolute;
    top: 21px; left: 22px; right: 22px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--brass) 0 8px, transparent 8px 14px);
    opacity: 0.55;
    transform-origin: left;
    transform: scaleX(var(--proc-progress, 1));
    transition: transform 1.4s ease;
}
.proc-step { position: relative; padding-right: 0.5rem; }
.proc-dot {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--ink);
    font-family: var(--mono);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
}
.bx-alt .proc-dot { background: var(--steel); }
.proc-step:first-child .proc-dot { background: var(--ink); color: var(--paper); }
.proc-step:last-child .proc-dot { border-color: var(--emerald); color: var(--emerald); }
.proc-meta {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brass);
    margin: 0 0 0.35rem;
}
.proc-step h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.45rem; }
.proc-step p:last-child { font-size: 0.93rem; line-height: 1.6; color: var(--body-ink); margin: 0; }

/* ---------- CTA band ---------- */
.bx-cta {
    text-align: center;
    overflow: hidden;
}
.bx-cta .bx-inner { max-width: 48rem; }
.bx-cta .bx-h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.bx-cta .bx-lead { margin: 0 auto; }
.bx-cta .bx-actions { justify-content: center; }
.bx-cta-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.4rem;
    margin-top: 1.6rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--on-dark-mute);
}
.bx-cta-meta a { color: var(--amber); }
.bx-cta::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -40%;
    width: 900px; height: 500px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(240, 161, 58, 0.16), transparent);
    pointer-events: none;
}

/* ---------- Footer ---------- */
body.site footer#footer {
    border-top: 0;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    position: relative;
}
body.site footer#footer::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 50%;
    transform: translateX(-50%);
    width: min(1120px, calc(100% - 2.5rem));
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brass), transparent);
    opacity: 0.5;
}
body.site footer#footer .footer-inner { border: 0 !important; }

/* ============================================================
   ABOUT
   ============================================================ */
.bx-spec {
    background: var(--graphite);
    color: var(--on-dark);
    border-radius: 8px;
    padding: 1.4rem 1.4rem 1.2rem;
    font-family: var(--mono);
    box-shadow: 0 40px 60px -35px rgba(17, 20, 24, 0.7);
    position: relative;
    overflow: hidden;
}
.bx-spec::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(243, 239, 230, 0.035) 1px, transparent 1px) 0 0 / 100% 22px;
    pointer-events: none;
}
.bx-spec-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
    padding-bottom: 0.8rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid rgba(243, 239, 230, 0.14);
}
.bx-spec-head span:last-child { color: var(--on-dark-mute); }
.bx-spec dl { margin: 0; position: relative; }
.bx-spec dl > div {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    gap: 0.75rem;
    padding: 0.62rem 0;
    border-bottom: 1px dashed rgba(243, 239, 230, 0.12);
    align-items: baseline;
}
.bx-spec dl > div:last-child { border-bottom: 0; }
.bx-spec dt { font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-mute); }
.bx-spec dd { margin: 0; font-family: var(--sans); font-size: 0.92rem; color: #fff; font-weight: 500; }
.bx-spec dl > div:last-child dd { color: var(--mint); }

.bx-facts { margin-top: 1.4rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.bx-svc-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.bx-svc-num {
    font-family: var(--mono);
    font-size: 4.5rem;
    font-weight: 500;
    line-height: 1;
    color: rgba(26, 24, 20, 0.08);
    display: block;
    margin-bottom: -1.4rem;
}
.bx-dark .bx-svc-num { color: rgba(243, 239, 230, 0.08); }
.bx-prices { display: grid; gap: 1rem; }
.bx-price {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.3rem 1.5rem;
    align-items: start;
}
.bx-price .bx-kicker { grid-column: 1 / -1; margin-bottom: 0.1rem; }
.bx-price h3 { margin: 0; }
.bx-price-v {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    white-space: nowrap;
    line-height: 1.1;
    grid-row: 2 / span 2;
    grid-column: 2;
    align-self: center;
}
.bx-price p { grid-column: 1; }
.bx-price-v--q { font-size: 1.05rem; font-family: var(--mono); font-weight: 600; color: var(--brass); letter-spacing: 0.02em; }
.bx-price-note { font-size: 0.8rem !important; color: var(--paper-mute) !important; margin-top: 0.3rem !important; }
.bx-price .btn-primary { grid-column: 1 / -1; justify-self: start; margin-top: 0.8rem; }
.bx-price--feat { border-color: rgba(154, 74, 8, 0.45); box-shadow: 0 0 0 1px rgba(154, 74, 8, 0.2); }

.bx-ex { display: flex; flex-direction: column; }
.bx-ex .bx-badge { top: 1rem; right: 1rem; }

/* Compliance restyle */
body.site #compliance .compliance-inner { width: min(1120px, 100%); margin: 0 auto; }
body.site #compliance .section-header { text-align: center; margin-bottom: 0; }
body.site #compliance .compliance-card {
    background: var(--card);
    border-radius: 6px;
    border-top-width: 4px;
}
body.site #compliance .compliance-card:hover { box-shadow: 0 24px 40px -28px rgba(26, 24, 20, 0.45); }
body.site #compliance .compliance-card.local { box-shadow: 0 0 0 1px rgba(4, 120, 87, 0.25); }
body.site #compliance .compliance-card-title { font-size: 1.05rem; }
body.site #compliance .compliance-stat { font-size: 0.74rem; gap: 1rem; }
body.site #compliance .compliance-stat-value { text-align: right; }
body.site #compliance .compliance-note { font-size: 0.8rem; color: var(--body-ink); }
.bx-meter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 0 1.5rem 1rem;
    border-bottom: 1px solid var(--rule);
}
.bx-meter-label {
    grid-column: 1 / -1;
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--paper-mute);
    padding-top: 0.9rem;
    margin-bottom: 0.2rem;
}
.bx-meter i { display: block; height: 6px; border-radius: 1px; background: rgba(26, 24, 20, 0.08); }
.local .bx-meter i:nth-of-type(1) { background: var(--emerald); }
.eu .bx-meter i:nth-of-type(-n/**/+2) { background: #b45309; }
.us .bx-meter i { background: var(--red); }
body.site #compliance .compliance-bottom-line {
    background: var(--graphite);
    border: 0;
    border-radius: 6px;
    padding: 1.2rem 1.5rem;
}
body.site #compliance .compliance-bl-text { color: var(--mint); font-size: 0.85rem; }

/* Signals restyle */
body.site #signals .market-signals-inner { width: min(1120px, 100%); margin: 0 auto; }
body.site #signals .market-signals-header { text-align: left; margin-bottom: 2.25rem; }
body.site #signals .section-label { justify-content: flex-start; color: var(--amber); }
body.site #signals .section-label::before { display: none; }
body.site #signals .section-title { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 750; letter-spacing: -0.035em; }
body.site #signals .market-signal-card {
    flex-direction: column;
    gap: 0.9rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(243, 239, 230, 0.12);
    border-radius: 6px;
    padding: 1.6rem 1.5rem;
}
body.site #signals .market-signal-card:hover { border-color: rgba(240, 161, 58, 0.5); }
body.site #signals .market-signal-icon {
    width: 44px; height: 44px;
    background: rgba(240, 161, 58, 0.12);
    color: var(--amber);
    border-radius: 6px;
}
body.site #signals .market-signal-icon svg { width: 24px; height: 24px; }
body.site #signals .market-signal-title { color: #fff; font-size: 1.05rem; }
body.site #signals .market-signal-desc { color: var(--on-dark-dim); font-size: 0.9rem; }

/* How-we-work (pitch) */
.bx-pitch {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.bx-pitch-body p { font-size: 1.02rem; line-height: 1.75; color: #34312b; margin: 0 0 1rem; }
.bx-pitch-close {
    font-weight: 600;
    color: var(--ink) !important;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
}
.bx-gets h3 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin: 0 0 1.1rem; font-weight: 500; }

/* ============================================================
   CONTACT
   ============================================================ */
.bx-contact {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
body.site.contact-page .bx-contact .bx-h1 .line1,
body.site.contact-page .bx-contact .bx-h1 .line2 { display: inline; }
.bx-info { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.bx-info li {
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    gap: 0.9rem;
    align-items: center;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--rule);
}
.bx-info svg { width: 22px; height: 22px; color: var(--brass); justify-self: center; }
.bx-info-k { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--paper-mute); }
.bx-info-v { font-size: 1rem; color: var(--ink); text-decoration: none; font-weight: 500; }
a.bx-info-v:hover { color: var(--brass); }
.bx-info .availability-open { color: var(--emerald); }
.bx-info .availability-open::before {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.18);
    vertical-align: 0.05em;
}
.bx-meet {
    margin-top: 1.6rem;
    padding: 1.1rem 1.2rem;
    background: rgba(4, 120, 87, 0.07);
    border-left: 3px solid var(--emerald);
    border-radius: 0 6px 6px 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--ink);
}
.bx-meet p { margin: 0; }
.bx-next { margin-top: 2rem; }
.bx-next h2 { font-family: var(--mono); font-size: 0.7rem !important; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass) !important; font-weight: 500 !important; margin: 0 0 1rem !important; }
.bx-next ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; counter-reset: nx; }
.bx-next li {
    counter-increment: nx;
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.8rem;
    align-items: start;
    font-size: 0.96rem;
    line-height: 1.55;
    color: #34312b;
}
.bx-next li::before {
    content: counter(nx);
    display: grid;
    place-items: center;
    width: 2rem; height: 2rem;
    border-radius: 50%;
    border: 1.5px solid var(--ink);
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 600;
}
.bx-next li:last-child::before { border-color: var(--emerald); color: var(--emerald); }

body.site.contact-page .bx-form-card {
    position: sticky;
    top: 5.5rem;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 40px 60px -45px rgba(26, 24, 20, 0.55);
    overflow: hidden;
}
body.site.contact-page .bx-form-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brass), var(--amber), var(--emerald));
}
body.site.contact-page .bx-form-card .talk-form {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}
body.site.contact-page .bx-form-card .talk-form-title { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.03em; }
body.site.contact-page .bx-form-card .talk-form .btn-primary { width: 100%; justify-content: center; min-height: 48px; }
body.site .talk-field input,
body.site .talk-field textarea {
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
body.site .talk-field input:focus,
body.site .talk-field textarea:focus {
    outline: none;
    border-color: var(--onyx, #163456) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(22, 52, 86, 0.14);
}

/* Thanks */
.bx-thanks { text-align: center; max-width: 40rem; margin: 0 auto; }
.bx-check {
    width: 96px; height: 96px;
    margin: 0 auto 1.6rem;
    display: block;
}
.bx-check circle { stroke: var(--emerald); }
.bx-check path { stroke: var(--emerald); }
@media (prefers-reduced-motion: no-preference) {
    .bx-check circle { stroke-dasharray: 290; stroke-dashoffset: 290; animation: bxDraw 0.9s ease forwards 0.2s; }
    .bx-check path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: bxDraw 0.5s ease forwards 0.95s; }
}
@keyframes bxDraw { to { stroke-dashoffset: 0; } }
.bx-thanks .bx-next { text-align: left; max-width: 30rem; margin: 2.2rem auto 0; padding: 1.5rem; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; }
.bx-thanks .bx-actions { justify-content: center; }

/* ============================================================
   LEGAL (privacy / cookies)
   ============================================================ */
.bx-legal {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}
.bx-sum {
    position: sticky;
    top: 5.5rem;
    background: var(--graphite);
    color: var(--on-dark);
    border-radius: 8px;
    padding: 1.4rem;
}
.bx-sum h2 { font-family: var(--mono); font-size: 0.7rem !important; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber) !important; font-weight: 500; margin: 0 0 0.8rem !important; }
.bx-sum dl { margin: 0; }
.bx-sum dl > div { padding: 0.8rem 0; border-top: 1px solid rgba(243, 239, 230, 0.12); }
.bx-sum dt { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-mute); margin-bottom: 0.2rem; }
.bx-sum dd { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.bx-sum dd.bx-sum-ok { color: var(--mint); }
.bx-sum dd.bx-sum-sm { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; }
.bx-sum dd a { color: var(--amber); }
.bx-doc {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: clamp(1.4rem, 3vw, 2.25rem);
}
.bx-doc p { font-size: 1rem; line-height: 1.75; color: #34312b; margin: 0 0 1rem; }
.bx-doc p:last-child { margin-bottom: 0; }
.bx-doc h2 {
    font-size: 1.25rem !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 1.8rem 0 0.8rem !important;
    padding-top: 1.4rem;
    border-top: 1px solid var(--rule);
}
.bx-doc a { color: var(--brass); }

/* ---------- Reveal fallback for inner pages ---------- */
.bx-main .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .bx-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    
    .proc { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .proc::before { display: none; }

}
@media (max-width: 900px) {
    .bx-hero-grid, .bx-svc-split, .bx-pitch, .bx-contact, .bx-legal { grid-template-columns: 1fr; }
    
    body.site.contact-page .bx-form-card { position: relative; top: 0; }
    .bx-sum { position: static; }
}
@media (max-width: 640px) {
    .bx-grid-4, .proc{ grid-template-columns: 1fr; }

    .bx-spec dl > div { grid-template-columns: 1fr; gap: 0.15rem; }
    .bx-actions { flex-direction: column; align-items: stretch; }
    .bx-actions > a { justify-content: center; min-height: 44px; }
    .bx-price { grid-template-columns: 1fr; }
    .bx-price-v { grid-column: 1; grid-row: auto; }
    body.site main.bx-main > section.bx-hero { padding-top: 5.75rem; }
}

/* ============================================================
   404
   ============================================================ */
body.site .nf-main { position: relative; overflow: hidden; }
body.site .nf-card {
    position: relative;
    z-index: 1;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 8px;
    box-shadow: 0 40px 60px -45px rgba(26, 24, 20, 0.55);
    overflow: hidden;
}
body.site .nf-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: repeating-linear-gradient(-45deg, var(--amber) 0 12px, var(--graphite) 12px 24px);
}
body.site .nf-code {
    font-size: clamp(5rem, 16vw, 9rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.06em !important;
    line-height: 0.9 !important;
    color: transparent !important;
    -webkit-text-stroke: 2px var(--ink);
    opacity: 1 !important;
}
.nf-alarm {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.4rem 0 1rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(185, 28, 28, 0.35);
    border-radius: 2px;
    background: rgba(185, 28, 28, 0.05);
}
.nf-alarm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
@media (prefers-reduced-motion: no-preference) {
    .nf-alarm-dot { animation: nfBlink 1s steps(2, start) infinite; }
}
@keyframes nfBlink { to { visibility: hidden; } }

/* ---------- Specificity fixes ---------- */
body.site .bx-dark .bx-h2,
body.site .bx-dark h2,
body.site .bx-dark h3,
body.site .bx-dark .bx-card h3 { color: #fff; }
body.site .bx-dark .bx-lead { color: #cfc8b9; }
body.site .bx-dark .bx-card p { color: var(--on-dark-dim); }
body.site main.bx-main > section.bx-hero {
    padding-top: clamp(7rem, 14vh, 9rem) !important;
    padding-bottom: clamp(3rem, 6vw, 4.5rem) !important;
    padding-left: clamp(1.15rem, 4vw, 2.5rem) !important;
    padding-right: clamp(1.15rem, 4vw, 2.5rem) !important;
    margin: 0 !important;
    max-width: none !important;
}
body.site main.bx-main > section.bx-section {
    padding: clamp(3.5rem, 7vw, 6rem) clamp(1.15rem, 4vw, 2.5rem) !important;
    margin: 0 !important;
    max-width: none !important;
}
.bx-hero-grid--solo { display: block; }
.bx-hero-grid--solo .bx-chips { margin-top: 0.4rem; }
body.site .bx-dark + .bx-dark { border-top: 1px solid rgba(243, 239, 230, 0.08); }
body.site.contact-page .bx-contact .bx-h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
body.site.contact-page .bx-contact .bx-h1 .hero-line { display: block; }
body.site.contact-page .bx-contact .bx-h1 .hero-line--2 { color: var(--brass); }
body.site.contact-page .bx-contact .bx-h1 .line2 { color: var(--brass); -webkit-text-fill-color: var(--brass); font-size: inherit; font-weight: 500; }
@media (max-width: 640px) {
    body.site main.bx-main > section.bx-hero { padding-top: 5.75rem !important; }
}

body.site .bx-grid-4.service-example-list { display: grid; list-style: none; margin: 0; padding: 0; border: 0; }
body.site .service-example-list.bx-grid-4 h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.5rem; }
body.site .service-example-list.bx-grid-4 p { font-size: 0.94rem; line-height: 1.6; margin: 0; }

/* ============================================================
   Layout guards
   ============================================================ */
/* Hour panel and contact form never exceed their column */

body.site .hour-panel{ min-width: 0; max-width: 100%; }
body.site .talk-form { max-width: 100%; }

/* Long single-word headlines (e.g. «Informasjonskapsler») */
body.site .bx-h1, body.site .bx-h2 { overflow-wrap: anywhere; hyphens: manual; }
@media (max-width: 420px) {
    body.site .bx-h1 { font-size: clamp(2rem, 10vw, 2.5rem); }
}

/* Services ghost numerals no longer tucked under the kicker */
.bx-svc-num { margin-bottom: 0.25rem; font-size: 3.5rem; }

/* Light CTA variant (used after dark sections) */
.bx-cta--light { background: var(--paper); color: var(--ink); }
.bx-cta--light .rev { color: var(--brass); }
body.site .bx-cta--light .bx-h2 { color: var(--ink); }
body.site .bx-cta--light .bx-lead { color: #3d3a34; }
.bx-cta--light .bx-cta-meta { color: var(--paper-mute); }
.bx-cta--light .bx-cta-meta a { color: var(--brass); }
.bx-cta--light::after { background: radial-gradient(closest-side, rgba(154, 74, 8, 0.10), transparent); }

/* About: pill-in-pill */
.bx-chips li > a { border: 0; padding: 0; background: none; border-radius: 0; color: inherit; text-transform: none; letter-spacing: 0.02em; }

/* Thanks: centred h1 on all widths */
.bx-thanks .bx-h1 { text-align: center; }

/* Pain cards: 3 → 2 → 1 by available width */
body.site.home .pain-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

/* Chart labels readable on phones */
@media (max-width: 640px) {
    .own-t { font-size: 13px; }
    .own-t--axis { font-size: 11px; }
}

/* Skip link contrast (white on brass ≈ 5.5:1) */
body.site .skip-link { color: #fff; }

/* Touch targets on phones */
@media (max-width: 768px) {
    body.site .lang-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.35rem; }
    
    body.site .featured-lightbox-close { min-width: 44px; min-height: 44px; }
    body.site .featured-lightbox-nav button { min-height: 44px; }
    body.site .featured-dots button,
    body.site .featured-dots > * { position: relative; }
    body.site .featured-dots button::after,
    body.site .featured-dots > *::after { content: ""; position: absolute; inset: -20px -4px; }
    body.site .featured-counter { white-space: nowrap; }
    .nf-alarm { font-size: 0.6rem; letter-spacing: 0.1em; }
}

/* Tablet breakpoint fixes */

@media (min-width: 700px) and (max-width: 899px) {
    body.site.home .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.site.home .pain-grid .pain-card:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    body.site .featured-lightbox-nav { position: relative; z-index: 2; background: var(--card, #fffdf8); box-shadow: 0 -12px 12px -6px var(--card, #fffdf8); }
}

/* ---------- v11.2: FAQ (home) + Bayline page ---------- */
.faq-list { display: grid; gap: 0.75rem; max-width: 52rem; margin-top: 1.5rem; }
.faq-item { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    position: relative;
    padding: 1.05rem 3rem 1.05rem 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--mono);
    font-size: 1.2rem;
    color: var(--brass);
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.faq-item p { margin: 0; padding: 0 1.25rem 1.2rem; line-height: 1.65; color: var(--body-ink); }
.bx-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.bl-shot { margin: 0; }
.bl-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 6px; }
.bl-shot figcaption { margin-top: 0.7rem; font-family: var(--mono); font-size: 0.75rem; color: var(--body-ink); }
@media (max-width: 1000px) { .bx-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bx-grid-3 { grid-template-columns: minmax(0, 1fr); } }
.bx-info-v a { color: inherit; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.bx-info-v a:hover { color: var(--brass); }

/* ---------- Bayline docs links ---------- */
body.site a.bx-doc-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
body.site a.bx-doc-card:hover { border-color: rgba(154, 74, 8, 0.45); }
body.site a.bx-doc-card:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.bx-doc-card p { margin-bottom: 1.1rem; }
.bx-doc-go { margin-top: auto; font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); }
.bx-doc-meta { margin: 1.5rem 0 0; font-size: 0.92rem; color: var(--body-ink); }
.bx-doc-meta a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
