:root {
    color-scheme: light;
    --ink: #10192f;
    --muted: #647089;
    --paper: #f8fbff;
    --panel: rgba(255, 255, 255, 0.82);
    --line: rgba(31, 35, 67, 0.13);
    --brand: #0b5cff;
    --brand-2: #00a3c7;
    --warm: #ffb000;
    --pink: #4cc9f0;
    --green: #38d996;
    --shadow: 0 18px 48px rgba(9, 25, 58, 0.1);
    --shadow-soft: 0 8px 24px rgba(9, 25, 58, 0.07);
    --radius: 18px;
    --radius-sm: 12px;
    --max: 1500px;
    --font-sans:
        "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display:
        "Sora", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
    --font-mono:
        "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Menlo", monospace;
    --font-serif: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(11, 92, 255, 0.14),
            transparent 30rem
        ),
        radial-gradient(
            circle at 88% 12%,
            rgba(56, 217, 150, 0.16),
            transparent 30rem
        ),
        linear-gradient(180deg, #ffffff 0%, #f4f8ff 45%, #ffffff 100%);
    line-height: 1.62;
}

a {
    color: inherit;
    text-decoration-color: rgba(32, 55, 255, 0.38);
    text-underline-offset: 0.18em;
}
a:hover {
    color: var(--brand);
}
img {
    max-width: 100%;
    display: block;
}
.container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}
.narrow {
    width: min(880px, calc(100% - 40px));
}
.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    background: var(--ink);
    color: white;
    padding: 10px 14px;
    border-radius: 999px;
    z-index: 20;
}
.skip-link:focus {
    left: 12px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.74);
    border-bottom: 1px solid var(--line);
}
.header {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 76px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: max-content;
}
.brand-logo {
    width: 44px;
    height: 44px;
}
.brand-text {
    display: grid;
    line-height: 1.12;
}
.brand-name {
    font-weight: 850;
    letter-spacing: -0.03em;
}
.brand-tagline,
.brand-fineprint {
    color: var(--muted);
    font-size: 0.82rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: flex-end;
}
.nav > a {
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 650;
    font-size: 0.94rem;
}
.nav > a.active,
.nav > a:hover {
    background: rgba(32, 55, 255, 0.08);
    color: var(--brand);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #071126, var(--brand), var(--brand-2));
    color: white;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 14px 32px rgba(32, 55, 255, 0.2);
}
.btn.small {
    padding: 9px 14px;
    font-size: 0.9rem;
}
.hamburger {
    display: none;
    border: 1px solid var(--line);
    background: white;
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 800;
}
.mobile-drawer {
    display: none;
    border-top: 1px solid var(--line);
}
.mobile-drawer[data-open="true"] {
    display: block;
}
.mobile-drawer .inner {
    display: grid;
    gap: 8px;
    padding: 14px 0 18px;
}
.mobile-drawer a {
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
}

