@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #111111;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Login button */
.login-container {
    position: fixed;
    top: 0;
    right: 0;
    padding: 16px 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-link {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 10px;
    font-size: 14px;
    font-family: inherit;
    color: #828282;
    text-decoration: none;
    transition: color 0.15s ease;
}

.login-link:hover {
    color: #FFFFFF;
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 32px;
    padding: 0 14px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 400;
    color: #FFFFFF;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.2);
}

.login-button .ripple,
.submit-button .ripple {
    position: absolute;
    border-radius: 100%;
    background: currentColor;
    transform: scale(0);
    opacity: 0.35;
    animation: ripple-expand 1s cubic-bezier(0, 0, 0.2, 1) forwards;
    pointer-events: none;
    z-index: 0;
}

@keyframes ripple-expand {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.login-button:hover {
    background-color: #151515;
}

.login-button:active {
    transform: scale(0.98);
    color: #828282;
}

.login-button-primary {
    background-color: #1C1C1C;
}

.login-button-primary:hover {
    background-color: #2D2D2D;
}

.login-button-primary:active {
    background-color: #1C1C1C;
    color: #828282;
}

.logo-container {
    display: flex;
    align-items: center;
    min-width: 10vw;
    min-height: 8vh;
    animation: rise-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 80ms both;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .logo-container,
    .email-form-container,
    .background-image {
        animation: none;
    }
}

img {
    height: max(48px, min(5vw, 5vh));
    width: auto;
}

.background-image {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 2115px;
    height: 1674px;
    opacity: 0.89;
    pointer-events: none;
    z-index: -1;
    animation: bg-fade-in 1400ms ease-out both;
}

@keyframes bg-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.89;
    }
}

.background-image img {
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    mix-blend-mode: hard-light;
    object-fit: cover;
}

/* Email Form Styles */
.email-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 20px;
    width: 100%;
    max-width: 430px;
    padding: 0 20px;
    position: relative;
    animation: rise-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 260ms both;
}

.email-form {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    background-color: rgba(0, 0, 0, .4);
    border-radius: 46px;
    padding: 4px 5px 4px 20px;
    box-shadow: inset 0px 1px 3px rgba(0, 0, 0, .5), 0px 1px 0px rgba(255, 255, 255, .06);
    outline: 1px solid transparent;
    outline-offset: -1px;
    transition: outline-color 0.2s ease;
    border: 1px solid rgba(0, 0, 0, .5);
}

.email-form:focus-within {
    outline-color: #8CABFF;
}

.email-input {
    flex: 1;
    padding: 10px 0;
    font-size: 14px;
    font-family: inherit;
    background-color: transparent;
    border: none;
    color: #FFFFFF;
    outline: none;
}

.email-input::placeholder {
    color: #828282;
}

.submit-button {
    padding: 8px 24px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 400;
    background-color: #1C1C1C;
    color: #FFFFFF;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
    box-shadow:
        inset 0px 0.5px 2px rgba(255, 255, 255, 0.1),
        0px 1px 2px rgba(0, 0, 0, 1);
    flex-shrink: 0;
}

.submit-button:hover {
    background-color: #2D2D2D;
}

.submit-button:active {
    transform: scale(0.98);
    color: #828282;
}

.submit-button:disabled {
    background-color: rgba(255, 255, 255, 0.01);
    color: #373737;
    cursor: not-allowed;
    transform: none;
}

