/* =====================================================================
   Fullmoonstar — Industrial
   Site-wide layer, loaded after style.css on every page.
   Matte chassis grey, physical keys, recessed data slots, safety-red
   accent, one light source from the top-left.
   Type: Inter (UI) + JetBrains Mono (labels, numbers, data).
   ===================================================================== */

/* Self-hosted fonts (SIL Open Font License, see fonts/*-OFL-LICENSE.txt) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 100 800;
    src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
}

:root {
    /* Materials */
    --chassis: #e0e5ec;          /* level 0: matte plastic */
    --panel: #f0f2f5;            /* raised surface */
    --recess: #d1d9e6;           /* sunken areas */
    --ink: #2d3436;              /* charcoal text */
    --ink-muted: #4a5568;        /* labels */
    --accent: #ff4757;           /* safety red: interactive + status only */
    --accent-deep: #e0303f;      /* pressed / gradient foot */
    --accent-ink: #b8262f;       /* accent as text on chassis (AA) */
    --shadow-dark: #babecc;
    --shadow-light: #ffffff;
    --edge: #a3b1c6;
    --console: #2d3436;          /* dark technical panels */
    --console-2: #23292b;
    --on-console: #e0e5ec;
    --on-console-muted: #a8b2d1;
    --led-green: #22c55e;
    --focus: #ff4757;

    /* Depth */
    --sh-card: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    --sh-float: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light), inset 1px 1px 0 rgba(255,255,255,.5);
    --sh-pressed: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
    --sh-recessed: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    --sh-sharp: 4px 4px 8px rgba(0,0,0,.15), -1px -1px 1px rgba(255,255,255,.8);
    --sh-key: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    --sh-accent: 4px 4px 8px rgba(166,50,60,.4), -4px -4px 8px rgba(255,100,110,.4);
    --glow-red: 0 0 10px 2px rgba(255,71,87,.6);
    --glow-green: 0 0 8px 1px rgba(34,197,94,.9);

    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-2xl: 32px;

    --ease-mech: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --wrap: 1152px;
    --gutter: clamp(1.5rem, 4vw, 3rem);

    /* Legacy aliases used by older page styles */
    --paper: var(--chassis);
    --surface: var(--chassis);
    --line: #c8cfda;
    --line-strong: var(--edge);
    --slate: var(--ink-muted);
    --slate-2: #5a6577;
    --gold: var(--accent);
    --gold-deep: var(--accent-ink);
    --moon: #f3efe3;
    --on-ink: var(--on-console);
    --on-ink-muted: var(--on-console-muted);
}

/* ── Base ─────────────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--chassis);
    background-image:
        radial-gradient(1200px 600px at 0% 0%, rgba(255,255,255,.55), transparent 60%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    position: relative;
}
/* Matte plastic micro-texture */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
    opacity: .22;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body::before,
.clay-blobs,
.hero-bg-orb,
.video-showcase-glow { display: none !important; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-sans);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
}
h1 { font-weight: 800; letter-spacing: -0.03em; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: 6px;
}
::selection { background: var(--accent); color: #fff; }

.gradient-text,
.niche-hero h1 .accent,
h1 .accent, h2 .accent {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: currentColor !important;
    color: inherit !important;
}

.fade-up,
.fade-up.visible { opacity: 1 !important; transform: none !important; transition: none !important; }
.heartbeat, .float { animation: none !important; }

.container { max-width: var(--wrap); padding-left: var(--gutter); padding-right: var(--gutter); }

/* Small printed labels */
.mono, .label {
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-muted);
}

/* LEDs */
.led {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--led-green);
    box-shadow: var(--glow-green);
    flex-shrink: 0;
    animation: led-pulse 2.4s ease-in-out infinite;
}
.led--red { background: var(--accent); box-shadow: var(--glow-red); }
.led--amber { background: #f59e0b; box-shadow: 0 0 8px 1px rgba(245,158,11,.9); }
.led--off { background: #9aa4b2; box-shadow: inset 1px 1px 2px rgba(0,0,0,.3); animation: none; }
@keyframes led-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* Corner screws and vent slots for bolted modules */
.bolted { position: relative; }
.bolted::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle at 14px 14px, rgba(0,0,0,.18) 2px, rgba(255,255,255,.7) 2.6px, transparent 3.4px),
        radial-gradient(circle at calc(100% - 14px) 14px, rgba(0,0,0,.18) 2px, rgba(255,255,255,.7) 2.6px, transparent 3.4px),
        radial-gradient(circle at 14px calc(100% - 14px), rgba(0,0,0,.18) 2px, rgba(255,255,255,.7) 2.6px, transparent 3.4px),
        radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), rgba(0,0,0,.18) 2px, rgba(255,255,255,.7) 2.6px, transparent 3.4px);
}
.vents { display: inline-flex; gap: 4px; }
.vents i { display: block; width: 4px; height: 22px; border-radius: 9999px; background: var(--recess); box-shadow: inset 1px 1px 2px rgba(0,0,0,.18), inset -1px -1px 1px rgba(255,255,255,.7); }