.site-search {
    position: relative;
    min-width: 230px;
}
.site-search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.7);
    outline: none;
}
.site-search input:focus {
    border-color: rgba(32, 55, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(32, 55, 255, 0.08);
}
.site-search-status {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 7px);
    color: var(--muted);
    font-size: 0.78rem;
}
.site-search-results {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(420px, 86vw);
    list-style: none;
    margin: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.site-search-results[data-open="true"] {
    display: grid;
    gap: 8px;
}
.site-search-results a {
    display: block;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 14px;
}
.site-search-results a:hover {
    background: rgba(32, 55, 255, 0.07);
}
.site-search-results small {
    color: var(--muted);
}

.hero-spectrum {
    padding: 48px 0 24px;
    position: relative;
    overflow: hidden;
}
.hero-spectrum:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        rgba(7, 17, 38, 0.08),
        rgba(11, 92, 255, 0.15),
        rgba(0, 163, 199, 0.12),
        rgba(56, 217, 150, 0.12)
    );
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
    gap: 22px;
    align-items: stretch;
}
.card,
.panel,
.post,
.side-item,
.article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.pad {
    padding: clamp(22px, 4vw, 40px);
}
.hero-card h1 {
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
    max-width: 11ch;
}
.hero-card h1 a {
    text-decoration: none;
}
.deck {
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    color: var(--muted);
    max-width: 62ch;
}
.kicker,
.eyebrow {
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.76rem;
    font-weight: 900;
}
.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
    align-items: center;
}
.thumb {
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(32, 55, 255, 0.08),
        rgba(0, 167, 215, 0.08)
    );
    border: 1px solid var(--line);
}
.spectrum-thumb {
    margin: 22px 0 16px;
}
.spectrum-thumb img {
    width: 100%;
    min-height: 260px;
    object-fit: cover;
}
.intro {
    margin-top: 10px;
}
.more a {
    font-weight: 850;
    text-decoration: none;
    color: var(--brand);
}
.sidebar-stack {
    display: grid;
    gap: 14px;
}
.side-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding: 14px;
    text-decoration: none;
    align-items: center;
}
.side-item h3 {
    margin: 4px 0;
    line-height: 1.15;
}
.side-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}
.mini-thumb {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(32, 55, 255, 0.07);
    aspect-ratio: 1;
}
.mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section {
    padding: 54px 0;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 22px;
}
.section-head.big {
    align-items: center;
    min-height: 220px;
}
.section-head h1,
.section-head h2 {
    margin: 4px 0 0;
    line-height: 1;
    letter-spacing: -0.05em;
}
.section-head h1 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
}
.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}
.section-head a {
    font-weight: 800;
    text-decoration: none;
    color: var(--brand);
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.post {
    padding: 22px;
    box-shadow: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.post:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.post h3 {
    margin: 6px 0 10px;
    line-height: 1.13;
    font-size: 1.35rem;
}
.post h3 a,
.post.compact {
    text-decoration: none;
}
.post p {
    color: var(--muted);
    margin: 0 0 14px;
}
.post.compact {
    display: block;
}
.pill-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.pill-card {
    display: grid;
    gap: 6px;
    text-decoration: none;
    padding: 20px;
    border-radius: 24px;
    color: white;
    background: linear-gradient(135deg, #071126, var(--brand), var(--brand-2));
    min-height: 140px;
    align-content: end;
    box-shadow: var(--shadow);
}
.pill-card:nth-child(2) {
    background: linear-gradient(135deg, #6a42ff, #ff4d86);
}
.pill-card:nth-child(3) {
    background: linear-gradient(135deg, #007f7a, #37c871);
}
.pill-card:nth-child(4) {
    background: linear-gradient(135deg, #192043, #ffb000);
}
.pill-card span {
    font-weight: 900;
    font-size: 1.1rem;
}
.pill-card small {
    opacity: 0.86;
}
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 22px;
    align-items: start;
}
.panel {
    padding: 24px;
}
.spectrum-panel {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.9),
        rgba(246, 248, 255, 0.82)
    );
}
.check-list {
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.check-list li:before {
    content: "✓";
    color: var(--green);
    font-weight: 900;
    margin-right: 8px;
}

.article-shell {
    padding: 34px 0 64px;
}
.breadcrumb {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 20px;
}
.breadcrumb a {
    text-decoration: none;
}
.article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1000px) minmax(260px, 1fr);
    gap: 28px;
    align-items: start;
}
.article {
    padding: clamp(24px, 4vw, 46px);
}
.article h1 {
    font-size: clamp(2.1rem, 4vw, 4.2rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    margin: 8px 0 14px;
}
.figure {
    margin: 24px 0;
}
.figure figcaption {
    color: var(--muted);
    font-size: 0.86rem;
    margin-top: 8px;
}
.prose {
    font-size: 1.04rem;
}
.prose h2 {
    margin-top: 2.2em;
    font-size: 1.8rem;
    line-height: 1.12;
    letter-spacing: -0.035em;
}
.prose h3 {
    margin-top: 1.7em;
}
.prose p,
.prose li {
    color: #2d314b;
}
.prose blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    border-left: 5px solid var(--brand);
    background: rgba(32, 55, 255, 0.06);
    border-radius: 0 18px 18px 0;
}
.article-tail {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.tail-label {
    color: var(--muted);
    font-size: 0.86rem;
    margin-bottom: 10px;
}
.tagline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.86rem;
}
.aside {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 16px;
}
.related {
    display: grid;
    gap: 12px;
}
.contact-panel {
    background: linear-gradient(
        135deg,
        rgba(32, 55, 255, 0.08),
        rgba(0, 167, 215, 0.08)
    );
}
.category-hero {
    padding-top: 32px;
    background: linear-gradient(
        90deg,
        rgba(32, 55, 255, 0.08),
        rgba(255, 77, 134, 0.08),
        rgba(255, 176, 0, 0.08)
    );
}
.simple-page {
    max-width: 880px;
    margin: 0 auto;
}

.md-table {
    margin: 28px 0;
}
.md-table figcaption {
    color: var(--muted);
    margin-bottom: 8px;
}
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
th {
    background: rgba(32, 55, 255, 0.06);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
tr:last-child td {
    border-bottom: 0;
}
.footer {
    padding: 48px 0 28px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.66);
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.5fr) minmax(
            180px,
            0.6fr
        );
    gap: 32px;
}
.footer-header {
    font-weight: 900;
}
.footer-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    gap: 8px;
}
.footer-list a {
    text-decoration: none;
    color: var(--muted);
}
.footer-bottom {
    margin-top: 28px;
}
.fineprint {
    color: var(--muted);
}
.advert {
    background: rgba(255, 176, 0, 0.18);
    color: #755300;
    border-radius: 999px;
    padding: 3px 8px;
}

