/* ==========================================================================
   Venpo · public page chrome (header + footer)

   The single source of truth for the public header and footer, shared by
   every public page regardless of which body stylesheet it carries:

     public.layouts.public-page      inline <style> page body  + this file
     public.layouts.public-page-v2   public/pub/pub.css        + this file

   Loaded LAST by the layout so it wins over whatever the body stylesheet
   declares for the same selectors. Every rule here is scoped to a chrome
   class (nav-wrapper, header*, nav*, footer*, mobile-*) — bare element
   selectors would leak into the page bodies.

   Scoping cuts both ways, so the Baseline block below also stops the chrome
   INHERITING from the page body: the two body stylesheets disagree on color
   and line-height, and without it the chrome renders differently per design.

   Ported out of the public-page layout's inline block; the additions are the
   Baseline block and .chrome-clear at the bottom.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Baseline. The chrome must render identically whichever page-body stylesheet
   the layout loads, so it establishes its own inherited values instead of
   taking the body's: pub.css and legacy.css disagree on color (#15131c vs
   #0a2540) and line-height (normal vs 1.5), and both reach the chrome through
   inheritance. Every descendant that shows text still sets its own color; this
   is the floor under them.
   -------------------------------------------------------------------------- */
.nav-wrapper,
.mobile-menu-clip,
.footer {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: rgb(10, 37, 64);
    line-height: 1.5;
}

/* Buttons do not inherit font-family; legacy.css has no `button` reset. */
.hamburger { font-family: inherit; }

/* The logo is an <img>, but pub.css's `a { color }` would tint its alt text. */
.logo { color: rgb(10, 37, 64); }

/* ---------- Header ---------- */
.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: transparent;
    box-shadow: none;
    transition: background 0.2s, box-shadow 0.2s, backdrop-filter 0.2s;
}
.nav-wrapper.is-scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: rgba(10, 37, 64, 0.04) 0 1px 3px, rgba(10, 37, 64, 0.03) 0 4px 12px;
}
.nav-wrapper.is-scrolled .header-divider { opacity: 0; }
.header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 48px;
    background: transparent;
}
.header-inner {
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 32px;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}
.logo {
    display: inline-block;
    line-height: 0;
}
.logo img {
    height: 28px;
    width: auto;
    display: block;
}
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: rgb(10, 37, 64);
    font-weight: 500;
    transition: background-color .15s ease, color .15s ease;
}
.nav a:hover {
    background-color: rgba(99, 91, 255, 0.10);
    color: rgb(99, 91, 255);
}
/* Current section, set by $active on the header partial. */
.nav a.on {
    background-color: rgba(99, 91, 255, 0.10);
    color: rgb(99, 91, 255);
}
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.signin {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: rgb(99, 91, 255);
}
.signin:hover { opacity: .85; }
.header-divider {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, 100%);
    height: 1px;
    background-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(10, 37, 64, 0.06) 15%,
        rgba(10, 37, 64, 0.06) 85%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
}

/* ---------- Dark pill button (CometArrow) ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 30px;
    background: rgb(10, 37, 64);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: background-color .15s ease;
}
.pill:hover { background: #0d2e52; }
.pill:disabled { cursor: default; opacity: 1; }
.pill-arrow {
    width: 14px;
    height: 14px;
    display: inline-block;
    flex-shrink: 0;
}

/* ---------- Main ---------- */
.main {
    max-width: 1196px;
    margin: 0 auto;
    padding: 96px 48px 64px;
}

/* ---------- Footer ---------- */
.footer {
    background: #FFFFFF;
    box-shadow: rgba(0, 0, 0, 0.03) 0 -1px 20px 0;
    padding: 64px 48px 0;
    margin-top: 56px;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    padding-bottom: 56px;
    flex-wrap: wrap;
}
.footer-brand .logo img { height: 28px; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, auto));
    gap: 88px;
}
.footer-col h4 {
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 600;
    color: rgb(10, 37, 64);
    letter-spacing: -0.01em;
}
.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-col a {
    font-size: 14px;
    color: rgb(10, 37, 64);
    transition: color .15s ease;
}
.footer-col a:hover { color: rgb(99, 91, 255); }
.footer-bottom {
    border-top: 1px solid rgb(235, 235, 235);
    padding: 22px 0 24px;
    font-size: 13px;
    color: rgb(10, 37, 64);
}

/* ---------- Mobile menu ---------- */
.cta-mobile {
    display: none;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 4px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: rgb(10, 37, 64);
}
.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin-left: 8px;
    background: #fff;
    border: 1px solid rgba(10, 37, 64, 0.12);
    border-radius: 6px;
    color: rgb(10, 37, 64);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.hamburger:hover {
    background: rgba(99, 91, 255, 0.06);
    border-color: rgba(99, 91, 255, 0.25);
}
.hamburger svg { width: 16px; height: 16px; display: block; }
.hamburger .hamburger-close { display: none; }
.hamburger[aria-expanded="true"] .hamburger-open { display: none; }
.hamburger[aria-expanded="true"] .hamburger-close { display: block; }

.mobile-menu-clip {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s ease;
}
.mobile-menu-clip.is-open {
    grid-template-rows: 1fr;
}
.mobile-menu {
    min-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: rgba(10, 37, 64, 0.04) 0 1px 3px, rgba(10, 37, 64, 0.03) 0 4px 12px;
    opacity: 0;
    transition: opacity .22s ease;
}
.mobile-menu-clip.is-open .mobile-menu {
    padding: 8px 20px 24px;
    opacity: 1;
    transition: opacity .28s ease .06s;
}
.nav-wrapper:has(.mobile-menu-clip.is-open) {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav-wrapper:has(.mobile-menu-clip.is-open) .header-divider { opacity: 0; }
.nav-wrapper:has(.mobile-menu-clip.is-open) .cta-mobile { display: none; }
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 20px;
}
.mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: rgb(10, 37, 64);
    transition: background-color .15s ease, color .15s ease;
}
.mobile-nav a:hover {
    background-color: rgba(99, 91, 255, 0.10);
    color: rgb(99, 91, 255);
}
.mobile-nav a.on {
    background-color: rgba(99, 91, 255, 0.10);
    color: rgb(99, 91, 255);
}
.mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

@media (max-width: 960px) {
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .header { padding: 12px 20px; }
    .nav--desktop { display: none; }
    .signin--desktop { display: none; }
    .pill--desktop { display: none; }
    .cta-mobile { display: inline-flex; }
    .hamburger { display: inline-flex; }
    .main { padding: 76px 20px 48px; }
    .footer { padding: 40px 20px 0; }
    .footer-top { gap: 32px; padding-bottom: 32px; }
}

@media (min-width: 769px) {
    .mobile-menu-clip { display: none !important; }
}

/* --------------------------------------------------------------------------
   Fixed-header clearance for layouts whose <main> has no top padding of its
   own. public-page's .main already carries 96px/76px; the v2 pages keep the
   top spacing their own designs set, so they only need back the height the
   header no longer occupies in flow.

   Measured, not derived: .header-inner is taller than its 32px min-height
   because .pill sets it (9px padding + 14px/1.4 text + 9px), giving 65.6px
   above 768px and 56px below it. Rounded up so content never slides under
   the header.
   -------------------------------------------------------------------------- */
.chrome-clear { padding-top: 66px; }

@media (max-width: 768px) {
    .chrome-clear { padding-top: 56px; }
}
