/* Shared public shell. Keeps every page in the same visual system as the shop-style homepage. */

.unified-brand-mark,
.home-brand-mark {
    grid-template-columns: repeat(2, 6px);
    grid-template-rows: repeat(2, 6px);
    gap: 4px;
    place-content: center;
}

.unified-brand-mark i,
.home-brand-mark i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

body:not(.platform-home) {
    background: #fbfcff;
}

body:not(.platform-home) .site-header {
    color: var(--ink);
    background: rgb(255 255 255 / 96%);
    border-bottom: 1px solid #e4eaf3;
    box-shadow: 0 1px 0 rgb(7 21 47 / 2%);
}

body:not(.platform-home) .site-header.scrolled {
    color: var(--ink);
    background: rgb(255 255 255 / 98%);
    box-shadow: 0 10px 32px rgb(7 21 47 / 8%);
}

body:not(.platform-home) .header-shell {
    min-height: 68px;
}

body:not(.platform-home) .primary-nav a,
body:not(.platform-home) .header-actions a {
    color: #263752;
}

body:not(.platform-home) .header-actions .button-primary {
    color: #fff;
}

body:not(.platform-home) .primary-nav a[aria-current] {
    color: #0c55d4;
}

body:not(.platform-home) .menu-toggle {
    color: #172946;
    border-color: #cbd6e5;
    background: #f7f9fd;
}

body:not(.platform-home) .content-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 14%, rgb(44 123 255 / 25%), transparent 28%),
        linear-gradient(135deg, #06132c, #0a2450 64%, #0c326d);
}

body:not(.platform-home) .content-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgb(139 181 255 / 6%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(139 181 255 / 6%) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, transparent, #000 58%, #000);
    content: "";
}

body:not(.platform-home) .content-hero-inner {
    min-height: 340px;
    padding-block: 52px 58px;
}

.public-tool-page .content-hero-inner {
    min-height: 430px;
}

.public-directory-page .content-hero-inner,
.public-article-page .content-hero-inner,
.public-info-page .content-hero-inner {
    min-height: 310px;
}