/* Homepage solution cards with integrated product images */

.pill-grid-with-images {
    align-items: stretch;
}

.solution-card {
    position: relative;
    min-height: 260px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    isolation: isolate;
}

.solution-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(255, 255, 255, 0.34),
            transparent 32%
        ),
        radial-gradient(
            circle at 15% 85%,
            rgba(255, 255, 255, 0.18),
            transparent 38%
        );
    opacity: 0.9;
}

.solution-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 58%;
    z-index: -1;
    background: linear-gradient(
        to top,
        rgba(5, 15, 35, 0.38),
        rgba(5, 15, 35, 0.08),
        transparent
    );
    pointer-events: none;
}

.solution-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    padding: 1.15rem 1.1rem 0.35rem;
}

.solution-image img {
    max-width: 100%;
    max-height: 138px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(7, 16, 31, 0.22)) saturate(1.03);
    transform: translateY(2px);
    transition:
        transform 220ms ease,
        filter 220ms ease;
}

.solution-copy {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.15rem 1.15rem;
    min-height: 96px;
    background: linear-gradient(
        to top,
        rgba(255, 255, 255, 0.76),
        rgba(255, 255, 255, 0.42),
        rgba(255, 255, 255, 0)
    );
    backdrop-filter: blur(2px);
}

.solution-copy > span {
    font-size: 1.06rem;
    line-height: 1.2;
}

.solution-copy small {
    max-width: 24ch;
    line-height: 1.45;
}

.solution-card:hover .solution-image img {
    transform: translateY(-5px) scale(1.035);
    filter: drop-shadow(0 24px 30px rgba(7, 16, 31, 0.28)) saturate(1.08);
}

/* Per-card image tuning, because product photos are never obedient */

.solution-card:nth-child(1) .solution-image img {
    max-height: 150px;
}

.solution-card:nth-child(2) .solution-image img {
    max-height: 128px;
}

.solution-card:nth-child(3) .solution-image img {
    max-height: 126px;
}

.solution-card:nth-child(4) .solution-image img {
    max-height: 142px;
}

/* Mobile */

@media (max-width: 720px) {
    .solution-card {
        min-height: 235px;
    }

    .solution-image {
        height: 138px;
        padding-top: 0.95rem;
    }

    .solution-image img {
        max-height: 118px;
    }

    .solution-copy {
        min-height: auto;
    }
}

@media (max-width: 960px) {
    .nav,
    .header > .btn {
        display: none;
    }
    .hamburger {
        display: inline-flex;
        margin-left: auto;
    }
    .hero-grid,
    .article-grid,
    .split,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .grid-3,
    .pill-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .aside {
        position: static;
    }
}
@media (max-width: 620px) {
    .container,
    .narrow {
        width: min(100% - 24px, var(--max));
    }
    .grid-3,
    .pill-grid {
        grid-template-columns: 1fr;
    }
    .side-item {
        grid-template-columns: 74px 1fr;
    }
    .brand-tagline {
        display: none;
    }
    .hero-card h1 {
        font-size: 2.45rem;
    }
    .section {
        padding: 38px 0;
    }
}

