/* Header Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 24px;
}

@media (min-width: 640px) {
    .nav-container {
        padding: 30px 40px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    transition: var(--transition);
}

header.scrolled .logo {
    color: var(--text);
}

.logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

header.scrolled .logo img {
    filter: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Letters.app-style solid black pill CTA */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--black);
    color: #ffffff;
    padding: 12px 26px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-pill:hover {
    background-color: var(--black-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

/* White-then-Cobalt halo reads clearly whether the pill sits on the white
   page background or the blue hero/CTA gradient. */
.btn-pill:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--primary);
}

.btn-pill.small {
    padding: 9px 18px;
    font-size: 13px;
}

/* Coarse pointers (touch) get a taller hit area than fine pointers (mouse) need,
   since the small pill is the primary header CTA on mobile. */
@media (pointer: coarse) {
    .btn-pill.small {
        padding: 13px 20px;
        font-size: 14px;
    }
}

.btn-pill.large {
    padding: 16px 34px;
    font-size: 16px;
}

/* White pill variant used for the header CTA - reads well on both the blue
   hero and the blurred-white scrolled header */
.btn-pill-light {
    background-color: #ffffff;
    color: var(--text);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
}

.btn-pill-light:hover {
    background-color: #f2f4f8;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

