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

        :root {
            --white: #ffffff;
            --gray-50: #fafafa;
            --gray-100: #f5f5f7;
            --gray-200: #e8e8ed;
            --gray-300: #d2d2d7;
            --gray-400: #afafb2;
            --gray-500: #86868b;
            --gray-600: #6e6e73;
            --gray-700: #424245;
            --gray-800: #1d1d1f;
            --gradient-start: #0077B6;
            --gradient-mid: #5B2D8E;
            --gradient-end: #7CB518;
            --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        }

        html { font-size: 16px; }

        body {
            font-family: var(--font);
            color: var(--gray-800);
            background: var(--gray-50);
            -webkit-font-smoothing: antialiased;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            opacity: 0;
            transition: opacity 0.3s;
        }

        /* The card centres itself in the space above the footer. A row-flex body
           would lay the shared footer out BESIDE the card instead of under it. */
        .signup { margin: auto; }
        body > footer.footer { flex-shrink: 0; }
        body.loaded { opacity: 1; }
        /* The reveal depends on /auth.js adding .loaded. If that file is blocked,
           fails to parse, or JS is off, the page stayed at opacity 0 FOREVER: a
           paying-intent visitor saw pure white (QA 2026-08-13). Pure-CSS fallback:
           reveal after 2.5s no matter what. A page without its JS is degraded; a
           blank page is gone. */
        @keyframes revealFallback { to { opacity: 1; } }
        body { animation: revealFallback 0.3s ease 2.5s forwards; }

        a { text-decoration: none; color: inherit; }

        .signup {
            width: 100%;
            max-width: 420px;
            padding: 24px;
        }

        .signup__logo {
            text-align: center;
            margin-bottom: 48px;
        }

        .signup__logo-text {
            font-size: 1.6rem;
            font-weight: 800;
            letter-spacing: -0.03em;
            background: linear-gradient(90deg, #0077B6 0%, #1B2B7B 30%, #5B2D8E 55%, #7CB518 85%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .signup__logo-text em { font-style: normal; }

        .signup__card {
            background: var(--white);
            border: 1px solid var(--gray-200);
            border-radius: 20px;
            padding: 48px 36px;
            box-shadow: 0 8px 40px rgba(0,0,0,0.06);
            text-align: center;
        }

        .signup__title {
            font-size: 1.5rem;
            font-weight: 700;
            letter-spacing: -0.03em;
            margin-bottom: 8px;
        }

        .signup__subtitle {
            font-size: 0.9375rem;
            color: var(--gray-500);
            line-height: 1.5;
            margin-bottom: 36px;
        }

        .signup__google-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            width: 100%;
            padding: 14px 24px;
            border-radius: 980px;
            font-size: 0.9375rem;
            font-weight: 600;
            font-family: var(--font);
            cursor: pointer;
            border: 1.5px solid var(--gray-300);
            background: var(--white);
            color: var(--gray-800);
            transition: all 0.25s ease;
        }
        .signup__google-btn:hover {
            border-color: var(--gray-400);
            box-shadow: 0 4px 16px rgba(0,0,0,0.08);
            transform: translateY(-1px);
        }
        .signup__google-btn:active {
            transform: translateY(0);
        }

        .signup__google-btn svg {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }

        .signup__divider {
            display: flex;
            align-items: center;
            gap: 16px;
            margin: 24px 0;
            color: var(--gray-400);
            font-size: 0.75rem;
            font-weight: 500;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }
        .signup__divider::before,
        .signup__divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--gray-200);
        }

        /* Email form */
        .signup__email-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
        .signup__input {
            width: 100%;
            padding: 13px 16px;
            border: 1.5px solid var(--gray-200);
            border-radius: 12px;
            font-family: var(--font);
            font-size: 0.9375rem;
            color: var(--gray-800);
            background: var(--white);
            outline: none;
            transition: border-color 0.15s;
        }
        .signup__input:focus { border-color: var(--gradient-mid); }
        .signup__input::placeholder { color: var(--gray-400); }
        .signup__submit-btn {
            width: 100%;
            padding: 14px;
            border-radius: 980px;
            font-size: 0.9375rem;
            font-weight: 700;
            font-family: var(--font);
            cursor: pointer;
            border: none;
            background: linear-gradient(135deg, #0077B6, #5B2D8E);
            color: var(--white);
            transition: opacity 0.2s, transform 0.2s;
            margin-top: 4px;
        }
        .signup__submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }
        .signup__submit-btn:active { transform: translateY(0); }
        .signup__submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
        .signup__toggle {
            text-align: center;
            font-size: 0.8125rem;
            color: var(--gray-500);
            margin-top: 4px;
        }
        .signup__toggle a { color: var(--gradient-mid); font-weight: 600; cursor: pointer; }
        .signup__forgot { text-align: right; font-size: 0.75rem; }
        .signup__forgot a { color: var(--gray-400); cursor: pointer; }
        .signup__forgot a:hover { color: var(--gradient-mid); }

        .signup__error {
            display: none;
            margin-top: 4px;
            padding: 12px 16px;
            border-radius: 12px;
            background: #fef2f2;
            color: #dc2626;
            font-size: 0.8125rem;
            line-height: 1.4;
        }
        .signup__success {
            display: none;
            margin-top: 4px;
            padding: 12px 16px;
            border-radius: 12px;
            background: #f0fdf4;
            color: #15803d;
            font-size: 0.8125rem;
            line-height: 1.4;
        }

        .signup__features {
            display: flex;
            flex-direction: column;
            gap: 12px;
            text-align: left;
        }

        .signup__feature {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.8125rem;
            color: var(--gray-600);
        }

        .signup__feature svg {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            color: var(--gradient-mid);
        }

        .signup__footer {
            text-align: center;
            margin-top: 24px;
            font-size: 0.75rem;
            color: var(--gray-400);
            line-height: 1.6;
        }
        .signup__footer a {
            color: var(--gray-500);
            text-decoration: underline;
        }

        .signup__login-link {
            text-align: center;
            margin-top: 24px;
            font-size: 0.875rem;
            color: var(--gray-500);
        }
        .signup__login-link a {
            color: var(--gradient-mid);
            font-weight: 600;
        }

        /* Plan badge if coming from pricing */
        .signup__plan-badge {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 8px 16px;
            margin-bottom: 24px;
            border-radius: 980px;
            background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
            color: var(--white);
            font-size: 0.8125rem;
            font-weight: 600;
        }
        .signup__plan-badge.visible { display: inline-flex; }

        /* Invited-member arrival: quiet joining line, no plan/trial framing */
        .signup__invite-note {
            display: none;
            font-size: 0.8125rem;
            color: var(--gray-600);
            margin-bottom: 20px;
        }

        @media (max-width: 768px) {
            .signup__card { padding: 36px 24px; margin: 16px; max-width: calc(100vw - 32px); }
            .signup__title { font-size: 1.5rem; }
        }
        @media (max-width: 480px) {
            .signup__card { padding: 28px 16px; }
            .signup__title { font-size: 1.25rem; }
            .signup__subtitle { font-size: 0.875rem; }
            .signup__input { padding: 12px 14px; min-height: 44px; }
            .signup__btn { min-height: 44px; }
            .signup__features { flex-direction: column; gap: 8px; }
        }
    