/* Memtech refactor accents */
.topbar {
    box-shadow: 0 10px 30px rgba(7, 17, 38, 0.04);
}
.brand-logo {
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(7, 17, 38, 0.16);
}
.hero-card {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.92),
        rgba(245, 249, 255, 0.86)
    );
}
.hero-card h1 {
    max-width: 22ch;
}
.hero-card h1 a {
    background: linear-gradient(135deg, #071126 12%, #0b5cff 62%, #00a3c7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.spectrum-thumb {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}
.kicker,
.eyebrow {
    color: #0b5cff;
}
.pill-card {
    background: linear-gradient(135deg, #071126, #0b5cff);
}
.pill-card:nth-child(2) {
    background: linear-gradient(135deg, #0b2d52, #00a3c7);
}
.pill-card:nth-child(3) {
    background: linear-gradient(135deg, #0f5132, #38d996);
}
.pill-card:nth-child(4) {
    background: linear-gradient(135deg, #1f2937, #ffb000);
}
.pill-card:nth-child(5) {
    background: linear-gradient(135deg, #111827, #64748b);
}
.article h1,
.section-head h1,
.section-head h2 {
    color: #071126;
}
.prose code {
    background: rgba(11, 92, 255, 0.08);
    padding: 0.15em 0.38em;
    border-radius: 0.5em;
}
.prose pre {
    overflow-x: auto;
    padding: 18px;
    border-radius: 18px;
    background: #071126;
    color: #e6f4ff;
}
.category-hero {
    background: linear-gradient(
        90deg,
        rgba(7, 17, 38, 0.06),
        rgba(11, 92, 255, 0.08),
        rgba(56, 217, 150, 0.08)
    );
}
.contact-panel {
    background: linear-gradient(
        135deg,
        rgba(11, 92, 255, 0.08),
        rgba(56, 217, 150, 0.1)
    );
}

/* SOTAX product segments */

.sotax-segments {
    margin: clamp(3rem, 7vw, 5.5rem) 0;
}

.sotax-segments-head {
    max-width: 820px;
    margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
}

.sotax-segments-head h2 {
    margin: 0.35rem 0 0.65rem;
}

.sotax-segments-head p {
    max-width: 68ch;
    color: var(--muted, #64748b);
    font-size: 1.04rem;
    line-height: 1.7;
}

.sotax-segment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.sotax-segment-card {
    position: relative;
    overflow: hidden;
    min-height: 290px;
    padding: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 1.35rem;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.94),
            rgba(241, 248, 252, 0.86)
        ),
        radial-gradient(
            circle at 100% 0%,
            rgba(0, 159, 218, 0.14),
            transparent 34%
        );
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
}

.sotax-segment-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 159, 218, 0.07) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 159, 218, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
    opacity: 0.55;
    pointer-events: none;
}

.sotax-segment-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(0, 159, 218, 0.22),
        transparent 68%
    );
    pointer-events: none;
}

.sotax-segment-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 159, 218, 0.24);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.sotax-segment-card-featured {
    grid-column: span 2;
    background:
        linear-gradient(
            135deg,
            rgba(239, 249, 255, 0.98),
            rgba(255, 255, 255, 0.94)
        ),
        radial-gradient(
            circle at 95% 5%,
            rgba(0, 159, 218, 0.22),
            transparent 36%
        );
}

.segment-card-top {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    margin-bottom: 1rem;
}

.segment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #009fda, #18b7c9);
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 28px rgba(0, 159, 218, 0.28);
}