.email-form {
    transition: outline-color 0.2s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.email-form.fade-out {
    opacity: 0;
    visibility: hidden;
}

.form-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-family: inherit;
    text-align: center;
    height: 54px;
    padding: 0 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.fade-in {
    opacity: 1;
}

.form-message:empty {
    visibility: hidden;
}

.form-message.success {
    color: #828282;
}

.form-message.error {
    color: #EB5757;
}

/* Shimmer effect - text only */
.shimmer-target[data-shimmer="active"] {
    background: linear-gradient(105deg,
            #828282 0%,
            #828282 40%,
            #FFFFFF 48%,
            #FFFFFF 52%,
            #828282 60%,
            #828282 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: shimmer-text 1.8s ease-out forwards;
}

@keyframes shimmer-text {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

@media (max-width: 480px) {
    .email-form {
        flex-direction: column;
        padding: 16px 20px;
        gap: 12px;
    }

    .email-input {
        width: 100%;
        text-align: center;
    }

    .submit-button {
        width: 100%;
    }

    .login-container {
        padding: 12px 12px;
    }

    .login-button {
        font-size: 13px;
        padding: 0 10px;
    }
}

/* ---- Long-form pages (terms, privacy, etc.) ---- */

.page {
    display: block;
    overflow: auto;
    padding: 0 20px;
}

.page-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 0 80px;
    font-size: 16px;
    line-height: 1.75;
    color: #BBBBBB;
}

.page-content h1 {
    font-size: 28px;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 4px;
    line-height: 1.3;
}

.page-content h1+p {
    color: #828282;
    font-size: 14px;
    margin-bottom: 32px;
}

.page-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #242424;
}

.page-content p {
    margin-bottom: 16px;
}

.page-content a {
    color: #8CABFF;
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

.page-content strong {
    color: #FFFFFF;
    font-weight: 600;
}

.page-content em {
    font-style: italic;
    font-weight: 600;
    display: block;
    font-size: 16px;
    color: #FFFFFF;
    margin-top: 24px;
    margin-bottom: 8px;
}

.page-content hr {
    border: none;
    border-top: 1px solid #242424;
    margin: 40px 0;
}

.page-content ol {
    list-style: none;
    padding-left: 0;
    counter-reset: top-section;
}

.page-content>ol>li {
    counter-increment: top-section;
    margin-bottom: 32px;
    font-weight: 600;
    font-size: 16px;
    color: #FFFFFF;
}

.page-content>ol>li::before {
    content: counter(top-section) ".  ";
}

.page-content>ol>li>ol {
    list-style: none;
    padding-left: 0;
    margin-top: 12px;
    counter-reset: sub-section;
}

.page-content>ol>li>ol>li {
    counter-increment: sub-section;
    font-weight: 400;
    font-size: 16px;
    color: #BBBBBB;
    margin-bottom: 12px;
    padding-left: 2.5rem;
    text-indent: -2.5rem;
}

.page-content>ol>li>ol>li::before {
    content: counter(top-section) "." counter(sub-section) ".  ";
    font-weight: 600;
    color: #FFFFFF;
}

.page-content>ol>li>ol>li>ol {
    text-indent: 0;
    padding-left: 1.25rem;
    margin-top: 8px;
}

.page-content ol[type="a"] {
    list-style: none;
    padding-left: 1.25rem;
    counter-reset: alpha-item;
    margin-top: 8px;
}

.page-content ol[type="a"]>li {
    counter-increment: alpha-item;
    margin-bottom: 8px;
    padding-left: 1.5rem;
    text-indent: -1.5rem;
}

.page-content ol[type="a"]>li::before {
    content: "(" counter(alpha-item, lower-alpha) ")  ";
    font-weight: 400;
}

@media (max-width: 480px) {
    .page-content h1 {
        font-size: 22px;
    }

    .page-content>ol>li>ol>li {
        padding-left: 1.75rem;
        text-indent: -1.75rem;
    }

    .page-content ol[type="a"] {
        padding-left: 0.5rem;
    }
}

@media print {
    .page {
        background: #fff;
    }

    .page-content {
        color: #1a1a1a;
        max-width: 100%;
        padding: 0;
    }

    .page-content h1,
    .page-content h2,
    .page-content strong,
    .page-content em,
    .page-content>ol>li,
    .page-content>ol>li>ol>li::before {
        color: #1a1a1a;
    }

    .page-content h2 {
        border-bottom-color: #d4d4d4;
        page-break-after: avoid;
    }

    .page-content>ol>li {
        page-break-inside: avoid;
    }
}

/* Visually hidden but accessible to screen readers and crawlers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}