/* ─── Velobooker shared site styles (additive) ───
   Linked from every public page. Provides the full design-token set
   (so pages with a sparse inline :root still resolve every var), the new
   --rose-muted brand token, keyboard focus rings, the footer, and the
   responsive legal-table collapse. Page-specific CSS stays inline. */

:root {
    --indigo: #3a2f7c;
    --indigo-deep: #2a1f5c;
    --indigo-light: #4a3f9c;
    --rose: #d94f7a;
    --rose-light: #e8739a;
    --rose-muted: #b54266;
    --rose-glow: rgba(217, 79, 122, 0.3);
    --white: #fafafa;
    --gray-100: #f0eff4;
    --gray-200: #e0dfe8;
    --gray-400: #9896a6;
    --gray-600: #9290a8;
    --gray-800: #2e2c3a;
}

/* ─── Keyboard focus (WCAG 2.4.7) ─── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--rose);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ─── Logo lockup in nav/footer (replaces inline placeholder SVG) ─── */
.nav-logo img {
    height: 26px;
    width: auto;
    display: block;
}

/* Slightly smaller wordmark on iPad/tablet widths and below. The
   footer lockup keeps its own size via higher specificity. */
@media (max-width: 900px) {
    .nav-logo img {
        height: 22px;
    }
}

.footer-brand .nav-logo img {
    height: 88px;
}

/* ─── Footer ─── */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    text-align: center;
}

.footer-brand .nav-logo {
    justify-content: center;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1rem auto 0;
    max-width: 300px;
}

.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    color: var(--gray-200);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--rose-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--gray-400);
    font-size: 0.8rem;
}

.footer-bottom .attribution {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bottom .attribution a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom .attribution a:hover {
    color: var(--rose-light);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Responsive legal tables (applied on every legal page) ─── */
@media (max-width: 600px) {
    .legal-content table,
    .legal-content thead,
    .legal-content tbody,
    .legal-content th,
    .legal-content td,
    .legal-content tr {
        display: block;
        width: 100%;
    }

    .legal-content thead {
        display: none;
    }

    .legal-content tr {
        margin-bottom: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        padding: 0.5rem 0.75rem;
    }

    .legal-content td {
        border: none;
        padding: 0.25rem 0;
    }
}

/* ─── Contact form + popup (shared by every page via contact.js) ─── */
.contact-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(26, 19, 56, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-overlay.open {
    display: flex;
    animation: contactFadeIn 0.25s ease-out;
}

@keyframes contactFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.contact-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: rgba(42, 31, 92, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

/* Modal card scrolls internally; the inline /contact.html card grows. */
.contact-overlay .contact-card {
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -45%;
    right: -40%;
    width: 80%;
    height: 80%;
    background: radial-gradient(
        circle,
        rgba(217, 79, 122, 0.14),
        transparent 70%
    );
    pointer-events: none;
}

.contact-card > * {
    position: relative;
}

.contact-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.4rem;
    line-height: 0;
    transition: color 0.2s;
}

.contact-close:hover {
    color: var(--white);
}

.contact-close svg {
    width: 22px;
    height: 22px;
}

.contact-card h1,
.contact-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.contact-sub {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.c-field {
    display: flex;
    flex-direction: column;
}

.c-label {
    font-size: 0.85rem;
    color: var(--gray-200);
    margin-bottom: 0.4rem;
}

.c-input,
.c-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.c-textarea {
    resize: vertical;
    min-height: 110px;
}

.c-input::placeholder,
.c-textarea::placeholder {
    color: var(--gray-600);
}

.c-input:focus,
.c-textarea:focus {
    outline: none;
    border-color: var(--rose);
    box-shadow: 0 0 0 3px var(--rose-glow);
}

.c-input.invalid,
.c-textarea.invalid {
    border-color: var(--rose-light);
}

.c-error {
    color: var(--rose-light);
    font-size: 0.82rem;
    margin-top: 0.4rem;
    display: none;
}

.c-error.show {
    display: block;
}

/* honeypot — hidden from humans, visible to bots */
.c-gotcha {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.c-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--rose);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 24px var(--rose-glow);
    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.c-button:hover:not(:disabled) {
    background: var(--rose-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--rose-glow);
}

.c-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-success {
    display: none;
    text-align: center;
}

.contact-success.show {
    display: block;
    animation: contactFadeIn 0.5s ease-out;
}

.contact-success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-success h2 {
    margin-bottom: 0.75rem;
}

.contact-success p {
    color: var(--gray-400);
    line-height: 1.7;
}

.contact-success a {
    color: var(--rose-light);
}

/* Inline card wrapper (the /contact.html page) */
.contact-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}
/* ─── Early-access form + popup (shared by every page via early-access.js) ─── */
.ea-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(26, 19, 56, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ea-overlay.open {
    display: flex;
    animation: contactFadeIn 0.25s ease-out;
}

.ea-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.ea-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

/* Modal card scrolls internally; the inline /early-access.html card grows. */
.ea-overlay .ea-card {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.ea-card::before {
    content: '';
    position: absolute;
    top: -45%;
    right: -40%;
    width: 80%;
    height: 80%;
    background: radial-gradient(
        circle,
        rgba(217, 79, 122, 0.14),
        transparent 70%
    );
    pointer-events: none;
}

.ea-card > * {
    position: relative;
}

.ea-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.4rem;
    line-height: 0;
    transition: color 0.2s;
    z-index: 2;
}

.ea-close:hover {
    color: var(--white);
}

.ea-close svg {
    width: 22px;
    height: 22px;
}

.ea-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(217, 79, 122, 0.15);
    border: 1px solid rgba(217, 79, 122, 0.3);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: var(--rose-light);
    margin-bottom: 1.5rem;
}

.ea-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--rose);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.ea-card h1,
.ea-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.ea-sub {
    color: var(--gray-400);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.ea-sub strong {
    color: var(--rose-light);
    font-weight: 600;
}

.ea-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ea-field {
    display: flex;
    flex-direction: column;
}

.ea-label {
    font-size: 0.85rem;
    color: var(--gray-200);
    margin-bottom: 0.4rem;
}

.ea-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.ea-input::placeholder {
    color: var(--gray-600);
}

.ea-input:focus {
    outline: none;
    border-color: var(--rose);
    box-shadow: 0 0 0 3px var(--rose-glow);
}

.ea-input.invalid {
    border-color: var(--rose-light);
}

.ea-error {
    color: var(--rose-light);
    font-size: 0.82rem;
    margin-top: 0.4rem;
    display: none;
}

.ea-error.show {
    display: block;
}

.ea-consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.5;
}

.ea-consent input {
    margin-top: 0.2rem;
    accent-color: var(--rose);
    flex-shrink: 0;
}

.ea-consent a {
    color: var(--rose-light);
    text-decoration: none;
}

.ea-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--rose);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 24px var(--rose-glow);
    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.ea-button:hover:not(:disabled) {
    background: var(--rose-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--rose-glow);
}

.ea-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ea-trust {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.8rem;
    margin-top: 1.5rem;
}

.ea-success {
    display: none;
    text-align: center;
}

.ea-success.show {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

.ea-success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ea-success h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.ea-success p {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.ea-success .ea-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--rose-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 560px) {
    .ea-wrap {
        padding: 2.5rem 1.25rem 4rem;
    }
    .ea-card {
        padding: 2rem 1.5rem;
    }
}