.segment-card-top h3 {
    margin: 0 0 0.35rem;
    color: var(--ink, #102033);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    line-height: 1.2;
}

.segment-card-top p {
    margin: 0;
    color: var(--muted, #64748b);
    font-size: 0.94rem;
    line-height: 1.55;
}

.segment-branches {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.15rem;
}

.segment-branch {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(8px);
}

.segment-branch h4 {
    margin: 0 0 0.75rem;
    color: var(--ink, #102033);
    font-size: 0.95rem;
}

.segment-branch ul,
.segment-link-list {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.segment-branch li,
.segment-link-list li {
    margin: 0;
}

.segment-branch li + li,
.segment-link-list li + li {
    margin-top: 0.48rem;
}

.segment-branch a,
.segment-link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.62rem 0.72rem;
    border-radius: 0.78rem;
    color: var(--ink, #102033);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 650;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition:
        background 180ms ease,
        color 180ms ease,
        transform 180ms ease,
        border-color 180ms ease;
}

.segment-branch a::after,
.segment-link-list a::after {
    content: "→";
    color: #009fda;
    font-weight: 800;
    transform: translateX(-2px);
    transition: transform 180ms ease;
}

.segment-branch a:hover,
.segment-link-list a:hover {
    color: #005f83;
    background: rgba(230, 247, 255, 0.88);
    border-color: rgba(0, 159, 218, 0.24);
    transform: translateX(2px);
}

.segment-branch a:hover::after,
.segment-link-list a:hover::after {
    transform: translateX(2px);
}

/* Optional dark-mode support if your previous CSS already uses prefers-color-scheme */

@media (prefers-color-scheme: dark) {
    .sotax-segments-head p,
    .segment-card-top p {
        color: rgba(226, 232, 240, 0.74);
    }

    .sotax-segment-card,
    .sotax-segment-card-featured {
        border-color: rgba(148, 163, 184, 0.16);
        background:
            linear-gradient(
                145deg,
                rgba(15, 23, 42, 0.96),
                rgba(15, 38, 54, 0.9)
            ),
            radial-gradient(
                circle at 100% 0%,
                rgba(0, 159, 218, 0.2),
                transparent 34%
            );
        box-shadow: 0 20px 54px rgba(0, 0, 0, 0.22);
    }

    .segment-card-top h3,
    .segment-branch h4,
    .segment-branch a,
    .segment-link-list a {
        color: rgba(248, 250, 252, 0.96);
    }

    .segment-branch {
        background: rgba(15, 23, 42, 0.58);
        border-color: rgba(148, 163, 184, 0.14);
    }

    .segment-branch a,
    .segment-link-list a {
        background: rgba(15, 23, 42, 0.48);
        border-color: rgba(148, 163, 184, 0.12);
    }

    .segment-branch a:hover,
    .segment-link-list a:hover {
        color: white;
        background: rgba(0, 159, 218, 0.16);
        border-color: rgba(0, 159, 218, 0.35);
    }
}

/* Tablet */

@media (max-width: 980px) {
    .sotax-segment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sotax-segment-card-featured {
        grid-column: span 2;
    }
}

/* Mobile */

@media (max-width: 680px) {
    .sotax-segment-grid {
        grid-template-columns: 1fr;
    }

    .sotax-segment-card,
    .sotax-segment-card-featured {
        grid-column: span 1;
        min-height: auto;
    }

    .segment-branches {
        grid-template-columns: 1fr;
    }

    .segment-card-top {
        grid-template-columns: 1fr;
    }

    .segment-icon {
        width: 2.35rem;
        height: 2.35rem;
    }
}

/* =====================================================================
   Professional refinement layer (v2)
   Keeps the existing blue/cyan palette; refines typography, surfaces,
   the wordmark logo, the grouped nav dropdown and the CRM forms.
   ===================================================================== */

/* ---- Calmer canvas ---- */
body {
    background:
        radial-gradient(
            1200px 520px at 100% -8%,
            rgba(0, 163, 199, 0.06),
            transparent 60%
        ),
        linear-gradient(180deg, #ffffff 0%, #f7f9fc 55%, #ffffff 100%);
    letter-spacing: -0.003em;
}
.topbar {
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 1px 0 rgba(9, 25, 58, 0.05);
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
.hero-card h1,
.section-head h1,
.section-head h2,
.article h1,
.post h3,
.side-item h3,
.prose h2,
.prose h3,
.segment-card-top h3,
.sotax-segments-head h2 {
    font-family: var(--font-display);
    font-weight: 700;
}
.hero-card h1 {
    letter-spacing: -0.03em;
    line-height: 1;
}
.section-head h1,
.section-head h2,
.article h1 {
    letter-spacing: -0.025em;
}
.prose {
    font-size: 1.05rem;
    line-height: 1.7;
}
.prose h2 {
    font-size: 1.6rem;
}
.prose h3 {
    font-size: 1.24rem;
}

/* Monospaced micro-labels read as precise/technical */
.kicker,
.eyebrow,
.tag,
.tail-label,
.footer-header,
.breadcrumb,
.meta,
.drawer-group-label {
    font-family: var(--font-mono);
}
.kicker,
.eyebrow {
    font-weight: 600;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
}
.footer-header {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
}
.tag {
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

/* ---- Buttons: solid, restrained ---- */
.btn {
    background: var(--brand);
    border-radius: 12px;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: 0 8px 20px rgba(11, 92, 255, 0.18);
}
.btn:hover {
    background: #0a4fe0;
    color: #fff;
}
.btn.small {
    border-radius: 11px;
}

/* Mute the hero wordmark gradient to a calm ink->brand sweep */
.hero-card h1 a {
    background: linear-gradient(120deg, #0b1830 8%, #0b5cff 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---- Brand wordmark logo ---- */
.brand-logo {
    width: auto;
    height: 34px;
    border-radius: 0;
    box-shadow: none;
}
.footer-brand .brand-logo {
    height: 30px;
}
.brand-name {
    display: none;
}
.brand-tagline {
    font-size: 0.8rem;
}

/* ---- Nav: grouped CSS-only dropdown ---- */
.nav-group {
    position: relative;
}
.nav-group-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 999px;
}
.nav-group.active .nav-group-trigger,
.nav-group:hover .nav-group-trigger,
.nav-group:focus-within .nav-group-trigger {
    background: rgba(11, 92, 255, 0.08);
    color: var(--brand);
}
.nav-caret {
    font-size: 0.62em;
    transition: transform 0.18s ease;
}
.nav-group:hover .nav-caret,
.nav-group:focus-within .nav-caret {
    transform: rotate(180deg);
}
.nav-group-panel {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 268px;
    display: grid;
    gap: 2px;
    padding: 16px 8px 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition:
        opacity 0.16s ease,
        transform 0.16s ease,
        visibility 0.16s;
    z-index: 30;
}
.nav-group:hover .nav-group-panel,
.nav-group:focus-within .nav-group-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-group-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 550;
    font-size: 0.92rem;
    white-space: nowrap;
}
.nav-group-panel a:hover,
.nav-group-panel a.active {
    background: rgba(11, 92, 255, 0.08);
    color: var(--brand);
}

/* ---- Mobile drawer grouping ---- */
.drawer-group-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: var(--muted);
    padding: 14px 14px 2px;
}
.mobile-drawer .drawer-cta {
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    text-align: center;
}

/* ---- CRM forms (price request / error reporting) ---- */
.crm-form {
    max-width: 720px;
    margin: 10px 0 4px;
}
.crm-form .TurnKeyCRM fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}
.crm-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.crm-form .InputBlock {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 16px;
}
.crm-form label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    font-weight: 600;
}
.crm-form label.Required::after {
    content: " *";
    color: var(--brand);
}
.crm-form input[type="text"],
.crm-form input[type="email"],
.crm-form input[type="tel"],
.crm-form textarea {
    width: 100%;
    font: inherit;
    font-family: var(--font-sans);
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}
.crm-form input:focus,
.crm-form textarea:focus {
    border-color: rgba(11, 92, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(11, 92, 255, 0.1);
}
.crm-form textarea {
    resize: vertical;
    min-height: 92px;
    line-height: 1.6;
}
.crm-form .DataHandling {
    margin-top: 4px;
}
.crm-form .DataHandling > label.Required::after {
    content: "";
}
.crm-form .DataHandling h4 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink);
}
.crm-form .SetLabel {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-family: var(--font-sans);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--muted);
    cursor: pointer;
}
.crm-form .SetLabel input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
    flex: 0 0 auto;
}
.crm-form .button-primary {
    margin-top: 10px;
    border: 0;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 12px;
}
.crm-form .Response {
    margin: 4px 0;
}
.crm-form .Response:not(:empty) {
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(56, 217, 150, 0.12);
    border: 1px solid rgba(56, 217, 150, 0.4);
    color: #0f5132;
}
@media (max-width: 620px) {
    .crm-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* =====================================================================
   Media shortcodes: floated/centered images and centered YouTube videos
   ===================================================================== */

.md-fig {
    margin: 1.7rem 0;
}
.md-fig img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}
.md-fig figcaption {
    margin-top: 0.55rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.45;
}

/* Centered (middle) — block, no text wrap */
.md-fig--center {
    text-align: center;
}
.md-fig--center img {
    margin-inline: auto;
    max-width: min(100%, 760px);
}

/* Float left: text wraps on the right */
.md-fig--left {
    float: left;
    width: min(46%, 420px);
    margin: 0.4rem 1.8rem 1.1rem 0;
}
/* Float right: text wraps on the left */
.md-fig--right {
    float: right;
    width: min(46%, 420px);
    margin: 0.4rem 0 1.1rem 1.8rem;
}

/* Keep each new section clear of dangling floats */
.prose h2,
.prose h3 {
    clear: both;
}

/* Centered, responsive 16:9 YouTube embeds */
.md-video {
    margin: 1.9rem auto;
    max-width: 820px;
    clear: both;
}
.md-video__frame {
    position: relative;
    padding-top: 56.25%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    background: #06101f;
}
.md-video__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.md-video figcaption {
    margin-top: 0.6rem;
    text-align: center;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* On narrow screens, floated images become full-width blocks */
@media (max-width: 640px) {
    .md-fig--left,
    .md-fig--right {
        float: none;
        width: 100%;
        margin: 1.4rem 0;
    }
}

/* ---- Photo gallery cards (end-of-article {gallery: ...}) ---- */
.md-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
    margin: 1.6rem 0;
    clear: both;
}
.md-gallery__item {
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease;
}
.md-gallery__item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.md-gallery__item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff;
    padding: 0.5rem;
}
.md-gallery__item figcaption {
    padding: 0.5rem 0.7rem 0.65rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.4;
}
@media (max-width: 520px) {
    .md-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---- Gallery lightbox modal ---- */
.md-gallery__item img {
    cursor: zoom-in;
}
.md-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
    background: rgba(6, 16, 31, 0.86);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.md-lightbox.is-open {
    display: flex;
    animation: md-lightbox-in 0.16s ease;
}
@keyframes md-lightbox-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.md-lightbox img {
    max-width: 100%;
    max-height: 92vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    background: #fff;
}
.md-lightbox__close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}
.md-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.26);
}

