/* ExpiredDomains.network — public site chrome: top navigation (with the phone menu) and footer.
   Shared by the home page and the static pages. Needs assets/brand.css. */

.nav {
    /* a rounded pill 12px below the top: no background at the top of the page, white once you scroll
       (site.js sets .scrolled); the strip around it lets clicks through */
    position: sticky; top: 0; z-index: 50;
    padding-top: 12px;
    pointer-events: none;
}
.nav-inner {
    position: relative; pointer-events: auto;
    width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--container) - 2 * var(--gutter));
    height: 60px; display: flex; align-items: center; gap: 1.5rem;
    padding: 0 8px 0 20px; border-radius: 999px;
    background: rgba(255, 255, 255, 0);
    box-shadow: 0 0 0 1px rgba(10, 10, 11, 0), 0 14px 34px -14px rgba(10, 10, 11, 0);
    transition: background-color 200ms ease, box-shadow 200ms ease;
}
.nav.scrolled .nav-inner {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 0 0 1px var(--line), 0 14px 34px -14px rgba(10, 10, 11, 0.35);
}
/* Home page: at the top the navbar sits over the dark hero with no background, so its text is light;
   once you scroll it is the white pill with the usual colours (the logo exactly as everywhere else) */
.nav-on-dark { margin-bottom: -72px; }
.logo-main { transition: color 200ms ease; }
.nav-on-dark:not(.scrolled):not(.open) .logo-main { color: #fff; }
.nav-on-dark:not(.scrolled):not(.open) .nav-actions .link { color: rgba(255, 255, 255, 0.78); }
.nav-on-dark:not(.scrolled):not(.open) .nav-actions .btn-dark { background: #fff; color: #0A0A0B; }
.nav-on-dark:not(.scrolled):not(.open) .menu-btn { background: rgba(255, 255, 255, 0.1); }
.nav-on-dark:not(.scrolled):not(.open) .menu-btn i { background: #fff; }
@media (min-width: 861px) {
    .nav-on-dark:not(.scrolled) .nav-links { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
    .nav-on-dark:not(.scrolled) .nav-links a { color: rgba(255, 255, 255, 0.72); }
    .nav-on-dark:not(.scrolled) .nav-links a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, 0.12); box-shadow: none; }
}
@media (hover: hover) and (pointer: fine) {
    .nav-on-dark:not(.scrolled) .nav-links a:not([aria-current="true"]):hover,
    .nav-on-dark:not(.scrolled):not(.open) .nav-actions .link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
    .nav-on-dark:not(.scrolled):not(.open) .nav-actions .btn-dark:hover { background: #F4F4F1; }
}
@media (max-width: 860px) { .nav-on-dark { margin-bottom: -74px; } }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 4px; border-radius: 999px; background: rgba(10, 10, 11, 0.035); box-shadow: inset 0 0 0 1px var(--line); }
.nav-links a {
    position: relative; font-size: 0.88rem; font-weight: 500; color: var(--ink-2); padding: 0.45rem 0.95rem; border-radius: 999px;
    transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.nav-links a[aria-current="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px rgba(10, 10, 11, 0.08), 0 0 0 1px var(--line); }
.nav-links .m-only, .nav-links .m-n { display: none; }
.nav-actions { display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.nav-actions .link { font-size: 0.9rem; font-weight: 500; color: var(--ink-2); padding: 0.5rem 0.85rem; border-radius: 999px; transition: color 150ms ease, background-color 150ms ease; }
.nav-actions .btn { height: 40px; padding: 0 1.05rem; font-size: 0.9rem; }
.nav-actions .btn .arrow { width: 15px; height: 15px; transition: transform 200ms var(--ease-out); }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 160ms var(--ease-out), background-color 150ms ease; }
.menu-btn:active { transform: scale(0.94); }
.menu-btn span { position: relative; width: 18px; height: 12px; }
.menu-btn i { position: absolute; left: 0; width: 100%; height: 1.8px; border-radius: 2px; background: var(--ink); transition: transform 240ms var(--ease-out), top 240ms var(--ease-out), opacity 150ms ease; }
.menu-btn i:nth-child(1) { top: 0; }
.menu-btn i:nth-child(2) { top: 5px; }
.menu-btn i:nth-child(3) { top: 10px; }
.nav.open .menu-btn i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav.open .menu-btn i:nth-child(2) { opacity: 0; }
.nav.open .menu-btn i:nth-child(3) { top: 5px; transform: rotate(-45deg); }
.nav-scrim { display: none; }
@media (hover: hover) and (pointer: fine) {
    .nav-links a:not([aria-current="true"]):hover { color: var(--ink); background: rgba(10, 10, 11, 0.05); }
    .nav-actions .link:hover { color: var(--ink); background: rgba(10, 10, 11, 0.05); }
    .nav-actions .btn:hover .arrow { transform: translateX(2px); }
}
.footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; }
.footer-brand p { color: var(--muted); max-width: 300px; margin-top: 1rem; font-size: 0.88rem; }
.footer h4 { font-size: 0.8rem; font-weight: 500; color: var(--faint); margin-bottom: 0.9rem; }
.footer li + li { margin-top: 0.55rem; }
.footer li a { color: var(--ink-2); transition: color 150ms ease; }
.footer li a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.82rem; }
.footer { overflow: hidden; }
.wordmark {
    margin-top: 2.5rem; margin-bottom: -0.16em; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
    font-size: clamp(2.6rem, 12.4vw, 11.5rem); font-weight: 700; letter-spacing: -0.06em; line-height: 0.85; padding: 0 var(--gutter);
    background: linear-gradient(180deg, rgba(10, 10, 11, 0.11), rgba(10, 10, 11, 0) 85%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.wordmark { font-family: var(--display); letter-spacing: -0.05em; }
@media (max-width: 960px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .nav { padding-top: max(10px, env(safe-area-inset-top)); }
    .nav-inner { gap: 0.75rem; height: 64px; padding: 0 8px 0 16px; width: calc(100% - 20px); border-radius: 22px; }
    .menu-btn { width: 44px; height: 44px; border-radius: 14px; background: rgba(10, 10, 11, 0.05); box-shadow: none; }
    .nav.open .menu-btn { background: rgba(10, 10, 11, 0.08); }
    .menu-btn { display: grid; order: 3; }
    .nav-actions { margin-left: auto; }
    .nav-actions .link { display: none; }
    .nav-actions .btn { height: 40px; padding: 0 1rem; font-size: 0.86rem; border-radius: 12px; }
    .nav-actions .btn:active { transform: scale(0.97); }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0; margin: 0.5rem 0 0;
        flex-direction: column; align-items: stretch; gap: 2px; padding: 0.6rem;
        background: var(--surface); border-radius: 22px;
        box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(10, 10, 11, 0.35);
        opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top center;
        transition: opacity 150ms ease, transform 160ms var(--ease-out), visibility 0s linear 160ms;
    }
    .nav.open .nav-links {
        opacity: 1; visibility: visible; transform: none;
        transition: opacity 200ms var(--ease-out), transform 260ms var(--ease-out), visibility 0s;
    }
    .nav-links a { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 0.75rem; font-size: 1.05rem; font-weight: 600; font-family: var(--display); letter-spacing: -0.01em; border-radius: 14px; color: var(--ink); transition: background-color 120ms ease; }
    .nav-links a:active { background: var(--bg); }
    .nav-links .m-n { display: inline; }
    .nav-links a .n { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; color: var(--faint); width: 1.4rem; }
    .nav-links a::after { content: ''; margin-left: auto; width: 7px; height: 7px; border-right: 1.6px solid var(--faint); border-top: 1.6px solid var(--faint); transform: rotate(45deg); }
    .nav-links a[aria-current="true"] { background: var(--bg); box-shadow: none; }
    .nav-links a[aria-current="true"] .n { color: #B88A00; }
    .nav.open .nav-links a { animation: navItem 320ms var(--ease-out) backwards; animation-delay: calc(40ms + var(--i, 0) * 35ms); }
    @keyframes navItem { from { opacity: 0; transform: translateY(-4px); } }
    .nav-links .m-only { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
    .nav-links .m-only a { justify-content: center; font-family: var(--font); font-size: 0.95rem; height: 46px; padding: 0; animation: none !important; }
    .nav-links .m-only a::after { display: none; }
    .nav-links .m-only .btn-light { box-shadow: inset 0 0 0 1px var(--line-2); }
    .nav-links .m-only .btn-dark { color: #fff; }
    .nav-scrim { display: block; position: fixed; inset: 0; z-index: 49; background: rgba(10, 10, 11, 0.25); opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s linear 200ms; }
    .nav.open + .nav-scrim { opacity: 1; visibility: visible; transition: opacity 200ms ease, visibility 0s; }
    .nav.open .nav-inner { background: rgba(255, 255, 255, 0.98); }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* narrow phones: the arrow goes so the logo and "Get started" never touch */
@media (max-width: 380px) {
    .nav-inner { gap: 0.5rem; padding-left: 14px; }
    .nav-actions .btn { padding: 0 0.8rem; }
    .nav-actions .btn .arrow { display: none; }
}
/* the page doesn't scroll behind the open phone menu */
html.nav-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
    .menu-btn:active { transform: none; }
    .nav-links, .nav.open .nav-links { transform: none; }
    .nav.open .nav-links a { animation: none; }
    .menu-btn i { transition: none; }
}