/* ── Buttons: physical keys ───────────────────────────────────────── */
.btn,
.fms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 48px;
    padding: .8rem 1.5rem;
    border-radius: var(--r-lg);
    font-family: var(--font-sans);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, color .15s ease;
}
.btn:active, .fms-btn:active { transform: translateY(2px) !important; }

.btn-primary,
.fms-btn--primary,
.fms-btn--gold {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    box-shadow: var(--sh-accent) !important;
    text-shadow: 0 1px 1px rgba(0,0,0,.18);
}
.btn-primary:hover, .fms-btn--primary:hover, .fms-btn--gold:hover { filter: brightness(1.08); }
.btn-primary:active, .fms-btn--primary:active, .fms-btn--gold:active {
    box-shadow: inset 4px 4px 8px rgba(120,20,30,.45), inset -3px -3px 6px rgba(255,120,130,.35) !important;
}

.btn-outline,
.fms-btn--ghost {
    background: var(--chassis) !important;
    color: var(--ink) !important;
    border: 1px solid rgba(255,255,255,.6) !important;
    box-shadow: var(--sh-key) !important;
}
.btn-outline:hover, .fms-btn--ghost:hover { color: var(--accent-ink) !important; }
.btn-outline:active, .fms-btn--ghost:active { box-shadow: var(--sh-pressed) !important; border-color: transparent !important; }

/* Key on a dark console */
.fms-btn--on-ink {
    background: linear-gradient(180deg, #3a4245, #2a3033);
    color: var(--on-console);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 4px 4px 10px rgba(0,0,0,.45), -2px -2px 6px rgba(255,255,255,.06), inset 1px 1px 0 rgba(255,255,255,.08);
}
.fms-btn--on-ink:hover { color: #fff; }
.fms-btn--on-ink:active { box-shadow: inset 3px 3px 8px rgba(0,0,0,.6), inset -2px -2px 4px rgba(255,255,255,.05); }

/* ── Legacy section scaffolding ───────────────────────────────────── */
section { padding-top: clamp(4rem, 8vw, 6rem); padding-bottom: clamp(4rem, 8vw, 6rem); }

.section-header { text-align: left !important; max-width: 760px; margin: 0 0 2.75rem !important; }
.section-label {
    display: inline-flex !important;
    align-items: center;
    gap: .5rem;
    background: var(--chassis) !important;
    border: 0 !important;
    box-shadow: var(--sh-recessed) !important;
    padding: .4rem .8rem !important;
    border-radius: 9999px !important;
    margin: 0 0 1.1rem !important;
    font-family: var(--font-mono) !important;
    font-size: .7rem !important;
    font-weight: 600 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    color: var(--ink-muted) !important;
}
.section-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow-red); }
.section-label .lucide, .section-label svg { display: none; }
.section-title {
    font-size: clamp(2rem, 3.6vw, 2.6rem) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    margin-bottom: 1rem !important;
    color: var(--ink) !important;
    text-shadow: 0 1px 0 #fff;
}
.section-sub { font-size: 1.0625rem !important; line-height: 1.65 !important; color: var(--ink-muted) !important; max-width: 62ch; margin-left: 0 !important; margin-right: 0 !important; }

/* Panels: one treatment for every legacy card */
.legal-card, .product-card, .service-card, .product-card-pinned, .contact-form, .contact-info,
.pain-card, .solution-card, .faq-item, .ba-card, .prose .highlight-box,
.tier-card, .pricing-card, .wiz-card, .dx-card,
.founder-card, .value-card, .rec-card, .expertise-card, .included-card, .result-card, .wiz-result-card {
    background: var(--chassis) !important;
    border: 1px solid rgba(255,255,255,.55) !important;
    border-radius: var(--r-lg) !important;
    box-shadow: var(--sh-card) !important;
}
.legal-card:hover, .product-card:hover, .service-card:hover, .pain-card:hover,
.solution-card:hover { transform: translateY(-4px) !important; box-shadow: var(--sh-float) !important; transition: transform .3s ease, box-shadow .3s ease; }
.faq-item:hover { transform: none !important; }