/* ---- Homepage newsletter card ---- */
.newsletter-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}
.newsletter-copy h2 {
    margin: 0.35rem 0 0.5rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.02em;
}
.newsletter-copy p {
    margin: 0;
    color: var(--muted);
    max-width: 42ch;
}
.newsletter-form {
    display: grid;
    gap: 1rem;
}
.nl-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}
.nl-field {
    display: grid;
    gap: 0.35rem;
}
.nl-field:last-child {
    grid-column: 1 / -1;
}
.nl-field span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
}
.nl-field input {
    width: 100%;
    font: inherit;
    font-family: var(--font-sans);
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 13px;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}
.nl-field input:focus {
    border-color: rgba(11, 92, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(11, 92, 255, 0.1);
}
.newsletter-form .btn {
    justify-self: start;
}
@media (max-width: 760px) {
    .newsletter-card {
        grid-template-columns: 1fr;
    }
}

/* ---- Footer fineprint wraps on small screens ---- */
@media (max-width: 500px) {
    .footer-brand {
        min-width: 0;
    }
    .brand-fineprint {
        max-width: 100px;
    }
}

/* =====================================================================
   Card polish (homepage + category index)
   ===================================================================== */

/* 1) Content cards: hero image fills the upper ~40% of the card */
.post.post--media {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.post.post--media:hover {
    box-shadow: var(--shadow);
}
.post-media {
    flex: 0 0 40%;
    min-height: 150px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border-bottom: 1px solid var(--line);
}
.post-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px 22px;
}
.post-body h3 {
    margin: 0;
}
.post-body p {
    margin: 0;
}
.post-body .meta {
    margin-top: auto;
}

/* 2) App-strip solution cards: light image area on top, darker text area at
   the bottom (reversed transition), with a light border. */
.solution-card {
    background: linear-gradient(180deg, #ffffff 0%, #eef4fb 60%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}
.solution-card::before {
    content: none;
}
.solution-card::after {
    inset: auto 0 0 0;
    height: 48%;
    background: linear-gradient(
        to top,
        #06101f 0%,
        #0a1a36 38%,
        rgba(8, 18, 38, 0) 100%
    );
}
.solution-image {
    background: radial-gradient(circle at 50% 38%, #ffffff 0%, #e9f1fb 72%);
}
.solution-image img {
    filter: drop-shadow(0 14px 22px rgba(7, 16, 31, 0.16));
}
.solution-copy {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: #f6f9ff;
}
.solution-copy > span {
    color: #ffffff;
    font-weight: 800;
}
.solution-copy small {
    color: rgba(226, 236, 250, 0.82);
}

/* 3) Smaller H1s, especially on mobile */
.hero-card h1 {
    font-size: clamp(1.9rem, 3.6vw, 3.3rem);
}
.section-head h1 {
    font-size: clamp(1.7rem, 3.4vw, 2.9rem);
}
.article h1 {
    font-size: clamp(1.6rem, 3vw, 2.7rem);
}
@media (max-width: 620px) {
    .hero-card h1,
    .section-head h1,
    .article h1 {
        font-size: 1.55rem;
        line-height: 1.14;
    }
}

/* Subcategory nav: dropdown <a> trigger + indented mobile subcategory links */
.nav-group-trigger {
    text-decoration: none;
}
.mobile-drawer .drawer-sub {
    margin-left: 14px;
    padding: 9px 14px;
    font-size: 0.9rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.55);
}

/* =====================================================================
   Sister-site cards, newsletter status, cookie consent
   ===================================================================== */

/* HunterLab sister-site cards */
.category-hero .sister-grid {
    margin-top: clamp(1.4rem, 4vw, 2.4rem);
}
.sister-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.sister-card {
    display: grid;
    grid-template-columns: 40% 60%;
    text-decoration: none;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease;
}
.sister-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.sister-card__media {
    background-color: #eef4fb;
    background-image: linear-gradient(135deg, #0b5cff22, #00a3c722);
    background-size: cover;
    background-position: center;
    min-height: 130px;
}
.sister-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
}
.sister-card__body strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.15;
}
.sister-card__body small {
    color: var(--muted);
    line-height: 1.45;
}
.sister-card__cta {
    margin-top: 4px;
    color: var(--brand);
    font-weight: 700;
    font-size: 0.9rem;
}
@media (max-width: 720px) {
    .sister-grid {
        grid-template-columns: 1fr;
    }
    .sister-card {
        grid-template-columns: 40% 60%;
    }
}

/* Newsletter status / subscribed message */
.newsletter-body {
    display: grid;
    gap: 0.8rem;
}
.mc-status {
    font-size: 0.92rem;
    line-height: 1.5;
}
.mc-status--sending {
    color: var(--muted);
}
.mc-status--error {
    color: #b42318;
}
.mc-status--success {
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(56, 217, 150, 0.12);
    border: 1px solid rgba(56, 217, 150, 0.4);
    color: #0f5132;
    font-weight: 600;
}

/* Cookie consent banner */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: rgba(7, 17, 38, 0.97);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #eaf1ff;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(100%);
    transition: transform 0.25s ease;
}
.cookie-consent.is-visible {
    transform: translateY(0);
}
.cookie-consent__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    flex-wrap: wrap;
}
.cookie-consent__text {
    margin: 0;
    flex: 1 1 320px;
    font-size: 0.92rem;
    line-height: 1.5;
}
.cookie-consent__text a {
    color: #9ec3ff;
    text-decoration: underline;
}
.cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cc-secondary {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    color: #eaf1ff;
    border-radius: 12px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.cc-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Inline CTA button shortcode ({button}) */
.md-cta {
    margin: 1.6rem 0;
}
.md-cta--center {
    text-align: center;
}
.md-cta--right {
    text-align: right;
}

/* =====================================================================
   References, downloads, back-to-top, 404, focus-visible
   ===================================================================== */

/* Home references (placeholder logos) */
.references {
    display: none;
}
/* not visible by default until customers agreed */

.ref-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    align-items: center;
}
.ref-logo {
    width: 100%;
    height: auto;
    opacity: 0.55;
    filter: grayscale(1);
    transition:
        opacity 0.16s ease,
        filter 0.16s ease;
}
.ref-logo:hover {
    opacity: 0.9;
    filter: grayscale(0);
}
.references .fineprint {
    margin-top: 14px;
}
@media (max-width: 720px) {
    .ref-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Downloads (newsletter-gated) */
.downloads {
    margin: 1.5rem 0;
}
.downloads-locked {
    padding: clamp(20px, 4vw, 32px);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: rgba(11, 92, 255, 0.04);
}
.downloads-locked p {
    color: var(--muted);
    margin: 0.5rem 0 1rem;
}
.downloads-list {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}
.downloads.is-unlocked .downloads-list {
    display: grid;
}
.downloads.is-unlocked .downloads-locked {
    display: none;
}
.downloads-list a {
    display: block;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    font-weight: 600;
}
.downloads-list a:hover {
    border-color: rgba(11, 92, 255, 0.4);
    background: rgba(11, 92, 255, 0.04);
}

/* Back-to-top */
.to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand);
    cursor: pointer;
}
.to-top:hover {
    background: #fff;
    box-shadow: var(--shadow);
}

/* 404 page */
.not-found {
    text-align: center;
    padding: clamp(40px, 8vw, 90px) 0;
}
.not-found__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.nav-group-trigger:focus-visible,
.md-gallery__item img:focus-visible {
    outline: 3px solid rgba(11, 92, 255, 0.55);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Downloads list: manufacturer sub-headings */
.downloads-group {
    margin-top: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.downloads-group:first-child {
    margin-top: 0;
}