body:not(.platform-home) .content-hero h1 {
    max-width: 850px;
    font-size: clamp(2.35rem, 4.4vw, 4.3rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.public-directory-page .content-hero h1,
.public-article-page .content-hero h1,
.public-info-page .content-hero h1 {
    max-width: 780px;
    font-size: clamp(2.25rem, 4vw, 3.75rem);
}

body:not(.platform-home) .content-lead {
    max-width: 760px;
    margin-top: 20px;
    color: #d4e0f2;
    line-height: 1.62;
}

body:not(.platform-home) .breadcrumbs {
    margin-bottom: 24px;
    color: #a8bcdb;
}

body:not(.platform-home) .content-actions {
    margin-top: 26px;
}

body:not(.platform-home) .content-browse-link {
    margin-top: 8px;
    color: #b9d1fa;
}

.public-tool-page .landing-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    margin-top: 28px;
    gap: 10px;
}

.public-tool-page .landing-facts span {
    min-width: 0;
    padding: 12px 14px;
    border-color: rgb(163 194 244 / 22%);
    border-radius: 12px;
    background: rgb(255 255 255 / 7%);
    line-height: 1.35;
}

.public-tool-page .landing-facts b {
    color: #8fb9ff;
}

body:not(.platform-home) .section {
    padding-block: clamp(54px, 6vw, 76px);
}

body:not(.platform-home) .section-soft {
    background: linear-gradient(180deg, #f5f8fd, #eef4fc);
}

body:not(.platform-home) .section-heading {
    margin-bottom: 28px;
}

body:not(.platform-home) .section-heading h2 {
    text-wrap: balance;
}

body:not(.platform-home) :is(.content-grid article, .article-card, .aside-card, .platform-tool-card, .directory-panel, .pricing-card, .contact-card) {
    border-color: #dce5f1;
    border-radius: 18px;
    box-shadow: 0 16px 42px rgb(7 21 47 / 6%);
}

body:not(.platform-home) .directory-section {
    padding-top: 46px;
}

.public-directory-page .directory-panel {
    padding: 18px;
    background: #f3f6fb;
}

.public-directory-page .directory-search {
    border-radius: 14px;
    box-shadow: 0 10px 30px rgb(7 21 47 / 6%);
}

.public-directory-page .directory-filters button {
    transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.public-directory-page .directory-filters button:hover {
    border-color: #7ea8e8;
    transform: translateY(-1px);
}

.public-directory-page .platform-tool-grid {
    gap: 18px;
}

.public-directory-page .platform-tool-card {
    padding: 20px;
}

.public-directory-page .platform-tool-card h3 {
    font-size: 1.2rem;
}

.public-directory-page .platform-tool-fit {
    background: #f3f7fc;
}

.public-article-page .article-card,
.public-info-page .article-card {
    line-height: 1.7;
}

.public-article-page .article-card h2,
.public-info-page .article-card h2 {
    scroll-margin-top: 90px;
}

.public-article-page .content-aside,
.public-info-page .content-aside {
    top: 88px;
}

body:not(.platform-home) .conversion-bridge {
    padding-top: clamp(58px, 7vw, 86px);
}

body:not(.platform-home) .conversion-path article {
    border-radius: 16px;
}

body:not(.platform-home) .tool-result-preview {
    border-bottom: 1px solid #dbe5f2;
}

.site-footer {
    position: relative;
    padding: 58px 0 20px;
    color: #c4d0e2;
    background:
        radial-gradient(circle at 15% 0, rgb(38 98 200 / 20%), transparent 28%),
        #06142d;
}

.site-footer::before {
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(121 169 255 / 45%), transparent);
    content: "";
}

.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(4, .85fr); gap: 38px; }
.footer-brand p { max-width: 290px; color: #aab8cb; font-size: .9rem; line-height: 1.65; }
.footer-brand > a:last-child { display: inline-flex; align-items: center; min-height: 40px; color: #fff; font-size: .9rem; }

.footer-grid h2 {
    margin: 3px 0 12px;
    color: #fff;
    font-size: .88rem;
    letter-spacing: .01em;
}

.footer-grid > div:not(.footer-brand) a {
    display: flex;
    align-items: center;
    width: fit-content;
    min-height: 38px;
    margin: 1px 0;
    color: #bcc8da;
    font-size: .88rem;
    text-decoration: none;
}

.footer-grid > div:not(.footer-brand) a:hover {
    color: #fff !important;
    transform: translateX(2px);
}

.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 18px; color: #94a5bd; border-top: 1px solid rgb(255 255 255 / 11%); font-size: .8rem; }

@media (min-width: 1001px) {
    body:not(.platform-home) .primary-nav {
        background: #f4f7fb;
        border-color: #e1e7f0;
    }

    body:not(.platform-home) .primary-nav a:hover {
        color: #0d55d8;
        background: #e9f1ff;
    }

    body:not(.platform-home) .primary-nav a[aria-current] {
        color: #0b4fc9;
        background: #fff;
        box-shadow: 0 4px 14px rgb(7 21 47 / 8%);
    }
}

@media (max-width: 1000px) {
    body:not(.platform-home) .primary-nav {
        top: 68px;
        color: var(--ink);
        background: #fff;
        border-color: #dce5f1;
        box-shadow: 0 20px 45px rgb(7 21 47 / 14%);
    }

    body:not(.platform-home) .primary-nav a {
        color: #243650;
    }

    body:not(.platform-home) .primary-nav .mobile-nav-cta {
        color: #fff;
    }
}

@media (max-width: 760px) {
    body:not(.platform-home) .header-shell {
        min-height: 64px;
    }

    body:not(.platform-home) .primary-nav {
        top: 64px;
    }

    body:not(.platform-home) .content-hero-inner,
    .public-tool-page .content-hero-inner,
    .public-directory-page .content-hero-inner,
    .public-article-page .content-hero-inner,
    .public-info-page .content-hero-inner {
        min-height: 0;
        padding-block: 42px 48px;
    }

    body:not(.platform-home) .content-hero h1,
    .public-directory-page .content-hero h1,
    .public-article-page .content-hero h1,
    .public-info-page .content-hero h1 {
        font-size: clamp(2.12rem, 10.2vw, 3rem);
        line-height: 1.04;
        overflow-wrap: anywhere;
        text-wrap: pretty;
    }

    body:not(.platform-home) .content-lead {
        margin-top: 18px;
        font-size: 1rem;
    }

    body:not(.platform-home) .breadcrumbs {
        margin-bottom: 22px;
    }

    .public-tool-page .landing-facts {
        grid-template-columns: 1fr 1fr;
        margin-top: 24px;
    }

    .public-tool-page .landing-facts span {
        min-height: 70px;
        padding: 11px 12px;
        text-align: left;
    }

    body:not(.platform-home) .section {
        padding-block: 48px;
    }

    .public-directory-page .directory-section {
        padding-top: 34px;
    }

    .public-directory-page .directory-panel {
        padding: 14px;
    }

    .footer-grid > div:not(.footer-brand) a {
        min-height: 42px;
    }
}

@media (max-width: 390px) {
    .public-tool-page .landing-facts {
        grid-template-columns: 1fr;
    }

    .public-tool-page .landing-facts span {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-directory-page .directory-filters button,
    .footer-grid > div:not(.footer-brand) a {
        transition: none;
    }
}