.tag {
    background: var(--chassis) !important;
    border: 0 !important;
    color: var(--ink-muted) !important;
    border-radius: var(--r-sm) !important;
    box-shadow: var(--sh-recessed) !important;
    font-family: var(--font-mono) !important;
    font-size: .7rem !important;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Closing call-to-action console */
.cta-box {
    background: var(--console) !important;
    color: var(--on-console) !important;
    border: 0 !important;
    border-radius: var(--r-2xl) !important;
    box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light), inset 0 1px 0 rgba(255,255,255,.06) !important;
    text-align: left !important;
    padding: clamp(2.25rem, 5vw, 3.5rem) !important;
    position: relative;
}
.cta-box::before { display: none !important; }
.cta-box h2 { color: #fff !important; font-size: clamp(1.75rem, 3vw, 2.4rem) !important; text-shadow: 0 2px 4px rgba(0,0,0,.3); }
.cta-box p { color: var(--on-console-muted) !important; max-width: 56ch; margin-left: 0 !important; }
.cta-box .cta-actions { justify-content: flex-start !important; }
.cta-box .btn-outline {
    background: linear-gradient(180deg, #3a4245, #2a3033) !important;
    color: var(--on-console) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 4px 4px 10px rgba(0,0,0,.45), -2px -2px 6px rgba(255,255,255,.06) !important;
}

.page-hero { padding-top: 9.5rem; }

/* ── Data slots ───────────────────────────────────────────────────── */
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
    font-family: var(--font-mono);
    background: var(--chassis) !important;
    border: 0 !important;
    border-radius: var(--r-md) !important;
    box-shadow: var(--sh-recessed) !important;
    color: var(--ink) !important;
}
input::placeholder, textarea::placeholder { color: rgba(74,85,104,.6) !important; }
input:focus, select:focus, textarea:focus {
    outline: none !important;
    box-shadow: var(--sh-recessed), 0 0 0 2px var(--accent) !important;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

/* ── Header: a floating control strip that hides on scroll down ──── */
.site-header {
    position: fixed;
    top: 14px; left: 0; right: 0;
    z-index: 1000;
    padding: 0 16px;
    pointer-events: none;
    transition: transform .45s var(--ease-mech), opacity .3s ease;
}
.site-header.is-hidden { transform: translateY(calc(-100% - 24px)); opacity: 0; }
.site-header__inner {
    pointer-events: auto;
    max-width: 1180px;
    margin: 0 auto;
    height: 64px;
    padding: 0 10px 0 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-radius: 9999px;
    background: linear-gradient(180deg, #353d40 0%, #2a3033 100%);
    border: 1px solid rgba(255,255,255,.07);
    box-shadow:
        10px 10px 24px rgba(160,166,182,.75),
        -8px -8px 18px rgba(255,255,255,.85),
        inset 0 1px 0 rgba(255,255,255,.08),
        inset 0 -2px 0 rgba(0,0,0,.25);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}
.site-brand img {
    width: 42px; height: 42px;
    border-radius: 9999px;
    object-fit: cover;
    box-shadow: 0 0 0 3px #23292b, 0 0 0 4px rgba(255,255,255,.08), 3px 3px 8px rgba(0,0,0,.5);
}
.site-header .site-brand { color: #fff; }

.site-menu {
    display: flex;
    align-items: center;
    gap: .15rem;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
}
.site-menu > li { position: relative; }
.site-menu > li > a,
.site-menu > li > button {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .6rem .85rem;
    border-radius: 9999px;
    font: 600 .9rem/1 var(--font-sans);
    color: rgba(224,229,236,.78);
    background: none;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.site-menu > li > a:hover,
.site-menu > li > button:hover,
.site-menu > li.is-open > button {
    color: #fff;
    background: rgba(0,0,0,.18);
    box-shadow: inset 2px 2px 5px rgba(0,0,0,.45), inset -1px -1px 2px rgba(255,255,255,.06);
}
.site-menu > li > a[aria-current="page"] { color: #fff; }
.site-menu > li > a[aria-current="page"]::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: var(--glow-red);
    margin-right: .15rem;
}
.site-menu .chev { width: 14px; height: 14px; transition: transform .2s ease; }
.site-menu li.is-open .chev { transform: rotate(180deg); }

.site-menu__cta { margin-left: .6rem; }
.site-menu__cta .fms-btn { min-height: 46px; padding: .6rem 1.35rem; border-radius: 9999px; font-size: .8rem; }

.site-dd {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 520px;
    background: var(--chassis);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-float);
    padding: 1.4rem 1.4rem 1.2rem;
    display: none;
}
.site-dd::after {
    /* bridge so the hover path from button to panel stays open */
    content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px;
}
.site-menu li.is-open > .site-dd { display: grid; }
.site-dd--products { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.site-dd--services { grid-template-columns: 1fr 1fr 1.4fr; gap: 1.5rem; min-width: 780px; left: 0; transform: translateX(-30%); }
.site-dd h4 {
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink-muted);
    margin: 0 0 .6rem;
}
.site-dd a {
    display: block;
    padding: .45rem .6rem;
    margin: 0 -.6rem;
    border-radius: var(--r-md);
    color: var(--ink);
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
}
.site-dd a:hover { box-shadow: var(--sh-recessed); color: var(--accent-ink); }
.site-dd a small { font-family: var(--font-mono); color: var(--ink-muted); font-size: .7rem; margin-left: .4rem; text-transform: uppercase; letter-spacing: .06em; }
.site-dd__cols { columns: 2; column-gap: 1rem; }
.site-dd__cols a { break-inside: avoid; }

.site-menu-toggle {
    display: none;
    margin-left: auto;
    width: 46px; height: 46px;
    align-items: center; justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(180deg, #3a4245, #2a3033);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 3px 3px 8px rgba(0,0,0,.45), -1px -1px 3px rgba(255,255,255,.06);
    color: var(--on-console);
    cursor: pointer;
}
.site-menu-toggle:active { box-shadow: inset 3px 3px 6px rgba(0,0,0,.55); }
.site-menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1040px) {
    .site-menu-toggle { display: inline-flex; }
    .site-header__inner { height: 60px; }
    .site-menu {
        position: fixed;
        top: 86px; left: 16px; right: 16px;
        max-height: calc(100vh - 110px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: .75rem 1.25rem 1.5rem;
        background: var(--chassis);
        border: 1px solid rgba(255,255,255,.6);
        border-radius: var(--r-xl);
        box-shadow: var(--sh-float);
        overflow-y: auto;
        display: none;
    }
    .site-header.menu-open .site-menu { display: flex; animation: drawer .2s ease-out; }
    @keyframes drawer { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
    .site-menu > li { border-bottom: 1px solid #c8cfda; }
    .site-menu > li > a,
    .site-menu > li > button {
        width: 100%;
        justify-content: space-between;
        padding: 1rem .25rem;
        font-size: 1.0625rem;
        color: var(--ink);
        border-radius: 0;
    }
    .site-menu > li > a:hover, .site-menu > li > button:hover, .site-menu > li.is-open > button { background: none; box-shadow: none; color: var(--accent-ink); }
    .site-menu > li > a[aria-current="page"] { color: var(--ink); }
    .site-dd, .site-dd--services {
        position: static;
        transform: none;
        min-width: 0;
        box-shadow: var(--sh-recessed);
        border: 0;
        padding: 1rem;
        margin: 0 0 1rem;
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    .site-dd::after { display: none; }
    .site-menu__cta { margin: 1.25rem 0 0; border-bottom: 0 !important; }
    .site-menu__cta .fms-btn { width: 100%; min-height: 52px; }
    body.menu-locked { overflow: hidden; }
}

/* ── Footer: the base plate ───────────────────────────────────────── */
.site-footer {
    background: var(--console) !important;
    background-image: linear-gradient(180deg, #30383b, #262c2e) !important;
    color: var(--on-console-muted);
    padding: 4.5rem 0 2rem;
    position: relative;
    z-index: 1;
    border-top: 0 !important;
    margin-top: 0 !important;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.05);
}
.site-footer a { color: var(--on-console); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr .8fr .9fr 2.3fr 1.4fr; gap: 2.5rem; }
.site-footer__brand .site-brand { color: #fff; margin-bottom: 1rem; }
.site-footer__brand p { font-size: .9375rem; line-height: 1.6; max-width: 32ch; }
.site-footer h4 {
    color: #fff;
    font-family: var(--font-mono);
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin: 0 0 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .9375rem; }
.site-footer__industries ul { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
.site-footer__social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.site-footer__social a {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(180deg, #3a4245, #2a3033);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 3px 3px 8px rgba(0,0,0,.45), -1px -1px 3px rgba(255,255,255,.06);
    font-family: var(--font-mono);
    font-size: .8rem; font-weight: 700;
    transition: color .2s ease;
}
.site-footer__social a:hover { color: var(--accent); text-decoration: none; }
.site-footer__social svg { width: 16px; height: 16px; }
.site-footer__bottom {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.site-footer__bottom .links { display: flex; gap: 1.25rem; }
.site-footer__status { display: inline-flex; align-items: center; gap: .55rem; }
@media (max-width: 1000px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__brand, .site-footer__industries { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ── Floating booking key ─────────────────────────────────────────── */
.fms-book-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9980;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.25rem;
    background: linear-gradient(180deg, var(--accent), var(--accent-deep));
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 9999px;
    font: 700 .78rem/1 var(--font-sans);
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 6px 6px 14px rgba(166,50,60,.45), -4px -4px 10px rgba(255,255,255,.8);
    transition: transform .15s ease, filter .15s ease;
}
.fms-book-fab:hover { filter: brightness(1.08); }
.fms-book-fab:active { transform: translateY(2px); box-shadow: inset 4px 4px 8px rgba(120,20,30,.45); }
.fms-book-fab svg { width: 17px; height: 17px; }
@media (max-width: 380px) { .fms-book-fab .fms-fab-text { display: none; } }
@media (min-width: 381px) { .fms-book-fab .fms-fab-short { display: none; } }

/* ── Cookie notice: a recessed tray ───────────────────────────────── */
.fms-cc {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 9990;
    width: min(430px, calc(100vw - 2rem));
    background: var(--chassis);
    color: var(--ink);
    border: 1px solid rgba(255,255,255,.65);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-float);
    padding: 1.15rem 1.2rem 1.05rem;
    font-size: .875rem;
    line-height: 1.5;
}
.fms-cc p { margin: 0 0 .9rem; color: var(--ink-muted); }
.fms-cc p strong {
    color: var(--ink);
    display: flex; align-items: center; gap: .5rem;
    margin-bottom: .3rem;
    font-family: var(--font-mono);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.fms-cc p strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 8px 1px rgba(245,158,11,.9); }
.fms-cc a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.fms-cc__actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.fms-cc__actions .fms-btn { min-height: 40px; padding: .5rem .95rem; font-size: .7rem; border-radius: var(--r-md); }
.fms-cc__link { background: none; border: 0; padding: .5rem .25rem; color: var(--ink-muted); font: 600 .7rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; text-decoration: underline; cursor: pointer; }
.fms-cc__prefs { display: none; margin: 0 0 .9rem; padding: .9rem; border-radius: var(--r-md); box-shadow: var(--sh-recessed); }
.fms-cc.show-prefs .fms-cc__prefs { display: grid; gap: .7rem; }
.fms-cc__pref { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.fms-cc__pref span { color: var(--ink-muted); font-size: .8125rem; }
.fms-cc__pref input { width: 18px; height: 18px; min-height: 0; margin-top: .15rem; }
@media (max-width: 640px) { .fms-cc { left: .75rem; right: .75rem; bottom: .75rem; width: auto; } }

/* ── Accessibility helpers ────────────────────────────────────────── */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 2000; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--r-md); font-weight: 600; }
.skip-link:focus { top: 1rem; }
[hidden] { display: none !important; }

/* ── Page-specific legacy pieces ──────────────────────────────────── */
.founder-card::after { display: none !important; }
.founder-photo { border-radius: var(--r-lg) !important; border: 0 !important; box-shadow: var(--sh-card) !important; filter: grayscale(.25); }
.founder-badge {
    background: var(--console) !important;
    border-radius: 9999px !important;
    box-shadow: var(--sh-sharp) !important;
    font-family: var(--font-mono) !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}
.tier-card.recommended { box-shadow: var(--sh-float), 0 0 0 2px var(--accent) !important; }
.rec-card { transform: rotate(-.6deg); }
.rec-card + .rec-card { transform: rotate(.6deg); }
.expertise-icon, .value-icon, .contact-item-icon, .product-icon, .pain-icon {
    background: var(--chassis) !important;
    box-shadow: var(--sh-key) !important;
    border-radius: 9999px !important;
    color: var(--accent) !important;
}
.prose table, .legal-content table, section table:not(.products-table) { display: block; max-width: 100%; min-width: 0 !important; overflow-x: auto; }
.consent-input { width: 1px !important; height: 1px !important; min-height: 0 !important; left: 0; top: 0; }
.consent-box { background: var(--chassis) !important; box-shadow: var(--sh-recessed) !important; border: 0 !important; border-radius: var(--r-md) !important; }
.niche-hero-img, .portfolio-img { filter: grayscale(.85) contrast(1.05); transition: filter .5s ease; }
.niche-hero-img:hover, .portfolio-img:hover { filter: none; }
input[type="range"] { min-height: 0 !important; accent-color: var(--accent); }

/* Wizard + diagnose steps */
.wizard-page { padding-top: 8.5rem !important; }
.wiz-option, .dx-industry-card, .dx-service-card {
    background: var(--chassis) !important;
    border: 1px solid rgba(255,255,255,.6) !important;
    border-radius: var(--r-lg) !important;
    box-shadow: var(--sh-key) !important;
    transition: box-shadow .15s ease, transform .15s ease !important;
}
.wiz-option.selected, .dx-industry-card.selected, .dx-service-card.selected {
    box-shadow: var(--sh-pressed), 0 0 0 2px var(--accent) !important;
    transform: translateY(1px);
}
.wiz-step-dot, .dx-dot {
    background: var(--chassis) !important;
    box-shadow: var(--sh-key) !important;
    border: 0 !important;
    color: var(--ink-muted) !important;
    font-family: var(--font-mono) !important;
}
.wiz-step-dot.active, .dx-dot.active { background: linear-gradient(180deg, var(--accent), var(--accent-deep)) !important; color: #fff !important; box-shadow: var(--sh-accent) !important; }
.wiz-step-dot.done, .dx-dot.done { color: var(--ink) !important; box-shadow: var(--sh-pressed) !important; }
.wiz-step-line, .dx-line { background: var(--recess) !important; height: 6px !important; border-radius: 9999px !important; box-shadow: inset 1px 1px 3px rgba(0,0,0,.2) !important; }
.wiz-btn-next { background: linear-gradient(180deg, var(--accent), var(--accent-deep)) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.2) !important; box-shadow: var(--sh-accent) !important; border-radius: var(--r-lg) !important; text-transform: uppercase; letter-spacing: .06em; font-weight: 700 !important; }
.wiz-btn-back { background: var(--chassis) !important; color: var(--ink) !important; box-shadow: var(--sh-key) !important; border: 0 !important; border-radius: var(--r-lg) !important; }

/* Website-check intro: a powered-up console */
.dx-intro { background: radial-gradient(900px 500px at 30% 20%, #3a4245, var(--console) 70%) !important; }
.dx-intro::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(18,16,16,0) 50%, rgba(0,0,0,.18) 50%); background-size: 100% 4px; }
.dx-intro-orb { display: none !important; }
.dx-intro-logo-img { box-shadow: 0 0 0 3px #23292b, 4px 4px 12px rgba(0,0,0,.5) !important; animation: none !important; border-radius: 9999px !important; }
.dx-intro-logo-text, .dx-intro-headline {
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    animation: none !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.dx-intro-headline.typing { border-right-color: var(--accent) !important; }
.dx-intro-badge { background: rgba(0,0,0,.25) !important; border: 1px solid rgba(255,255,255,.08) !important; color: var(--on-console) !important; border-radius: 9999px !important; backdrop-filter: none !important; font-family: var(--font-mono) !important; font-size: .72rem !important; text-transform: uppercase; letter-spacing: .08em; font-weight: 500 !important; box-shadow: inset 2px 2px 5px rgba(0,0,0,.4) !important; }
.dx-intro-thumb { border: 4px solid #23292b !important; border-radius: var(--r-md) !important; box-shadow: 6px 6px 16px rgba(0,0,0,.5) !important; }
.dx-intro-skip { background: linear-gradient(180deg, #3a4245, #2a3033) !important; border: 1px solid rgba(255,255,255,.08) !important; color: var(--on-console) !important; border-radius: 9999px !important; font-family: var(--font-mono) !important; text-transform: uppercase; letter-spacing: .06em; }
.dx-intro-dismiss { color: var(--on-console-muted) !important; text-decoration-color: rgba(255,255,255,.3) !important; }

/* ── Reduced motion ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── Get started: free analysis result ───────────────────────────── */
.wiz-result-card { text-align: left !important; padding: clamp(1.5rem, 4vw, 2.25rem) !important; }
.wiz-rec-badge {
    display: inline-flex !important; align-items: center; gap: .55rem;
    background: var(--chassis) !important; color: var(--ink-muted) !important;
    box-shadow: var(--sh-recessed) !important; border: 0 !important;
    border-radius: 9999px !important; padding: .4rem .85rem !important;
    font-family: var(--font-mono) !important; font-size: .68rem !important;
    text-transform: uppercase; letter-spacing: .1em; font-weight: 600 !important;
}
.wiz-analysis-title { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 1.1rem 0 1.25rem; letter-spacing: -0.02em; }
.wiz-result-card .wiz-analysis-list { max-width: none !important; margin: 0 !important; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .85rem; }
.wiz-result-card .wiz-analysis-list li { border-bottom: 0 !important; align-items: start !important; display: grid; gap: .2rem; padding: .95rem 1rem .95rem 2.6rem; border-radius: var(--r-md); box-shadow: var(--sh-recessed); position: relative; text-align: left; }
.wiz-result-card .wiz-analysis-list li::before { color: transparent; font-size: 0; content: ""; position: absolute; left: 1rem; top: 1.25rem; width: 8px; height: 8px; border-radius: 50%; background: var(--led-green); box-shadow: var(--glow-green); }
.wiz-result-card .wiz-analysis-list li::after { display: none !important; }
.wiz-result-card .wiz-analysis-list strong { font-size: .95rem; color: var(--ink); }
.wiz-result-card .wiz-analysis-list span { font-size: .875rem; color: var(--ink-muted); line-height: 1.5; }
.wiz-analysis-check { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: linear-gradient(180deg, #30383b, #262c2e); color: var(--on-console); }
.wiz-analysis-check strong { display: block; font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: .2rem; }
.wiz-analysis-check span { font-size: .875rem; color: var(--on-console-muted); word-break: break-word; }
.wiz-analysis-check .fms-btn { min-height: 42px; padding: .55rem 1rem; font-size: .7rem; }
.wiz-analysis-note { color: var(--ink-muted); font-size: .9rem; margin: 1.1rem 0 0; }

/* ── Large and very large screens ─────────────────────────────────── */
@media (min-width: 1800px) {
    :root { --wrap: 1320px; }
    html { font-size: 17px; }
    .site-header__inner { max-width: 1320px; }
}
@media (min-width: 2400px) {
    :root { --wrap: 1480px; }
    html { font-size: 18px; }
    .site-header__inner { max-width: 1480px; }
}
.wiz-result-card::before, .wiz-result-card::after { display: none !important; }
.wiz-summary-item { background: var(--chassis) !important; border: 0 !important; border-radius: var(--r-md) !important; box-shadow: var(--sh-recessed) !important; }
.wiz-summary-item .si-label { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); }
.wiz-contact-form { background: var(--chassis) !important; border: 1px solid rgba(255,255,255,.55) !important; border-radius: var(--r-lg) !important; box-shadow: var(--sh-card) !important; }
.wiz-submit-btn, .dx-capture-btn {
    background: linear-gradient(180deg, var(--accent), var(--accent-deep)) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    border-radius: var(--r-lg) !important;
    box-shadow: var(--sh-accent) !important;
    text-transform: uppercase; letter-spacing: .06em; font-weight: 700 !important;
}
.wiz-submit-btn:active, .dx-capture-btn:active { transform: translateY(2px); box-shadow: inset 4px 4px 8px rgba(120,20,30,.45) !important; }
.wiz-contact-form > div[style*="border"] { border: 0 !important; background: var(--chassis) !important; box-shadow: var(--sh-recessed) !important; border-radius: var(--r-md) !important; }

/* ── Inline feedback (sitewide) ─────────────────────────────────── */
.fms-field-error, .field-error {
    display: block;
    min-height: 0;
    margin-top: .4rem;
    font-size: .8rem; font-weight: 600; line-height: 1.4;
    color: var(--accent-ink);
}
.fms-field-error:empty, .field-error:empty { display: none; }
.fms-field-error::before, .field-error:not(:empty)::before {
    content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .45rem; vertical-align: .05em;
    border-radius: 50%; background: var(--accent); box-shadow: var(--glow-red);
}
input.is-invalid:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select.is-invalid:not([multiple]), textarea.is-invalid:not([disabled]) {
    box-shadow: var(--sh-recessed), 0 0 0 2px var(--accent) !important;
}
.fms-group-invalid { border-radius: var(--r-lg); box-shadow: 0 0 0 2px rgba(255,71,87,.45); }

.fms-msg {
    display: flex; align-items: flex-start; gap: .7rem;
    margin: 1rem 0 0;
    padding: .85rem 1rem;
    border-radius: var(--r-md);
    background: var(--chassis);
    box-shadow: var(--sh-recessed);
    border-left: 4px solid var(--accent);
    color: var(--ink);
    font-size: .9rem; line-height: 1.5; text-align: left;
    animation: fms-msg-in .25s ease;
}
.fms-msg[hidden] { display: none; }
.fms-msg p { margin: 0; color: inherit; }
.fms-msg svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: .1rem; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fms-msg--success { border-left-color: var(--led-green); }
.fms-msg--success svg { stroke: #1f9d55; }
.fms-msg--info { border-left-color: #f59e0b; }
.fms-msg--info svg { stroke: #b7791f; }
@keyframes fms-msg-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fms-msg { animation: none; } }

/* Website field: protocol dropdown + address */
.fms-url { display: flex; gap: .5rem; align-items: stretch; width: 100%; }
.fms-url__proto { flex: 0 0 auto; width: auto !important; min-width: 6.6rem; padding-right: 1.9rem !important; font-family: var(--font-mono); font-size: .85rem; }
.fms-url > input { flex: 1 1 auto; min-width: 0; width: auto !important; }
.dx-url-input-wrap .fms-url > input { padding-left: 1rem !important; }
.dx-url-input-wrap:has(.fms-url) .dx-url-icon, .dx-input-wrap:has(.fms-url) .dx-field-icon { display: none; }
.dx-input-wrap:has(.fms-url) .dx-form-input { padding-left: 1rem !important; }
.booking-summary .summary-note { margin: .9rem 0 0; font-size: .85rem; line-height: 1.5; color: var(--ink-muted); }

/* ── Manage booking page ────────────────────────────────────────── */
.mg { padding: calc(64px + 14px + clamp(3rem, 7vw, 5rem)) 0 clamp(4rem, 8vw, 6rem) !important; min-height: 70vh; }
.mg-wrap { max-width: 760px; }
.mg-eyebrow { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem; border-radius: 9999px; box-shadow: var(--sh-recessed);
    font-family: var(--font-mono); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); margin: 0 0 1.25rem; }
.mg h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 1.5rem; text-shadow: 0 1px 0 #fff; }
.mg-card { padding: clamp(1.5rem, 3.5vw, 2.25rem) !important; }
.mg-details { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.mg-details > div { padding: .9rem 1rem; border-radius: var(--r-md); box-shadow: var(--sh-recessed); }
.mg-details dt { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); margin: 0 0 .3rem; }
.mg-details dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.mg-note { margin: 1.25rem 0 0; color: var(--ink-muted); line-height: 1.6; }
.mg-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.mg-panel { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid #cfd6e0; }
.mg-panel[hidden] { display: none; }
.mg-panel h2 { font-size: 1.3rem; margin: 0 0 .4rem; }
.mg-rule { font-size: .875rem; color: var(--ink-muted); margin: 0 0 1rem; }
.mg-days { display: flex; gap: .5rem; overflow-x: auto; padding: .4rem .2rem .9rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.mg-day { flex: 0 0 auto; scroll-snap-align: start; min-width: 4.6rem; display: grid; gap: .1rem; justify-items: center; padding: .6rem .7rem; border: 0;
    border-radius: var(--r-md); background: var(--chassis); box-shadow: var(--sh-key); font: inherit; color: var(--ink); cursor: pointer; }
.mg-day span { font-family: var(--font-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }
.mg-day b { font-size: .9rem; }
.mg-day.is-on { box-shadow: var(--sh-pressed); color: var(--accent-ink); }
.mg-day:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.mg-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr)); gap: .5rem; margin: .5rem 0 0; }
.mg-time { padding: .6rem .5rem; border: 0; border-radius: var(--r-md); background: var(--chassis); box-shadow: var(--sh-key); font: inherit; font-size: .875rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.mg-time.is-on { background: linear-gradient(180deg, var(--accent), var(--accent-deep)); color: #fff; box-shadow: var(--sh-accent); }
.mg-time:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; text-decoration: line-through; }
.mg-time.is-current:disabled { text-decoration: none; opacity: .7; }
.mg-hint { grid-column: 1 / -1; color: var(--ink-muted); font-size: .875rem; margin: .25rem 0; }
.mg-panel__foot { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
@media (max-width: 560px) { .mg-details { grid-template-columns: minmax(0, 1fr); } .mg-actions .fms-btn, .mg-panel__foot .fms-btn { width: 100%; } }
